為什麼學校教不出知識分子?
A surprise with using object() instances
A while back I wrote about emulating C structs in Python using (instance) objects to createnamespaces, and wrote:
(Avoid the temptation to just use '
ms = object()', because ithurts your ability to tell different types of structs apart viaintrospection.)
It turns out that there is another reason to avoid this: it doesn'twork. Somewhat to my surprise, instances of object() can't have newattributes put on them. (Instances of Python subclasses of object(
他"賣"我俾迪士尼
我 : 「o下 ? 」
今日我再發現自己又out左,剛剛在網上睇到/聽到「 他"賣"我俾迪士尼」的歌。首歌原來在上年10月已經放了出來的。
為什麼要有這樣的好學生?
為什麼孩子要入名校?
為什麼青少年越來越不長進?
Why Solaris is not my favorite operating system
Sun killed one of my systems the other day. It was very simple: Iinstalled the latest patches (that had passed testing on my testsystem), rebooted, and the ssh daemon failed to come up. Bang. Dead inthe water due to:
ld.so.1: sshd: fatal: libxfn.so.2: open failed: No such fileor directory
Since this machine is accessed only via ssh, that's all shewrote. (For extra fun, outgoing ssh from the