Category

Programming
Screenshot of Python code distorted and warped
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.
Read More
Canopy for Mac and an Oh My Zsh Terminal window
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.
Read More
Screenshot of Python code distorted and warped
Here is some code that can be used to download an image from a URL, verify that it is actually a non-corrupt image, save the image to Django’s media folder, and then associate that image to a model Class using Django’s ImageField.
Read More
Django's admin list display view
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...
Read More
96% of people fail this test. How many squares are there?
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...
Read More
Before and after - Excel alphanumeric characters removed
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...
Read More
Flexbox vertical alignment differences
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...
Read More
Creating a temporary file in a Windows 8 Metro app is easy enough, and so is reading it. Just check out the documentation on temporary app data. You really have to dig through additional documentation to find the path to a temporary file in case you need to reference the file itself rather than read...
Read More
Screenshot of Evernote notes overlaid on a desktop
Evernote provides a lot of conveniences: sync, formatting, text recognition in images, the ability to segregate notes into notebooks, sharing, checkboxes, and more. The only problem is you have to open Evernote every time you want to view a note, then scroll through your notes to find the important one. Imagine if you could see...
Read More