Category archives: Development

Topics of general interest to developers.

RSS feed of Development

Git: When is a tree not a tree?

Git repositories are described as trees, with branches. This is true. But, thinking of them as nodes of connected commits, is slightly more correct. Each node has a parent, and might have children. A node can be named with a tag or branch.

Sounds complicated, but let me explain

Target Audience

This post is aimed ...

Continue reading

Fix Dock not showing with Multiple Displays

I recently joined the Triple Display Crew and have two external monitors hooked up to my MacBook. I ran into a strange problem where the Dock, which I keep down the bottom, wouldn’t pop up on the centre screen.

I wanted my display arrangement to match the real layout as accurately as possible. The external ...

Continue reading

Deb Constrictor: Multiple Parents

To reduce the amount of setup required to start using Deb Constrictor for new projects, build configurations now allow for multiple parents (as of version 0.7). Now, when writing configurations, your build-config.json can inherit from a parent project config containing the project name, and a “base” config that defines the type of project ...

Continue reading

DRY Django URLs with Enums

DRY code is good code. Using named URL patterns in Django has always bothered me for the fact that if you decide to change the name of a particular URL you have to change it throughout your code in all of your {% url %} template tags or reverse function calls. There must be a better way ...

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