Category archives: Snaking
Discussions of programming, particularly of programming Python
Been hacking on a spike test for Productive for the last few hours. PyGame is really very fun once you get (back) into it, gets right out of the way most of the time. First task was to re-learn sprite-based rendering and create a simple grid of squares that responds to mouse-overs with a highlight. ...
Spent the whole day yesterday and today on PyOpenGL 3.x. Fixed quite a few show-stopping bugs, such as a silly little failure in the array handling and using the wrong function-types for callbacks on Win32. As mentioned, got the Nurbs working yesterday.
I've uploaded a compiled version of GLE for Win32 folks as well. I've ...!-->!-->
I finally tracked down the problem with nurbs rendering in PyOpenGL 3.x. Apparently passing a bald integer where a void-pointer is expected was causing ctypes to re-interpret the value. I went with returning a void_p and the nurbs started flowing again.
Added support for saving/viewing the depth buffer to one of the OpenGLContext tests. Added ...!-->!-->
I was intending to just sit down with PyOpenGL and do a release... but apparently I was right in the middle of something when I last worked on it. Nurbs was broken. Win32 just wouldn't work. Lots of little things.
Anyway, long story short, spent 12 hours or so on it, but it's just not ...!-->!-->
Developed a product a few years ago using Twisted, which got left on a shelf due to unavoidable complications at the business level. Client with a license to alter the code asked me to make some changes to it, so I sat down today to rebuild the development environment...
Twisted and Nevow have moved along, ...!-->!-->
Spent the whole day (around a nap) working through the PyOpenGL bug-tracker. A number of minor fixes here and there, a few new test cases, and a lot of stale-dated stuff. Got the vertex buffer object Demo working again along the way.
Need to test Win32 extension handling (I have a report that it's broken ...!-->!-->
Since I didn't get anyone else standing up with a "deep" topic for tonight, I'm proposing that we look at the cortical algorithm put forward by Hawkins in On Intelligence, and then see if we can hash out how you'd go about creating such a thing in Python (efficiently enough to make it useful). ...
(I'm testing on a Win32 box). Download and install Python 2.5, put the Python directory on your path. Install Win32 GLUT and GLE, then download ez_install.py and run the following:
python ez_install.py OpenGLContext
python ez_install.py Pygame
python ez_install.py numpy
python ez_install.py PIL
python ez_install.py SimpleParse
python ez_install.py TTFQuery
If I got everything properly put ...!-->!-->
I got up this morning fully intending to work on billing/provisioning stuff for ACI all day... I only wound up doing 2 hours total work for them (well, so far), exhausted the stuff that can be done during the day (most of the changes need to be done after-close-of-business) and decided to brush up on ...