Archives Dec. 11, 2008

Weird little glitch in wrapper code

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( ...

Continue reading

Getting very accustomed to bzr

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 ...

Continue reading

kvm flies on the laptop

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 ...

Continue reading

What's Your Programming Mantra at PyGTA on Tuesday

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 ...

Continue reading

Previous day

Dec. 10, 2008

Next day

Dec. 14, 2008

Archives