最近升級了ubuntu 9.10,可是ATI顯示卡就這樣爆炸了整個XORG吃的資源超重的,也不知道為什麼,又怕亂調整會把雙螢幕搞掉不過找了很久,我是猜想應該是ati 官方驅動沒有修改的關係,所以還是把他移除用ati的open source驅動,發現效率真的有比較好找了以下這篇http://forum.ubuntu.com.cn/viewtopic.php?f=94&p=1576369
sudo vim /etc/apt/sources.list
增加source.list的來源
deb http://ppa.launchpad.net/launchpad-weyland/xserver-nobackfill/ubuntu...
2009年11月20日 星期五
2009年11月17日 星期二
python object and static method
這是一則早該紀錄的文章,只能說我太懶惰了-.-,一切都是從這裡開始的,有天心血來潮想來review一下design pattern,結果跑去看良葛格的文章simple factory ,可是問題跑出來了,他下面的python code我不能跑,會出現錯誤跑出
TypeError: unbound method getMessage() must be called with MessageFactory instance as first argument (got str instance instead)
因為MessageFactory.getMessage("caterpillar@openhome.cc",...