WTO ? 關人鬼事呀 !



Originally uploaded by chi_hung .


為迎接十二月世貿部長級會議在港舉行,而社會氣氛又在新聞媒體煲水下漸趨緊張。大家都在等著睇韓國農民或外地示威者如何剎人放火破壞香港,wto背後問題又好似"關人鬼事"的時候。
嘩...咁鬼悶的


Stopping brute-force ssh scans the easy way

I recently stumbled over this blog entry on a nice, easy way to stop brute force ssh scans, so it's time tospread this knowledge around.

If you've got an ssh daemon exposed to the Internet, you know aboutthe brute force ssh scans and password guessing attacks. The realproblem with them is the sheer volume, which creates log clutter (andsystem load) as they spew login failures and unknown users all overyour logs.

(If brute force ssh attacks give you security ulcers,


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