Supporting Multiple Python Versions with Tox on OS X

Tox provides great support for testing Python packages against multiple Python versions. But what if you have a carefully crafted Python environment already and you want to support additional Python versions without clobbering your setup? This guide explains how to cleanly install multiple Python versions side-by-side without overwriting your existing Python executable.

Continue reading

Use Enthought Canopy’s Python with Oh-My-Zsh

Enabling Canopy’s Python in Oh My Zsh is not that much different than doing so in bash. You just have to edit your .zshrc file and prepend your PATH to look in Canopy’s bin folder for packages before looking in your user’s bin folder. Find out how.

Continue reading

Customizing Model Properties & Classes in Django’s Admin

Verbose names in Django allow you to customize the headings in list_display, form fields, and even the name that appears in the admin for the model Class. Adding a verbose name to any model, property, or method will ensure that pretty names are used everywhere in the Django admin. In the example below, the model …

Continue reading

Questioning Random Statistics

I see and hear it almost every day: someone misinterprets data or makes a false assumption often using terrible data, spreads the stats, and suddenly the masses are shouting this incredibly new and insightful statistic. What a load of crap this usually is. In my mind I go through all the possible holes – did …

Continue reading

Excel: Remove Non-Alphanumeric Characters with Macro

If you’re looking for a formula to replace non-alphanumeric characters there are several combinations of functions that you can use to strip unwanted characters from entire columns. Right off the bat, I’m going to steer you in the direction of using a macro to do the job. It will be much faster, especially if you’re …

Continue reading

Vertically Align Text in A Flexbox

Thus far, I’m a huge fan of flexboxes. I ran into a bit of a block when I stuck three paragraphs with different font-sizes in the same row using a flexbox. Even after playing with the margin and padding and vertical-align (which, by the way, does nothing inside a flexbox) I couldn’t get the base …

Continue reading

How to Bypass Websense, the Better Way

If you’re at work or school, an SSH tunnel is better than using a VPN to bypass Websense. Using a VPN will route all your traffic through an external server, so you’ll lose access to local servers and more than likely lose access to email and your intranet, as well. But with an SSH tunnel you can dedicate one browser to traffic over an SSH connection, making that traffic encrypted so Websense can’t block it, and not mess around with your computer’s network settings.

Continue reading