Rick Hurst Full-Stack Developer in Bristol, UK

Menu

Blog

Overland dreaming

Travel books in kindle store

As you may have guessed from the lack of recent updates, we haven’t been able to use Rocky much over the winter, and he is currently off the road having another engine transplant and a few other jobs sorted (hopefully) in time for spring adventures. Therefore I have been travelling vicariously through reading about other peoples’ adventures. I’ve always been a fan of real paper books, but for reasons of availability and immediate need for reading material, I downloaded the kindle app to my nexus 4 phone and read a few eBooks. It was actually fine reading this way, surprisingly, and was handy as I virtually always have my phone with me, and it gave me something to read other than facebook or twitter.

The first one I downloaded was Not in that car, by Roy Locock, the story of his unlikely round the world trip in a 32-year-old MG midget. A very entertaining read and proof that with determination, you can get any unsuitable overland vehicle round the world, even with only a few inches of road clearance.

Not in that car - MG midget arriving in cape town

On the same theme (and bought to my attention by the “you might also like..” feature in the kindle store), I then read Survival of the quickest by Ben Coombs, about his 13,500 trip from England to Cape Town in a Porsche 944. Apart from the numerous mechanical issues dealt with along the way, I was also impressed to see the Porsche fitted with a roof tent!

roof tent on a porsche 944

The last kindle purchase was The Long and Whining Road by Simon Courtie, an entertaining account of a family travelling round the world in their VW T25, busking beatles songs as they went.

Penny the vw t25 in monument valley

Finally, I ordered a real paper book Drive Nacho Drive, the book about another round the world trip in a T25. I’ve blogged about Brad, Sheena and Nacho before – their blog is great, and some of the content is repeated in the book, but it is extremely well written and worth a read even if you already read the blog.

drive nacho drive book

Last but not least, I have been following the adventures of the campervan culture team, travelling through Spain and around Morocco, and am looking forward to the rest of the videos.

Rasberry Pi as low power office server

raspberry pi running as low power office server

Part of a system that I look after for a small distribution company includes a linux server based in their offices. The server doesn’t do much – it runs a few cron jobs and a mySQL database, acting as a monitoring system on the internal network and as a middle-man receiving data extracted from Sage Line 50 database on a windows server and posting off data updates to a web-based server. It is however a vital part of the system, and needs to be running 24/7. For years this has been handled by an assortment of dusty old desktop PC’s, the last of which was starting to show signs of needing to be retired. The next old PC in line turned out to have a faulty network port, so I though it might be time to buy some kit specifically for this job. It occured to me that due to the low power requirements, a Rasberry Pi might be ideal.

Being fairly new to the Rasberry Pi, I ordered a starter kit including a Model B Pi, a 4GB SD card with “noobs” installed on it, a case and a power supply. Connected up to the TV at home via an HDMI cable, it booted into noobs, from where I installed raspbian linux. Once raspbian was installed, I found that I could install everything I needed (mysql, PHP5, apache) using apt much as I would on a regular debian-based linux box. One thing that I found I couldn’t do (from googling rather than actually trying) was install dropbox, however this wasn’t essential.

After installing it in the office and monitoring it for a few days, it seems to be coping extremely well. There is one particular php/mysql task that sends the cpu temporarily very high, but I think this can be tamed with a bit of code optimisation. I also wish I had started with a bigger SD card, as there is only just enough “disk” space when everything is installed.

One advantage of this low-power system is that I have it running from a USB cable plugged into another server rather then requiring another port on the office UPS. I’ve considered having it run from a rechargeable USB power pack, kind of like a mini dedicated UPS. I’ll be interested to see how it stands up to this kind of use. Due to the low cost of this system, the plan is to have a spare Rasberry Pi or two and some spare cloned SD cards on standby.

One other thing to note is that to plug the Pi into a monitor you may need an HDMI to DVI cable, unless you have a monitor with an HDMI port, or some HDMI or RCA to VGA solution (that will be another blog post). I only needed to plug it into a monitor to congure the static IP address – after that I ssh’ed into it from another machine.

So why didn’t I just use a virtual machine? A couple of reasons: firstly, one of the tasks for this machine is to monitor the windows server from which the sage line 50 data is sent. Secondly, the aforementioned windows server is the only machine on the network running 24/7 and already struggles a fair amount, and I didn’t want to hog any more RAM or cpu with a virtual machine.

Update 2014-01-22: The Pi has been up and running for nearly a week with no issues, but i’ve been reading about SD card wear that can occur if the disc is being written to frequently, so I plan to move the MySql and log file storage to an external drive, otherwise I suspect the card might “wear out” fairly quickly.

2CV Campervan

Acacdiane Oasi campervan

After I had to let my first T25 go, I bought a Citroën 2CV. The 2CV, due to it’s incredibly simple mechanics, bulletproof 2 cylinder aircooled engine and surprising off-road ability, makes a fantastic overland vehicle. I had grand plans of travelling Europe in mine, but unfortunately it caught fire one day on the way to Weston Supermare, and burned to a shell. Fires are a common problem with 2cv’s – the foil/ cardboard tubes used to transfer warm air from engine cowlings to the cab can sag onto the engine and eventually catch fire.

Apart from the obvious limitations on size, the van version, the fourgonette, or the Acadiane (based on the Dyane) can be used as a small one or two berth camper, by means of a platform across the rear wheel arches extending into the cab area. This wouldn’t do for us right now – as a family we need something at least as big as a T25, but i’m still fascinated by the idea of such a simple, small, agile camper.

I found this fantastic old promotioal video of an Acadiane based camper – there’s some ingenious use of interior units to provide storage, seating, table and a sleeping platform.

Heating a campervan for winter camping (and day trips).

Propex compact 1600 installed in a T3

Rocky has sat parked up near our house pretty neglected since the summer, but now my thoughts are turning to winter camping and day trips. Last winter we did a few overnighters, using a combination of an electric fan heater (noisy, but effective), duvets and hot water bottles to keep ourselves cozy. I’ve also been told that an electric oil-filled radiator is a good solution for heating a campervan, as it is safe and silent, so can be left on overnight, unlike the fan heater.

Of course electric heaters require mains hook-up, and this isn’t always available, so many people have blown-air heaters installed – either an eberspacher, which runs on diesel, or a propex which runs on gas. Both these types of heater are expensive bits of kit, but luckily Rocky came fitted with an old propex, which I sent off to be inspected to check if it is safe to use.

The advantage of the propex heater is that it ventilates to the outdoors – ours is fitted under the rear seat with two holes through the floor attached to a couple of lengths of pipe under the van to provide air intake and exhaust for the part of the heater where the flame occurs. This makes it quite safe, though we have a carbon monoxide detector in the van anyway just in case. The other safety issue to watch out for is to make sure the heater isn’t buried under anything flammable – i’ve removed everything from under the seat except my jack now.

I’m writing this on a crisp November morning sat in Rocky parked up near our house, testing out the propex heater that I re-fitted last week. When I first tried it, I couldn’t get it to light. I’d read about how butane “freezes” below a certain temperature – the truth is, it doesn’t actually freeze, but the liquid just gets too cold to boil, and therefore it doesn’t produce any gas below about 4 degrees centigrade. I confirmed this by trying to light the cooker, which also didn’t work. The potential solution is to buy a propane cyclinder instead, which would need a different regulator. I’m reluctant to do this as it means buying and carrying more stuff around, that might rarely get used, and I like the fact that the second bottle of butane used for the heating is a backup for the one running the cooker and fridge. The blue camping gaz butane bottles that I use seem to be available virtually everywhere in the UK and on the continent too – less so for propane I think.

The solution today (I just wanted to check it’s all working, safe etc. before we go and try it for real) was to run an extension cable out to the van and gently warm the gas cyclinder with the electric fan heater that we use on electric hook-up. After about five minutes I tried the propex heater and it worked fine. Of course if we have electric hookup available, we’d probably just use the fan heater instead of burning up our gas supplies and running down the leisure battery. I guess one possible solution if we didn’t have electric available is to use a small portable gas heater (which run on a canister of butane/propane mix, which will hopefully still be working) to warm up the gas cylinders – yep, I know what you are thinking, possibly a bit dangerous! The portable gas heaters shouldn’t be used without ventilation and can be a fire hazard. Another (untested) possibility is that maybe you could use a small butane/propane mix stove to boil some water for hot water bottles to warm the gas bottles. I’ve read somewhere that another solution would be to stand the gas bottle in a washing up bowl full of warm water.

So my thoughts turned to insulating the bottles, but I read somewhere that one problem with this is that the bottle actually cools down as it produces gas, so having it insulated while it is being used will possibly lead to it cooling itself back down below operating temperature! In summary it is worth insulating it to stop it getting cold overnight, but then remove the insulation when you start using it. The more I read, the more I think maybe I should just bite the bullet and buy a propane cylinder..

I’ve actually removed the thermostat for the propex heater and wired it into a switch instead. The reason for this is that I couldn’t get it to work with the thermostat – the heater just squealed! The propex engineer I spoke to suggested that this may be due to a faulty relay, and that I could try to run it directly from a 12 volt source by removing the plug and joining the orange and red wires together and attaching to a 12 volt supply. This seems to work fine.

Managing Google App Engine SDK versions on OSX with virtualenv

When I first started developing Django apps on Google App Engine (GAE), I downloaded the google app engine launcher. Installing this will install the latest version of the SDK, and will (if you let it) update your path to point to it. This is fine if you are always using the latest version and don’t need to use an older version for some reason. If that is the case you will need to uninstall GAE launcher, find an old installer for the version you want and reinstall.

A more manageable way is to not use the GAE launcher, but to download the SDK manually, then set up a virtualenv to use a particular SDK. I also use virtualenvwrapper to help me switch easily between environments.

This is the pertinent bit – in the folder where your virtual envs are stored, add the path to the app engine sdk in bin/postactivate. Postactivate gets run when you activate the virualenv through virtualenvwrapper. E.g for something using version 1.8.8 you might have something like:-


#!/bin/bash
# This hook is run after this virtualenv is activated.
export PATH=/Users/rickhurst/gae-sdk/1.8.8/google_appengine:$PATH

Catching up – Summer 2013

Rocky the T25 being towed

Ok after a productive start to the blog this year, i’ve failed to post since the start of the summer. I’m going to blame it mostly on my camper van, both literally spending time working on it and camping in it with my family, and also generally all my blogging effort has gone into my “camper van things” blog. I’ve had a fantastic summer, worked less than I probably should have, but now getting back to work (and saving up for some more summer adventures next year!).

So to catch up – i’m now freelancing more or less full-time back at Potato, working on some interesting stuff, notably cutting my teeth with AngularJs framework, which i’ve enjoyed so far. My initial observations are that it is significantly different to Backbone/Marionette that there is no confusion over what technology i’m using, it allows you to be productive very quickly and that it litters your markup with non-standard attributes. The latter may upset purists, but otherwise it gets the thumbs up from me. If you’re interested in learning AngularJs, a good place to start would be the tutorial.

Owning a T25 – 12 months on

Rocky the T25 parked up near Saumur, France

It’s nearly a year since we picked up our VW T25 camper. In that time, we’ve:-

  • Driven it 4768 miles
  • Taken it on 2 ferries
  • Taken it to 3 VW events
  • Slept in it for 35 nights
  • Had the 1.6 diesel engine replaced with a 1.9 diesel
  • Called for breakdown service twice (starter motor problem in East Anglia and fuel line problem in France)
  • Drunk 200 cups of tea in it (estimated!)
  • Sorted out rust patches/paintwork, much of which now needs redoing, as i’m a bit of an amateur with this type of thing
  • Painted the wheels
  • Got some winter tyres and spare wheels
  • Had the windows tinted
  • Fitted a swivel seat base in the passenger side
  • Had an immobiliser fitted
  • Fitted a bike rack
  • Got it through an MOT

I’ve also spent an unhealthy amount of time on the T25/T3 forums and Facebook groups enjoying reading about what adventures other people have been having with their vans and what they’ve been doing to them. One thing that is clear is that it is possible to spend a massive amount of cash improving a T25, from professional bodywork restorations, suspension mods and massive alloy wheels to powerful subaru or tdi engine replacements.

Personally I’ve decided that I need to rein things in, and concentrate just on keeping our bus roadworthy and ready for more adventures. I have a list of things that need sorting before I would be happy to take Rocky on another overseas trip. The fuel lines and the fuel tank breathers need sorting out, but also it looks like I need to consider an engine rebuild or another engine swap, as the 1.9 engine I had put in, although it runs brilliantly, is using an unsustainable amount of oil. The consensus seems to be that it is burning oil (basically using it as fuel) due to worn piston rings and/or bores.

I was hoping to get at least a couple of years out of this engine, but it hasn’t turned out that way. If I had the tools, skills and space to attempt an engine swap myself, I might have been tempted to try my luck with another old engine, but I really think its time to look at having the current engine dismantled, inspected and reconditioned/ remanufactured as needed which would hopefully add many more years life to it. Tempting as it is to save up for a Tdi conversion which (along with an appropriately geared gearbox) would make the van faster and more suited to motorway driving, i’ll settle for a reliable simple engine to plod along with in the slow lane, and put the cash saved towards more road trips.

However, our other “ongoing project” is a Victorian house, and the bus has diverted cash and attention away from the house over the last year, and this needs to be rectified. I’ll need to redo some of the aforementioned bodywork before the winter sets in, but other than that I’ll have to ignore him for a while, and concentrate on the house instead.

One thing i’m sure of though, is that despite the ongoing costs, we have had a lot of fun with this bus, and are really glad we bought it. Still looking forward to many adventures to come!