萍水相逢亦隨緣

昨天,我們學院的人文學中心請了一位歷史學家來演講,因為我是中心的委員,所以要陪他到處走走兼吃晚飯。他想去看看附近一間當年華人採金礦工(大多是被「賣豬仔」者)興建的廟宇,我便和另一位同事跟他一道去。這位

Oscar向John Hughes致敬



第82屆奧斯卡頒獎典禮已完滿結束. 頒獎禮和賽果一如大家所料. 但最令人意外的, 是一場奧斯卡特別向 John Hughes 致敬的環節. 甚少已故電影人有如此待遇 (尤其今屆提早頒發終身成就獎, 刪去例行公事的濫情環節), 即使是Paul Newman
Continue reading...

微軟IE6壽終正寢,舉行非官方喪禮。

真係大吉利是,但係又出師有名。

這間位於美國丹佛市(Denver)的設計公司Aten Design Group,上星期四,為了紀念IE6(Internet Explorer 6)於2010年3月1日正式與世長辭,居然舉行了一個簡單而隆重得來又極之無聊的追思活動,以下是有關網

Continue reading...

嚇了一跳

這幾天,看多了一些留言之後,發現澳門人之中,真的存在非常特別的個體。

特別之處在於,有本事用一種與別不同的思維理解世事人情,並且把自己的一套當作金科玉律。

當然也連帶發現,在這個理應越來越開放的世界中,總


How not to design an API (in C): the enum ordering mistake

Suppose that you are creating an API in C and that you have a returnvalue that is just right for an enum ; for example, it communicateseither 'all is okay' or some range of errors and exceptional conditions.Here's how not to write this API:

typedef enum { ERROR_1, ERROR_2, ERROR_3, ALL_OK } error_t;

You don't want to do this, because sooner or later you're going to wantto add another error


那一年,我二十歲

雙十年華。

但除了身分證上的二十歲,不知道那一年有甚麼好。

許多人懷念二十歲時的自己,想起那年,我只覺得好shit。

那一年,一窮二白。

那一年,談了一場糟透的戀愛。

那一年,臉上的暗瘡仍不太受控。

那一年,所用的粉底

〈速寫之一:UC Berkeley校園〉

鐘樓敲了十二響
一陣清風
吹來廣場那邊的
一把略有走調的二胡
和幾個沒有和聲的口號

找一片樹蔭坐下
木板長凳上有裂紋和葉影
在樹蔭下看陽光
看你在陽光下找樹蔭
看樹蔭在陽光下等你

鐘樓又響了
我從來時的小徑走
那些松鼠仍在那

Allowing Organic Groups Administrators the Ability to Unpublish/Publish and Schedule Content

One requirement of the Archdiocese of St. Louis' website is that group administrators are able to publish and unpublish the content inside their groups, and they should also be able to schedule posts for automated publishing and unpublishing at a later time.

To do this, I used the following modules:

After enabling these modules,

Scheduling and Publishing options inside a group

Grasshopper

There is no such thing as universal truth in the world. There never was.

Anne Lamott wrote that it took years for her to discover that the first step in finding out the truth is to begin unlearning almost everything adults had taught her. I tried thinking of words that I told my little sister when she was young. And I did discover Anne Lamott is right.

One green spring afternoon, I'd been enjoying myself in the garden while my little sister waited for the surprise his brother brought home. I

Exceptions versus error return values

Python has two ways of signalling that a function has failed; you canraise an exception or return a special error value of some sort. I useboth techniques in different circumstances; since I've recently beenwriting some Python code, I've been thinking about exactly what thosecircumstances are, as far as I can tell.

(Self-analysis is tricky given that I don't particularly think throughthe choice when I'm making it; I handle errors however seems right forthe function I'