Absolute Time

It is a known problem that computers will run out of time. In the past it was the the Year 2000 problem. This happened because programmers used only two characters to store the current year. Because of this computers could only store the range 00-99. Once the year went from 1999 to 2000, the computers thought it was 1900. To the best of my knowledge, we overcame that problem, and did in fact not plunge into a dark age of nuclear war, as previously predicted.

»

Splitting the Transaction Cost

Suppose someone (A) is transferring you (B) $1,000 (or pounds, or yen, or whatever), and there is a 5% transaction fee, but you want to split the fee evenly between the two of you. Easy, that’s a total fee of $50 so $25 each, right? Close, but not quite. In that case A would transfer the original $1,000 plus their half of the $50 fee, for a total of $1,025. However, now the total fee charged has risen to $51.25 ($1,025 * 5%), because the total transferred amount went up from $1,000 to $1,025. B would receive $973.75 ($1,025 – $51.75), making their share of the fee $26.75 ($1,000 – $973.25). In order to correctly calculate this, we need to do a bit more maths.

»

Danish Meatballs

My super simple recipe for Danish meatballs, or “Frikadeller” as they’re called in Danish. Nothing special, but someone asked for it, so I’m leaving it here. According to my dad, who gave me the recipe, this batch makes about 12, though I have never counted. Normally in Denmark we’d serve this with a healthy portion of white potatoes and gravy, but you can have it however you like.

»

Running Banished on Linux

Yeah that’s right, it works! The only thing I was not able to make work immediately was sound, but I can live without that.

»

Proxy Servlet for GWT in devmode

One of the problems with using GWT is that when you run in devmode, GWT manages its own instance of a Jetty server (I think it’s a Jetty server anyway). Unless you want to use GWT’s own server implementation, and perhaps even run in on Google AppEngine, you’re going to run into the same origin policy. In order to get around this problem, you have to set up a proxy server of some sort.

»

Planet Earth on the Desktop

Ages ago I created a script to generate a visual representation of the earth from space. Since then it stopped working, but I’m happy to announce that I’ve updated the code and it now works again.

»