Author archives: Ben

RSS feed of Ben

Deb Constrictor for Application Deployment (Part 1)

Deb Constrictor (my pure-Python DPKG building application) adds many features in version 0.3 to make building packages easier and to keep your configurations DRY. This is part one of three posts of how I use Deb Constrictor to build and release this web site (the one you’re reading right now).

The application is released ...

Continue reading

Analysing The Goat: Data Science and Adventure Running

I stupidly entered The Goat Adventure Race for the first time. This is a 20KM alpine race between Whakapapa and Turoa, at Mt. Ruapehu. While the distance is short, the terrain is difficult and the conditions can be cold, to say the least. As we know, races really start a few months earlier when training ...

Continue reading

Tightening Up Python

I’ve heard complaints from certain developers that Python is too “scruffy”, and while it’s true that Python’s low barrier to entry allows new coders to quickly write code that runs, but because of its lack of type checking the results at run time might be unexpected causing errors to be revealed too ...

Continue reading

Building Debian Packages with Python (UPDS Part I.V)

I use DPKGs for all my deployments, and have tried a number of tools to build them. None have been perfect though, so what’s the best solution? Build my own, of course! TL;DR: I wrote a native Python (OS-independent) package to build Debian Packages: deb‑constrictor.

Alternatives

I’ve tried a few ways ...

Continue reading

Fixing Adsense Not Displaying (In Wordpress)

Recently a client was having issues with Adsense units not displaying on their WordPress blog. All the usual troubleshooting steps didn’t reveal anything, and the problem was made even more confusing by the fact that ads would display in the sidebar, while the exact same ad unit in the content section wouldn’t show ...

Continue reading

My Favourite WWDC 2015 Talks

WWDC 2015 was last week, and once again was jam-packed with awesome talks. Below are some of my favourite. While all of them are iOS/OS X/Swift focused, I generally prefer videos that present concepts as well as code, so you can learn something even if you’re not in that ecosystem, and hopefully apply ...

Continue reading

The Ultimate Python Deployment System I

I don’t release stuff as often as I should. Because it’s a pain to configure new applications and get them installed where you want them. I want a tool that:

  • Will automatically install dependencies
  • Handles version incrementing without being tied to source control (i.e. the current version is stored in a file ...

Continue reading

First Impressions of Swift

I've been playing with Swift, Apple's replacement for Objective-C, for a couple of weeks now. I've been writing Objective-C with Cocoa since around 2002 (I still have the first edition of O'reilly's Learning Cocoa, published way back in May 2001) and have seen a lot of changes. From manual retain ...

Continue reading

Python Is Slow, Make It Faster With C

This is a companion blog post to my talk at Kiwi Pycon 2014 (surprisingly, the title of my talk is also Python is slow, make it faster with C). The point of the talk was not so much “Here is a Python project and these are the changes I made to turn it into C ...

Continue reading

Help, I've been a-salt-ed!

I love to start posts with a terrible pun. I also love Salt. If you’re not familiar with Salt, it’s a tool for managing servers, similar to the likes of Puppet and Chef. They all claim to be great for taking control of an army of machines, but for my purposes I just ...

Continue reading