Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Invoicing with ReportLab (A bit of sample code for the curious...)


Have been working with the open-source ReportLab package to create invoices the last few days. The results aren't what I would consider beautiful yet, but they are a reasonable layout format for an invoice. Since it took me a bit of time to set it up I figure I'll share it with the world.

The ...

Continue reading

Making mountains (Molehill demo not working...)


Working a bit on OpenGL-ctypes as I wait for Soni. The molehill demo, which renders a multi-coloured NURBS surface with "plastic" lighting is rendering the surface (that is, is creating the nurbs shape) perfectly well, but isn't managing to display the colours.

Little traction this afternoon (Bouncing around between tasks...)


I was fully intending to spend the evening on porting OpenGL-ctypes to Win32. However, I realised that the workstation doesn't have the Toolkit compiler set up, which always takes hours, so I thought I'd try wrapping some of the more advanced extensions (vertex shaders, pixel shaders, that kind of thing).

Of course, I don't have ...

Continue reading

On fixing taps (Don't do it until there's a real problem...)


Friday I tried to fix the (Windows XP) 3D rendering on the laptop. Now XP simply can't boot (crashes trying to load the AGP module). I need to use an XP Pro disk to repair the installation, but I don't have one of those (the XP instance is the one that came pre-installed on the ...

Continue reading

OpenGL-ctypes finally gets tessellation (Read the spec a little more carefully and all becomes clear...)


I'm obviously not spending enough time with coding OpenGL these days. The reason that the GLU tessellation callbacks were messed up was that I was mis-reading the spec and trying to convert pointers to Vertex objects into double arrays. I went through altering the OpenGLContext code to work with vertex pointers before I realised "wait ...

Continue reading

PyGTA this Tuesday, 6:30PM at Linux Caffe (Starting earlier to get finished earlier...)


PyGTA this month is going to try starting 1/2 hour earlier, at 6:30, instead of 7:00. Linux Caffe stays open just for us on these nights, so we're going to try to finish around 8:30 or so so that they can get home to their loved ones. We'll do mostly socialisation and chatting for the ...

Continue reading

Learning and experience days are important (Taking a day to get up close and personal with SQLObject)


Decided this morning that I wanted more experience with TurboGears. I decided to re-implement the http log file analysis project I did a while ago as a TurboGears project (previously it generated static HTML files). The project basically performs whole-set analysis on about 150MB of log files to allow me to view hierarchically organised and ...

Continue reading

Miniscule movement on OpenGL-ctypes (Figured out the problem with the tessellation code)


The tessellation code was broken because the vector passed to the vertex callback was being declared as a void_p instead of a c_double * 3 . Not working yet, as I have to figure out a way to have the callbacks use the preferred array data-type for converting the argument. Linux Caffe, however, is closing ...

Continue reading

Whether to lug the laptop along (Am I really going to get any work done while there?)


Considering bringing along the laptop to try to get some OpenGL-ctypes work done during the UU meeting. Doesn't really seem likely that I'll get anything useful done, and carrying it all night is a pain... still, I suppose on the off chance I should do it anyway.