Sphinx is a great tool for documenting Python programs (and lots of other things – I recently saw a lecturer who had done all of his lecture notes using Sphinx!) and I’ve used it for my new project (which will be announced on this blog in the next few days). Now that the project is […]
In a project recently I was struggling to find a way to parse strings that contain a date range, for example: 27th-29th June 2010 Tuesday 29 May -> Sat 2 June 2012 From 27th to 29th March 1999 None of the Python modules I investigated (including parsedatetime) seemed to be able to cope with the […]
In my field I often need to plot polar contour plots, and generally plotting tools don’t make this easy. In fact, I think I could rate every single graphing/plotting package in the world by the ease of producing a polar contour plot – and most would fail entirely! Still, I have managed to find a […]
In 1854 there was a massive cholera outbreak in Soho, London – in three days over 120 people died from the disease. Famously, John Snow plotted the locations of the deaths on a map and found they clustered around a pump in Broad Street – he suggested that the pump be taken out of service […]
This problem is known by various names such as: Ctrl-Space doesn’t do anything in Eclipse! Why can’t I get auto-complete to work properly in Eclipse? I’ve just set up a new University computer and things don’t work like they do on my laptop (maybe that one’s just me…) It’s actually very simple to solve, but […]
If you are creating maps then for goodness sake Use sensible colours! I was helping some undergraduates with some work the other day, and they decided to use the following colour scheme for representing river depth: Deep water: Red Medium-depth water: Bright green Shallow water: Pink Why did they do this? Well, either they were […]
I’ve just discovered something that I feel I must share here – partly to make more people aware of it, and partly so I don’t forget it. In the IDL programming language you will sometimes find your program interrupted by a line saying something like: % Program caused arithmetic error: Floating divide by 0 Sometimes […]
If you use Python you should use iPython. If you use iPython, particularly if you do work with matplotlib or with parallel programming, you should use the latest release. It. Is. Great. For those who don’t know, iPython is a replacement console for Python that offers many improvements over the standard console. For example, everything […]
I have recently discovered PyDev – a Python IDE which runs within Eclipse. Although I’d given up on big all-singing, all-dancing IDEs a few years ago I’m really liking it. The Ctrl-Space completion is very handy, as are the number of refactorings that are available from the menus. Anyway, I use the Enthought Python Distribution […]
When clearing out some of my old programming books the other day I realised how far I’d come with programming over the years, and the number of different technologies that I have used over time. I thought I’d do a little summary post going from first programming experience to now – and it’s amazing what’s […]