Push and delete remote git branches

This is easy to do, but I always forget how to do it, so this is more a reminder to myself than anything else. To create and checkout a branch in git : ...

March 17, 2010 · 1 min · Dave Perrett

Compiling and running red5 flash server on OSX

First, you need to make sure you are using java 1.6. I’m told this method will only work on 64-bit leopard machines, so your mileage may vary. In the finder, browse to /Applications/Utilities and open Java Preferences.app . ...

March 16, 2010 · 2 min · Dave Perrett

Compiling Nginx with flv streaming support on Ubuntu

First, we need to get the latest version of nginx : > wget http://nginx.org/download/nginx-0.8.34.tar.gz > tar xvzf nginx-0.8.34.tar.gz > cd nginx-0.8.34 Next, configure it to support ssl, gzip, flv streaming and real-ip. I generally compile it to /opt/nginx-YYMMDD (change the –prefix setting if you want to put it somewhere else) : ...

March 16, 2010 · 3 min · Dave Perrett

Installing Flex 4 (Gumbo) SDK on OS X

...

March 14, 2010 · 1 min · Dave Perrett

Installing git-up on Ubuntu 8.10

Recently I had a bit of trouble getting {{ “github.com/aanand/git-up” | ext_link: “git-up”}} to work on Ubuntu (or anywhere else for that matter), so here’s some of the steps I had to go through. Initially ubuntu seems to have RubyGems 1.01 and 1.2.0 installed : > gem --version 1.2.0 >/usr/bin/gem1.8 --version 1.2.0 >/usr/bin/gem1.9 --version 1.0.1 ...

February 14, 2010 · 2 min · Dave Perrett

Updating RubyGems on Mac OS X 10.5 Leopard

I haven’t used ruby for a while, but recently wanted to try out {{ “github.com/aanand/git-up” | ext_link: “git-up”}} on OSX. According to the {{ “github.com/aanand/git-up/blob/master/README.md” | ext_link: “instructions”}}, a simple gem install git-up should work : > sudo gem install git-up Updating metadata for 1 gems from http://gems.rubyforge.org . complete ERROR: could not find git-up locally or in a repository I assume this is something to do with gem hosting moving to github or something… I haven’t really been following ruby for a year or so so I’m not sure exactly what’s going on. It seems i’m running a pretty old version of RubyGems, so I tried to update : ...

February 14, 2010 · 2 min · Dave Perrett

nginx error - 413 Request Entity Too Large

If you’re getting 413 Request Entity Too Large errors trying to upload with {{ “nginx.net/” | ext_link: “Nginx”}}, you need to increase the size limit in nginx.conf . Add ‘client_max_body_size xxM’ inside the server section, where xx is the size (in megabytes) that you want to allow. http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { client_max_body_size 20M; listen 80; server_name localhost; # Main location location / { proxy_pass http://127....

November 18, 2009 · 1 min · Dave Perrett

Makefile - missing separator. Stop.

If you’re getting missing separator errors in your makefile, similar to the following : Makefile:22: *** missing separator. Stop. … make sure you are using real tabs instead of spaces. A global search and replace for four-spaces should fix things up.

November 12, 2009 · 1 min · Dave Perrett

NoReverseMatch : custom registration templates break django unit tests

I’ve over-ridden several of the built-in django auth and {{ “bitbucket.org/ubernostrum/django-registration/” | ext_link: “django-registration”}} templates so I can have my own custom-styled login and registration pages. This all worked fine until i tried to run the built-in django and django_registration test suites, when everything fell apart : ...

November 10, 2009 · 3 min · Dave Perrett

Sending Django email with Gmail

After spending a few hours struggling to get postfix to work with django on my local dev machine, I gave up and decided to use Gmail . To do it, add the following to your settings.py : ...

October 16, 2009 · 1 min · Dave Perrett