怪物
早上在電視裡看到曾蔭權扑董建華的頭,頒發榮譽博士學位(劉遵義伺候在旁)。那個場面非常震撼(用周某的講法是淫穢),因為頒發者其實除權位之外無任何資格進行此項行為,受者除之前的權位外無任何資格得此授予,加
失眠.瘋癲,或治療
Why large ISPs like SPF (the cynical view)
One of the peculiarities of SPF and related schemesis that many large ISPs are quite enthusiastic about it, especiallyfree webmail places like Hotmail, Yahoo, and Google Mail. However, thisenthusiasm rarely extends to blocking incoming email that fails SPFchecks, although they are happy to encourage you to use SPF on yourown mail.
The cynical view of this is that ISPs love the idea of SPF because itgives them more control over their customers. With SPF, their customersare not only tied to the ISP for reading
我喜歡教散文
散文寫作有什麼可教? ——成為範文之前的範文
自從高級程度會考課程改革,大幅增加創作比重之後,中學就開始需要相當數量的創作班導
Safely updating files that are read over NFS
To elaborate on an old entry a bit, let'ssuppose that you have important system data files that you expose to allof your machines via NFS, and that you need to re-generate and updatethem every so often.
When you regenerate files locally, you need to make sure that there'salways a version of the file present, and that the file's alwayscomplete. When you add NFS there's a third, subtle requirement: youcannot immediately remove the old version because a
Dumb switches are now too smart for my good
Here's an ironic thing: basic switches these days are now too smartfor their own good, or at least for my good. The issue is that eventheoretically dumb switches are VLAN aware, which means that they willonly pass VLAN tagged packets if they've been told about the particularVLAN is tagged for.
The problem this creates is that it is now impossible to have ageneric traffic monitoring switch. What you'd like to have is asmall switch that's pre-configured with a
A comment spam precaution that didn't work out
Every now and then I try a comment spam precaution and it backfires on me. So let me amend myprevious remarks: it turns out that refusing comments from people thatare on the XBL is a bad idea.
It's a superficially attractive idea, which is why I implemented itway back when; the XBL is (theoretically) listing addresses ofcompromised machines and open proxies, and I have seen comment spamattempts from XBL -listed IP addresses. But the XBL itself containswarnings against this sort of usage
雙魚座
How my CGI to CGI/SCGI frontend works
In ExploitingPolymorphicWSGI , I talked about how I use the flexibilityof WSGI to run DWiki as either a CGI or a SCGI server by using a smallfrontend CGI program. Because there are some subtle bits to how thisworks, I thought I would write down how the CGI frontend works.
The overall logic is:
- try to talk to an existing SCGI daemon.
- otherwise, check the load and try to start a daemon if the load isbetween a minimum and a maximum, and then talk to it.
- otherwise, if