有效率的盡責

我系的同事大都是很盡責的老師,但沒有人及得上J。J兩年前在UCLA拿了博士便來我的大學當助理教授,是個笛卡兒專家,旁通中古哲學。他人品極好,有料子卻無半點傲氣,對學生很隨和,教書盡心盡力,頗受學生歡迎。

通常

古惑仔夕陽之歌

人生音像城

( 原刊 AV Magazine 21-05-2010 )

古惑仔夕陽之歌

莊文強是個很有趣的人,看他的樣子便知道。劉偉強說過,《無間道》的傻強角色,是看著莊文強來寫的。

偶爾看見他在幕前客串,也很惹笑,像《內衣少女》中,


Users Are Stupid - a Guiding UX Principle

About a week ago, a road near my condo was closed off due to construction. Prominent signs were placed at three separate junctions warning drivers to take a detour. Judging by these signs, a rational individual would get the hint and turn right, avoiding any unnecessary danger to his life or his vehicle.

Unfortunately, users (and drivers) are NOT rational when it comes to most decisions. They have a goal, and they'll do whatever they think is best to achieve that goal, whether or not it

Road Sign #1: Road Closed

你是誰?


刊於 2010年5月19日澳門日報新園地版

自戀的人有兩種,一種是不停把自己的活動情況寫上 facebook 的人,一種是不停在 facebook 上回應別人的活動情況。

我們都生活在自戀的時代,科技令每一個人都可憑一己之力向所有人發聲,於是


莫強求

許冠傑歌仔有唱「命裏有時終須有,命裏無時莫強求」,其實這兩句說話自古有之,《增廣賢文》有錄 。我不信命,所以命裏有時命裏無時云云,對我來說是廢話,對很多人而言則可以是方便的借口,失敗時、怠惰時、失之交臂

An example of an API that you can't do with C stdargs

(This is a followup to yesterday's entry .)

Update : I'm actually completely wrong about this, both in practiceon x86 machines with gcc and, I believe, in standards-compliant theory,as brought to my attention by nothings in comments.

One general class of impossible-in-C varargs APIs is heavily polymorphicdispatch APIs where you need to dispatch to one of several differentvarargs functions that have different constant arguments. Here is agratuitous (and probably bad) API example:


如夢("Like A Dream") ----- 如果不夠耐性,真的會入夢!
























片名 : 如夢 (2010)
導演 : 羅卓瑤
演員 : 吳彥祖、袁泉
片長 : 118 分鐘

1. 入場的動力不在導演羅卓瑤,雖然她拍過"遇上1967的女神",當然也不是吳彥祖,而是袁泉,其實她的樣子是李嘉欣型,不過我又完全唔buy
Continue reading...

潮爆北京("Beijing is Coming") ----- 一知半解!
























片名 : 潮爆北京 (中國) (2009)
導演 : 李照興
編劇 : 李照興
演員 : 王碩,李婧
片長: 80mins

1. 看"潮爆北京"已是兩星期前的事,感覺已褪色,也証明了我對此片印象不太深刻,可能是沒法代入吧,因為我連北京也未去
Continue reading...

與推銷員困獸鬥下集

是咁的,話說上回提到有一條無聊友有意重拾與推銷員困獸鬥的舊嗜好,又聽說身邊朋友的朋友的朋友sssss近來在Elyze試做修身free trial,但對服務及效果「眾說紛紜」。

人人都去試,正所謂執輸行頭慘過敗家,我當然衝去試啦﹗暗啞底
Continue reading...

The limitations of C's varargs support

I've noted before that dealing with varargs functionsin C is vaguely annoying (although not as annoying as in the days beforethe ANSI C stdarg support). One of those annoyances is that C's stdargsupport is limited compared to what you can do in languages with firstclass support for variable argument counts.

The core limitation in C is that you can't manipulate the list ofvariable arguments that your function gets. Instead you have twochoices; you can pass it completely unaltered to a function that