Blog postings

Left the house this morning · by mark | 18 Aug 2022, 7:25 a.m.

I've become a bit of a homebody recently; I made the effort to leave the house. Here is some evidence  

 

All about driving in Iceland · by mark | 17 Aug 2022, 8:18 p.m. (updated 17 Aug 2022, 8:34 p.m.)

I have been to Iceland a few times and driven around it. One of my IRL friends wanted some advice. I decided to make a blog post about it in case I am asked again. So, without further ado:

My Guide to Driving in Iceland

The 22 to Hekla in March

Getting a Car

There are three ways of getting a car in Iceland. 

  1. You can buy one
  2. You can bring one, on the ferry from Denmark, via the Faroe Islands
  3. You can hire one

Option 3 is what we are talking about. You can hire cars from the international airport at Keflavík, in Reykjavík itself, and sporadically elsewhere in the country. You should reserve your hire car far in advance as they often sell out. All of the car hire firms have web sites you can place your reservation through. Make sure you have the reservation confirmed; you occasionally find you have merely requested to hire a car, not agreed to hire a car. This happened to me once and we had to hire the last car in the shop, which was a giant 4x4 thing we did not want or need. However the agent took pity on us and let us hire it for the price we thought we would be paying (I wouldn’t count on this happening to you!). 

There are a variety of cars you can offer. In the summer, if you are just doing tourist things on main roads, you do not need anything more than the low end VW Fox equivalents. I am very tall so this physically doesn’t work for me but maybe it will for you. If you are doing something slightly off the beaten track (i.e. on well maintained, numbered gravel roads) you will want at least an SUV style thing which will be able to deal with the bumps a bit better. These may be four wheel drive but I would be very wary about taking them properly off road, into the deep interior or fording rivers. You can hire actual off road vehicles for that at great expense; there are a few river crossings where you genuinely need massive ground clearance and snorkels. 

If you are arriving in winter and are doing anything other than tourist trap stuff at the Blue Lagoon and in Reykjavík I would want an SUV style thing at the very least. The extra weight helps with grip. I think. 

We actually forgot the handbrake on this and got away with it

Another option is converted vans with beds in, rarely with loos. These have become a bit of a pain now as there are all kinds of restrictions about where you can park up for the night. Iceland is like everywhere else and bans people having unsightly fun.

The hire places directly outside Keflavík are very convenient but charge a bit more than the places with shuttle buses to the depots outside the airport perimeter. There is also a shuttle bus that runs from the terminal to the places within the perimeter if the weather is bad or if you have lots of luggage. 

As with all hire car places the cars come with free third party cover and a very high deductible first party cover. They’ll try and upsell you lower excesses for a vast price. You can buy this cover in advance for about £30-£50 from an insurer. Look for ‘car hire excess cover’. I believe some credit cards offer it as well. We’ve had to use it once when someone opened their door into the car and drove off. The hire car company charged our credit card a very large number; we sent the receipt and some other paperwork to the insurer who reimbursed us within a week. 

Driving the Car

Iceland is all left hand drive vehicles which go on the right hand side of the road. Icelanders drive like maniacs especially in the snow. You don’t have to copy them. The standard of driving can be very bad as people get distracted by the sights. Pay attention to the road. Also, everything is in kilometres not miles. 

Over the puddle

Speed limits are low and the Justice League (this is a literal translation of what the Icelandic police call themselves) will be efficiently expensive if they catch you. Don’t even think about drink driving. However roads (outside of tourist hotspots and settlements) are dead quiet so it is a relaxing drive. 

Automatics are standard but there are some manual cars. 

Oh No there is Nature Outside

Relax. 

There is a regulation that all cars have to have winter tires on during the winter. Winter tires mean metal studs which bite into the snow and ice to provide grip. It is like driving on wet tarmac; take it easy and you’ll be fine. This is also why I only drive four wheel drive vehicles in the winter; if one wheel loses grip you have traction in the other three. 

You won’t believe how good winter tires are until you’ve used them. This pic (from Lofoten, not Iceland) shows what you can drive on at 60kmh easily. 

Icy road in Lofoten

Main roads get winter service. They are kept clear and gritted. Only during and immediately after snowstorms will conditions be poor. They can be extremely bad; in the very worst snow storms you will crawl along as visibility will be just barely to the next snow marker at the side of the road. Keep an eye on the weather forecasts and the road conditions. Serviced winter roads are fine to drive on, and are quite something to see, as you zoom along surrounded by a sea of snow. 

Flying over a road

Interior roads are closed outside of high summer. Do not think about driving there; it’s a crime without authorisation and you need a specially modified super jeep to cope with the drifts. You wouldn’t be reading this post if you knew how to do it. 

Gravel roads are fine. Bumpy and full of potholes and go through some of the planet’s finest scenery. Drive slowly and carefully. Some can technically be done in a three door hatchback but I want an SUV at least for long stretches of gravel. 

too much filter. But a rav 4 in the middle of nowhere.

River fords need to be treated with respect. Most of them are shallow but some of them require you to have a snorkel on the car to avoid hydrolock. Oh yeah - getting river water in your car’s air intake will kill the car and this will be very expensive. Don’t chance it unless you know what you are doing. There is one on the F249 that is especially bad; just pay a guy to drive you over. If you are at all unsure turn around. It’s not worth it. 

We chickened out

This is at Landmannalaugar. You can park up just before the ford and walk to the trailheads. It's fine!

So. Rent a car and have a blast. Don't go in rivers. 

 

An injured Cosmos is whole again · by mark | 16 Aug 2022, 6:08 p.m.

Our cat Cosmos came in a couple of weeks back with a big wound in his leg. We tried cleaning it for a couple of days with sterile solution but it was not improving. We took him to the vet and the wound was beginning to suppurate so it needed proper treatment. One debridement and several stitches later it was handled. Ten days later we were able to have the skin stitches removed and discard the cone of shame he had. One much happier Cossie in the house. 

naturally, an image:

A reclining cosmos

 

Now this site has archives! · by mark | 13 Aug 2022, 10:26 p.m.

I was browsing the Django docs and came across date-based views. This piqued my interest as I always wondered how those little calendars of posts were built. Basically built by these things. 

Ultimately very easy to use if you more or less follow the documentation. Hardest part was faffing with the templates as {% url %} and the things used to turn datetime objects into little things like 4 character years are irritating. You can use a with block to define variables like current_year=date|date:"Y" which are easier to use. 

Anyway. The archives. No-one will ever look at these.

 

Adding recaptcha to contact form to thwart bot spam · by mark | 27 Jul 2022, 5:05 p.m.

I have been inundated with spam through my contact form recently. Mostly benign offers of web design and so on. But I still don't want them. So I elected to install a reCAPTCHA service so they have to convince Google they're human before sending me a mail I just instantly delete. 

This was quite straightforward in the end. 

Install a package

Some kind soul has already done the work in setting up a Django form field which talks to Google for you. So all you need to do is pipenv install django-recaptcha. I'd also update the lock and requirements files; pipenv lock && pipenv lock -r > requirements.txt. Make sure to enable the package in config.py by installing its app. It is called captcha

Generate secrets

You can use the Google recaptcha admin console to register your domain with Google and also generate a public / private key pair. I'd add 127.0.0.1 to the domain list so you can test it locally a well. The secrets are to be called RECAPTCHA_PRIVATE_KEY and RECAPTCHA_PUBLIC_KEY

Add to form

You need to add the Recaptcha box to your form. This is very easy. First, in forms.py, load the objects:

from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV2Checkbox

And then add this as a field. I have a ModelForm that drives the Contact app, so this was adding one line after I declared it:

class ContactForm(ModelForm):
    captcha = ReCaptchaField(widget=ReCaptchaV2Checkbox)

I also use Crispy Forms, so I just added captcha as a Field to its Layout object. 

Add invalid handling

Now the package does all the Google talking for you and the validate function will fail if Google thinks you are a robot. This is when you have to do the image clicking stuff. I wanted to communicate this to the user in case they are acting like a robot. So I added an invalid form handler to the view that my form posts to:

    def form_invalid(self,form):
        messages.add_message(self.request, messages.ERROR, form.errors)
        return super().form_invalid(form)

That was it. Already seen in the logs someone try to post me a comment and it not show up (as the form was invalid so the instance wasn't saved). I'm sure some guys will still spam me stuff out of spite but you cannot have everything.