Archives week 49 of 2008
Dec. 8, 2008 - Dec. 14, 2008
Ran into this problem on Friday at a client site and just couldn't find a Python library that did everything I needed wrt providing login to TurboGears and properly uploading a file to a controller in the TurboGears application. Bothered me that there was no easy way to do this (seems like it should be ...
Was looking into mitigating some of the slowdown from the recent fix, mainly be rewriting this little function:
def from_param( cls, instance, typeCode=None ):
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 ctypes.c_void_p( ...
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 ...
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 ...
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 ...
Just discovered an annoying regression in the converters for lists/tuples, namely they will core when you have the accelerator module installed. They don't core without the accelerator, but that seems to just be dumb luck. Basically when you pass in a list-of-whatevers to PyOpenGL we have to convert it to something C-friendly, so we want ...