Category archives: Snaking

Discussions of programming, particularly of programming Python RSS

RSS feed of Snaking

Lessons from Implementing from Scratch

So the last two days I was sprinting at PyCon CA. My original intent was to investigate tools for formalizing experiments with machine learning and reinforcement learning in particular. What we started with (and in the end, ended with) was a kind of "implement reinforcement (Deep Q) learning from scratch" project, where we tried to ...

Continue reading

Yay, django 1.11 broken frozen/pyc migrations again

So somehow Django stopped being able to support .pyc files as migrations between our last builds with 1.11.lower and the current builds with 1.11.higher. Frozen environments use these to distribute just the .pyc (no source)... but somehow this got reverted because. But how did it get reverted in Django 1.11 ...

Continue reading

PyOpenGL 3.1.3b1 up on PyPI

So there's a beta release of PyOpenGL 3.1.3b1 up on PyPI. It needs testing on Mac and Win64/32 if possible. You should be able to install it with:

pip install "pyopengl==3.1.3b1" "pyopengl-accelerate==3.1.3b1"

The biggest change being that it should work on Python 3.7, and ...

Continue reading

TTFQuery 2.0.0b1 Up on PyPI

TTFQuery has a new release up. This release has a bunch of small breaking changes in it, specifically the command line demonstration tools now work differently. It also is now Python 3 ready (i.e. one more package should now be out of the way to get OpenGLContext running under Python 3) and finally has ...

Continue reading

Fast.ai Setup for Google Colaboratory

I dropped into a study group today that was trying to work through the first Fast.ai course. It was the first day of the group, so most of the day was just spent getting everyone to the point where they could start working on the notebooks. I have my own setup available for Keras ...

Continue reading

PyOpenGL on Travis CI

So last night I finally got the PyOpenGL-on-github-to-TravisCI integration working. TravisCI is a CI service that has a free Open Source project integration. However, it doesn't support OpenGL on the xvfb-run tool out-of-the-box. The recipe to enable it is pretty simple, just install a bunch of packages and pass some args to the server ...

Continue reading

Docker on Centos7 host underwhelms

So one of the things I've been working on recently is creating a docker-based container to host a complex application for video processing that requires a lot of OS-level setup. I, of course, work on a number of Ubuntu 17.04 machines for development, and docker there has proven to be exactly what you ...

Continue reading

GStreamer Playback Captured mpeg.ts using Timestamps

The use case here is capturing a network input source (mpeg ts stream) and then using that capture for playback later. If you just use a filesrc your playback will run as fast as the machine can process it unless you've got an element in the pipeline that will limit the speed (such as ...

Continue reading

Review: Dell XPS 15 (9550) as a Linux Developer's Laptop

Update: the battery in this machine started swelling/exploding at 1.25 years Strongly recommend not buying one!

So I've now had a Dell XPS 15 9550 as my primary driver for approximately 9 months. I covered the (painful) setup process a bit when I first got it, so I won't repeat most ...

Continue reading