Visualizing Email Data(Week 6&7) code segment gword.py import sqlite3 import time import zlib import string conn = sqlite3.connect('index.sqlite') cur = conn.cursor() cur.execute('SELECT id, subject FROM Subjects') subjects = dict() for message_row i…
Spidering and Modeling Email Data(week4&5) Mailing List - Gmane Crawl the archive of a mailing list Do some analysis / cleanup Visualize the data as word cloud and lines code segment gmane.py import sqlite3 import time import ssl import urllib.reques…
Building a Search Engine(week 2&3) Search Engine Architecture Web Crawling Index Building Searching Web Crawler A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner. Web crawlers are mainly used to cre…
操作系统学习笔记----进程/线程模型----Coursera课程笔记 进程/线程模型 0. 概述 0.1 进程模型 多道程序设计 进程的概念.进程控制块 进程状态及转换.进程队列 进程控制----进程创建.撤销.阻塞.唤醒.... 0.2 线程模型 为什么引入线程 线程的组成 线程机制的实现 用户级线程.核心级线程.混合方式 1. 进程的基本概念 1.1 多道程序设计 允许多个程序同时进入内存运行,目的是为了提高CPU系统效率 1.2 并发环境与并发程序 并发环境: 一段时间间隔内,单处理器上…
类和对象(Week 3) 内联成员函数和重载成员函数 内联成员函数 inline + 成员函数 整个函数题出现在类定义内部 class B{ inline void func1(); //方式1 void func2() //方式2 { }; }; void B::func1(){} 成员函数的重载及参数缺省 重载成员函数 成员函数--带缺省参数 #include<iostream> using namespace std; class Location{ private: intx,y; p…
Introduction and Announcement Emails (Week 3) Overview of Introduction & Announcement Emails Basic Purpose & Approaches Key language for Writing Introduction Email Subject ❌ Meet Sam Boyle ✅Meet Sam Boyle, CPA Tax Specialist ✅Introducing Sam Boyle…
Get to Know Basic Email Writing Structures(Week 1) Introduction to Course Email and Editing Basics Subject Lines and Email Text Introductions and Announcements Requests and Apologies Culture Considerations Email an Introduction of Yourself to Your Co…
指针(二) (Week 5) 字符串与指针 指向数组的指针 int a[10]; int *p; p = a; 指向字符串的指针 指向字符串的指针变量 char a[10]; char *p; p = a; int main() { int a = 5; int *pa = &a; int b[6] = {1,2,3,4,5,6}; int *pb = b; char c[6] = {'h','e','l','l','o','\0'}; char *pc = c; cout<<a<…
Culture Matters(Week 5) High/Low Context Communication High Context Communication The Middle East, Asia, Africa, South America Non-explicit Descriptive Longer Emails Low Context Communication North America, Western Europe Straight forward Concise Eff…
Request and Apology Emails(Week 4) How to Write Request Emails Write more POLITELY & SINCERELUY Please Could/Would...? Would you mind...? would like Polite Request PLEASE Please send me your resume. Please meet me today at 3PM. Please give me directi…