Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Got OpenGLContext 3D text rendering working with numpy (Finally sit down to fix my FontTools fixes...)


I did some patches months and months ago to make FontTools use numpy to extract font data (outlines and metrics) from TTF font files. However, I messed something up in the patch. The system would render characters, but they seemed to be random characters and they were way too widely spaced.

Yesterday when I sat ...

Continue reading

Apparently ctypes is more interesting than OpenGL (Anti-cool-graphics movement makes its presence felt ;) )


My proposal for a talk at PyCon got accepted, but almost every comment was of the form "Oh, I guess so, but we'd rather just hear about ctypes". So I suppose I'll re-think the talk to just be about ctypes and ignore the whole OpenGL thing. My proposal was more along the lines of "when ...

Continue reading

Not much OpenGL hacking this weekend (But I got some general maintenance done and played a couple of games)


I spent much of the weekend trying to decompress from the week and finish recovering from the cold. I got a tiny bit of OpenGL work done, basically getting OpenGL extensions fixed for Win32. No big deal, after all, who uses Windows these days. Still, nice to have it fixed.

Also got the accounting for ...

Continue reading

I sort-of forgot that Asterisk programming could be fun (StarPy reminders...)


Have a (short) contract starting tomorrow to do some StarPy programming. Figured I'd get back in the swing of things by implementing a quick-and-dirty Call-to-Call application.

Basically this is a little AGI + AMI application that you have running on an Asterisk box that registers for a phone number. When a call comes in, the ...

Continue reading

GLE DLL is a PITA (Seems to be working now...)


Have spent the whole afternoon on getting a GLE dll to build for use with PyOpenGL 3.x on Win32 systems. GLE by default on Win32 builds as a static (rather than dynamic) library. Finally seem to have something working, although it seems wrong that this one DLL is a "CDLL" where all the other DLLs ...

Continue reading

Need to build a dependencies pack (Grr windows and their stupid lack-of-a-standard-C-compiler...)


Will need to put together an installer that can install GLUT, GLE and Togl DLLs for the Win32 people. Yes, it's annoying, but hopefully we can just do it once and basically be done with it (for a few years, anyway). Of course, then want to figure out how to make it auto-download and install ...

Continue reading

PyOpenGL-3.0.0a5 hits the shelves (Finally get the release out)


Wound up spending almost the whole afternoon on PyOpenGL (and I only got up around noon-ish). Mostly just tiny little issues here and there. Upshot, however, is that the alpha package is released now. You should be able to install it with:
easy_install PyOpenGL

with a sufficiently new version of setuptools installed. You'll want to ...

Continue reading

Didn't get it out tonight either (Stupid oh-I-should-just-do-that-first-ing)


Very good PyGTA this evening, if somewhat small and late-starting. 6 of us, David started us off with a demo of todotxt which is a command-line (that's really command line, not a separate shell) todo-list organiser. Not exactly my cup-of-tea (I'm graphical by nature), but it seemed interesting. Then on to discussions and comparisons of ...

Continue reading

Didn't get the planned release out for PyOpenGL (Testing on Win32 exposes an error)


There was an error in the new code that shows up on Win32. Looks like a shallow error, something that can be dealt with easily when I have the workstation, but I don't have a development environment here for win32. Anyway, need to get to bed so I can work (and go to PyGTA tomorrow). ...

Continue reading

What I'd like for PyGTA (Sugar and the One Laptop per Child introduction)


What I'd really like to see for Tuesday would be a local Sugar developer dropping in to give the PyGTA-ers an introduction to the project, both as something to use to develop applications for the project and along the lines of "how do I get involved" or "where is work needed".

However, the guys on ...

Continue reading