Cats are cute

Blog Posts

Rate your ISP

July 9, 2012 | by Albert O'Connor

ratemyisp

In June a bunch of great people went with me to a cottage for the weekend to create something. It was our 3rd Wilderness Labs adventure. The outcome is pretty awesome.

We built a service to collect simple ISP reviews to help Canadians find their best local ISP. We called it RateMyISP. (Coming up with names might not be our strongest suit.)

The idea came from Open Media's Stop the Meter campaign when more ...

Read More

WatPy: Waterloo Region Python Group

May 29, 2012 | by Albert O'Connor

WatPy

Come hear what the newest tech group in Kitchener-Waterloo has to say at our first Peer 2 Peer event.

Thursday June 7th, 6:30pm at the Communitech Hub.

Featuring Brydon Gilliss and a handfull of lightning speakers.

More Information | Register

WatPy

We started meeting 4 months ago, and so far the response has been awesome. Our focus is building community, teaching Python and talking about the language we all like a heck of a lot ...

Read More

Export to CSV using the Django ORM

May 17, 2012 | by Albert O'Connor

Django apps tend to be pretty data heavy. One common task is exporting sets of data to csv (comma separated values), a plain text file which can be loaded up in a spreadsheet and manipulated further. The first thing to do is make sure you know about the Python csv library.

If you are exporting all of you data with respect to one model, here is a quick way to do it and keep your ...

Read More

Using jQuery to sum the values in a table column

May 9, 2012 | by Albert O'Connor

Here is some neat jQuery based off of this post [naspinski.net] that lets you sum up the values in a HTML table.

In general I would definitely use a different, usually database centric, approach to summing values. On the page I am currently working on though, there are going to be over 10 tables which are only useful with sums. As it is I am going to be doing many queries for this page ...

Read More

Django 1.4 admin image issues with S3 backed static files

April 23, 2012 | by Albert O'Connor

This is going to be kind of obscure, but hopefully it helps someone.

My current default setup for using S3 backed static files for Django broke when I upgraded to 1.4. The affect was that the admin media paths had been URL encoded so "/" was replaced with "%2F".

https://s3.amazonaws.com/bucket_name/admin%2Fcss%2Fbase.css

This caused images referenced in the css to fail because relative paths were interpreted (in Chrome at ...

Read More