Blog / Tech

Loading initial data for your Django app using fixtures and South

November 13, 2013

I’ve been thinking about deployment for my app these last few days and one of the things I needed to be able to do is automatically load initial data to one of the tables. If you’re already using South (which you should be unless you have a very, very simple project), you can easily include this in a data migration by loading in a fixture.

You can accomplish this in a few simple steps:

1. …

Django 1.5 with Twitter Bootstrap 3

November 5, 2013

I finally decided to redo an old Django project of mine, GlucoseTracker, a web application for tracking blood sugar levels mainly for people with diabetes (I’ve been Type 1 diabetic since I was 13), using the latest version of Django and Twitter Bootstrap. I originally started this project to teach myself Django but I lost interest at some point and pretty much abandoned it.

That was over 2 years ago. Now, with more …

How to prevent your Linux server from crashing due to php5 ‘oom-killer’ (out of memory) errors

October 29, 2013

I’ve been running this WordPress blog on a Rackspace VPS for a few years now and at one point over 2 years ago, my server running Ubuntu 10.04 would crash from time to time, usually after I publish a new post. The server would run out of memory, which would then use the swap. The swap would run out as well, causing the server to be unresponsive. I had to do a hard reboot of …

How to continuously monitor your Wi-Fi’s signal strength in Ubuntu

October 1, 2013

I was staying at an apartment last night that didn’t have its own Wi-Fi so I had to borrow from a neighbor. However, the signal was very weak and I had to find just the right spot in my apartment to get a decent connection.

Ubuntu has a utility called iwconfig that lets you view your wireless connection’s signal strength. Typing in‘iwconfig wlan0’ (where ‘wlan0’ is the interface name) in a shell would return …

Writing Android apps in Python with the Kivy library

September 9, 2013

Being able to write Android apps in Python sounded very appealing to me so I decided to try out Kivy, a Python library that lets you do just that.

Kivy actually allows you to run your Python app not just on Android, but on other platforms as well such as IOS, Linux, Windows, and Mac OSX. So it’s also a good option for writing desktop applications. The project seems to be very active and …