Category archives: Snaking
Discussions of programming, particularly of programming Python
GL Arrogance Cleanup is Significant
Written by
on
in
Snaking.
There were (and still are) lots of places where PyOpenGL code assumed (assumes) that it is running GL. So far my cleanup efforts mean that on importing e.g. GLES1 you don't actually trigger a load of OpenGL. They also mean that most DLLs are lazy-loaded, something that means e.g. GLUT should no longer load on ...
Twisted is really convenient sometimes
Written by
on
in
Snaking.
Needed an FTP server. 25 lines of code later an FTP server that listens on a particular interface serving files from a given directory, and half of those 25 lines are about processing command-line arguments, getting network addresses and otherwise doing "not FTP" work.
More consistency in array input/outputs
Written by
on
in
Snaking.
OpenGL often has situations where an argument is actually an output. PyOpenGL has traditionally wrapped those entry points such that they would be removed from the inputs and returned as an output. I've just checked in code such that for most PyOpenGL entry points you can use either the Pythonic or the C-ish pattern (i.e. ...
Step 2: Get an amd64-compatible VS 2010
Written by
on
in
Snaking.
So Python 3.3 and 3.4 require Visual Studio (Express) 2010 to compile extensions. I already had my machine setup with Visual Studio Express 2008 + the platform SDK to get 32 and 64-bit compilers for Python 2.6 and 2.7, but to release for the 3.x's I needed to get the new compilers. There is, however, ...
Pygame-hosted EGL + ES1 works
Written by
on
in
Snaking.
So Pygame based EGL + OpenGL-ES1 context works with PyOpenGL 3.1 under Kubuntu amd64 with MESA EGL/GLES. Yay.
Really do need to get a couple SD cards ordered so I can port to the Raspberry Pi too. I expect that will be a matter of just getting the proper library-names defined in the platform loading ...
PyOpenGL 3.1.0b1 Available for Testing
Written by
on
in
Snaking.
PyOpenGL and PyOpenGL_accelerate 3.1.0b1 are now up on PyPI. There's MS Windows 32 and 64-bit installers for the windows-ians. The main "features" planned for the 3.1.0 release (and available in the beta) are:
- raw wrappers generated from the ARB source XML definitions, this means that it covers a lot more extensions, including GLX, WGL, EGL ...
Step 1: Get Windows Updated
Written by
on
in
Snaking.
Booted into Windows to get the PyOpenGL-Accelerate release compiled, and started following my standard "update windows, AV definitions, etc" pre-release steps... and Windows Update failed. Lots of fail (and 3 hours of trolling through MS support and trying dozens of different fixes intended to reset/verify/cleanup Windows Update state) later I wound up with some Windows ...
Finally some EGL/GLES in PyOpenGL
Written by
on
in
Snaking.
I finally have a working demo using EGL and GLES under X11/Mesa (Kubuntu 12.04). I can run the most basic of ES1 and ES2 (as well as GL) tests under an EGL-provided context hosted by python-xlib (i.e. a raw X11 window). There's no guarantee that actual useful work could be done with it, but clearing ...
Voice Dictation Privilege
Written by
on
in
Snaking,
Tuxedo,
Young Coders.
Apparently I'm blessed with a Voice Dictation friendly accent and tone. I can pretty much use most Voice Dictation systems, including the ones on Android, Dragon Naturally Speaking, and PocketSphinx. The results aren't mind-blowing-ly good, but if it's quiet and I speak clearly and train anything that gets missed, I get reasonable results.
Watching a ...
Django CSRF explicitly doesn't trust HTTP when submitting to HTTPS
Written by
on
in
Snaking.
I managed to introduce a wonderful little bug in the Django blog site here. I wanted all contributors (those making comments and myself) to use HTTPS, but I didn't want to rewrite the templates for the Zinnia blog entries, so I just naively redirected the comments form to the HTTPS site. CSRF protection in Django explicitly does ...