2009-02-11

MBA 第一学期全部课程通过

全部课程通过。开心。

2007-11-14

儿子叫妈妈爸爸了

2007年11月1日,儿子叫妈妈,2007年11月13日儿子叫爸爸。虽然是无意识的。
是为记。

2006-10-11

从网页上提取 Email 地址

import re

s = """xxx@ddd.com
 yyy@ddd.net
 zzz@ddd.cn"""

r = re.findall(r'(\w*@\w*\.\w*)', s)
for e in r:
print e

摘自 python-chinese mail lise

mew

需要smtp认证更改mew的配置,

更改如下配置,即可:

;;mew smtp服务器设置
(setq mew-smtp-user “hackgou@yeah.net“)
;(setq mew-mail-domain “smtp.yeah.net”)
;(setq mew-smtp-auth-list “LOGIN”)
(setq mew-smtp-server “smtp.yeah.net”)
(setq mew-smtp-mail-from “hackgou@yeah.net“)

摘自:憨狗点灯

2006-08-27

如何删除 --help 文件 (Delete --help file)

如何删除 --help 文件 (How to delete --help file)

有以下几个方法 (There are three method to resolve the problem)
1. rm -- --help
2. rm -- "--help"
3. man rm
To remove a file whose name starts with a `-', for example `-foo', use
one of these commands:

rm -- -foo

rm ./-foo

2006-08-20

重设 Mysql Root 密码

  1. Stop mysqld and restart it with the --skip-grant-tables --user=root options (Windows users omit the --user=root portion).

  2. Connect to the mysqld server with this command:

    shell> mysql -u root 
  3. Issue the following statements in the mysql client:

    mysql> UPDATE mysql.user SET Password=PASSWORD('newpwd')
    -> WHERE User='root';
    mysql> FLUSH PRIVILEGES;

    Replace “newpwd” with the actual root password that you want to use.

  4. You should be able to connect using the new password.

2006-08-17

上海的垃圾桶

上海的垃圾桶很多是分类的。但垃圾车收垃圾是不分类的。
分类的垃圾桶作用何在?

2006-07-01

采访后的第一天早上

上海电视台采访后的第一天早上 Posted by Picasa