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


Using Google's New Font Library for Headings...

Today Google announced they'd help advance web typography by hosting open-sourced fonts on their CDN, and by giving the code to easily embed fonts on websites on a new website, the Google Font Directory .

It was amazingly simple: just copy the code and paste it in your template's header, then set any element on your page to use the Google-provided font(s). I started using OFL Sorts Mill Goudy TT , and I like the look (except for the lower


Mindset

We all commiserate as our colleague told us how we doctors preach with daily exercise while we are culpable of the unhealthy lifestyle. But wait: do we exercise and walk the talk at all?

Inevitably, the priority of daily exercise tends to get eclipsed by the stressful job, examination, family and many other obligations. Be that as it may, our well-being depends on how we process our lives on the inside – on our thinking or mindset. I remember reading once an interesting psychology experiment by the researchers at

兒戲的中國哲學

這篇文章不是批評中國哲學,先此聲明,以免讀者看完文章後會失望。

昨天有個學生到我的辦公室,問我可不可以當他的honors thesis的指導教授。我問他打算寫甚麼,他說中國哲學,而找我是因為全系的教授中只有我在這方面有能力指

GO!尋找攣羹人("Go Find A Psychic") ------ 忠於自己的信念,縱使別人當你是傻!
























片名 : GO!尋找攣羹人("曲がれ!スプーン") (2009)
導演 : 本廣克行
演員 : 長澤正美、三宅弘城、諏訪雅
主題歌: Cosmic Box (by YUKI)
片長 : 106 分鐘

1. 沒想到此戲竟有機會在香港上畫,好記得我去京都二条城時在一商
Continue reading...

巴黎!巴黎!

請問... ... 有冇住Paris既朋友仔可以同我一齊行街飲飲食食呀?

一個人食飯真係好悶的,我又唔識路,嗚嗚。

常識

想起梁文道《常識》如是說:「本書所集,卑之無甚高論,多為常識而已。若覺可怪,是因為此乃一個常識稀缺的時代。」

舊愛高調甩你,你會怎樣回應?

一對舊情人公開分手,一個決絕,一個傷心欲絕。

然後,被拋棄的那位,居然在各大報章包括The Wall Street Journal, The New York Times, The Washington Post還有Financial Times傾家蕩產登全版廣告,扮大方地告訴舊愛,其實我有多麼的愛你,你知道嗎?

“We love creativity. We love innovation

Continue reading...

信任不是天跌下來的

我們要合作達成一件事,需要互相信任,但信任不是天跌下來的。

首先要了解對方背景,知道對方的能力,做事的態度,是否有經驗等等。然後就要通過溝通,了解大家想要的是甚麼,尋求共識,大家同意目標是甚麼。

有了目標


Why RPM's .rpmnew files don't work in practice

In theory, RPM has a solution to yesterday's bad package upgradeproblem by way of what are generally called.rpmnew files. When you've modified a configuration file, update theRPM it comes from, and the new version of the RPM has also changed theconfiguration file, RPM does not overwrite the configuration file butinstead creates .rpmnew with the new version of it.

This does not work in practice. The problem is that there are entirelytoo many false positives; it