Future news: Shadowbook maps every human with an online presence

This story isn’t real. I extrapolate a current trend, and then image what the news would have to say 10-20 years from now.

Read More

Adding error context in Nix

I always have a tough time debugging Nix stack traces, especially when they occur deep in the module system.

Read More

NixOS security-updates update

This weekend Nicolas Pierron (nbp on GitHub) came to London for a NixOS hackathon. He’s been working on improving security updates in NixOS for a while. He’s the author of the NixOS module system amongst other things. He has a successful track record of complex, tree-wide changes so if anyone can nail this, it’s him.

Read More

Nginx in NixOS 16.09

The beta release of NixOS 16.09 comes with a very cool config generator for your NGINX configuration. It makes it easy to:

Read More

Monitoring your NVidia GPU with Prometheus

I have a deep learning box that runs various computations on both CPU and GPU. The ability to off-load expensive computations from my laptop is fantastic.

Read More

3d-printing a lens cap

While phone cameras are getting really amazing I still like my old Sony because it allows me to fiddle with exposure etc.; It has a very good sensor and lens.

Read More

Deep-learning Python environment with Nix

Getting the deep learning environment with all NVidia libaries set up is a bit fiddly. Thankfully I can lean on Nix for that as well. I have a package definition like this (dl.nix):

Read More

Prepare NixOS disk image for another computer

When installing my deep-learning box I didn’t have a monitor so I had to blast the disk-image straight onto a disk with dd.

Read More

Unit testing with types

I’m an incredibly sloppy programmer, and I lean on the compiler heavily to help me not be stupid. One of my favourite things is to use types to enforce properties of data.

Read More

Quick IPython shells with nix-shell

I often want to quickly experiment with a Python package without the
whole virtualenv shenanigans. For that I have an ipython-nix command
in my .bashrc:

Read More