故人
On banning web search engines
There are only a few popular search engines at anytime. They are doing you a favour by indexing you, because you needtheir users far more than they need your content. You are are doingeveryone else a favour by letting them index you , since they needcontent (yours included) to attract users.
When people are doing you a favour, it's worthwhile to go out of yourway to help them out.
When you are doing search engines the favour, it's their job to go
A & E
E:「男朋友係用黎對佢好,唔係對佢發脾氣。」
A:「咁唔怪之得你中六七對我咁衰啦!」
E:「係呀,我淨係對男朋友好架咋。」
A:「咁做你男朋友真係好幸福。」
E:「係咩?咁點
Weekly spam summary on October 22nd, 2005
This week we received 11,880 email messages from 233 different IPaddresses. Our SMTP server handled 36,465 sessions from 4,042different IP addresses, down markedly from last week .
Overall connections are down slightly from last week : 210,400connections from at least 38,800 different IP addresses. This week, weonly hit a highwater of 22 connections being processedsimultaneously. Per day statistics:
| Day | Connections | different |
One reason why I like Unix
; uptime 19:33:45 up 264 days, 12 min, [...]; ps -e -o start,comm STARTED COMMAND Feb 01 init[...] Feb 01 X Feb 01 xterm Feb 01 fvwm2 Feb 01 wish8.4 Feb 01 exmh[...] Apr 12 ssh[...]
I don't think long uptimes are an exclusive Unix virtue; everyoperating system can
A gotcha with Python and Unix signals
Python likes to handle things through exceptions. As part of this, onUnix it does two important signal changes; it ignores SIGPIPE andcatches SIGINT . Each of these can make a Python program reportapparent errors where a normal Unix command-line program would justsilently exit.
This matters if you want to write a Python program that will play wellin an ordinary command-line environment, alongside things like cat , sed , and awk .
First, people expect that they can ^C a Unix command-line program
How ETags and If-Modified-Since headers interact
Part of the fun of writing programs that deal with HTTP is decodingthings like RFC 2616 to answer somewhat obscure questions about how various thingsinteract. Today's case is the following question:
When can your web server generate a 304 'content not modified'response if it receives a request with both an
If-None-MatchandanIf-Modified-Sinceheader?
If-None-Match and If-Modified-Since are HTTP request headers usedto implement 'conditional GET'
MSNbot (still) has problems with binary files
Dating back to our first experiences with msnbot,the MSN Search web crawler, I've known that it was kind of crazy aboutrepeatedly fetching large binary files. Since then, we have pointedthis issue out to MSN Search people more than once and switched to using accurate Content-Types .Recently we had a week of MSNbot not refetching those large binaries,so it looked like MSNbot had finally been fixed.
So much for that. Since 7pm Wednesday night, MSNbot has fetched 3.1gigabytes of various
我們
不不不,
從來沒有迷上過「四大天王」。
所以,
這夜的演唱會,
所有的歌曲都是那樣熟悉。
就算記不起歌詞,
也總會哼得出旋律。
喜歡看到蔡一傑在唱《失樂園》最後一句前的沉默,
寂
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