Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Shadow Tutorial Up

I've just put together another in the series of beginner tutorials for OpenGLContext. This one covers the use of ARB shadow and ARB depth texture to simulate shadows.  It's based off a C tutorial and I used Ian's shader library to figure out what was going wrong with my texture matrix calculation. Turns out I ...

Continue reading

Automating the day away

I spent almost the whole day on automation today.  Basically getting the OpenGLContext test-suite to run as an automated suite, rather than a set of scripts I have to manually run.  It's not yet doing any sort of comparison of the captured images, but it lets me see the results on a single page quickly. ...

Continue reading

Linking Platform Packages into VirtualEnv (automatically)?

So you're creating a virtualenv with --no-site-packages so that you get some package isolation for testing, but you want to have those 2-3 platform-provided packages included, numpy, PIL, maybe a DB adapter.  Is a script to create a symlink the best approach?  What about when you aren't in control of the virtualenv and you just ...

Continue reading

PyOpenGL 3.0.1b1 and OpenGLContext 2.1.0a7

I've just finished the 3.0.1b1 release of PyOpenGL. This release is mostly just bug-fixes from the 3.0.1a4 release. There are fixes to glGet and glGetActiveUniform, a script to retrieve and fixes to support Togl binary installations, exposure of the OpenGL 3.2 entry points (though largely untested, as I have no hardware over OpenGL 2.1), ...

Continue reading

Asterisk call-to-call daemon (By popular demand...)



Since pyfoo requested the code for this little hack, here it is. In actually using the script I've found it to be too clumsy to be worth the savings in minutes for me. The problem is that you receive back a call and then have to know the number you wanted to call in the ...

Continue reading

Getting the old OpenGL.Tk module working again...

Had a user complain that we don't have Togl support any more (again).  It's another one of those "blah" tasks that I really feel ambivalent about.  I've long since completely given up on Tkinter, particularly since it's no longer installed by default on any reasonable Linux distributions.  However, Togl, while still not (AFAICS) packaged for ...

Continue reading

Any Win64 PyOpenGL devs?

I don't really use Windows.  I have a Vista partition on my laptop that I use for compiling and releasing projects, but it's a 32-bit image.  I honestly don't care enough about Win64 to buy a copy, but there are obviously people who do want to run PyOpenGL on it.  So, any Win64 developers feel ...

Continue reading

TurboGears "offline" processes (crons, command-line commands, etc)

TurboGears uses the Paste commands system to create command-line entry points that, for example, set up your database or start your server.  When you get to larger projects, however, you will often have other things you need to do "in the context of your application" from the command line, such as periodic imports of data, ...

Continue reading

OpenID Support in a TG2 Application

Spent most of the day playing with TurboGears Authentication/Authorization system.  In particular, I stripped out the "quickstart" configuration and created a "who.ini" based almost-equivalent.  With that, I added an OpenID provider using a repoze plugin... at the end of all that, I can log into my localhost quickstart application with a myopenid.com login.  I've documented ...

Continue reading

PostgreSQL/SQLAlchemy/TurboGears search

PostgreSQL 8.3+ has integrated the old tsearch2 plugin into the distribution.  This lets you do very formal "stemmed" textual queries on a body of text (set of columns in a table).  For instance, imagine we have a table "version_text" that stores all of the text in our version control system in the "text" column.  We ...

Continue reading