Aaron Presley

Secure, Infrequent Posts

For no reason in particular, I’ve added SSL to this site. Yay me! Turns out you can get free SSL certs from, among several places, a site called StartSSL. Now you can read my very infrequent updates securely.¬†You’re welcome. Update: I no longer recommend StartSSL. Not that it’s bad – I haven’t looked at it in […]

Add Confirm Password Field to UserSerializer in Django Rest Framework

I’m pretty new to the Django Rest Framework in general, but I had a hell of a time figuring out how to add a “confirm_password” field to my UserSerializer model. The currently suggested methods seem overcomplicated for what I was wanting to do – which is just confirm and validate the user’s password! Eventually I realized I […]

Django Autocomplete in Atom

I’ve made the switch from the endlessly buggy PyCharm to the beautiful (and kind of slow sometimes) Atom. The thing I missed most about PyCharm, though, was the awesome autocomplete with working in Django. I went through several Atom packages before finding the one that worked best: autocomplete-python. There is some setup required. Here’s how I […]

Installing SABnzbd on the Synology DS416j

I just got my Synology DS416j and it’s awesome. The bummer is that the package source at SynoCommunity don’t work with it. In short, the SynoCommunity packages doesn’t work because they’re compiled in a way that the new DS416j doesn’t support (more info here). Luckily, Cambier has recompiled a handful of these packages in a way that can be read without […]

Departing for: South America

Ten years ago I got it into my head that I really, really wanted to go to South America. Three years ago I got close to going, but ended up spending my money on food and rent instead. Tomorrow, I’m finally doing it. I’m spending 2 weeks in Argentina, and about a week in Uruguay. The only solid plan […]

PyCharm Not Starting Django/Flask App

This problem has plagued me for months now. One day, PyCharm boots up my app fine. The next it gives the following error: Traceback (most recent call last): File “/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py”, line 2, in from __future__ import nested_scopes # Jython 2.1 support ImportError: No module named __future__ The only fix I’ve been able to find is: […]

Integrating Mixpanel into a Swift iOS Project

Mixpanel is a great service, but their iOS Integration page doesn’t even mention the word swift, let alone how to get it integrated into a new project. There are a few resources on how to get Swift and Objective-C to work together, but it seems really cumbersome and annoying. Finally, I came across this gist by Sam Soffes. It’s very basic, but […]

Building your iOS app for use in the Appium GUI

Appium seems to be the best option out there for functionally testing your iOS apps. However, there doesn’t seem to be great documentation on how to get your iOS app built and ready to be used with Appium. Below are the steps it took for me to get it going: Before We Begin Before we start, […]

Setting up SABnzbd + SickBeard

It took me a long time to figure out the best workflow for my media center setup. After a lot of trial and error, I’ve finally found something that works for me. Step 1: Sign up for a Usenet account You can do your research on which usenet service to sign up for, but I used Astraweb. Once […]

Script to Update a Digital Ocean A Record

I’ve been using a subdomain to point to my home IP address for years now. It’s great, but pretty annoying when my IP address changes randomly. I decided I wanted a bash script to keep my Digital Ocean A Record updated with my external IP. I’ve setup a cronjob on my media server with the […]

Setting Up Continuity on Yosemite & iOS

On Day 1 of the new Continuity features on Yosemite & iOS, it wasn’t very easy for me to find a guide to setting it all up. Here’s one. First: Turn on Bluetooth on iOS & your Mac Some (or all?) of the new features require Bluetooth to be enabled on all of your iDevices […]

Git Branch Tab Complete

Long git branches happen to the best of us. This is a great way to add tab-complete to your git commands – including your branches. For the sake of documentation, here’s a direct copy of the instructions: Download the git-complete.bash Script Run this command to download the git-complete.bash script to your home directory: Update Your Profile: Add this to your ~/.profile: Reload […]

Swift iOS Development From Scratch

Swift is very, very new. As such, there aren’t a lot of tutorials out there for people who have done literally zero iOS development in the past. I’ve only been tinkering around with it for a few days, but there’s not a lot of information out there for starting from zero. Here’s the best way […]

Setting up Django on Mac OS X 10.9

It took me some time to figure out the best way to get Django going on my Mac OS X 10.9. Here is a guide to what I eventually started doing. Setup Python, pip, and virtualenvs Apple has a tendency to change the Python core at-will, so I think it’s best to follow this guide and install […]

My Backup Strategy

I’ve recently become obsessed with obtaining the perfect backup strategy. I’ve previously used Backblaze, but a few things have always prevented me from being fully satisfied. First, you only have 4 weeks to realize you’re missing something. A few months ago I noticed I had fewer pictures in my iPhoto than I used to. I don’t […]