When Python classes are pointless
This LiveJournal posting wound up raising the question of when one could or should avoid usingclasses to implement something. In Python, my warning signs are somecritical mass of:
- lots of NonMethodFunctions on the class.
- either every piece of data is part of the single object, or nothing is.
- only one object of the class is ever created by the program(as distinct from 'only one copy at any given time, but we throwit away and make a new one every so often').
At a certain
多重決定
1. 本來就不甚具意義的兩場論戰開始像嚼了很久的香口膠;
2. 制止球迷無聊論戰。
貼不出新文章,理由如下:
1.連續兩個禮拜喉嚨痛發燒兩次,行得走得但係全身發軟;
2.好多野做,論文停
蘇眉語錄 5
蘇眉話:「不如改叫《老少咸宜diary》啦。」
Another Fedora Core 4 Anaconda bug
To go with the other FC4 Anaconda bugs (and still no updated installer images), we just ran into anotherAnaconda bug in the process of attempting to upgrade a server fromFedora Core 2 to FC4. This server, like most of our other servers,uses mirrored system disks, which in turn means it has two swappartitions (one on each drive).
If you have this configuration and are upgrading from a previousFedora Core or Red Hat version, on some of your systems Anaconda willabort the
The MSN search spider has gone crazy
I'm not the first person to notice this, but the MSN search spider ('msnbot' if you want tosearch for it in the user agent portion of weblogs, or just look forrequests from the 207.46.98.* subnet) seems to have gone crazy.
Specifically, the MSNBot is repeatedly and aggressively crawlingcompletely unchanging URLs, while paying much less attention to changingones. On this server , the past 29 day's worth of logs show:
- the
Two sides of Internet identity
The issue of identity on the Internet is a tricky one, and one of thethings that makes it so confusing is that people often want them to dotwo different things:
- prove who someone is: the web site really is EBay's.
- prove who someone isn't: that email isn't from a well-known spammer.
This is confusing because the issue mostly doesn't came up in the realworld, where physical identities are generally one to aperson. Checking drivers' licenses at the
趨向士wheat*
我目光灼灼,盯著 詩詠姐姐 道:「你說,我的文章士唔士wheat?」詩詠姐姐目光移向桌面:「唔……一時時啦。」吃過幾件壽司,我的目光火熱猶勝火炙牛肉壽司,又問:「你說呀,我的文章士唔士wheat?!」詩詠姐姐又望向桌
Why print-based debugging is so popular
A recent ONLamp article on the Python debugger included the line:
The only time we reach for a debugger is when something goes wrongor breaks and our standard debugging techniques such as
This sparked an insight about why print -based debugging is so popular.(It is; a surprising number of people swear by it, and get good results.The quote got my attention because it made me go 'yeah, the author
Weekly spam summary on September 3rd, 2005
Overall connections are down slightly from last week : 200,000 SMTP connectionsfrom 33,800 different IP addresses. The frontend's highwatermark for simultaneous connections hit 24 this time around.
Top 10 kernel level SMTP rejections:
Host/Mask Packets Bytes24.145.152.139 13125 630K213.4.149.11 10706 48