Category archives: Snaking
Discussions of programming, particularly of programming Python
PyCaribbean Wow, That's Tempting
Written by
on
in
Snaking.
Chatting about Python in the warmth and Sunshine in February sounds awesome. If you're interested in speaking, you've got a week to get those proposals in (November 20th). Flights seem to be around $600 to $800 per person from Toronto. More details on the PyCaribbean site.
Going to try AppVeyor for building releases
Written by
on
in
Snaking.
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 ...
Lazy-calculated Integer Sizes Deprecated
Written by
on
in
Snaking.
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 ...
Java Jokes
Written by
on
in
Knight Errant,
Snaking.
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 ...
Slides from "Embrace the Singularity"
Written by
on
in
Snaking.
For those who are asking, the slides from my talk are available. I'm guessing it will be a few days before video is available.
Embrace the Singularity: Sunday Bahen 1180
Written by
on
in
Snaking.
Presentation is shaping up nicely. I'm still way-over on slides (71), but that's normal for me at this stage. I'll do some ruthless cutting as I start into full read-throughs. The biggest thing that's shown up in reviews so far is that probably 15 of the slides are fodder for an hour's discussion... and we'll ...
Has it really been 18 years since I did Java?
Written by
on
in
Snaking.
I've definitely had to touch Java in the intervening years, but the last big Java project I can remember working on was in 1997. And that was a VR Mutech that we ripped out and replaced with C++ and Javascript ASAP. Java code always seems somewhat like someone is pulling my leg...
- You wrote 43 ...
That point where you wish you'd asked for an hour
Written by
on
in
Snaking.
There's a point in every presentation where you realize "I should have asked for an hour (or 8)"... that's about 1/2 way through in my experience, it's where you've filled the work-table with a thousand items, taking each bullet point you wanted to cover and expanding it to full-lecture size, and now you start the ...
Finally moving to Django migrations
Written by
on
in
Snaking,
Pony.
So it has taken far too long to get this done. As our migration operations were tightly coupled to South migrations, South was holding us back for far too long. Today I've pretty-much finished the migration. I wound up embedding a virtualenv inside the firmware for each product that has stub packages, the south migrations, ...
Multiple "output" parameters in PyOpenGL
Written by
on
in
Snaking.
So Moisés has been sending me bug-fix patches for PyOpenGL, and todays (actually Sunday's) pointed out that the multiple-return-parameter case was plainly broken in the PyOpenGL wrapper code. Basically the code would only return the *last* parameter which was setOutput()'d so that the low-level wrappers would return somewhat pointless values rather than returning the tuple ...