Date Time: 2005 年 6 月 27 日 Place: 旺角星際城市尚書房 People: 我、女友、店主、一些客人 Detail:
晚上吃完飯,想起不如逛逛簡體書店,就上了星際的尚書房看。
起初在雜誌的欄看了好一陣子,與女友有講有笑。其中翻到了一些笑話,
NewsForge has been running a series ofarticles by Brian Warshawsky on the 'Ten Commandments of systemadministration'. His tenth commandment is 'Thou shalt not waste timedoing repetitive and mundane tasks' (article here ,with links to the other nine), where he tells people to automate suchtasks through shell scripts.
There's a number of good reasons to follow this advice; for a start,writing shell scripts is probably less boring than doing these mundanetasks over and over. But there's a slightly
Date Time: 2005 年 6 月 27 日 Place: 旺角星際城市尚書房 People: 我、女友、店主、一些客人 Detail:
晚上吃完飯,想起不如逛逛簡體書店,就上了星際的尚書房看。
起初在雜誌的欄看了好一陣子,與女友有講有笑。其中翻到了一些笑話,
One of the stock pieces of advice about writing Python code is thatbasic error checks should be handled by catching the exception thattrying to do the operation generates, instead of through explicitchecks beforehand. For example, if you are getting the value for a keyfrom a dictionary (what some other languages call a hash), you don'tbother checking to see if the key is in the dictionary beforehand; youjust try to get the value.
This code might be written like this (especially in examples)
Last night I shuffled our antispam rules to put checking the CBL before everything, including our per-IP-address greylisting.
Since 3:20am this morning, 83% of the connect-time SMTP rejectionswere due to the CBL, for 88% of the IP addresses (4,180 out of 5,000rejections from 3,038 different IP addresses out of 3,455).
So the simple recommendation seems to be: if you can
Another Saturday, another set of spam statistics. This week I stoppedputting in IP-level blocks for high-rate connection sources so that Icould gather more accurate statistics on the various DNS blocklists thatwe use here.
Most of the statistics are from about 3:20 am Sunday the 19th, whenlogs rolled over; some are from about 6:10 am that Sunday, when thesystem rebooted. (Note that many figures are somewhat rounded off.)
The basic statistics are stark: