這裡住不得了

忙得要死。一天都伏在電腦前面,打了近三十個電話。儘量控制情緒,但看了星期日明報送審的事(東方可恥報導 ),滿心響起《紅樓夢》裡黛玉崩潰的對白: 黛玉聽了,大叫一聲道:『這裡住不得了。』一手指著窗外

Determining what superclass supplies a method in Python

It turns out that there are some situations in Python where it is useful toknow what your superclass is. In particular, itwould be nice for mixin classes to be able to know when they are aboutto call methods on object() instead of on some actual user class.

It would be nice if the objects returned by super() directly exposed away of determining this. Unfortunately they do not, and they don't evendirectly expose what the next superclass is, although given a super object you


餘香滿口

廖偉棠 在「廢墟之花」裡讀了一首新作〈左派夜爭〉,裡面有一句實在可愛:

滿天擊掌像柳絮辯經

這樣不精緻,那麼強烈的現代電影感,像極了典故,實際卻不是。戰爭不斷、甩碌頻仍、積稿如山卻不斷昏睡,這句詩還是時常在

My rules of thumb for picking conference talks

The yearly on-campus technical conference has just wrapped up for anotheryear, so it seems a good time to write down my rules of thumb forpicking what conference talks to go to, in the hopes that I'll rememberthem for next year. (This year, I only remembered them about halfwaythrough.)

First, I should note that this is about picking interesting talks, notrelevant ones. With rare exceptions, I don't go to talks at our localtechnical conference to be educated,


這是一座不會孭鑊的城市


有沒有發現,這個城市的人,看來都不會過馬路,不知道醉酒駕駛會有危險,不習慣在家中看天氣報告,不懂珍惜食水,不明白去完洗手間要洗手,不喜歡保持公共地方清潔,要不然,有關部門為什麼要在最當眼地方設立各種各

突破白色恐怖

關於色情版的事,認真的討論必須建基於對真實文本的全面閱讀之上,這是知性上的基本道德。簡單看看版面和文章,就可知道學生報並無賣弄色情。偏偏淫審處將刊物定為二級後,所有傳媒都噤若寒蟬。上週星期日明報做了一

Continue reading...

Sizing your swap space (part 2)

On modern machines, the temptation is to make heroically big swap sizes;you'll hardly notice giving your swap 5G or 10G, and it means that youcan just forget about the whole worry that you've madeit too small. But this can be counterproductive, because too much swapcan be dangerous.

The problem with a too large swap is that it lets your system thrashitself more and more into overload, instead of outright exploding andthen recovering. When a system is overloaded enough,


有沒有人想念過文明單位?

連續三次,都是非常充實的通識教室(大學程度)呢。

1. 勞動
嘉賓:譚駿賢

2. 皇后碼頭
嘉賓: 周思中

3. 非物質文化遺產 (民間版)
嘉賓:廖迪生

廖生是科大人類學教授,瘦,一頭灰髮,非常溫文,是離開時主動與secure打招呼

聲明教室

中大學生報事件以來,聲明浩如煙海,各有特色。同學寫的多滿腔熱情隱然xanga義氣,報社一貫有種來自知性的高傲,出自學生組織老鬼手的開口就是喝令學校道歉,而聯署者年紀過四十的,則老氣橫秋要求息事寧人。惟是這一篇

Sizing your swap space (part 1)

The amount of memory that a program needs in order to actually get somework done is called its Resident Set Size (RSS). The total amount ofvirtual memory a program uses is called various things; ps uses VSZ(Virtual Size, presumably), for example.

The premise of paging things out to your swap space is that mostprograms don't need to use all of their memory all of the time;their RSS will be smaller than their VSZ. The difference can bepushed out to swap space