相信各位 Blogger 在空閒時,都會上搜尋器查找一下 有誰連結了自己的 Blog ,有引用了自己的文章。最近看到 達明開的新 Blog ,說小 Blog 燃起了他心中寫 Blog 的火,實在很開心,自己還有那麼一點點的感染力。記起之前也看過 充盈 – 再上路 一篇
Accidentally shooting yourself in the foot in Python
Recently, I stumbled over a small issue in Python's cgi module that is agood illustration of how unintended consequences in Python can wind upshooting you in the foot.
The cgi module 's main purpose is to create a dictionary-likeobject that contains all of the parameters passed to your CGI programin the GET or POST HTTP command. DWiki uses it roughly like this:
form = cgi.FieldStorage()for k in form.keys(): ... stuff ...
Then one
A Python surprise: exiting is an exception
Once upon a time I wrote a program to scan incoming mail messages duringthe SMTP conversation for signs of spam. Because this was running aspart of our mailer, reliability was very important; unhandled errorscould cause us to lose mail.
As part of reliability, I decided I wanted to catch any unhandledexception (which would normally abort the program with a backtrace),log the backtrace, save a copy of the message that caused the bug, andso on. So I wrote code that went like this:
你要計較到什麼地步
「很少機會會這麼早在旺角流連,看著工人搭建女人街的檔口,看著許留山開門,看著
Thoughts on Jakob Nielsen on weblog usability
I cannot resist pointing to Jakob Nielsen's latest column, Weblog Usability: The Top Ten Design Mistakes .If you're interested in usability issues, and anyone interested inmaking effective web sites had better be, his columns are usuallyworthwhile. (One of my embarrassments is that I haven't been readinghim much lately; I used to care about this quite a lot.)
I think that Nielsen's weblog usability issues, like a fair amount ofhis writing, are aimed at what I would
遊戲的電影感
在 遊戲部落 看到一個叫《 Indigo Prophecy 》的遊戲介紹,是一隻情景互動的說故事遊戲,玩家的每一個決定,都會影響到日後的劇情發展。而自己到過 該遊戲網站 看過一些影片,覺得電影感很強,所以便下載了 Demo 試玩,的確不錯。
如果說哪
Another aphorism of system administration
If you haven't tested it, it doesn't work.
I got this from the Extreme Programming movement, but it's just asapplicable to systems and procedures as it is to developing software.(Remember verifying backups ? That's an instanceof this aphorism.)
This has an important corollary:
If you aren't checking it, it's broken.
For example, when you have a spiffy hardware RAID system you shouldmake very sure that you do indeed get notified when a disk
高唱.勝利
20051018網摘 – 金子來了
金子 + 騙兔
- 親切的大長金子
- 復仇是靈魂的甜美救贖
- 《親切的金子》:復仇的眼淚
- 世紀大騙兔被誤會了 兔子不是只吃蔬果的
文化
網絡
- swag roll 另一豆辦
- FotoFlix – Make Your Memories More Memorable 相片加音樂製成
The Myth of Support (Part 3)
The big myth of support is that you can get it. Usually you can't.
Oh, there's no shortage of vendors who will take your money in orderto tell you how to fix known problems. And why not? It's pretty easy money. (The only tricky bit is figuring out which known problemyou're having.)
But this is the easy bit, so easy that we should call it by adifferent name like 'troubleshooting' .Real support is (also)