俠骨文心的詩詞對聯


武俠小說大宗師梁羽生先生月前病逝,他的作品和他開創的新派武俠小說潮流又再成為話題。在這個已經沒有太多人講究俠義精神的時代,一位武俠小說家的離開是會教他的讀者份外傷感的。我不太清楚現在還有多少年輕讀者會

How CPython optimizes allocations for some built-in types

Due to writing yesterday's entry , I gotcurious enough to go see how CPython handles the creation of some of thebuilt-in types, and what sorts of optimizations it does. The necessarydisclaimer is that this is for CPython 2.5.1; it doesn't necessarilyapply to other versions of CPython, and it probably doesn't apply at allto other Python implementations (although I expect that they have theirown tricks). Thus, the best use for this is as an illustration


Bespin 雲上開發

現在甚麼都可以放在雲上,連閞發環境也是。Mozilla Labs 剛剛推出了一個叫 Bespin 的 Web-based Code Editor,用的是 Canvas 技術,開發者只要使用瀏覽器即可進行開發,功能包括實時協作、指令欄 (如 VI) 等等。

其實這並不是新鮮事,之前在 Heroku appjet 也有一


打量別人的花束

二月十四日過去的午夜,有人因為不習慣與少年情侶一起在巴士站排隊時親密而站到路邊一副準備隨時耍起太極的古肅表情,我則在尾班過海巴士上四處打量別人的花束。我喜歡花,並且自小跑花墟,對花束形狀和常見花朵了然

Bollywood御用金燕子Alka Yagnik

未看《 Slumdog Millionaire 》(一百萬零一夜), 先在HMV點聽Soundtrack. 風聞有人不喜 A.R. Rahman 的手勢過於「電子」. 事實上《Slumdog Millionaire》也不是真正的Bollywood電影. 影片有意省去傳統印度音樂, 強調Hip Hop和Rap的風格, 似是大勢所趨, 卻不是一味向西方低頭

Habit

Almost everyone follows his or her own routine meticulously, so there's a good chance that you do too. And why not? Admit it. We have our own rituals of daydreaming, doing grocery, writing blogs, and even visiting the john.

Trust me, I am no expert on following the routine doggedly. But I've been keeping a habit weekly; I read the New England Journal of Medicine every Thursday for years. In particular, I never miss the case records of Massachusetts General Hospital or Clinical

女人的工作

「你一定明白,在消費主義的香港社會,與女性對話需要特定的語碼。如果沒有恤髮修甲做facial的習慣,不常看時尚雜誌,不介意拿什麼手袋,對某幾個資產階級牌子無涉獵或無看法,便彷彿隔絕於大部分的女性共同體。一個由消

Happy Valentine's Day Every One~~


黑頭膠紙的誕生



創造人是否見到這個情景才靈機一觸?


情景;整chocolate-coated strawberry,放入雪柜冷凍朱古力之後,“meng”番舊士多啤梨出來時,朱古力癡住左個碟,仲癡埋D士多啤梨核出來。

好似黑頭膠紙喔!

Some of my assumptions about Python object allocation

In a reddit comment thread I was accurately dinged for being a bit casual in how I talked aboutobject allocation at the end of my previous entry . As the comment notes, calling ' .setdefault(k,[]) ' creates and throws away a new object each time the key alreadyexists, just as ' .setdefaults(k, SomeClass()) ' would.

Well, sort of. One of the things I assume about Python is thatallocating and freeing new empty instances of built-in types