Respecting Unix signals

There is a certain class of program that decides it knows better thanyou about when you should be able to stop its operation. The mostirritating way to do this is to catch ^C (and even ^\); such programswin a modest prize from me, usually awarded with 'kill -9'.

Yes, some operations are dangerous if interrupted half-way through andprograms need to protect themselves against them. Short operations. Itis very rare that a program needs to block signals for very long


訪問作為博客

前天收到電視台一位李小姐的電郵
她說看了我這個BLOG幾有意思
於是問我有沒有興趣接受她正在籌備的
一個關於澳門人寫BLOG的專訪

因為看來也幾好玩
我也就答應了
本來李小姐說其他受訪者都在家中接受訪問
我怕自己的家太寒酸失禮

An extreme example of C preprocessor (ab)use

A while back, thedailywtf.com ran this entry onC preprocessor abuse. Unfortunately (and in fact as noted in thecomments), this is nothing to the true devotee of turning C into adifferent language.

This preprocessor trail was blazed early on, in the V7 Bourne shell,written by Steve Bourne. The story goes that Bourne didn't really likeC all that much, and instead much preferred Algol. Armed with the newC preprocessor he saw the opportunity to fix this problem and createdwhat


20060622網摘 – 墮落傳媒

Media

  • 墮落傳媒還是墮落家庭? Quote: 傳媒墮落至此已經無話可說,可是一個在場監督的所為愛心媽媽竟然會讓自己的女兒拍下如此一輯露骨相片,真令人狐疑,造成今天這樣風氣敗壞的香港,究竟是墮落傳媒還是墮落家庭?
  • CREAM 不應該

逝去的風景


這圖片出自今日的澳門日報,圖片標題是“拔地而起”,另有一段說明這樣寫:“急速發展令澳門小城出現全新面貌,一座興建中的賭場酒店拔地而起,矗立大炮臺前。”
很有趣的圖片,很有趣的構圖。在這張圖片中我們至少可

A year (and a bit) of WanderingThoughts

I'm bad with anniversaries and at making blog entries come out on time,so it was a year and nine days ago that I wrote the very firstWanderingThoughts entry , not a pleasingly exactyear. There's probably a lesson in this.

(Or a year and eight days, depending on how I count it; while I wrotethe first two entries on June 11th, I only made the decision to keepwriting at the pace of an entry a day on the 12th, when


More on the Solaris ssh stuff

I discovered today that the unpatched Solaris ssh program doesn'tunderstand the 'GSSAPIKeyExchange' and 'GSSAPIAuthentication'configuration options that are necessary to fix the problem on the patched ssh. (I had them in a $HOME/.ssh/config file that was shared between a patched system and anunpatched system.)

So what appears to have happened is that Sun developed a new version ofssh that implements the GSS stuff, and as a result requires it and theKerberos stuff to be installed and configured and so


寫Blog的虛榮















今日發現較早前在這裡寫的一篇關於電影 Jarhead(平頭日記 )的文章被著名的“網絡暴民Jacky’s Blog” ( https://jacky.seezone.net/ )連結了,可以說是我寫blog以來得到的最大鼓舞。

一直知道這個網頁的瀏覽人數勁多,一經此站介紹的blog都

一將功成萬骨枯


我最近對這句話有很深刻的體會
萬骨枯不一定要“功成”的
可能“功敗”會有更多骨要枯
也就是說很多人打生打死
為的也許只是“一將”的成敗

通常那一員大將走得太前
只看到自己得失
見不到後面的人是死是活

然後我就想到以前

How to improve programming productivity

Improving programming productivity is a big business, producing a neverending parade of methodologies and processes and research and whatnots.But over the past 40 odd years I think we've learned that there'sonly four real ways to do it:

  1. reduce connections
  2. write less code
  3. meetings kill kittens
  4. get better people

(to put them all in punchy short forms)

None of these should be new to people, since Fred Brooks covered themall 30 years ago in The Mythical Man-Month (with much better writing,