Archives week 49 of 2008

Dec. 8, 2008 - Dec. 14, 2008

Upload files to a TurboGears web application...

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

Continue reading

Weird little glitch in wrapper code

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

Regression on Lists/Tuples

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

Continue reading

Daily archives

Previous week

Week 48 of 2008

Next week

Week 50 of 2008