Tech and travel

Posts

Reliable file updates in Python

2013-07-16

Machines can fail, so it’s important to make sure your files are saved. This article has some great ways of doing reliable file updates with python. Great stuff.

Redirect stdout to log from a bash script

2013-07-09

My colleague Day Barr found this very useful Stack Overflow article. It shows how to redirect stdout to a log file from with a bash script. This is very useful if you’re debugging an existing bash script and don’t want to add a redirect to every line in it.

Houghton Hall Waterflame

2013-06-08

Houghton Hall is a statele home outside of Kings Lynn in Norfolk. They currently host the excellent Houghton Revisited exhibition with paintings from the Hermitage in St-Petersburg that originally hung in Houghton Hall. I can’t show pictures from the exhibition because photography was not allowed. However in the gardens they have this sculpture called Waterflame from Jeppe Hein:

Replace last occurrence of a character in vim

2013-06-03

This stackoverflow post has a cool way to remove the last occurrence of a character in vim : :%s/.*\zs,/|/ This replaces the last occurrence of a comma with a pipe. Other examples can be found on the vim wikia.

Budapest

2013-05-20

Great weather and great food. In other words it was a nice trip to Budapest.

The Donau, with Buda on the left and Pest on the right

The Donau, with Buda on the left and Pest on the right

Copyright (c) 2025 Michel Hollands