Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

One small step for Mikey-kind (One ever-so-tiny leap for OpenGL-ctypes)


I've just now managed to get GLUT to load on Linux using ctypes. It turns out that GLUT requires the use of the "RTLD_GLOBAL" flag when loading GL and GLU so that it can resolve its references to those libraries. At the moment ctypes doesn't support passing in the flag, but with a patch to ...

Continue reading

Shouldn't libglut.so be linked against libGL.so? (Refuses to load on Linux with ctypes...)


Doing some work on OpenGL-in-ctypes, I hit a bit of a wall, namely the GLUT library refuses to even load. Whenever I try it gives me a warning that it can't find glPixelStorei. Looking at the module with ldd, it does appear that there's no link to libGL.so to allow for resolving the references.

Sigh. ...

Continue reading

Datetime goodness (Long overdue todo items for BasicProperty)


After the party at gram's place (Canada Day) I took a bit of a nap, then started working on BasicProperty again. Decided to focus on the date/time types, as they really need to get updated to allow using Python 2.3+ datetime types (they currently only allow using mxDateTime).

I should probably also work on stripping ...

Continue reading

Floor the accelerator (Module, that is)


Decided last night I'd work on something that, while part of one of my Open Source projects, would help Cinemon. We use BasicProperty all through Cinemon, and the property overhead for retrievals has bothered me on and off, so I decided to write a little accelerator module that does the trivial __get__ and _getValue functions ...

Continue reading

Features they are a springing (Ajax sneaks in too...)


Spent the day primarily on new-feature requests, including some very large next-gen features. One of them requires a rather involved, interactive process for defining limiting values, so I decided I'd try to integrate a Nevow LivePage into the web front-end.

It was a bit annoying having to reverse engineer the approach from the examples, (especially ...

Continue reading

How many (and which) users are active on your (guarded) Nevow site? (Quicky recipe...)


Sat down and worked on a long-term wish-list feature, namely "presence" services for the Cinemon front-end. The first part of this is telling the user a) how many users are actively viewing the front-end, and b) which users they are. Well, we know we have this information stored in Nevow's guard.SessionWrapper object, it's just a ...

Continue reading

Generic repositionable interpreter (Things I should do when I get a chance...)


Just killed close to an hour booting into Windows and trying to put together a py2exe'd Cinemon for the demo tonight. What I really want is just a Python interpreter that adds some sub-directory of the interpreter directory to sys.path (with .pth support) then runs the script you specified on the command line.

py2exe just ...

Continue reading

Win32 Python Packages Need EXE Installers (Just too cumbersome otherwise...)


I've just finished pulling together and creating exe installers for all of Cinemon's open-source dependencies (save PostgreSQL). It's quite a list; 18 packages, with one single-module dependency and some internal packages as well. Went fairly well, save that some of the packages were bzip2 compressed (which WinZip doesn't handle).

I originally tried to do a ...

Continue reading

Sleep, glorious sleep (Doesn't get much work done, but...)


I just couldn't get up this morning, so I spent the whole day abed... well... not quite. I actually did a tiny bit of work on the OpenGL-in-ctypes stuff, but hardly enough to be noticable. I keep thinking there has to be a better way to handle the wrapping and stopping to try to find ...

Continue reading