Category archives: Snaking
Discussions of programming, particularly of programming Python
JQuery Mobile Django Baseline
Written by
on
in
Snaking.
Playing with a JQuery Mobile baseline template for Django this afternoon. Just a set of templates, urls, static files, etceteras which give a "mobile app-like" base from which to begin development in a new project. I'm not particularly satisfied with it yet; I coded it directly into a "regular" app, and it really should have ...
Dumb PyDoc Replacement for PyOpenGL
Written by
on
in
Snaking.
I have been using "standard" Pydoc (actually slightly hacked) to document PyOpenGL outside the man pages, but PyOpenGL is almost entirely composed of things that don't work well with the standard tools; functions are actually class instances that check for availability before attempting to call, "functions" are defined in "raw" modules then imported into their ...
Miscellaneous jQuery Mobile + Django tips
Written by
on
in
Snaking.
Some little tips on how to make your "normal" Django site work properly under jQuery mobile:
- as mentioned before, put your JQM setup code into a base template that all of your mobile pages extend, this means that users can go to any "normal" url and still get the jQuery effects loaded
- create a "content" ...
OpenGL 3.x and 4.x man pages integrated
Written by
on
in
Snaking.
The OpenGL 3.x and 4.x man-pages are now integrated into the PyOpenGL documentation. Let me know if you find any bugs in the conversions.
jQuery Mobile + Django gets Pleasantly Out of the Way
Written by
on
in
Snaking.
Have been doing quite a bit of work combining jQuery Mobile with Django for certain (internal) projects. You can set up the JQM stuff with a few lines in your template, then mostly "forget" about it while developing a regular Django form-based site (though you'll want to use HTML5 widget types). The only major things ...
No luck on GLSLDevil + PyOpenGL yet
Written by
on
in
Snaking.
Hit a bug in my ARB buffer texture test-case this morning and decided to try out GLSLDevil to see what's going on in the shader (basically I seem to be getting out the wrong values from my texelFetch() calls). Long story short, while I can do a bit of hackery to get past some initial ...
Playing with extensions in PyOpenGL
Written by
on
in
Snaking.
Have been spending the afternoon doing a bit of cleanup in the later extensions and versions for OpenGL in PyOpenGL. Many of the later OpenGL versions do most of their work by importing entry points and constants from ARB extensions. That's now reflected in PyOpenGL so that the core GL namespace includes those extension entry ...
RunSnakeRun 2.0.1 Released
Written by
on
in
Snaking.
RunSnakeRun 2.0.1, a cross-platform profile viewer for Python, is now up. Mostly just changes for OS-X 32-bit loading since the last beta. Meliae (memory dump) loading is the major new feature since the 2.0.0 series.
Watch your texture bindings when using FBO attachments
Written by
on
in
Snaking.
I finally tracked down why the second "shadow" demo had regressed for OpenGLContext on AMD cards. Turns out that the order in which you bind/unbind textures and Frame Buffer Objects is very important. If you have a texture bound as the current TEXTURE_2D at the same time as it is attached to an FBO attachment ...
bytes(23) this is not your Python2.7 bytes...
Written by
on
in
Snaking.
Working on integrating a patch that lets parts of PyOpenGL work on PyPy 1.5 and Python 3.2 (thanks to Renaud). Tried creating a little wrapper that abstracts away the various changes. One of these is a function that can take a string, a unicode string, or an arbitrary object and wants to get a friendly ...