Category Archives: programming

Python 3000

Python 3000 (aka Python v3.0) has just been released! Grab your source tarballs whilst they’re hot!

Posted in programming | Tagged | Leave a comment

Growing a Language

I was recently pointed at a talk given by Guy Steele (who, amongst other things, co-invented Scheme), given at the 1998 OOPSLA Conference, entitled Growing a Language. In it, he talks about the need for Java to add features that … Continue reading

Posted in programming | Tagged , | Leave a comment

Fun with Sockets

Whilst doing some coding today for my semester research project I found a need to check for incoming data on a socket without taking any data out of the stream. Here’s the code I came up with: cp.sock.setblocking(False) try: cp.sock.recv(0) … Continue reading

Posted in programming | Tagged , | 2 Comments

ICPC 2008 Final Results

The 2008 ACM South Pacific Programming Contest Results have been confirmed: my team’s come 3rd overall (as expected). We find out whether or not we’ve achieved a wild card position in the World Finals in December.

Posted in programming | Tagged , , , | 3 Comments

ICPC 2008 (huge success)

The ACM ICPC South Pacific Region was on yesterday, and was great fun (as usual). My team this year, the Mehffort Musketeers consisted of Alex Berry (who’ll be competing in the Google Code Jam regionals soon as well), Michael Ford … Continue reading

Posted in programming | Tagged , , | 1 Comment

Google Code Jam

Just a friendly reminder to you all that Google Code Jam 2008‘s qualifying round opens today. Code Jam is an individual programming competition, which lets you compete with a number of languages. Qualifying opens at 9AM Australian time, and you … Continue reading

Posted in programming | Tagged , , | Leave a comment

LCA2009: Python Miniconf Proposal

I just posted the following announcement of my proposal for a Python Miniconf to be held at linux.conf.au 2009 to Australian Python mailing lists. I’m posting it here in case anyone has missed it: Linux.conf.au 2009 is to be held … Continue reading

Posted in programming | Tagged , , , | Leave a comment

Case-insensitive String Replacement (in Python)

One feature that Python’s built-in string replacement facilities does not provide is case-insensitive string replacement. This is a reasonably useful construct (that I use fairly frequently in other languages, such as PHP), which I couldn’t find code for after Googling … Continue reading

Posted in programming | Tagged , | 3 Comments

Python Ugliness

UPDATED: The code I posted initially had a slight bug in it, this has since been fixed. There is another bug in this code, which is addressed at the end of the post. This is part two in a continuing … Continue reading

Posted in programming | Tagged | 2 Comments

Python Prettiness

Whilst in Melbourne, and on the recommendation of Anthony Baxter (current Python release manager) I picked up a copy of O’Reilly’s Python Cookbook, it’s certainly a worthwhile read. In it, I found the most beautiful piece of Python code I’ve … Continue reading

Posted in programming | Tagged | Leave a comment