Archives July 2013
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, ...
Packaging Ubuntu/Debian is not fun
Written by
on
in
Tuxedo.
So I wanted to get Eric4 running on my Ubuntu 13.04 laptop, no problem, the latest Eric4 is compatible, just download the Ubuntu package source, run bzr-merge-upstream and then debuild, right?
No, because Eric4 is a multi-file tar source, where the secondary files (translations) all have binary files that do not play well with the ...
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 ...
Upgrading the Laptop
Written by
on
in
Tuxedo.
I finally caved in to the silky sweet seductive tones of Docker. I can't risk the desktop as I need a working machine, but if the laptop is borked I just lose the ability to work away-from-home for a few days. I'm hoping to set up a whole suite of build/test containers. If it works ...
Create a DKMS DEB for a kernel module
Written by
on
in
Tuxedo.
If you have a traditional kernel module, such as the one for the ASIX AX88179 (source code) you may be rather reluctant to install it on your Ubuntu 12.04 machine because it requires re-compilation for every kernel upgrade. Well, that's what dkms is for, so let's turn that source release into a .deb ...
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 ...
Metaclasses, what are they good for...
Written by
on
in
Snaking,
Pony.
A question was asked at the Django Toronto meetup during the metaclasses talk, basically, "what would you use this for"... so, here's my talk on Metaclasses [pdf] from a PyCon of the Python 2.2 era, which addressed that question at some length (the first half of the presentation). It doesn't secifically mention the use-case cited ...
Docker is the first thing to make me want to update
Written by
on
in
Tuxedo.
Kubuntu 12.04 with the kubuntu-backports-precise PPA pretty much keeps right up with KDE changes, so there's very little incentive to update to 13.04 at the desktop level. As a result, I've been happy to keep all of our machines on the LTS. Until now...
Docker doesn't work reliably without a 3.8 kernel. 12.04's AMD proprietary ...
olwidget show features in the window
Written by
on
in
Snaking,
Pony.
So now you've got your spiffy textual-entry-of-GPS-coordinates-and-map admin GUI and you're wanting to actually let people see your "features" on a map. olwidget has an InfoMap() which is basically a Map + a single InfoLayer, but it uses a static set of "info" rather than a dynamically updating set. Here's how to hack the dynamic ...
Daily archives
- July 5, 2013
- July 9, 2013
- July 15, 2013
- July 17, 2013
- July 18, 2013
- July 24, 2013
- July 25, 2013
- July 26, 2013
- July 28, 2013