An interesting Python garbage collection bug
Derived from here :
import sysx = 10del sys.modules['__main__']print x
If you execute this at the interpreter prompt, you get a NameErrorthat x is not defined. If you execute it as a file (or if you putthe sys.modules and print bit in a function and run the function),you get None printed.
The interpreter situation makes a certain amount of sense, once youdiscover that the interpreter is holding no references to anythingfrom
赤鬍子
Weekly spam summary on November 4th, 2006
This week, we:
- got 15,265 messages from 278 different IP addresses.
- handled 21,071 sessions from 1,538 different IP addresses.
- received 215,602 connections from at least 52,130 different IPaddresses.
- hit a highwater of 12 connections being checked at once.
These statistics superficially look a lot like last week 's, although up somewhat. What they hide isa significant spam storm that has actually
Installing Wine on Fedora Core 5 x86_64
Here's a fun Fedora Core RPM dependency problem that I just fixed.(Since I've jumped on Ubuntu for similar things, I feel that equaltime is only fair.)
I have been trying to install Wine on my Fedora Core 5 machine fora while, without success. The visible manifestation of the problemwas that ' yum install wine ' would download everything and thenbomb out during the install complaining about two things:
- 'package sane-backends-1.0.18-2.
無題
26歲的生日禮物
追女仔
女:「咁都叫『追』?」
母:「咁仲唔叫呀?」
_________________________
路人甲:「我諗佢係想追你ga。」
路人乙:「咁佢要兜口兜面同我講至得ga。」
______
Knowing things versus being able to prove them
Recently there has been a small contremps over how well (or not) IDEs can support refactoring for dynamiclanguages. To stereotype and condense, on one side are Java peoplewho feel that without the guarantees provided by static typing, manysorts of automated refactorings are impossible to do reliably and soworthless; on the other side are Tim Bray and dynamic language people,who feel that various things can get them close enough, and besidesthere are a laundry list of situations where static languages don'thave reliable refactorings either
明報.斑駁日常(四五六)
生日一定要快樂
Happy birthday to you... 雖然我唔知你幾號生日。
生日一定要慶祝,唔係單單為自己,亦係為養大我地既父母慶祝。
媽咪咁辛苦生左我地出黎,爹地媽咪咁辛苦湊大我地,佢地明明可以用養我地既錢去享受人生。
o係父母心目中我