Give your personal scripts good error messages
Sysadmins have a habit of accumulating little personal scripts to makeour lives more convenient, often things that make perfect sense to usbut are too peculiar or specific to be worth installing generally.Since these are personal hacks, they're often bashed together in verycasual ways; if it mostly works for us, it's good enough.
From personal experience, I now have a suggestion for these scripts:make sure that they have clear or at least comprehensible errormessages, not little cryptic ones. If you do
我的治身格言
「要改變自己的生命,就要當下即改,改得淋漓盡致,絕不破例。」("To change one's life, start immediately, do it flamboyantly
民主都有真假?2之1
小maggie到迪士尼
成日見到d宅仔拿公仔去外遊拍照,拍出來的感覺真的不輸人像攝影。
不過拍這些用大機dslr真的不太實在,所以以下的相片都是用sony tx1拍的,反正烈日之下無弱照,用什麼都沒所謂的啦!!

站在迪士尼的餐枱上拍一張全身照先
Replacing modules for testing (and fun)
A while back I wrote about how I monkey-patch Python modules fortesting , selectively replacing variousfunctions they provide with test ones that return the results I like.But it's not the only way to do this. If monkey-patching system modulesthis way makes you nervous (perhaps due to its potential side effects),there's another way to do it: you can entirely replace the system moduleitself in the module you're testing.
After all, import ed modules are (more or
外物不移

The Most Intimidating Lamps You've Ever Seen

I don't think I would mess around in someone's home if I noticed these guys lighting up the place. I imagine if someone could afford a solid gold lamp in the shape of an M4 Carbine, a Glock, or an MP5, they could probably afford to hire a guard carrying the same to shoot anyone attempting robbery.
(Somewhere near Rockafeller Center, NY; image taken with a Canon PowerShot G11).
Four Apple Stores in NY in Two Days
It is said that, during a jubilee year, one would receive a plenary indulgence by visiting all four major basilicas in Rome (nowadays, it seems you only have to visit one of them—pfft!).
During this Apple Jubilee of 2010, I have visited all four of the Major Apple Stores in New York City (my total Apple Store visit count is about 25 now) in two days... I didn't buy anything, so I might've missed one of
