Category archives: Snaking
Discussions of programming, particularly of programming Python
Twitch Lightmaps and (the start of Shaders)
Written by
on
in
Snaking.
So I was feeling a bit burned out on programming this morning. What's the solution to that, you ask? 3D graphics, obviously.
I pulled out Twitch (What's Twitch you ask? It's a very simple loader for .bsp maps). I finished off the shader parser and added lightmap support. At this point you can load ...
Toronto Python Meetup Hack Night Project
Written by
on
in
Snaking.
Hasan's project for the Hack Night was a log-file visualizer to be used with real-time-ish log parsing such that you could "waggle a mouse in this window and see the performance stats in this one" (he does video driver testing by day). We decided to step that down to parsing a sample data-file (in this ...
New RunSnakeRun and SquareMap available
Written by
on
in
Snaking.
It has been rather a long time since the last release of RunSnakeRun, mostly because I don't actually find myself using it when I'm doing web development for the most part (just not as performance sensitive as 3D graphics I guess). Since other people are using it, however, I suppose I should get a ...
Nginx upload module
Written by
on
in
Snaking,
Pony.
Nginx has an upload module (in the nginx-extra package, not in the nginx-full one) that is very nice when you want to allow users to upload large files (think multi-GB video files). The way it works is that you define a location to which posts may be made where the post may contain an upload. ...
Public Service Announcement PyPI "wx" is not what you think...
Written by
on
in
Snaking.
It is not wxPython you are installing. It's a "my first module" test package...
So how does one "claim" the top-level namespace module on PyPI when the namespace module is different from the name of the project. Is there some mechanism to create a redirect from "wx" to "wxPython"?
Py_buffer underwhelms so far
Written by
on
in
Snaking.
I spent this evening getting the Py_buffer support in PyOpenGL worked through the codebase. Originally I'd converted the numpy handler to use Py_buffer when in non-accelerated mode, but in the end it didn't provide much of anything other than the occasional "duh" moment where a piece of code assumed that you could treat an output ...
PyOpenGL Py_buffer Support Moving Forward
Written by
on
in
Snaking.
I've been getting the Py_buffer protocol based format handler for PyOpenGL implemented. The actual handler for buffer-providing types is pretty simple, and the numpy handler is now rewritten into a tiny subclass that just provides a "zeros" method and some "coerce to contiguous" code. Not yet ready for prime time, and needs accelerator support still, ...
pip/pytz fails with 1.4 and 2013b
Written by
on
in
Snaking,
Pony.
We happened to be building a new build server today, and one of the steps in the process is to install packages. We download all of the packages to local disk in one step (pip install --download ${packages}), then install them in the next step (pip install --no-index --find-links ${packages}). Thing is, while pytz downloaded ...
ctypes + PyBuffer?
Written by
on
in
Snaking.
Chris Barker asked about having a PEP 3118 format handler for PyOpenGL. I've played around with this in the past, but always wound up with segfaults due to apparent double-free operations when using ctypes to do buffer work. Basically, once I GetBuffer() into a buffer the deallocation of the buffer struct in ctypes seems to ...
Defaulting a POINT to GeoIP
Written by
on
in
Snaking,
Pony.
So you added a totally cool and gnarly view that lets the user specify a POINT on a map (and text coordinates), and then two more to let them view and explore them. Your users should love you forever... but those dratted users are complaining that the default location is off in the Atlantic ocean ...