涼了的咖啡

(《讀書好》專訪了陳智德,今日的經濟日報也刊出了葉輝專訪。)


香港寫文學評論的,大多同時是創作者。因此,寫評論最勤的人,其創作往往最缺乏評論。今年文學雙年獎評論組四位得獎者,除了許子東先生專治學術之外,

What is a script language on Unix

There's a lot of argument in general about what is (merely) a 'scriptinglanguage' and what is a fully fledged programming language, deservingto hold its head up high besides grown up languages like C, Java, andPascal.

Unix is a simpler place, because it has a simple and very cleardefinition of what is a script versus what is a program. To wit: if thekernel can directly exec() you in place as is, you are a program. Ifnot, you


20071217 網摘 – Blog-you 將關站

HK

Blog

Copyright/License


小菜一招


A thought on reading multiline records

I've recently been writing some small programs to digest multilinerecords which don't have an end of record marker, just a start of recordone (in my case, the output of Solaris iostat ). People who've writtenawk probably know the natural structure that results from dealing withthis purely line at a time; you wind up with a situation where youaccumulate information over the course of the record, and then use the'start of new record' line to print out everything, reset counters


There are reasons for stupid anti-spam policies

Every so often, people do silly things in the name of anti-spamwork. While we can curse the creators of stupid polices like 'sendnotification email to the envelope origin address of mail scored asspam' as idiots, people aren't really, and I think it is more fruitfulto consider why such policies get created.

(There is a university subdomain in Texas that does this. Really.When we started getting these notices, I almost wrote them a verygrumpy letter asking what sort of idiots


Check then use is a dangerous security pattern

A commentator here recently noted the danger ofthe Unix pattern of stat()'ing a filename, checking to see if the statresults look good, and then open()'ing the file. The problem is thatin many cases an attacker can change what the filename is pointing tobetween the time you stat() it and when you open() it, so that youcheck a harmless thing but open a dangerous thing.

In thinking about this, I came to realize that this is an example


四個男人、兩個世代、兩個地方,策略的奉獻,真情的對話。

遊遊牧.圍圍評 ──藝術評論發展計劃 2007 座談會
四個男人、兩個世代、兩個地方,策略的奉獻,真情的對話。

也斯、呂大樂及來自台灣的 孫隆基、 李明璁等將於明天12月14及後天15日舉行的 「 遊遊牧.圍圍評──藝

努力偷懶(關島之行之二)

Sheraton Laguna Guam是偏遠了點,但如果像我用巴士代步,也很方便的


Continue reading...

Doing one-shot booting with GRUB

For a long time, one of the advantages of LILO over GRUB was that LILO had a one-shot mode, where it would make an entry thedefault for only one reboot. I've been pleased to recently discover thatGRUB can now do this too, although in the grand Linux tradition it's nottoo documented.

The magic incantation is the GRUB shell command:

savedefault --default= --once

(This has to be issued in a GRUB shell, such as what you