啟事

搬家
改電話

有事情請暫以電郵聯絡:t_for_thesis@yahoo.com.hk

A little gotcha with os.path.join

For my sins, I am one of those people who doesn't always read Python'sfine documentation carefully enough. For example, I wrote a large chunkof code using the helpful os.path.join() before I noticed a littlegotcha: it's very helpful. In particular:

Joins one or more path components intelligently. If any component isan absolute path, all previous components are thrown away, andjoining continues .

(Right there in black and white in the fine documentation .)


學習使用 PmWiki 架設 Fanpage

因為之前 Server 死 Hardisk ,所以在下的兩個動畫網站 EVA Zone 和 Section9 都關閉了。家中有這些文檔的 Backup,但仍在考慮用什麼方法重建。

做這些動畫 Fanpage ,最主要的問題是一旦內容齊全了,就會開始少了更新。主要原因當然是網主懶得更新 (如我)


Setting up to build RPMs

There's three ways to build RPMs: the silly way, the easy way, andthe better way.

The silly way starts with /bin/su root , which should be enough of a warning sign. You really don't wantto be building and installing packages as root unless you don't have achoice, and you do.

The easy way is:

$ cat >$HOME/.rpmmacros
%_topdir /some/where
^D
$ cd /some/where
$ mkdir BUILD


激勵

有一次一夥人來到中山北路一個小酒吧,清晨三點鐘,滿屋子都是人,都是男人,怎 麼說,可能其中也有的是女人,但都由男人扮演吧,燈光打得低低暗暗的,空氣中有一種竊竊私語的甜蜜的感覺,混雜著煙、酒、古龍水和刮鬍

這個週末

1. 雖不能至,心嚮往之:

《香港新詩資料彙編》發佈會

日期:3月25日(六)下午5-7時
地點:尖沙嘴星光行商務印書館
嘉賓:小思、葉輝、崑南、關夢南、陳國球

2.AD





漫畫騎劫文學!



出庭應訊星期日漫畫家:
《默示錄

碎片

《青銅時代》系列以唐人傳奇為藍本,是王小波重寫他的少年作品,這種在文本之間的關係去尋找昔日的行動,可以說是接近絕望。《紅拂夜奔》是《青銅時代》中現實指涉最明顯的也是唯一以「王二」命名敘述者的一本,而它


牆裡鞦韆牆外道


朋友送來他們新出的手作雜誌 《月台》 ,薄薄一冊,拿在手裡,翻了兩翻,覺得輕省,忍不住羨慕起來。這種可以飄起來的幅度,在我手下實在從來沒有出現過,大概三十歲前後也不能做出來。

蘇東坡〈蝶戀花.花褪殘紅青杏小

Side effects are bad: a personal illustration

One of the things they tell you in programming school is 'side effectsare bad; you should avoid them if possible'. Apparently every now andthen I need a reminder of this, because side effects were at the bottomof my feed whoops from last night.

One of the most expensive bits of DWiki is converting pages from DWikiText into HTML. Originally the conversion was simple andstraightforward; stick wikitext in, get HTML out. But as DWiki grew morefeatures, the wikitext started having additional information: whetherpeople


We apologize for the disruption in syndication feeds

In the process of enabling caching in DWiki , I managed to illustrate theimportance of thorough testing by failing to properly cache the realtitles of entries and then not noticing, because that the Atom feedsstayed the same was the one thing I didn't test. (I carefully andsomewhat obsessively tested that the rendering of all of the otherpages did stay the same. I even have that automated.)

This caused the syndication feeds for WanderingThoughts to revert toplain filename based titles for eight hours or so, until