Virtualenv on El Capitan

Step by step instructions for setting up virtualenv on MacOS.…

Mac Too Bright?

Update Jan. 2017 I now use Flux to slowly dim the lights as it gets later at night. If you’re working late and find your screen is just too dang bright this little Shades utility is a beautiful thing. #UsingIt…

Sublime Package Confusion

After switching to a new Mac recently I installed my favorite text editor Sublime Text 3. While most things picked right up because I sync my preferences through my private cloud, the Django template language snippets and highlighting provided by Djaniero were not working. I couldn’t install it again either. If you’re package for Sublime that you are trying to install is not available it’s most likely because it’s already installed (but not working).…

Connect to Vagrant Postgres Database via pgAdmin3 on Mac

For the past year or so I’ve been developing locally at work using Vagrant. After making some updates to models I found I needed to be able to easily inspect my postgres database in the Vagrant virtual machine. Ideally I could use pgAdmin3 to connect to that database and luckily it wasn’t too hard. There may be a step or two in these instructions that aren’t needed but I’m including everything I did because I know that it works.…

Phantom iPhone Alarm is Back!

A few years ago with my first to 3rd generation iPhones I found that I couldn’t trust the alarm. Sometimes I would set it and it simply would either not go off or it would be so quiet that it never roused me from sleep. I quickly learned that I was an idiot to trust it and always added a second alarm clock to the mix if I had anything important to wake up for.…

Stock Photos

Finally, something cool again happening in (non-) stock photography. Remember like 10 years ago when iStockphoto was killing it. Love what Death To The Stock Photos is doing. You really should go there and sign up for their list.…

Upgrading to Yosemite

So today I took the plunge and upgraded to Yosemite. With all of the Django and Homebrew setup on my mac it’s always interesting to see what breaks when upgrading. First thing that was off was Postgres was not started, which is what I use for local dev so I can use a production dataset when testing. When I tried to run “brew doctor” I got an error: Error: No such file or directory - /Library/Developer/CommandLineTools/usr/bin/clang From experience from past upgrades I know this is because command line tools are not installed correctly.…

Spam Control with jQuery

Recently at work I was faced with a problem. We use an outsourced CRM solution so I send lead forms directly to them. Things work but the only solution they have for spam control is using a captcha. A solution I’m not particularly fond of. Especially since one of those forms is in the footer of our site and it would just be flat out ugly. I was already using the wonderful jQuery validation to validate form input so I wanted to find a way to tie it all together.…

Upgrading Ghost on Webfaction

A while back I started a blog using Ghost to try it out. Webfaction made it easy by having a 1 click installer for it almost immediately after it was available. The site has been up and running for a while and I noticed that there have been several upgrades since I installed it so I wanted to upgrade to the latest version. Here is how I did that. Note that these instructions will only work if you installed Ghost using the Webfaction installer.…

Mezzanine + Sorl.Thumbnail

I really like Mezzanine and use it all the time in projects. It powers this site you’re on now. There are a couple of things that often “bug” me about it though. One is that I don’t understand why Stephen chose to bake his own thumbnail plugin and didn’t just use sorl.thumbnail. Sorl is much more flexible and powerful. For instance I can add margin and center an image when resizing it to give uniform whitespace around images while preserving the aspect ratio, something the built in thumbnail tag can’t do.…