Wrapping exceptions versus propagating them untouched
I have somewhat recently written a program that makes heavy use of Python's xmlrpclib module . While thexmlrpclib module is very nice, the whole experience has given me somestrong views on how it does exception handling.
The basic problem with xmlrpclib's error handling is that it doesn'tcapture exceptions from stuff that it calls, so they leak out to you.Fortunately I don't think xmlrpclib calls anything that can raise errorsexcept the socket module, but I'm not sure (so my program
An alarming reflex in my use of find
It makes me nervous that my fingers appear to feel that the rightthing to type after ' find . type f -print | ' is ' xargs rm -f '.Sometimes they're quite insistent about it.
I am not sure where this reflex comes from, because I don't thinkI've done that particular operation that many times. It certainlymakes typing 'for all files' find operations a twitchy exercise, andI get to worry that someday I will, eg, accidentally delete all
香港文學
***
陳智德在上週(11/1,好孤單的數字)的皇后碼頭文學沙龍講了五小時,幾乎是半個文學課程的份量,其實
Weekly spam summary on January 13th, 2007
This week, we:
- got 14,362 messages from 263 different IP addresses.
- handled 18,805 sessions from 1,257 different IP addresses.
- received 232,353 connections from at least 81,631 different IPaddresses.
- hit a highwater of 26 connections being checked at once.
Weekly email volume has returned to normal, which is not surprising(the university is back in full session). Total volume is up a
愛情
原來我錯過了一首這樣動人的歌。
https://www.youtube.com/watch?v=NRoOJAJ9F5Y
從來未說的片言隻字 寫在我手 隨我血脈飛馳
尤其是你的動人故事 請讓我知 何事美麗至此
或許是時候,好好記下我的愛情。
假若老了,
誰在變虫?誰是澳門人?
坦白說,之前我完全不知道這戲將會如何演,導演也一直在秘密練兵,向外界透露和宣傳都不算多,但從昨日首場的效果,我看到導演心懷澳門,心中有火,演員和製作團隊的
The easy way to get me to not comment on a weblog
It's simple: just don't offer any sort of comment preview option.
This insures that I will never leave a comment, no matter how much Ihave something I want to say. Without the chance to preview my workbefore I'm committed to it, I feel too nervous and it becomes too muchof an annoyance.
This is one of those blog software things that really puzzle me. It isnot as if blogs all format comments in the same way, so I would thinkthat software
明報四、五、六:斑駁日常
首先要加入這個吸煙者大反撲的隊列。
消失的中性
不吸煙的 A 憂心忡忡來問
Xen versus VMware for me
I've recently spent some time thinking about virtualization technology,in particular how I feel about Xen versus VMware. In theory the choiceshould be a slamdunk for me, because VMware requires evil binary kernelmodules and I have usually avoided that sort of thing even when it wassomewhat painful (eg, I don't use ATI's binary X drivers). In practice,though, I am only distantly lukewarm on Xen and much more interested inVMware.
The simple summary why this is is that Xen is
An interesting Bourne shell limitation
Presented in illustrated form, on at least Solaris 8, FreeBSD, andOpenBSD:
$ exec 9>/dev/null$ exec 10>/dev/nullexec: 10: not found
(And the shell exits.)
The genuine Bourne shell only allows redirection to (or from)single-digit file descriptors; if you give multiple digits, itinstead gets parsed as ' exec 10 >/dev/null '.
(The limitation has been faithfully copied by at least some Bourne shell