Archive for March, 2007

Use the power of Max OSX and Ruby to protect you from the threat of terrorism

Tuesday, March 20th, 2007

I just heard about Geek Tool, a nice little app for Mac OS X that will output a local text file, standard out or a local or remote web page onto your desktop. Its kind of like Conky on acid. So what have I done with the world of possibilities that this app presents and my all too short lunch hour? See for yourself:


Click to see a full screen version

I have a few windows that output some shell commands, then two images that Geek Tool grabs from the web, one of the left from BlairClock, which counts down the days until Blair’s expected leaving date and another from OSM’s image of the week. The saving you from terrorism bit comes next. I grabbed a feed from the Terror Alert website, ran it through a ruby script that outputs to stdout and bingo! Live terrorist information on my desktop. Now all I need is for the guys at Terror Alert to update their feed and I will be safe from the threat of International Terrorism.

(If anyone can suggest why my script won’t read the dates from the feed when it runs on my Mac, but will on Ubuntu, that would really make my day.)

Singing from up high

Sunday, March 18th, 2007

Songbird is an open source project to develop a cross platform media player to rival proprietary offerings like Apple’s iTunes or… oh well I guess iTunes is the only proprietary media player worth a mention really. The good news is the is now a “developer’s” binary of Songbird 0.2.5 available from here, so you can now have the joy of Songbird without the misery of worrying about C compiler flags. I’ve tested it on Ubuntu and Mac OS X (Intel):

One of the cool things about songbird is its seamless integration with network resources – once point it at the URL of a site that has MP3s (or almost any other audio format imaginable) on it, you can easily subscribe to podcasts and feeds and effortlessly drag and drop remote media into your library. A short but comprehinsive screencast will tell you everything you need to get going. If you listen to music on your computer, check out songbird.

Money != Food

Friday, March 16th, 2007

This morning’s news that UK households throw away one third of the food that they purchase has been met with commentary about “wasting” food and money. It does not follow that an individual who throws away food wastes more money than a person who does not throw away food. First off, in all but the rarest of occasions in western society, foodstuffs loose their market value once they are purchased from the retailer (I once sold some dog food on ebay, but this in an edge case). Next, there is an assumption that if someone does not throw away food, they must spend less money than someone who does throw food away. This position fails to take into account numerous factors – the travel costs and time costs associated with making frequent shopping trips – that if counted will help to level the balance sheet. Finally, can we not simply conclude that people who throw away food place a higher value on factors other than food waste (mininising the time they spend in supermarkets for example)?

The real issue here is the burden of Local and National Governments to remove the waste. So why not charge people per kilo of rubbish discarded, incentivising the individual to produce less waste, rather than continually blaming the mysterious corporations and misleading people into believing they can accumulate more of the paper stuff by throwing less food away?

Web Cartography Just Took a Step Forward

Thursday, March 15th, 2007

I’m going to jump on the band waggon and say thanks to OSM’s Cartography Crew, who slogged it out before the Oxford meet up a couple of weeks ago and have re-vamped OSM’s cartography. The map tile show belown is produced using the Mapnik rendering engine – an open source (LGPL) GIS library that makes boring databases fun colourful. The downside of Mapnik is the 873 lines (and growing) of XML needed to produce the map. Hacking this level of config isn’t that much fun, so thanks again to those who took the time to work on it.


Central London, as seen in the OSM Slippy Map

If cartography like this isn’t enough to get you going, just think how far we’ve come. When I first found OSM a year ago, the map looked like this:


OSM – One year ago

So now we have Open geo-data that in certain areas rivals the completeness and even the existence of proprietary data. With this data, we can use a Free software library to make maps that look better than most of the other maps you see on the internet. Maybe there’s something in the whole ‘open’ thing then after all?

You want contours? We do contours too:

Produced by Robert Hart using Osmarender

Mapping the Isle of Man

Thursday, March 1st, 2007

A few weeks ago, I got in touch with Robert Clynes from the Isle of Man Department for Local Government and the Environment, the Department with responsibility for GI on the Island. My request was simple: are you interested interested in helping out OpenStreetMap? The response was equally simple too – yes, they were. I little while later, Robert sent me this GeoTIFF of the Isle of Man, that OSM have been given permission to derive data from.

Kristian Thy form OSM, put the image onto a WMS server that he runs, and now the map is available as a WMS layer. From here, we can import the layer into JOSM, using Chippy’s WMS plugin, using this WMS URL:

http://quovadis.dk/cgi-bin/man.cgi?SERVICE=WMS&
VERSION=1.1.1&REQUEST=GetMap&layers=man&srs=EPSG:4326
&format=image/png

The results look like this:


The north of the Island being edited in JOSM


St Johns – in the centre of the Island

One of the first things I noticed was how nearly-complete the mapping of the Isle of Man is. Looking at OpenStreetMap data of the Island, I had estimated that about 60% of the roads were mapped. Validation is a major problem when collecting geo-data. How do you know that you know where something is? Who do you trust to tell you where it is? OSM has an additional problem that in that its completeness, in the UK at least, is measured against the benchmark of the Ordnance Survey. A public admission by an OSM contributor to using Ordnance Survey data to verify their mapping could open up a whole can of nasty worms and threaten the future of the project. Of course comparing OSM data to OS data would not necesserily breach any OS copyrights – but any attempt to do so would have to exercise a lot of caution. In this case however, we are able to both compare and trace from a map that is derived from a the Isle of Man’s master data set. Why is this so?

As a self governing nation, the Isle of Man is responsible for its own mapping. In the past this has largely been carried out by the Ordnance Survery who are contracted by the Manx Government, who retain copyright of the map data produced. See here for more details. The licensing is pretty reasonable, and most importantly the details are contained in a few PDFs on one webpage. The standard license wouldn’t usually allow someone like OSM to apply its CC-by-SA license on derivatives of their data, but in this instance we have been given special permission to use the data. I’m going to try and get the entirity of the map traced by the end of the weekend – happily coinciding with the OSM Carto Day in Oxford, which should lead to some beatifully rendered Mapnik tiles of the Island.