Just another developer blog

Author: David

Java enums can implement interfaces

Java enums can implement interfaces

Making an enum implement an interface can be a useful way to split large enums into smaller classes.

Jumbled Headers

Jumbled Headers

Have you ever noticed misspelled HTTP response headers?

That ‘Cteonnt-Length’ sure looks weird! According to this StackOverflow answer, the jumbled header contains the uncompressed size of the response and, sure enough, it does seem to be the case. But why? It seems like this […]

Back up your server to Backblaze B2 with Duplicity

Back up your server to Backblaze B2 with Duplicity

Amazon S3 has been around for more than ten years now and I have been happily using it for offsite backups of my servers for a long time. Backblaze’s cloud backup service has been around for about the same length of time and I have […]

Oops! I committed to the wrong branch

Oops! I committed to the wrong branch

It is common when working with git to use lots of branches. Occasionally you might accidentally commit to the wrong branch but thankfully git makes it easy to put these commits in the right place. It’s worth noting that the fixes described here are only […]

Time zone conversion in Google Sheets

Time zone conversion in Google Sheets

Google Sheets does not have a built in way of converting time zone data but by using the power of Moment.js and Google’s script editor we can add time zone functionality to any sheet. First, we need to add the Moment.js code as a library […]

Loading test data with ScalaTest + Play

Loading test data with ScalaTest + Play

The ScalaTest + Play library provides a couple of useful traits for when your ScalaTest Play Framework functional tests need a running application for context. The OneAppPerSuite trait will share the same Application instance across all tests in a class whereas the OneAppPerTest trait gives each test its own […]