Recent posts

Python: Converting decimals to imperial fractions

For my blog (the one that you’re currently reading) I wanted to implement an automatic conversion from metric to imperial for all measurements that I mention in my posts. This would help readers from the US to understand them more easily and (probably the more relevant reason) be a nice programming task for me. While I plan to publish the full implementation and write a post about it, this post focuses on a small part of the task: converting decimal values into nice fractions with a denominator that is a power of two.  Read more

Building an Arduino-controlled power strip

My desk is a mess. When I built it I wanted to be able to switch every device on and off at a central location, so I bought a power strip with lots of switches and ran wires from there. Initially that worked fine, but with an increasing number of devices on and around my desk the mess started to increase as well. To solve this problem for now and (hopefully) forever, I want to build a power strip where each outlet is controlled individually by an Arduino. This allows me to run a single power line to the power strip from any outlet in the room while I’m still able to control every outlet from my desk and, if everything works as planned, even via network from everywhere else.  Read more