Muffinresearch Labs by Stuart Colville

EU Hackday 5: Django and Python FTW | Comments (2)

Posted in Code, Work on 10th February 2008, 1:44 am by Stuart

Last Thursday, James Broad, Cyril Doussin, Andrew Phillipo and myself started out on the fifth internal hackday at Yahoo! headquarters in London. James had come up with an awesome idea which was to build a tool for sharing code and techniques internally.

To make our lives easier I wanted to use Django as I’ve been really enjoying using it for a few personal bits and pieces and I thought it would also make it possible to get much more done in the time. Spending 24 hours working with Django and building a fully working site was not only fun but proved how solid and well thought out the framework is. All of the features we had decided on up front were pretty straightforward to implement and get working straight-away. We even managed to start working on some of our wish-list before the time was up.

Another thing about this hack was that we were using mod_wsgi with Apache. Now I’ve used mod_python before but mod_wsgi really is the way to go if you are doing anything with Python and Apache. Setting it up is very straightforward and the documentation is first rate so I’d not hesitate to recommend it.

After the 24 hours were up James gave a 2 minute presentation on our hack and did a fine job of showing off that it was a fully working site and wowing everyone with his kick-ass graphical design-fu. Some of the other hacks displayed were stunning in terms of being not only great ideas and technically awesome. We thought we didn’t stand a chance.

After the judges deliberated, they came back and announced the winners. To our surprise our hack was awarded “Best hack for Quality” and everyone was really chuffed. This was certainly the icing on the cake for myself and Cyril after having had 24 hours of unrestricted time to play with Django and our favourite programming language! Python is certainly not something that we generally use at Yahoo! and I’d personally love be able to use it more where it makes sense to do so.

Now I’m going to have endless fun annoying people around the office with my remote control blimp Darth Vader Transformer that I took as a prize.

Post Tools

Comments: Add yours

1. On February 12th, 2008 at 9:25 pm Isofarro said:

Your code snippets hack was one of two hacks that really stood apart from everyone else. Your hack in particular was so much better than the one that won Best in Show.

Nicely done. Glad you got to spend some time with real web development tools!

2. On February 13th, 2008 at 9:39 am Stuart Colville said:

@Isofarro: thanks Mike!







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(2)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.513s.