魔王與公主- 一個令人瘋掉的無聊故事
我覺得這種故事可以寫得更好的,用人稱用得太濫就沒趣了...
十人看完十人瘋
一天魔王抓走公主,公主一直叫. 魔王 :「你儘管叫破喉嚨吧...沒有人會來救你的....」 公主 :「破喉嚨..破喉嚨..」 沒有人:「公
Inception
瞬間的價值判斷
My avoidance of Python global variables
I spent part of today writing a quick one-off data conversion program.The core of it was a function that filtered items from a list througha number of things in order to sort them into the right category. Oncethe dust settled on all of the sorting needed, the function had quite alot of stock arguments, things that didn't vary from call to call in myprogram. In fact, an unwieldy number of them.
There are at least three vaguely Pythonic options for how to deal with
引人入性、紅燈區、夜生活
先來一點背景資料:我居住的hostel附近就是鼎鼎大名的馬尼拉紅
不該用的詞、不應說的話
昨天中環遮打花園有追思會,悼念在菲律賓人質事件中遇害的香港人;據一份報
A Bourne shell irritation: no wildcard matching operator
Here is an irritation that gets me every so often: the Bourne shell hasno wildcard match operator that you can use in if checks and the like.You can do wildcard matches, but only in case statements.
(Bash has the [[ =~ ]] operator, but it uses regular expressionsinstead of shell wildcards. I know, I pick nits, but shell wildcards areoften simpler and they match what you use in other sh contexts.)
This comes up surprisingly often, at least in the sort
How many uberblock copies ZFS writes on transaction group commits
The ZFS uberblock is the root of the tree of ZFS objects in a pool(technically it is more a pointer to the root, but it's how ZFS findseverything). Because it is the root, it has to be updated on every ZFSupdate. Also, because it is so important ZFS keeps quite a lot of copiesof it (and has a clever 'copy on write' scheme for it, so that it is notquite updated in place).
發問
請不要批評香港人吧,天災人禍的確每天都在發生,甚至在一次水災裏死的,要比起在巴士裏遭槍殺的多百倍,過程也許更驚恐,希望亦更渺茫,而他們所面對的拯救不力、人為錯誤、政治陰謀都令人髮