You can only really expire cookies on the server

(Every so often I feel like stating outright something that I havepreviously mentioned in asides in other entries. Today is one of thosetimes.)

Here is an important corollary of the basic rule of website security : if you want your cookies to expire you mustforce them to expire on the server, not count on web browsers to expirethem for you. Neither using session cookies norputting an explicit expiry time on your non-session cookies willactually make your cookies expire if the user doesn't want them


動漫廢物 – 攻殼機動隊

上星期五上了《動漫廢物》談《攻殼機動隊》,主力談 TV 第一季。不過可能作品本身蠻嚴肅,所以主持和嘉賓也嚴肅起來 ,所以聽上去可能比較悶。正如夏目貝在節目完後說「看不出你們對作品的熱情」,其實熱情不是沒有啦,


支援海地災民的公益廣告

製作公益廣告,最忌大堆頭,否則任你創意無限,多花了無謂錢,就很容易被人病疚。

這支公益廣告,真正做到言簡意賅,製作簡單,你同我都做得到。


用巧克力增加情趣

傳說中,巧克力有催情的作用(定係事實?)。

作為一個極度冷感的女人,收到別人送來一套巧克力味道的shower gel和body milk,用意為我增加情趣時,不是不感動的。

問題是,我自己同自己,左手幫右手增加情趣乎?

又,家裡用的是舊

愉景灣龍友出沒注意

山長水遠搬入愉景灣住,其實就是貪其人煙稀少,撞口撞面都是本地居民街坊街厘,除了入來探朋友的,一般日子甚少城市遊人。

但近年由於多了一條陸路交通東涌outlet mall加上媒體報導,愉景灣開始成為了部份朋友週末打發時間的


方寸有情

我是個容易沉迷的人,兼有玩物喪志的傾向;假如我是個紈褲子弟,肯定會琴棋書畫花鳥蟲魚樣樣好。有幾年我沉迷篆刻,幾乎每兩三天刻一個印章,整屋都是印石印譜,摸著看著,好不過癮;我也試過用接近三分一的月薪買一

How I should have done password crypto for DWiki

DWiki (the software behind WanderingThoughts ) uses cryptography for thetraditional web application things, namely login passwords and logincookies; it stores hashed versions of login passwords, and it signs itslogin cookies. I had very little idea what I was doing when I wrote thatcode, so DWiki 's current use of cryptography is better off not discussedin polite company; instead, let's discuss how it should work.

(I was so stupid that I didn't use HMAC, despite it being in thePython


1984年發生了什麼事?

村上春樹以1984年為《1Q84》這套長篇小說書的入口,到底公元1984年發生過什麼大事呢?

《1984》是George Orwell於1949年出版,講述未來(1984年)某個極權政府統治下的國度的小說,故事中出現的Big Brother角

Continue reading...

戀愛不安


作者:朱天心
出版:印刻出版社
出版日期:2010年1月

這是一本非常之殘忍的愛情小說。

是的,非常之殘忍。這本小說沒有任何血腥暴力,沒有令人意想不到的推理謎團,沒有為了令人不安而堆砌出來的離奇情節。這本愛情

Report Card

I talked earlier about resetting my thermostat during university days. But it was before my primary school graduation when I realized for the first time in my life that I was capable of pressing the amazing reset button.

Looking back on my primary school days, I don't recall much except my mediocre academic performance; I just know I always ranked more than ten in my class. At any rate, I remembered the soccer league tables far better than what the teachers said during the class.

Then one afternoon in my final