This should be very useful: In [5]: class oldObject: ...: ....def __init__(self): ...: ........self.someVar = 1 ...: In [6]: o1 = oldObject() In [7]: o1.someVar = 2 In [8]: o1.someOtherVar = 3 This is of course expected behaviour. Have a look at this though: In [9]: class newObject(object): ...: ....__slots__ = ['someVar'] ...: ....def __init__(self): ...: ........self.someVar = 1 ...: In [10]: o2 = newObject() In [11]: o2.someVar = 2 In [12]: o2.
Python bookses
I broke down and ordered Python in a Nutshell by the Python guru Alex Martelli as well as The Python Cookbook, edited by Alex Martelli and David Ascher. Amazon UK will now proceed to bend my credit card even further, but that’s okay. It’s really flexible. EET VILL INCREEEZE MY PYTHON POWERS 10-FOLD, UND ZEN I VILL TAKE OVER DE WORLD!
Where are the frikking WMDs?
Yes, where are those Weapons of Mass Destruction that the US was warning everybody about? Those same WMDs that were used as some of the primary excuses for violating Iraq have not popped up yet, it seems. Funny… In related news, this article reports that there was a certain pressure by the US administration on the intelligence services to generate reports that would help to convince the public that attacking Iraq was urgent business.
Standards Schmandards
According to the new VESA CVT (Coordinated Video Timing) system for describing display pixel formats, the display on my laptop has magically turned into a 1.47M3. SXGA+ is now officially passé.
The Microsoft and I
I’m reading some more juicy bits from the Microsoft Windows Official Guidelines for User Interface Developers and Designers. This section details the specific layout of controls in windows and dialog boxes. At least now the dialogs I design are more or less consistent with some standard. :)
The American Propaganda Machine
Most of us outside the borders of the USA know this, but nothing we do or say will probably have any kind of effect on the status quo: The American government is supported by an extremely efficient propaganda machine that ensures that the majority of its citizens will support it in its most barbaric of ventures. The big problem is that this propaganda machine consists primarily, contrarily to tradition, of “independent” media entities.
Where should that dang button go?
So, here we have the Aqua Human Interface Guidelines (i.e. the MacOS-X user interface guidelines), the GNOME Human Interface Guidelines, the KDE User Interface Guidelines and of course the Microsoft Windows Official Guidelines for User Interface Developers and Designers (I came back in January of 2018 to fix this link — also interesting is the section on margins and spacing). Apple says that “The default button for dismissing a dialog should go in the lower-right corner.
Het boek, de pen.
Jeroen sent me links to two interesting web pages dealing with the important question of the relationship between the gender and article of Dutch nouns. Enlighten yourself by going here and here. Thanks Jeroen!
Cygwin CVS EOL problem solution
At this very moment, you might be wondering why, if CVS is such a wonderful piece of version control software that even offers to soothe your cross-platform end of line woes (*ix: eol = lf, macos: eol = cr, windows: eol = crlf), it’s suddenly breaking the end of line checkouts on the *ix side since you’ve been committing your ports on the windows side with CVS from Cygwin. The answer is fortunately far shorter and simpler that the previous sentence.