Link: The Single Unix Specification et al

The Open Group Base Specification Issue 6 is, well, toquote it:

This standard is the single common revision to IEEE Std 1003.1-1996,IEEE Std 1003.2-1992, and the Base Specifications of The Open GroupSingle UNIX Specification, Version 2.

(Those IEEE standards are better known as 'POSIX'.)

The Single Unix Specification (SUS) is a very useful authoritativereference for how various things should behave in theory


Why Postfix is not my favorite mailer

Today I was unpleasantly surprised to discover that Postfix defaults tohaving a 50 megabyte size limit on user mailboxes, after which emailbounces. This default limit is apparently sufficiently unimportant tonot be mentioned in the 'basic' or 'standard' general configurationdocumentation.

Perhaps this will strike people as a petty reason for disliking Postfix;after all, it's just one configuration option. But it is the symptom ofa deeper problem.

Since Postfix people have made one dangerous random arbitrary default(and not drawn attention


文學起義


上一篇我話小說版會結束
一班熱血文學青年馬上要搞文學革命
不過目前一切都好似吹水

今日睇信報見到上面呢個廣告
比d 問題大家思考:

1. 作為文學青年,你對呢則廣告有咩想法?
2. 如果你要設計文學雜誌方案,你會點做?

從來沒有這麼傾斜


畢業的歌
原來是我這麼天生 我這麼悠閒
攀一個最挺的山
從來沒有這麼傾斜 有太多毒蛇
穿一個最曠的荒野

然後是我東奔西撲 我每天思索
終於我變了堅壯
然後又故意失方向 修鍊到我的擅長
捉一隻最美的孔雀

沿途上我顧盼自豪 怕你不知
Continue reading...

SIGCHLD versus Python: a problem of semantics

In the process of looking at my program's code again to write the lastentry , I think I may have solved the mystery ofhow my impossible exception gets generated.

My program does a lot of forking and thus cleanups of now-dead children.The code that it generally dies on is:

def _delip(pid, ip):  del ipmap[ip][pid]  if len(ipmap[ip]) == 0:    del ipmap[ip]

It takes a KeyError on the len


How dd does blocking

For a conceptually simple program, dd has a number of dark corners.One of them (at least for me) is how it deals with input and outputblock sizes, and how the various blocking arguments change thingsaround.

  • ibs= sets the input block size, the size of the read() s that dd will make. Since you can get partial reads in varioussituations, this is really the maximum size that dd will everread at once.
  • obs= sets the output block size and makes dd '

blog day 2006

3108 了,先介紹五個 blog:

  • 王進角度 – 王進兄的影評角度獨到,除了影評,也寫專題。最近香港影庫將使用 WordPress 為骨架,自此就可以在 RSS Reader 裏看王兄的影評了。
  • 占占字起 – 阿占是個多產的 blogger,文章更新得快,對於社會時事、網絡

盲人影院 -- 周雲蓬




盲人影院 -- 周雲蓬









這是一個盲人影院,
那邊也是個盲人影院。
銀幕上長滿了潮濕的耳朵,
聽黑蟻王講一個故事。
有一個孩子,九歲時失明,
常年生活在盲人影院,
從早到晚聽著那些電影,
聽不懂地方靠想象來補充。
他想象自己


不是詩

「窮」 = 令我想起 周雲蓬 其中一首詩 「不是詩」
濃濃的尊嚴味道,再看看他過往的經歷。
十分欣賞這個人
我手上還有很多上次來演出時留下的詩集
有興趣看看可以找我


***************************


A problem with debugging threaded Python programs

I have a heavily threaded Python program that dies every now and thenwith a mysterious exception (that as far as I can see just shouldn'thappen, which means that I don't completely understand my code).

My off and on attempts to debug this have pointed out a frustratingproblem in Python's (lack of) support for debugging threaded Pythonprograms: there's no such thing as a global exception, something thatwill freeze, backtrace, and terminate all threads when an erroroccurs.