Pi

Recent reading the novel Life of Pi brings back my overseas training memories that are engraved in a way I know will never fade.

Yann Martel's Life of Pi chronicles the tale of a 16-year-old Indian boy moving to Canada. One time, during my training in Montreal eight years ago, I started reading this novel, and never got the chance to finish it before coming back. I know I won't remember the story and will have to go back to page one again.

Wait

聖誕剪報

趁聖誕佳節, 心血來潮找出多年前在『公信力第一報』上剪回來保存的玩具剪報. 刊登日期是1993年12月26日前後.


Continue reading...

啖蟹、品酒、聽雨聲

妻兒出外幾天,只剩我一個人在家,像這樣的,上一次已是五年前的事了。有家的人,即使是個溫暖的家,應該也會享受這種間中和短暫的孤獨吧。

今天早上和下午都在批改學生的期終論文,其實絕不是享受。這次要學生寫的是

打我?未驚過!

Bernice從英國回港度聖誕,竟然約我出來晚飯。Frankly,I'm surprised。我從沒料到她會找我。畢竟,我們是翻過臉的,即使那已是中學時代的事。那時候,我們在學校裏就像糖黐豆,幾乎每個weekend都一起騎馬。然後有天,說翻臉就翻臉!Well of

How not to set up your DNS (part 20)

I call this one the case of the non-redundant redundant MX; it's muchlike the first time except more thorough:

; sdig mx mumble.utoronto.ca.0 mail.mumble.utoronto.ca.0 jackson.mumble.utoronto.ca.5 mail.mumble.utoronto.ca.; sdig a mail.mumble.utoronto.ca.128.100.X.Y; sdig a jackson.mumble.utoronto.ca.128.1

Do you have a network layout diagram?

Here's a not entirely hypothetical question: suppose that your machinesare coming up after a building-wide power outage, except that ascattering of them (on various different networks) are either not up ornot reachable. Could you look at what machines are failing to appear andidentify whether there's likely to be a switch that's failed, and if so,where that switch would be?

(This happened to us yesterday. There was some confusion, because guesswhat we don't have


Using OpenID for local web application authentication

We have a problem, and that problem is authentication. In a not uncommonpattern, we have a central set of core services, run by a core group;email, fileservers, the login servers, and so on. Then we have a bunchof other people who want to build various web applications, rangingfrom departmental things all the way down to graduate students puttingtogether projects.

Many of these web applications need accounts and authentication. Thenatural and best logins and passwords to use are people's existingdepartmental


為打交找個理由

「證明自己的存在」是漫畫裏常有的對白,有一些會透過戰鬥,有一些會透過學習,有一些會透過愛情,用不同的方式,在肉體、知性和感情之中,確定自己是存在的。我想知道那些看定位為少年漫畫的讀者,到底懂不懂主角們

大批電車男/女出現於電車內的聖誕派對?

搞下爛Gag嗟,唔好嬲,電車男之唔係我,係我,係我。

言歸正轉,我一日彈人家搞的Blogger活動,但時間許可的話,我總還是會應約而去,尤其是 Nokia 吹雞搞的。

原因很簡單,雖然無送手機派大禮,但參加過這麼多Blogger活動中,相信只有

Continue reading...

Displaying a User's Signature on a Node Page in Drupal

A project I'm working on required a user's signature be displayed on the user's blog posts (only on the page—not in blog teaser listings), and after much wrangling, I figured out how to put the 'Biography' (one of the user profile fields) into the nodes when they were viewed individually.

Here's the snippet (to be placed into node.tpl.php or node-blog.tpl.php):