Archive for September, 2008

Got my first notebook thinkpad x61!

Saturday, September 27th, 2008 Posted in linux | No Comments »

Yestaday,  I got my first notebook thinkpad x61. It has a T8100 CPU, 2GB memory and 250GB HD. (You can find more detail at here. The first one is my ... Read more..

ntfs-3g的效率如何?

Tuesday, September 16th, 2008 Posted in linux | No Comments »

还是virtualbox崩溃引来的破事儿,重新安装了virtualbox 2.0非OSE版,接着就是安装windows 2003。随手抓了一张03的安装光盘,安装成功后再安装Office 2k3,令人郁闷的事情发生了:virtualbox提示文件大小超出限制~刚开始还没有反应过来,以前都是这么安装的呀?后来突然想到,我把虚拟机文件放到了fat 32分区,查看文件大小,确实4G了。以前安装成功,估计是那个版本的windows 2003精简过~无奈,格式化为ntfs,考虑到还需要在windows下访问这个分区。用ntfs-3g挂载分区后,开始安装。不知道是不是ntfs-3g的效率问题,CPU占用很高,速度还很慢,copy文件后的配置,平时20分钟就能完成,这次40分钟也搞不定。尝试了好几次,没办法,绕过这个问题吧,搞成ext3。如此这般,5次安装2003后,终于成功了。 Read more..

Search for proxies via python 续

Tuesday, September 16th, 2008 Posted in python | No Comments »

前几天virtualbox崩溃了,一直使用的花刺代理自然也不能使用了。教育网没有代理可怎么活?没办法,只好自己搞定了。上网搜索了一下,找到一个网友的代码,拿过来,稍微修改了一下,给经常使用的代理更高的优先级,添加保存所有的下载代理功能(原来的脚步只会下载验证成功的代理)。放在46上,好像还能用~ Read more..

Search for proxies via python~

Tuesday, September 16th, 2008 Posted in python | No Comments »

#!/usr/bin/env python """Get proxies from urls, and test their speed""" import urllib, re, time, threading urls = ["http://www.hitchina.net/taxonomy/term/14", "http://www.hitchina.net/taxonomy/term/15", "http://www.ipbbs.com/", "http://www.pass-e.com/proxy/", "http://www.haozs.net/ip.htm" ] #where to get proxies urls_proxy = {} #proxy used to connect urls proxy_pattern = re.compile(r"""\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,}""") test_url = "http://setiathome.berkeley.edu/" test_pattern = re.compile(r"""SETI@home""") time_out ... Read more..

正式上课第一天~

Monday, September 1st, 2008 Posted in 小记 | 6 Comments »

2008年9月1日,我的硕士研究生生活开始了。 今天课不多,一门英语一门计算机网络与通讯,英语没去,计算机网络与通讯去了,听得挺认真,居然没有睡觉。 2008年9月1日,我的导师确定了,是姜守旭老师。熟悉姜老师的同学告诉我,说姜老师挺好的,要求很严,对学生很好。感谢遇到了一个好老师! 今天算是我们数据库中心的迎新会议,李建中老师也给大家谈了很多,给予大家很大的希望。今天我才知道,两年时间确实太短暂了,而需要我做的东西又那么多……没办法,加油吧,好好地学,明年,找个perfect work吧~ God bless me ! Read more..