Brad's Blog

web dev, django, running, food, or whatever

Published: 2012-10-28

Thoughts on PyArkansas

awesome community conference pyarkansas python

I make a decent effort to keep up with what's happening in the Python comunity, but—gosh darnit—it's hard! I think that's why conferences exist. They give you a day or two to focus solely on meeting people and catching up with what's going on in the community. I particularly like the smaller, regional events like the one I attended this weekend: PyArkansas. Here's a few reasons why: Cost: Smaller, regional conferences tend to ...

Published: 2012-09-26

Django Models & Mixins for cleaner code

django mixins programming python

I've been using Mixins lately to DRY-ly make certain behavior available to several different Django models. If you're not familiar with mixins, there's a great discussion over on StackOverflow. Here's a simple example to illustrate what I've been doing. In building Work for Pie, we've got a UserProfile model that looks something like this: class UserProfile(models.Model): user = models.OneToOneField(User) tagline = models.CharField(max_length=140) biography = models.TextField() avatar_url = models.URLField(max_length ...

Published: 2012-09-25

Fixing Bugs.

fun programming

Published: 2012-09-20

A Vision of the Future

fiction fightthefuture fun law patents

The year is 2213. The US has extended the term for patents from 20 to 100 years, and passed legislation granting greater powers to patent holders. Additionally, the richest nations of the world have organized the The World Patent Protection Agency (or WPPA). The WPPA consists of a judicial committee that has far-reaching powers to protect patents across national borders. This is accomplished through the levying of hefty fines and possible embargoes for nations that do not comply with their ...

Published: 2012-08-27

A scenario for the future.

fiction fightthefuture fun

Just jotting down a thought I had during my commute this morning... A large, multi-national corporation essentially has a monopoly on the seeds of a plant that's used as the world's major food source. It just so happens that they've also got a patent on a genetically modified version of this seed, which is the version of the seed that gets distributed to farmers.The corporation can detect their patented genes in any of the food grown ...

Published: 2012-07-02

planning julython

A few days ago I saw @jtauber tweet something about julython. Essentially it's a game that encourages you give a pet python project a little extra love during the month of July. For me (and probably several others), this is a little push to spend some time on projects that otherwise get neglected because there are more pressing things to do. So, without further ado, here's what I'd like to accomplish this month (in order of importance ...

Published: 2012-06-11

Building a Happy Potty

ios javascript mobile web

This past weekend, I particpated in Memphis's 48 Hour Launch. It's a weekend-long event where anyone can pitch a business or app idea on a Friday night, try to get enough people to buy into the idea, and form your team. Then, you spend the weekend building something, and on Sunday you get a chance to showcase what you've accomplished. I was fortunate enough to team up with a few friends (and some new ones!) to build ...

Published: 2012-04-16

Easy Custom Vagrant Packages

chef linux vagrant virtualbox

I've been using Vagrant quite a bit lately, and one of the nice things you can do with it is to define your own package. This makes it easy to share your VMs with others. It's also nice to have the same stuff installed on every VM that you create! So, here's how you create a package. To do this, you'll need to Install VirtualBox and Vagrant. (At the time of writing, I'm using VirtualBox ...

Published: 2012-03-10

Running with Zombies.

fun iphone running zombies

I picked up the Zombies, Run! app today, and I'm pretty excited about it. If you haven't heard about it, check out their video: I've only had one run with the game, but the story felt very well-done, and I really like how they've added an extra element of fun to my run. Of course, I'm a fan of all things "Zombie Apocalypse". If you do pick up a copy, spend some time setting up ...

Published: 2012-03-03

Streaming Replication in PostgreSQL 9.1

database postgresql

Not long ago, I set up synchronous, streaming replication in PostgreSQL 9.1 in order to build a Hot Standby system. This is the story of that journey. This post is mostly based on the 5-minute simple replication tutorial from the PostgreSQL wiki, but with a few modifications and clarifications. There's also lots of good information in the Streaming Replication wiki from the PostgreSQL wiki. For the remainder of this post, assume that you have a Master at 111 ...