Archives Dec. 11, 2008
Weird little glitch in wrapper code
Written by
on
in
Snaking.
Was looking into mitigating some of the slowdown from the recent fix, mainly be rewriting this little function:
@classmethod
def from_param( cls, instance, typeCode=None ):
try:
pointer = cls.dataPointer( instance )
except TypeError, err:
array = cls.asArray( instance, typeCode )
pp = ctypes.c_void_p( cls.dataPointer( array ) )
pp._temporary_array_ = (array,)
return pp
else:
return ctypes.c_void_p( ...
Getting very accustomed to bzr
Written by
on
in
Snaking.
Having to work with svn again at a client site... I miss bzr. Even bzr-rebase is turning up fondly in my memories. It's really just the merging... merging with svn seems to always be an "Oh good Lord! We have to MERGE!" event, filled with conflicts and crashes halfway through switching that leave 1/2 of ...
kvm flies on the laptop
Written by
on
in
Tuxedo.
Installed kvm on the laptop. Was a bit annoyed to discover I had to reboot (to alter the BIOS in order to enable the virtualization support in the processors), but other than that was extremely easy to install (just aptitude install kvm (I already had QEMU)).
Compared to vanilla QEMU on the same box the ...
What's Your Programming Mantra at PyGTA on Tuesday
Written by
on
.
When you code, do you consciously think about the principles in the Zen of Python? Do you find yourself following them automatically without thought? Do you find they are pointless/irrelevant to your coding? Do you ever defend your decisions (to yourself or others) by reference? What about other programming "rules" (formal patterns, XP principles)? Do ...