2009-02-11
2007-11-14
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
s = """
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“)
摘自:憨狗点灯
更改如下配置,即可:
;;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
有以下几个方法 (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 密码
Stop mysqld and restart it with the
--skip-grant-tables --user=rootoptions (Windows users omit the--user=rootportion).-
Connect to the mysqld server with this command:
shell>
mysql -u root -
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 actualrootpassword that you want to use. You should be able to connect using the new password.

