工作營第一日

工作營的俄藉Camp Leader昨夜建議我明早到克拉斯諾亞爾斯克市中心的中央警局報失背包,但俄羅斯警察的官遼風氣甚盛,她着我要有心理準備那可能會折騰大半天。
昨晚我真的完全睡不着,眼光光望天光,整晚想着旅程才剛開始就發
Continue reading...

Link: Using colour well in data visualization

Why Should Engineers and Scientists Be Worried About Color? is abouthow straightforward use of colour in data visualizations can mislead youand hide information (and how to do better). Some of their examplesare eye-opening and alarming.

(Via Hacker News .)

(Since I took up photography I've had a muchincreased interest in how we perceive things, including colour.)


Python, signal handlers, and EINTR

One of the interesting effects of setting a signal handler inyour Python program is, well, let me quote the signal module :

  • When a signal arrives during an I/O operation, it is possiblethat the I/O operation raises an exception after the signal handlerreturns. This is dependent on the underlying Unix system's semanticsregarding interrupted system calls.

By 'an I/O operation' the manual means more than you might think; forexample, select.select() is affected by this.


由香港隊晉級國家隊的老友


今次北京之旅,最開心的,除了參加了這個博客論壇外,更開心的,是有機會和一位認識多年的老友聚舊。

我讀大學的年代(即係八、九十年代囉老友,老餅之唔係我),我邊上課邊幫大量報紙雜誌寫樂評及兼職記者,有些沒稿


北京博客論壇—「除了帽子什麽都可以綠」(二)

我慶幸當晚我臨危上陣,被點選了去作打頭陣的首位講者,因為快快完事後,接下來我便可以好好享受其他嘉賓講者的演說。

我額頭的一把汗尚未抹乾,第二位講者已經登場。孫老師是國內資深IT人,這晚,他為我們分析企業和

Continue reading...

電懋四千金


《四千金》( Our Sister Hedy, 1957), 電懋的經典作. 知道很久, 卻從沒提起興趣要看. 葉楓、林翠, 也知道名字: 一個是鄭明明好友、港姐季軍張郁蕾姨母, 一個是曾江家姐、陳山河和王韾平的母親, 卻也未看過她們的電影. (
Continue reading...

瘦虎肥龍爭霸戰‧一

我們還是預算錯誤了.

昨晚將Ding Ding抱回家後, 與蜜柑碰個正著. 蜜柑五年來幾乎沒有見過自己的同類, 但貓的本能反應仍在. 蜜柑問候Ding Ding的開場白如下:

「Sii....Sii.... Wellaaaaaaaaaaaaaaaaaaooooooooooooohhhhhhhhhhh!!!!!」

蜜柑忽然大丈夫, 由清純笨貓變
Continue reading...

Conformist

Not long ago, my wife and I had a dinner in a Chinese restaurant. It wasn't a particularly big one, but it served great dishes. But when I caught my wife's eye, I could see she was feeling tired. Then I started to notice that we were sitting beneath a noisy television, and right next to a busy corridor. You can't think of better way to make people throw a fit. Plus an epileptic fit - if you happen to be sensitive to the flicker

Why user programs mapping page zero is so bad news on x86 hardware

The Linux kernel recently had a significant security issue or two wherethe root cause was that user programs could map memory at page zero, andthis lead to kernel level exploits. If you went through the same sort ofundergrad OS course that I did, you might be wondering how on earth auser process memory mapping issue leads to a kernel exploit; after all,as all of those little box diagrams tell us, the user program addressspace is one thing and the kernel address space is an entirely differentthing.


More accidental BitTorrent on our network

We've recently had another interesting case of 'accidental BitTorrent' on our network, different from the previoustimes. This time around it was through our VPN server, and just fromthat alone you can probably guess what happened.

Suppose that you are a user, sitting at home running BitTorrent in thebackground on your home machine while you do other things. You need toaccess some restricted on-campus thing; our generally supported way todo this is to fire up a VPN connection so that you are '