Category archives: Snaking
Discussions of programming, particularly of programming Python
One small step for Mikey-kind (One ever-so-tiny leap for OpenGL-ctypes)
Written by
on
in
Snaking.
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 ...
Shouldn't libglut.so be linked against libGL.so? (Refuses to load on Linux with ctypes...)
Written by
on
in
Snaking.
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. ...!-->!-->
Datetime goodness (Long overdue todo items for BasicProperty)
Written by
on
in
Snaking.
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 ...!-->!-->
Floor the accelerator (Module, that is)
Written by
on
in
Snaking.
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 ...
Features they are a springing (Ajax sneaks in too...)
Written by
on
in
Snaking.
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 ...!-->!-->
How many (and which) users are active on your (guarded) Nevow site? (Quicky recipe...)
Written by
on
in
Snaking.
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 ...
Generic repositionable interpreter (Things I should do when I get a chance...)
Written by
on
in
Snaking.
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 ...!-->!-->
Win32 Python Packages Need EXE Installers (Just too cumbersome otherwise...)
Written by
on
in
Snaking.
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 ...!-->!-->
Sleep, glorious sleep (Doesn't get much work done, but...)
Written by
on
in
Snaking,
Vindaloo.
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 ...
Conference call ambushes me (Weirdest of places...)
Written by
on
in
Snaking.
I very seldom get over to my co-worker (Tim)'s place. But this week I picked up his pay cheque for him, so I had an excuse to walk over and see his new baby. My plan, you see, was to pop in, see her (the baby) and then pop out again to get some serious ...