Tuesday, 20 December 2011

3's a bit of a silly name for a phone network

Because it's quite hard to Google. Lots of pages contain the digit "3" - especially ones about 3G phone networks.

I've moved into my new flat, but the broadband won't be working until the modem arrives next week (sluggish - but apparently it's a busy time for the Royal Mail). It's £50 for a 3GB pay as you go dongle in Maplin - so I bought one, after asking whether it would work with Windows XP (I've a virtual XP box). 

Youth in shop: "Says so on the box, innit." Well, that's certainly put my mind at rest. Lesson: don't ask anyone in a shop about computers, unless they have a beard. Or are at least old enough to have a beard. But I bought one anyway (a dongle, not a beard), and have spent around 10 hours trying to get it to work.

So just in case this will help any other frustrated Linux users, here's the useful stuff of how to get one of these working (on Xubuntu 10.04):
  1. Spend 5-6 hours trying to get it to work on an XP virtualbox. Make sure you've plenty of swearwords handy - if not, go straight to step 2. 
  2. Install some useful stuff from here - those nice people at Betavine have lots of things to make broadband dongles work on Linux. I got ozerocdoff, usb_modeswitch and vodafone-mobile-connect. I don't know which of these are necessary/sufficient.
  3. Plug in your dongle. If you forget this, it's extremely unlikely that it will work.
  4. With these installed, you should be able to right click on the network icon in the toolbar, go to the "Mobile Broadband" tab and Add, and then your dongle should appear in the dropdown list. 
  5. HERE'S THE DIFFICULT BIT: Through a process of trial and error, inspired guessing and ouija board work, you have to fill in the options. Or copy them from here, where a lovely man/lady has done the hard work for you and posted the results. Here's what my options look like:

  6. Right click on the network icon, enable mobile broadband, and Bob may well be your uncle, or at least your Auntie's favourite lodger - internet on the move. I got a staggering 1.4 Mbps, which is OK for general surfing. 
  7. Marvel at how 3 (or Three, or III or whatever they're called) could provide this information quite easily, but don't.



Monday, 31 October 2011

National Flood Risk Assessment - Free


Following on from my last blog about open data from the ordnance survey, I've been thinking about what we can use all this free stuff for. So how about trying to estimate coastal flood risk for all England, Wales and Scotland?

As any fule kno, you need highly accurate elevation data, locations and types of residential and non-residential properties, effective flood propagation models and information on location and type of flood defences, as well as information on flood water levels from rivers and the sea. National agencies like the Environment Agency and SEPA spend a lot of money gathering this kind of data, and use it to estimate risk at the national scale.

Most of this data isn't available free - but how far can we get with the free data that is available? 

Here's a list of free stuff we can use for estimating flood risk in Great Britain (I can't seem to find equivalent open data for Northern Ireland):

Quantum GIS Excellent open source GIS software.
Spatialite Open source geodatabase for analysis of big data sets.
Postcode Open Point data for postcodes - gives a point for each unit postcode, but not boundary polygons.
Landform Panorama Elevation on a 50m grid. Accuracy is probably around 2-3m.
Estimates of Extreme Sea Conditions - Spatial Analyses for the UK Coast Estimates of extreme water levels - doesn't actually cover NI despite the title.
The cost of the summer 2007 floods Estimates of the damages per property from the 2007 floods.
Flooding in England - a national assessment of flood risk The "official" estimate of national flood risk from the Environment Agency.
Flooding in Wales - a national assessment of flood risk The "official" estimate of national flood risk from the Environment Agency, also available in Welsh.
National Flood Risk Assessment for Scotland Some more "official" figures for Scotland from SEPA.

(I've used "official" in quotes because I don't want to place more trust in these figures just because they come from the appropriate government agency.)

And here's the recipe:
  1. Sample elevation from the Panorama data in QGIS - there's a nifty plugin to do this called "Point Sampling Tool".
  2. Load the postcode data into spatialite. Make life easier by deleting everything over 20m above sea level - we'll assume these will not be at risk from coastal flooding.
  3. Load the Estimates of Extreme Sea Conditions data into spatialite - we get a series of points round the GB coastline, each with data on water levels for extreme event probabilities.
  4. Use spatialite to join each postcode to the nearest sea conditions estimate point.
  5. We now have a set of extreme water levels, and a ground elevation for each postcode. Use these to estimate the probability of flooding, using a log-probability model.
  6. Count the number of properties in appropriate probability bands, by assuming there are roughly 16 properties per unit postcode (the UK has 1.7 million unit postcodes, and 27 million addresses).
  7. Use the probability to estimate the annual average damages, assuming damages of £25k per property if it floods, taken from "The cost of the summer 2007 floods" report.
Locations of extreme water level estimates around the coast of Great Britain. Water levels have been grouped as high (red), medium (orange) or low (green). You can see higher levels in some places where we'd expect them - East Anglia and the Channel. But they're only medium around the Severn Estuary - which has the 2nd highest tidal range in the world. Mmm...
Cook all this up and you get results like the ones shown in the table below, showing how many properties have a probability of flooding greater than 1 in 200. 

 P>0.005 (1 in 200) Number of properties from this analysis "Official" Estimate
England 1.4 million 1.2 million
Wales 100 000 140 000
Scotland 90 000 26 000

If we look at the number of properties at risk, we may have a reasonably good answer (or at least one that roughly agrees with the "official" figures), even using data that's not well suited to flood modelling. But using this technique to estimate annual average damages (if we measure the damages from flooding over many years, and calculate the average per year) gives around £30 billion for England, £2 billion each for Wales and Scotland. The "official" estimate is around £1 billion for England and £200 million for Wales (there are no figures for Scotland). So not so good if we start to think about cost of flooding, rather than the number of properties affected.

Postcode locations in colour coded flood risk bands - a lot of central London has an estimated flood probability of >1 in 75. Fortunately we have the Thames Barrier.
There are some huge gaps in this analysis - things we've ignored, rather than just represented badly. We ignore risk from rivers, the effects of flood defences, and we've assumed all the risk comes from residential properties. My gut feeling is that risk from rivers will roughly double the numbers we've come up with. Flood defences will tend to reduce the risk for properties indicated as flooding more often in this analysis - defences will tend to work for a 1 in 10 probability water level, but are less effective for a 1 in 200 probability event. I think this is why the estimate of annual damages is way too big - there are a lot of postcodes near sea level that are in reality protected by defences, but this analysis would have them flooding every year. Would you be still living in one of these houses? And clearly central London doesn't flood very often - we've got the Thames Barrier to stop that happening.

There are big contributions to the risk from business premises. They can be "hot spots" of risk - a bus garage in Carlisle 2005 and a caravan showroom in Tewkesbury in 2007 were significant contributions to damages. The estimates from the 2007 summer floods indicate that the if non-residential damages were accounted for, this would roughly double the risk.

The error in elevation data is also too big for this kind of application. The difference in water levels between 1 in 10 000 and 1 in 1 (i.e. we see a water level greater than this on average once a year) is as low as 1m in some places, so an error of 2-3m equates to a big error in flood probability.  

But despite the holes, I quite like this result - close enough to the "official" estimate to be interesting, but not suspiciously so. I wonder what would happen if we could get access to flood defence and better elevation data? I also want to look at the social aspects of this - are poorer communities more or less at risk? There's a load of UK Census data available that I want to use to try to answer this question, but first I need a holiday...


Sunday, 25 September 2011

I never thought I'd see this: Open Map Data from the Ordnance Survey


Ordnance Survey have always been quite protective of their data. Whatever the political and economic arguments for and against this, it's not really affected my work, as I've always had access to OS data through working in academic institutions or as a consultant on government agency projects. But what happens now I'm trying to work independently?

Last year OS released a number of free digital map products, and I've only just caught up with them. I've only had a look at two raster products so far - VectorMap District and OS Street View, which have nominal scales of 1:25k and 1:10k. Other products at smaller scales are also available.

OS have "generalised and simplified" these products to "allow you to easily visualise a variety of information in its geographic context". So they provide a simple background for other spatial data, uncluttered with unnecessary information. This also means that OS can still charge for their fully detailed products. The products are licensed for any use, as long as OS is attributed (licence here).

Data is supplied from the download page via an emailed link, and comes in 10x10km or 5x5km tiles. This can mean a lot of tiles: 400 tiles for one 100x100km national grid reference square of Street View for example. I've used QGIS's excellent VRT functionality to look at many tiles without building an overly cumbersome single raster image - you'll need the gdal plugin to use this.
OS VectorMap District map of Seascale, Cumbria. Contains Ordnance Survey data © Crown copyright and database right 2011.

OS Street View map of Seascale, Cumbria. Contains Ordnance Survey data © Crown copyright and database right 2011.
How does it look? It's OK - fairly uncluttered, reasonably clear. It's not up to the elegance of the full 25k or 50k OS maps, but fine for a backdrop to other data for websites and reports. I think it fulfills the aim of providing adequate context for other spatial data, but you couldn't use these for planning a walk for example - there's no right of way information.
OpenStreetMap using Osmarender. © OpenStreetMap contributors, CC-BY-SA.
I think it looks better than OpenStreetMap or GoogleMaps for web based stuff, and because it's downloadable as tiff it's better for use in "serious" GIS applications.
One problem with the VectorMap data - it's supplied as a tiff (but not GeoTiff - so no spatial reference system information), with a colour table with low saturation colours. I don't like this - the colours look washed out, and while this is OK for some background mapping, I prefer to set the background appearence myself, using transparency.
OS VectorMap District map with colour saturation increased with a factor of 75%. Contains Ordnance Survey data © Crown copyright and database right 2011.
There's a fairly simple fix for this, by building your own colour table, which can the be loaded into QGIS. I've made a couple of spreadsheets to help me do this in Gnumeric and Excel formats (downloadable here and here). You'll need to save the colour table from QGIS, paste into columns A-F in the first sheet, and select a "Saturation Factor". "1" produces fully saturated colours, "0" has no effect. 0.75 works pretty well. The adjusted colour table can then be saved as a CSV from the second sheet, and loaded into QGIS.
Useable colour tables can be downloaded here: 25%, 50%, 65%, 75%.
I'll be having a look at the vector data too - and will post again with the results.

Tuesday, 13 September 2011

Mission Accomplished

You've all been dying to know, haven't you? Mmmmmm? So what does TOBU stand for?

I named my blog after Tales of Brave Ulysses, a track from Cream's 1967 psychedelic blues classic Disraeli Gears. Because I knew I might have a lot of time on my hands out here in Indonesia, I decided I would try to read Ulysses, James Joyce's classic, and incomprehensible, novel of Dublin life.


It was either this or the latest Jackie Collins.
Ulysses describes a day (16th June, 1904) in the life of Dublin characters, through conversation, internal monologue and the infamous stream of consciousness passage at the end of the book. The non-hero is Leopold Bloom, a half Jewish ad-canvasser, and the book casts him as Ulysses, wandering through the capital like his namesake through the mediterranean. Joyce deliberately blurs the boundaries between thought and speech (there are no quotation marks), so the result is deliciously ambiguous - did he say that, or just think it?

Joyce avoids the traditional authors' tricks of how to reveal the characters' thoughts (first person narrative, artificially expressive dialogue), instead using myth and allusion to acknowledge the artifice of the author. Yet the result is unmistakeably real. No other book I've read has so realistically portrayed what it is to live and think as a human. Random childhood memories jostle with practical thoughts, higher emotions and bodily sensations; like suddenly remembering your first teddybear when you were thinking about politics, and trying to fart while popping to the shops for some milk. Life IS like this book.

It's also funny. Here's some laugh-out-loud moments from the modernist classic:

Cheese digests all but itself. Mighty cheese.
Who can argue with that?

O, fie! Out on't! Pfuiteufel! You naughtn't to look, missus, so you naughtn't when a lady's ashowing of her elemental.
Frankie Howerd evidently got his act from Ulysses.

Lord love a duck, he said, look at what I'm standing drinks to! Cold water and gingerpop! Two fellows that would suck whisky off a sore leg.
I love that expression.

And with that he took the bloody old towser by the scruff of the neck and, by Jesus, he near throttled him.
This is quoted in Lucky Jim, recalled by Dixon as being "a line from a book he'd once read". I'm rather impressed Jim Dixon has read Ulysses, even though with typical diffidence he won't admit to it.

Do fish ever get seasick?
We've all wondered about that.

I shall be celebrating with a gorgonzola sandwich and a glass of Burgundy when I get back to civilisation.

Sunday, 11 September 2011

Star Highway

I've become a tourist. After finishing a week's training in Maumere, I've been riding the trans Flores highway, all the way to Labuanbajo.

I didn't have much luck finding a bike to hire at first, they were all little scooters (so not really up to some of the big hills along the way), and hiring a big, proper bike turned out to be quite expensive. But with typical Indonesian generosity, someone at the government office where I was training offered to lend me his bike for a couple of weeks. So I was the proud borrower of a 200cc Honda Tiger - which is as big as bikes get over here.
The trans Flores highway does this for 100s of km.
So I headed off on the first leg from Maumere to Riung, to meet other volunteers there. 300km and 10 hours later I arrived - an average speed of 30km/h is typical here. The route was spectacular - arching over Flores' spine of volcanoes down to Ende, a dusty town down by the sea, back up to Air Gila, down to Mbay, then along the broken asphalt to Riung.
Don't look down - you wouldn't want to run out of road here.
The nature of the countryside is what makes the trans Flores highway. Flores is mostly mountain, so the road winds up and down through sequences of hairpin bends, with sometimes sheer drops on one (or both) sides. Great motorcycling, although there are the usual hazards of roadworks, gravel, goats, and some big holes. Really big holes - where there is more hole than road. But there's a lot of work being done to improve the road, widening some corners and fixing the surface. So in places there are stretches of new asphalt snaking up the hillside, something that anyone who loves riding bikes likes to see. 
Look what's waiting round the corner. I actually thought the road just stopped when I saw this.
After a couple of days at Riung, enjoying the beaches, islands and beer, it was time to head to Bajawa, a cute little town nestling between volcanoes covered in lush forest. Then on to Ruteng, and finally Labuanbajo. I was heading to this tourist spot to try to see Komodo Dragons on the nearby island of Rinca - but being out of tourist season, couldn't find a boat going out there. But I did see a real, live volcano - something that the villagers there seemed very proud of.

A real live volcano!
I earned my keep by cooking in Bajawa - volunteers Sarah provided the wine, and Rachel gutted the fish. Teamwork.
So this has been a fun road trip - something positive to end my time in Indonesia. I've covered 1250km, I don't know how many hairpin bends, and goodness knows how many Bintang. It's been so good to catch up with all the other volunteers on Flores, who've welcomed me with a place to stay and a cold beer at the end of my day's ride. I'll miss them.


Labuanbajo - end of the road at the western tip of Flores







Sunday, 28 August 2011

A Tale of Two Islands

It's different in Flores. That's what lots of other volunteers who've worked in both South Sulawesi and Flores have said, and after a few days here it does seem like a different world. 

I'm in Maumere for a week training local government staff in spatial planning. Staff do actually seem to want to work, and every day when I arrive at the office, everyone there is either working or talking about work. There's still time for the usual chatting/smoking/drinking coffee/eating cake, but that seems to come after at least a couple of hours work has been done.

I do feel like a week's training in the office here has had more impact than my 10 months in Sulawesi - people know what they want to do, and just need some guidance in how spatial data can help them do it. In fact they're so on the ball I suspect they'd probably do fine on their own. 
Whiteboard, projector, pink nylon curtains, picture of the President, self
People here are up to the usual Indonesian standards of friendliness. In one incident I was dragged of the street by a group of teenagers, force fed fried banana (served with chilli sauce, of course) and introduced to the family and dogs. This is a Christian majority area, so dogs are actually kept as pets. And only occasionally as food. Beer is also widely available. Apart from the eating dogs thing, it's all good.  

It's blue - come back in a few years and it might be red
A colleague at work has also offered to lend me his motorbike to tour round the island, which is the sort of thing that just wouldn't happen at home, and today we had a trip to see the incredible coloured crater lakes of Kelimutu.
I had to pay this monkey several thousand Rupiah to get this photo
It's been hard work, fitting what was originally a 5 week training course into 7 days, along with some new stuff. But I've been enjoying it, and I'm looking forward to seeing more of Flores for two weeks "jalan jalan" around the island. If I'd been posted here from the start I might have stayed.

Sunday, 17 July 2011

The End of the Road

I've quit. Thrown in the towel. Am packing up and going home.

I can't see how all this planning I'm meant to be helping with is going to benefit the community when only 13% of Jeneponto's budget is available for projects, with the rest being swallowed by civil servant wages. When I see waste on that level, I feel like I'm being taken for a bit of a mug.

What's worse, I think that international NGOs, with the best intentions, are contributing to the problem. There's a dependency culture, with the shortcomings of the government being papered over by NGOs. Where's the incentive to improve government systems, when UK/Canada/Japan/Australia etc will step in when the government wants to implement a project? All the resources required to help Jeneponto are present in Indonesia - so why are we sending volunteers here?

Bantaeng, just up the road, has a forestry office of 40 people. And there is still some forest in Bantaeng. So what are the 100 plus people in forestry in Jeneponto doing exactly? Every time I go into the office and see only 2 people working, and the rest watching TV, chatting or sleeping, I think of why I came half way across the world to help Jeneponto.

I feel sorry for a lot of colleagues, who do want to work and help the community, but are let down by a corrupt and ill-managed goverment system, and are not empowered to change things.

There's personal feelings too - I've never felt at home in Jeneponto, and I think the culture here is just too different from mine. I think I may be particularly British, and Jeneponto might be particularly Indonesian. 

I've been trying to think of things I'll miss. Some colleagues, the guys at local NGO Mitra Turatea, the other VSO volunteers, riding around the coast and mountains on my motorbike. I don't think I'll be too sad to leave Jeneponto itself, as I've no great affection for the place, but I've had some good times in Bali, Bira and Malino.

The saddest thing is that, at the moment, I don't think I believe in development in Indonesia any more. I don't regret doing this - I'd regret not having done it a lot more - but spending another 12 months here would drive me mad.





Rice fields, sunset, Malino

Friday, 24 June 2011

Local news for local people

I came across this article in the Makassar local paper, Fajar, last weekend, and have only just got round to translating it. Some interesting stuff on what's happening in Jeneponto politics right now - and explains a lot about why stuff doesn't work here.

From Fajar, 19 June 2011

Jeneponto Delays Reception of Civil Servants

Amidst the bustle at BKDD [Agency for Civil Service Affairs and Provincial Training], in which various Kabupaten [districts] prepare to select civil servants for the 2011 intake and organise proposals for central government, Jeneponto apparently alone is quiet. This area has, it seems, not yet proposed the civil service positions required for 2011.

After is was confirmed to the interested parties, Jeneponto apparently blocked selection of 2011 civil service positions. In fact, the postponement of recruitment just mentioned will last for the next 2 years. The most important reason is budgetary. The local government is still investigating the financial capacity of the Kabupaten which is not yet stable, after the total budget deviated from the agreed amount.

In addition to budgetary factors, the total number of civil servants in this area has also been assessed as exceeding the limit set, namely 6592 staff. "If local government employs more civil servants, where are the wages to come from?", said chairman of the local assembly Alamzah Mahadi Kulle. But there are still 3511 people yet to become civil servants since their names were added to the database from 2005 onwards. The 2011 budget for Jeneponto is only IDR355 billion [approximately GBP27m], with the result that it is certainly difficult for the local government budget to cover wages for civil servants that now number 6592. "Almost 87% of Jeneponto's budget is spent on paying civil servants", he added.

Head of the BKDD in Jeneponto, Hasnan Arsyad, says the policy of delaying reception of civil servants in 2011 is based on the outcome of a meeting with the local assembly in May. "Delay of civil service recruitment has already been announced in the official report of the meeting between the local assembly and the Jeneponto government", said Hasnan.

While this is happening, BKDD Bantaeng [neighbouring district] have agreed a proposal for 400 new civil servants, although there were votes in the legislative body to delay recruitment because reception of the 2010 intake is not yet complete.

"We have proposed 400, because in 2010 we had 200 people retire, with the same number in 2009", said head of the Agency, Jumaing Rahing.

Secretary of the Bantaeng assembly, Nirdin Halim, has assessed the increase in civil servants for 2011 to be enough. It is certain the government should focus more on increasing budget for community interests. "If civil servant numbers increase, the local budget must surely be exhausted in wages", said Nurdin.

For the intake of civil servants this year, he has asked for honorer [a type of contract worker without the same status as a full civil servant] only. "The reception of the provious intake of honorer has been completed. The new honorer are already working and busy."

Some key facts/observation from my placement put the above into some context:
  • Jeneponto district has a population (2009) of 334 175 people. There is 1 civil servant per 50 head of population. The rate in the UK is 1 public sector worker per 10 population.
  • Many civil servants have other jobs.
  • Many in my office don't work afternoons. Or mornings. There are many civil servants with no officially allocated tasks.
  • Money for projects is scarce, so civil servants spend a lot of time writing proposals to central government and international NGOs.
  • Government buildings and facilities are run down, ill equipped and ill suited to their requirements.
  • If there is money for equipment, there is little for training, maintenance or running costs. For example, there is an environmental monitoring lab full of new equipment which has never been used since purchase in 2008.

So it seems that the number of public sector workers is 5 times smaller than numbers in Europe - but it's still too big for the money available in Jeneponto. The high wages bill is preventing any of these civil servants operating effectively - my guess is that you'd need to halve the head count to maximise productivity. But that's unthinkable here.

Where did the mountain go?

In 2004, half of Bawakaraeng, an extinct volcano in South Sulawesi, fell off. So what does it look like after 200 million cubic metres of rock decide they don't want to be part of a mountain any more? On holiday in Malino, I went to find out.

Landsat image of Bawakaraeng, taken in 2006. The eroded material is still clearly visible as the brown area.






An hour's journey by motorbike, through the mountains and rice fields brought me to the sleepy mountain village of Lengkese, and another couple of hours trek up the valley to a point where I could see the site of the collapse. Most of the rock detached from the Caldera initially came to rest a few kilometres down in the valley, and is now being eroded by the river Jenebareng into a steep sided gorge of unstable rock and earth.


Site of the original collapse. The area is still unstable, with freshly exposed rock visible where recent collapses have occurred.









The river cuts a gorge through the debris, with the steep walls collapsing into the channel.











Up there I met a team of Indonesian surveyors working for a Japanese engineering company. I introduced myself as an engineer from England, which got me an invitation to lunch at one of the team's homes (he was from Lengkese), and a chat about the sedimentation problems caused by the collapse. Bili-bili reservoir, which supplies water to the city of Makassar, is now filling up with sediment from the collapse as it is eroded from the valley. They were surveying the latest collapse from the wall of the valley, which happened the week before.
Survey team at work.














A series of sabo dams, concrete structures design to hold back sediment from reaching the reservoir, have been built with Japanese funding, with more under construction. The surprisingly good road up to Lengkese was also funded by Japan.


Sabo construction on the Jenebareng river.
















Clearly the Japanese engineers know a lot about how to deal with sedimentation, and the Indonesian surveyors were knowledgable, enthusiastic and hard working. "The sediment traps are working now.", one said. "But in two years time they'll be broken. That's Indonesia."

Thursday, 16 June 2011

Qt: why didn't I know about this earlier? (or how bored am I?)

There's not much to do in Jeneponto. A couple of weeks ago my fellow volunteer Alanna and I found ourselves one Saturday night inventing the sport of "Rokok Topi", where two players throw empty cigarette packets into a hat. One point for each packet lodged wholly within the hat. Add use of a fan for tricky cross winds, if that's too easy.

It's too late for inclusion in the 2012 Olympics - maybe Rio 2016, but I can foresee problems with the tobacco sponsorship element. But if McDonalds can be a sponsor, why not a manufacturer of pungent Indonesian cigarettes?

In my other idle moments (of which there are many), I decided to write some software for viewing results from the SFV flood model, using the Qt development suite. 

It's surprisingly easy, as Qt has a wide range of inbuilt graphics and rendering routines. There's also Qt Creator IDE for developing, building and debugging the code, and the help system is actually helpful too. It's also truly cross platform (Linux, mobile, and Windows if you must). Excellent value for money, especially as it's free.

The code for drawing a mesh of triangles, with colour corresponding to depth, looks like this:

    for(e=0;e<mesh.Ne;e++){
        triangle.clear();

        triangle << QPointF (mesh.getnode(e,1).x,-mesh.getnode(e,1).y) <<
                    QPointF (mesh.getnode(e,2).x,-mesh.getnode(e,2).y) <<
                    QPointF (mesh.getnode(e,3).x,-mesh.getnode(e,3).y);

        mainScene->addPolygon(triangle,pen,brush);
    }


And that's it. Add some code for loading data, changing colour scales and loading background raster and you get a fairly functional application. All told this has taken about a week - including trying to get back into C++ and learning new stuff from the Qt libraries.



It's far from perfect, rendering of large background images is unacceptably slow for example. There is also some frustration when it becomes very difficult to do something apparently simple - I haven't managed to work out how to change the colour of one button without changing the colour of all buttons generated afterwards.

But there's also support for databases (MySQL, SQLite, Oracle, ODBC), with a thing called model view, allowing you to link a table directly to a database, without much fuss. I wrote a simple SQLite front end as part of a prototype system for gathering social and poverty data in the field - took a couple of days. 

You can download Qt here - highly recommended. 

Sunday, 22 May 2011

Indomie and the art of motorcycle maintenance

"It'll be fine - trust me." Never trust people who say this.

I didn't actually say this when I lead my friend Alanna down a unpaved road, 1 in 3 gradient, on our motorcycle trip to Malakaji. Perhaps I should have - she then could have legitimately turned back. Instead, she dropped the bike twice, the second time breaking the front brake lever off halfway along its length. It's clearly my fault, so I should at least give her a lift back from the workshop a couple of days later after she left her bike there to get it fixed. Little did I know this would turn into a 3 day epic of mechanical incompetence.


View on the way to Malakaji. Worth the trip - not worth the hassle later.

Day 1:

0900 Leave bike at workshop
1200 Return to collect bike. Bike not there - mechanic has taken it for "testing". Via the mosque for Friday prayers. We go for lunch while we wait.
1300 Mechanic returns - he has replaced broken lever with an adjustable one. That can only be used at one of the settings, so not really adjustable. And wobbles, looking like it might fall off. We want a normal one. Normal levers are unobtainable in Jeneponto, says workshop owner man. Assistant turns up 30 seconds later with normal lever from another shop.
1400 Normal lever fitted, all well. Brakes start binding after 2km, so bike won't move at all until it's been allowed to cool.
1500 Back to workshop - mechanic starts to file off part of the brake lever to stop it operating the brakes when not required. He's using the smallest file I've seen outside a manicurist's toolkit. This could take a while.
1530 Newly filed lever fitted - brakes still binding. Front brake caliper stripped, cleaned, rebuilt. Wheel turns freely.
1600 Braking power now vastly reduced - feels a bit like driving my old camper van. Apply in writing for permission to stop at least 5 working days in advance. But not good in Jeneponto traffic. Feels like there's oil on the brakepads - possibly contamination from the vast gouts of lubricant the mechanic was sloshing everywhere around the caliper?
1630 We take the bike to another workshop, the "official" Honda one. Genuine parts, they promise. They check the bike and say it's fine. It's clearly not. We decide to give up for the day - it's already too late for Alanna to get to Makassar tonight. Poor show all round I think.

Day 2:

1000 I return and take bike back to Honda dealer - they check the brakes, still saying it's fine. But just to humour me, they strip and clean the brake pads.
1030 Still not good. They seem now to think the brake lever is the problem - but don't have the correct one in stock. I'll have to go to Takalar or Bantaeng for one - or they can get one for me. It'll take two weeks. Hmmmm.
1100 They find a correct brake lever - but from an old bike, and it's twisted. Fitted - seems to make the brakes a little better.
1800 Final testing of bike. Brakes still don't work. Retire to regroup over fried chicken and beer.

Day 3:

1100 Honda dealer closed, so we go to another workshop. Manage to convince them the brakes aren't good - they agree! Progress. Slosh petrol around (whilst smoking, natch) to get the oil off. Still not good.
1130 I tell them to change the brake pads. They agree. Old ones are glazed - probably from overheating on day 1 when the brakes were binding.
1230 Brakes work! Only 50 hours since starting out.

For sheer this-should-only-take-15-minutes-but-ends-up-taking-three-days annoyance,
this ranks higher than my record 5 visits to the shop to get a working gas cylinder for my cooker. I'm a wholly incompetent amateur mechanic (I once had to araldite a rocker cover in place after shearing the bolts...), and even I know more about bikes than any mechanic in Jeneponto.

How can people be so incompetent? They must practise.

Wednesday, 27 April 2011

Bira

I've always really hated beach holidays (without ever actually having done one, of course). It's just sand, sea and overweight German men in very small trunks.

Needing to escape from Jeneponto after a slightly stressful time organising training courses, I headed down to Bira for the weekend, and actually quite enjoyed it. Bira is the type of place recommended in Lonely Planet, so popular with backpackers. It also seems to be popular with drunk Russians, retired Dutch and VSO volunteers.

Actually most of the tourists there are local - Good Friday is a public holiday here, but with no family or religious obligations for the overwhelmingly Muslim population, so a good opportunity for a weekend away.

Bira is so nice, that even the "Karaoke Bars" (i.e. knocking shops) are hidden discretely off the main road in the forest. Which leaves the main (and only) street free for shacks selling fish, cold beer and snorkels.

Bira is a bit of a long way to go for most people (6-8 hours from Makassar), but for me the motorcyle ride there was one of the highlights, threading along the coast for 100km on increasingly broken roads, an opportunity to notice the contrasts between different areas. Things look much nicer as you move east - Bantaeng is a tidy little town, Bulakumba is really quite shiny in parts, and the peninsular down to Bira reminds me a bit of Cornwall. But hotter, and with more goats.

Why is everything in Jeneponto so broken? In Bantaeng, you get proper roadworks - diggers, cones, diversion signs, the lot. In Jeneponto, a hole big enough for a motorbike to fall through appeared in a bridge, about 3 weeks ago. The hole is still there - and all the warning drivers get is a couple of branches hacked off a nearby tree and laid in the road. Something's wrong here.


Metres of golden beaches. That isn't rubbish - just plastic bottles used as floats for fishing nets.




Megan the motorcycle stops for a rest near Bantaeng.

Monday, 28 February 2011

Mountains of Malino

I've actually found somewhere in Indonesia I really like. In the mountains above Makassar is the old Dutch hill station of Malino, which in colonial times provided an escape from the heat of the Makassar dry season for the Dutch masters. I've spent a weekend here tramping in the rain and throughly enjoying it.

Malino was at the end of an entertainingly wet 2 hour motorcycle ride from Makassar, along a road good in places, unpaved in others, and in some about to drop into the steep ravines on which it's built. The river bed is being quarried for aggregate and sand for building projects in South Sulawesi, so there are plenty of trucks to overtake too. Great fun.

Malino lies only 1000m above sea level, but the weather this weekend was similar to an August bank holiday in the Lake District - wet, windy, and really rather cold, so I felt more comfortable here than I have done elsewhere in Indonesia. The people are laid back - but in a good way, not a lazy way, and very friendly and welcoming. So we've not had to pay for a hotel - a local family who is working with another volunteer put us up in their house, fed us, entertained us, and even helped find my sandals when they were stolen from outside the house by a local dog.

I like to think the dogs are descended from the prized pets of the Dutch, left behind in their hasty departue after the second world war brought independence for Indonesia. They're not the standard issue Asian feral creatures, and I think I've seen recognisable traits of pedigree breeds - some labrador here, some collie there.

It's not surprising that Malino reminds me of Darjeeling in India. Built for similar reasons, and Malino even has a tea plantation. A pleasant hour was spent sitting in a makeshift tarpaulin shack, drinking tea, and being laughed at by the few local daytrippers who'd made the journey up here. Apparently there are spectacular views - we had a spectacular view of some clouds, from the inside.

The rain had another benefit, as well as making an Englishman feel at home. The area is famous for its waterfalls, which had plenty of water coming down them after 2 weeks of continuous rain. This also means the braided river system of Jene Berang is in full spate.

I'll be coming back here.

Cloud, trees, and a hint of sun

We've got corn, we've got beer, we've got cigarettes - all you need for a night out in Malino

Waterfall, houses, more trees

Wednesday, 16 February 2011

A sad sight

Today I saw one of the saddest and most affecting things I've seen so far in Indonesia - a biodiesel plant. This was bought buy the local government in 2007, and could be a way of weening Indonesia off its dependence on fossil fuels, turning plantation crops into usable fuel, locally and potentially sustainably.

I asked how much fuel it could produce in a day. "We don't know", was the answer, "we've never been able to work it." Hence my sadness - someone, somewhere, had a good idea, and got enough money (GBP80 000, which is a huge amount here) to almost make it happen, but forgot that people need to know how to use it as well. So the money has been spent, and the plant sits slowly rusting in the damp Indonesian air.

I wish I knew more about biofuels and could help - there's a project here waiting for the right volunteer.


Sunday, 6 February 2011

Why is working in Indonesia so difficult?

There are cultural differences between working in "The West" (and by "The West" I don't mean the M4 corridor beyond Swindon), and in Indonesia. The relaxed attitude to productivity, the music and TV in the office, the timekeeping, the socialising, have all made trying to work effectively in my placement very difficult. This is the sort of thing that you can either get used to, or at least put up with - but I've been feeling the cultural differences go much deeper than this.

Now, from an unlikely source, comes some insight. Listening to the podcast of In Our Time, the utterly, utterly brilliant Radio 4 programme about the history of ideas, I heard Jeremy Black (Professor of History, University of Exeter), talking about the reasons why the Industrial Revolution happened in Britain, and not somewhere else:

[Britain had] A culture in which people believe that you should change things, that you should apply knowledge for change. That's really important, whereas many other cultures in the world, and this isn't a racist point, it's a point that notes the dominance of cultural conditioning, do not believe in either the value of change, and do not believe that the purpose of knowledge is to apply it to obtain change. I think that's really crucial in Britain.

[Apologies to Prof. Black if this is not word perfect, I transcribed it directly from the podcast.]

This really articulates what I've been feeling - VSO's commitment to development, as positive change through sharing skills, seems to be at odds with how things are done here. It's as though we've recognised the challenges (there are no problems here, only challenges), but haven't accepted that facing these challenges will need change. It's difficult and immensely frustrating to be in this position.

[In Our Time podcasts can be downloaded here. I can particularly recommend the Industrial Revolution 2-parter, as Melvin Bragg weighs into some robust argument with the other participants. It would never happen in Indonesia.]