PyCon AU 2012 sprints

The last two days of PyCon AU were devoted to sprints.

PyCon AU 2012 sprints

There were active sprints for CPython, Django, Zookeepr, Requests, Persona, and various other projects. There were about seventy people on the Monday, and forty on the Tuesday.

PyCon AU 2012 sprints

Chris N described the Wrest Point Casino as a “Frankenstein” building, which is a good description of how different parts of the casino have been tacked onto the original 1930’s hotel over the last six decades. The conference was based in the old hotel, which has some beautiful art deco rooms. The sprints happened in the Derwent Room, which happened to have a very nice fireplace.

PyCon AU 2012 sprints

Cunningly, there were no power points near the fire place, so you coded there for as long as your battery allowed…

Posted in Python | Comments Off on PyCon AU 2012 sprints

PyCon AU 2012 highlights

PyCon AU 2012 was held this last weekend (Aug 18 – 19) in beautiful Hobart. Here are some of my highlights…

There were two great keynotes by Mark Ramm and Kenneth Reitz.

Mark Ramm's keynote at PyCon AU 2012

Mark Ramm’s keynote

The biggest problem of PyCon AU? Too many good talks on at the same time! Apologies to the various friends whose talks I didn’t get to. Maybe next year? That combined with running three hours of tutorials across the two days meant I didn’t end up seeing as many talks as I wanted, but I did get to the following talks:

Quote of the conference?

>>> True = False
>>> True == False
True
Peter Lovett's talk on Python's dark corners

Peter Lovett visiting Python’s dark corners

As always, I walked away with a long list of new tools, libraries and web sites to check out: MyTardis, Python Guide, Sikuli, R-Tree and a bunch of web tools: fabric, diazo, gunicorn, nginx, daemontools, celery, memcached, stathat.

There was a fantastic collection of inspiring, interesting and amusing lightning talks at the end of each, including talks on dancing robots, automating logins to banking web sites, Sikuli (again) and Python 3.3 highlights.

Another highlight was the cruise down the Derwent River to Peppermint Bay to the (yummy) conference dinner.

Conference dinner cruise

Derwent River cruise

Conference dinner menu at Peppermint Bay

Conference dinner menu

There were lots of other highlights: the conference was very well run, good food, lots of interesting chats in the corridors and between talks, and the early morning runs with conference people.

The view from the conference at dusk

The view from the conference at dusk

And finally: excellent “African Swallow” coffee from Ritual Coffee in Launceston — thanks for the top-notch strong flat whites and the business card: I never realised that “Bean Shepherd” was a profession!

It’s now on to two days of sprints.

Posted in Python | Comments Off on PyCon AU 2012 highlights

CodeWars at PyCon AU 2012

PyCon AU started this year with CodeWars on the Friday night.

The elimination round saw teams starting with a link to an EXE file that led to a puzzle of missing prime numbers. The first four teams with the correct answer went on to the semi-finals.

CodeWars warm-up

CodeWars warm-up

Recovering messages from PPM images, finding secret phrases, helping Olympic athletes take their drugs… it was a varied night of coding challenges.

CodeWars semi-final 1

CodeWars semi-final 1

CodeWars semi-final 2

CodeWars semi-final 2

The final code-down was between the Free Software Melbourne team and the “My Little Pony” team (I think that was the team name… it was late, there was wine, but I swear they called themselves “My Little Pony”).

The Free Software Melbourne team in action

The Free Software Melbourne team in action

My Little Pony was victorious in a battle of wits, wit, coding and an amusing Django app that almost worked.

Posted in Python | Comments Off on CodeWars at PyCon AU 2012

PyCon Australia 2012 – tutorial #2 notes

The second of my PyCon AU 2012 conference tutorials is entitled Processing data with Python, using standard library modules you (probably) never knew about.

Here are the tutorial notes and the source code (as a ZIP archive).

Posted in Python, Talks | Comments Off on PyCon Australia 2012 – tutorial #2 notes

PyCon Australia 2012 – tutorial #1 notes

I am giving two tutorials at PyCon AU 2012 this weekend.

The first tutorial is titled How to write a well-behaved Python command line application.

Here are the tutorial notes and the source code (as a ZIP archive).

Posted in Python, Talks | Comments Off on PyCon Australia 2012 – tutorial #1 notes

Notes from MPUG, August 2012

These are my notes from the August 2012 Melbourne Python Users Group meeting at Inspire 9.

Andrew Walker (DSTO), Daniel Cousens (Swinburne) – “A grab bag of Pythonic computational geometry code”

Andrew and Daniel gave a tag-team test run of their talk for PyCon AU 2012.

Lots of meaty computational goodness, with plenty of interesting examples, including
numpy,
CGAL,
MayaVi,
and scipy.

On my (ever growing) to-do list is to check out
scipy.weave, which allows you to access C++ code within Python.

Other discussions…

Richard gave an overview of the PyCon AU conference this month.

Loki from Gravity4 discussed Fruit vs Robot which is due for release soon, and the joys of supporting hundreds of thousands of network connections with gevent.

Posted in Python | Comments Off on Notes from MPUG, August 2012

Mudbath of the month

The second of the Salomon trail running series was held last Sunday at Plenty Gorge.

When Richard (the master home brewer) announced that his 50th birthday party was going to be on the night before, it was always going to be an ugly race!

I had entered the long course, which had two river crossings. Over the previous week, the updates on the river level went from ankle deep to knee then thigh deep. So with the rain still falling on the Saturday, it was no surprise to get an SMS at the party from the organisers advising that the river was now fast flowing at chest height, so the course was changing to two laps of the short course (total 13.4km) with no river crossings.

When we arrived in the morning (after 5 hours of sleep, more than slightly hungover), we knew we were in for fun, with cars getting seriously bogged in the car park. That did not bode well for conditions out on the trail!

Sure enough, it was an absolute mudbath. With two laps of the course and 1100 runners doing the two courses, it made for an exciting, scary and very very very dirty race. Combined with steep descents and ascents, lots of spills and some tight trails above the gorge, it was a spectacular run.

I played it safe and ran a slow 1:22 time, which is probably the slowest 13.4km I have ever run, but it was a great, technical run and I finished intact and only had a couple of kilos of mud stuck to me.

Plenty Gorge trail run finish

Lesson of the day: there’s a reason why people run courses like this with trail running shoes!!!
Highlight of the day: how well the organisers handled the rain, the mud, the river and ensuing chaos
Lowlight of the day: the woman who broke an ankle on one of the descents

Posted in Running | Comments Off on Mudbath of the month

Notes from MPUG, July 2012

These are my notes from the July 2012 Melbourne Python Users Group meeting at Inspire 9.

Bianca Gibson – Blender games using Python

Bianca demoed Whirlstrom, a game written in 48 hours, as part of the Global Game Jam competition.
The game uses Python scripting within Blender, with the logic and workflow defined by “bricks“.

Javier Candeira – OAuth: why, what & how (authorization and authentication with oauth and duct tape)

Javier gave an overview of OAuth, which is for robots; it’s like OpenID, but for authorisation not just authentication; summarised in the OAuth authentication flow diagram.

Javier gave a live demo of the rauth library.

Chai Ang – Getting started with Jython

Jython is at version 2.7alpha2 (30 May), but the stable version is still v2.5 and there was no v2.6.

It’s a good glue language for Java library code, and Chai showed examples from JDBC and Swing.

Jython is used by BEA Weblogic, IBM Websphere and more…

Jython is really only useful when you need to use Java libraries; eg using the (bettter?) Java XML libraries or deploying django inside JBoxss (for ease of distribution).

Graeme Cross – Command line argument processing showdown: a battle between four different ways in the standard library and also some PyPI modules

I gave a talk based on some of the prep work for one of my PyCon AU 2012 talks. If I pull my finger out, I might actually get around to posting the talk here! 🙂

Also:

Posted in Python | Comments Off on Notes from MPUG, July 2012

Run Melbourne half-marathon

Run Melbourne was on 15 July, with 5km, 10km and half marathon courses.

The aim, after rolling my ankle in early June, was a sub-1:45 half marathon. With my recovery progressing well, I thought that was realistic.

The weather was perfect and 26,000 people turned up. The course was crowded with a very slow start as we shuffled down St Kilda Rd, so it was never going to be a day for a PB.

Result? 1:44:02.

Couldn’t be happier. Sub-1:40 is definitely in sight for the next half.

Posted in Running | Comments Off on Run Melbourne half-marathon

Notes from MPUG, June 2012

These are my notes from the Melbourne Python Users Group meeting this month at Inspire 9. Any errors are 99% likely to be mine in the transcribing or the understanding, rather than the speaker’s.

Tennessee Leeuwenburg – Udacity and Coursera: online courses

  • Online tertiary-level courses, spun out of places like Stanford,  subjects cover computer science, science, statistics, etc
  • Udacity
    • Courses are 7 weeks long, ~ 10 courses on offer, less than Coursera
    • Perhaps “friendlier” than Coursera, more “cool”?
    • Tennessee has done the AI course; loved it
  • Coursera
    • Stanford, UPenn, Princeton, etc
    • Getting 100% “is the new pass”
    • Has a wider range of non-CS courses
  • Courses start on designated dates, rather than on-demand
  • 60 – 90 minutes of video per week? and 1 – 5 hours of work per week

Ed Schofield – What’s new in Python 3.3

  • A straw poll of the room showed that, out of well over 20 people, no-one has done serious work with Python 3!
  • Python 3.3 is in alpha at moment, aiming for a 25 Aug 2012 release date
  • Some key changes:
    • Unicode: u'Hello' is back: PEP 414, helps with porting from Python 2
    • Space efficient Unicode: PEP 393
    • New packaging module: deprecates distutils, replaces pip, distutil2, etc
    • venv module: virtualenv-like support
    • lzma – new, compression algorithm
    • decimal module: faster, rewritten in C
    • bz2: rewritten, more flexible
    • mock: Mock objects for testing; now in the standard library
    • os module: lots of POSIX fixes
    • OSError: PEP 3151
    • Finer granularity in exceptions, with lots of subclassed exceptions
  • Read the “what’s new in 3.3” release notes
  • Significant libraries and their Python 3 compatibility status:
    • Django 1.5 is due in spring 2012 with experimental Python 3.3 support
    • Numpy supports Python 3 (has since v.1.5.0, Aug 2010)
    • matplotlib-py3k branch on GitHub, ported late 2011
  • Plenty of hold-outs: boto, Fabric, South, gunicorn, Werkzeug, oauthlib, Flask & Jinja…
  • The Who’s on Python 3? website tracks the top 50 Python projects and their Python 3 compatibility
  • “6” – compatibility library for Python 2 and Python 3

Rhyd Olwin – Python in a hostile environment

  • 550 users, but outside of IT, there are only 4 developers & no dev culture or environment
  • How do you develop in a Windows shop with locked down PCs and no admin privileges?
  • No exe’s can be downloaded/installed, but can use setup.py to download source code and build

Richard Jones – LightTable

  • Different paradigm for IDE/coding
  • On Kickstarter, has funded Python support as well as Clojure and SQL
  • Have a look halfway through the promo video at the Flask demo

The next meeting is July 2 at 6pm.

Posted in Python | Comments Off on Notes from MPUG, June 2012