Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

PyCon Canada running Nov 12-15th 2016

PyCon Canada is going to happen in downtown Toronto. The conference is Nov 12-13th and then two days of sprints. The call for proposals is up and you have until the end of August to get your talk/tutorial proposals in. PyCon Canada is a pleasant conference with lots of friendly people, not as overwhelming ...

Continue reading

nVidia, package cudnn for Ubuntu already

It's half-way through 2016 and to get Tensor Flow installed on Ubuntu 16.04 one has to register for an nVidia developer's program? Here's a hint, current LTS for Ubuntu installing a widely-used AI library should require (in total):

apt-get install tensorflow tensorflow-gpu

Seriously, why make installing a widely used library a PITA? It's only useful ...

Continue reading

mcastsocket broken out into its own project

I use multicast a lot in my work, and I almost always wind up using my branch of PyZeroconf's mcastsocket module... and that's not cleanly pip installable, so I've now broken out the mcastsocket module into its own project. Changes with this release:

  • implements (IPv4-only) single-source-multicast support
  • should work cleanly on python 3.5 (it may ...

Continue reading

Going to try AppVeyor for building releases

Got hard-stalled trying to get the laptop configured for building all of the various versions of Python to get the binary packages released. So I think I'll try using AppVeyor to build the releases. It's free for OS projects, and it would be nice not to have to pay attention to the compiler setups any ...

Continue reading

Lazy-calculated Integer Sizes Deprecated

So there's a bit of code in PyOpenGL that is now producing deprecation warnings. In essence, we have a type that is a "run-time lookup" integer. So when you have an element that is of unknown size, you lookup that value via some function. That function is often OpenGL-context-dependent. As of latest Numpy that's now ...

Continue reading

Java Jokes

So I ran across a snippet of code today in a Java codebase:

additionalCommands.add(new XYZAdminClientMenuItemAdditionalCommand(START_COMMAND, "Start Cluster"));
additionalCommands.add(new XYZAdminClientMenuItemAdditionalCommand(STOP_COMMAND,  "Stop Cluster"));
additionalCommands.add(new XYZAdminClientMenuItemAdditionalCommand(MON_COMMAND, "Start Monitor the Cluster"));

which, to any Python programmer looks like someone is pulling your leg.

Here's a Java version that doesn't seem quite so crazy to a Python programmer:

protected static ...

Continue reading