20051130網摘 – Copyright 的終結

Javascript

Learning/Skills


An advantage to introspection and an interactive interpreter

I spent part of today writing a very simple network server inPerl. While most of my problems were due to my ignorance, theexperience did give me a new appreciation for introspection andinteractive interpreters.

The problem is that without introspection, things are opaque whensomething goes wrong. What do you have? Certainly not what youexpected, but it's hard to tell much more than that. Withintrospection, you can find out type information, maybe a printablerepresentation of the thing (this gives you some idea


Copyright 與 P2P

拜讀了 The End of Copyright 一文,當中談的是 Copyright 時代將會漸漸過去,在自由資訊交流的社會下,商業模式將會完全不同。文章提出了幾個很好的論點:

  • 當工作者已經付出了勞力並賺到了相應的金錢,為什麼仍然會在完成後繼續賺錢?這在本

洋蔥頭等如廣告界的關二哥?

onion head

如果警察局要擺關公,對於我輩做文案出身的廣告人來說,在我們的辦公室內,應該放一個洋蔥頭公仔。

任誰都知道,洋蔥頭其實就是已故偉大廣告人作家填詞家漫畫家林振強先生的化身。

如果林子祥在形象上以有型加虛榮啟發


發炮是需要時間滴滴

這是好的:打一場大仗,有人支援,而且是個以一當十的人。有前輩跟我談香港的文學評論氣氛,儘管他同意評論氣氛薄弱,但始終認為文學的東西是單打獨鬥,不須支援,也許甚至不需對手。我以為不是的。文人論戰如魯迅,

發炮是需要時間滴

其實我也有錯:資料出了錯誤,以致要編輯替我改,可能很煩吧——但這幾個標題真是令我耿耿於懷了好幾天。下文中橘色字是編輯所改的標題,請各位明鑑。

年輕的形式,或智海的力氣花在什麼地方 (智海:慢畫人生)


我總是

A little gotcha in shell scripts

I have a script called ' nsaddrs ', which lists the IP addresses ofthe nameservers for a given domain. It is basically:

addr `dig +short ns $1`

addr is one of my utility programs; it does IP address lookups forhostnames. Normally you give it hostnames on the command line, but forbulk lookups you can give it no arguments and it will read hostnamesfrom standard input, one per line.

Then one day I used nsaddr on a domain that didn't exist and it


誰殺?誰破?誰狼?

spl

《殺破狼》好評如潮,大家都說動作打鬥夠刺激,而因為甄子丹、洪金寶、吳京三個 Hardcore 的武打演員座陣,我以為此片是「動作向」的作品,但卻並非如此。此片動作場面固之然可觀,但故事劇情才是主打。

故事是典型的警匪相鬥


20051128網摘 – 跑步加電玩

Play and discuss game

P2P


What Python's global interpreter lock does (and doesn't) protect

Most people doing threading in Python know about Python's GlobalInterpreter Lock (GIL), which causes only one thread to be running inthe CPython interpreter at any one time. This means that threadedcode already has a certain amount of implicit locking going on,making certain operations thread-atomic without you writing explicitlocks.

The important thing about the GIL for this is that it protectsbytecodes, not Python statements . If something happens in a singlebytecode, it's protected; otherwise, you need explicit locking