今次北京之旅,最開心的,除了參加了這個博客論壇外,更開心的,是有機會和一位認識多年的老友聚舊。
我讀大學的年代(即係八、九十年代囉老友,老餅之唔係我),我邊上課邊幫大量報紙雜誌寫樂評及兼職記者,有些沒稿
In light of yesterday's entry , here is one of my newrules for Python modules, especially extension modules written in C:
If you're going to raise an exception because a system call failed,don't make up a new exception for it. Raise either
IOErrororOSErrorthemselves.
Every deviation from this causes annoyancesfor Python programmers. This is especially visible in the situationwith signals and EINTR , where I really do not want tobe rewriting the same code over and over again with different exception
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.)
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人,這晚,他為我們分析企業和
