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

我只想走
今天,我的母親站在我的床邊辱罵我,時間為早上10時。
為了甚麼?
為了她看到我買了一條連身裙。
一條不過$490的連身裙。
是日金句
K: "without health, you are lifeless."
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,
有沒有人想念過文明單位?
我如何渡過一星期的病假
Day 2:Dating is my life
Day 3:Dating is my life
Day 4:Have fun :)
Day 5:Have fun :)
Day 6:Letz go Shopping~ Gathering~ Clubbing~
Day 7:zzZzzZZzzz
其實腰患不是小問題,醫生已經皺著眉頭認為我要去照X ray了。
醫生醫生,你可否一併治療我的寂寞?
我快要不治了。