Dustin Davis
Developer, Entrepreneur
Category: Programming & Internet

Last week as I was driving to a user group meeting, I listed to a podcast episode. The subject was managing email. Since then I have cleaned up my inbox and I have been at inbox zero or close to it all week. Between my 5 email accounts I have 1 message in my inbox […]

The pluralize filter is great for humanizing text in templates. But what if you want to use the same function inside of your python code. For example, let\’s say you are sending back a message via ajax. It is simple enough to make use of the same pluralize filter function in your python code: Testing […]

We just moved into a new house about a month ago. This is actually the second time we have built. I had forgot how much work a new home is. There is so much to be done. One big project we need done is landscaping the backyard.  Since we have pretty much run out of […]

My junior year of high school I took a calculus class from the local college extension. I happened to get a nice Casio calculator (circa 1994) that allowed me to write programs. Since I didn’t really have a computer, this was my first experience programming. Each time we learned a new algorithm, I would figure […]

Lately I was getting this error frequently as I was using Django’s built in cache_page decorator to cache some views. memcache in check_key MemcachedKeyLengthError: Key length is > 250 Basically the problem is that Memcached only allows a 250 char key and some of my view names were pretty long and so it was creating […]

Even after coding in Python for the past five years I’ve never really considered myself an expert in the language because I find the more I know, the more I know I don’t know. I generally keep my code simple on purpose until I have a good reason to be complex – which for most […]

A friend pointed me to this simple yet humorous website yesterday which essentially gives a new lazy coder excuse whenever the page is refreshed. I couldn’t help but whip out a bot to plug in to our IRC channel. My lazy coder bot will give a random excuse whenever someone mentions the word “why”. I […]

I’m not afraid to admit, I’m a visual guy. I like GUI interfaces. Sequel Pro makes it very easy to SSH tunnel into a server and connect to MySQL, but there is nothing I have found built into pgAdmin3 to use SSH tunneling for connections. Luckily I found it is simple enough to do. First, […]

Have you ever wanted to give your model some month choices relating to integers 1-12. I would guess it’s pretty common – common enough to be included in django.contrib. Well, it is. Here is a quick tip on how to include it in a model:

Disclaimer: I am not a sysadmin. I’m just a developer. I welcome and encourage comments to improve this process! I have set up a couple of Django servers lately and taken copious notes that I have extracted from various sources. Below are the commands I issue to a fresh Ubuntu server install to get Django […]