Qua locus

Keeping both eyes on the long game.

How I installed monit as an upstart service

leave a comment »

Upstart is Ubuntu’s replacement for /sbin/init, and Monit is a great little monitoring service that lets you do intelligent things when errors occur and servers fall over. But for some reason Monit is still installed as a System V init daemon. So I switched it over to use Upstart.

Read the rest of this entry »

Written by Christo Fogelberg

April 22, 02014 at 21:33

Posted in Tech

Tagged with , ,

How I installed NVM and Node.JS globally

leave a comment »

Node.JS is a great little server and it’s also very easy to install and set up. In the same fashion, NVM is a fantastic tool for installing and switching from one installed version of Node to another. The problem arises when you develop as one user but the deployed application needs to be run as a different user and you need to guarantee that the Node configurations they are using are identical. How do you use NVM to install node globally for all users?

node

Read the rest of this entry »

Written by Christo Fogelberg

April 19, 02014 at 11:19

Posted in Tech

Tagged with , , ,

Passing time with Toblerone

with 3 comments

You and a friend have time to kill and lots and lots of Toblerone (thanks Santa!) so you have decided to pass the time by playing a lethal game involving chocolate.

Read the rest of this entry »

Written by Christo Fogelberg

January 5, 02014 at 19:31

Posted in Puzzles

Tagged with

A cute little question about coins

with 6 comments

Jack is tossing a fair coin. John believes in gambler’s luck, i.e. that if Jack has tossed more heads than tails so far then the next toss is more likely to be a tail. This way, in the long run things balance out. Jim knows that previous coin tosses have no effect on the next toss. John and Jim start betting with each other on the result of each coin toss. Who is likely to win more of the bets, John or Jim?

Written by Christo Fogelberg

August 26, 02013 at 21:52

Posted in Puzzles

Tagged with

Thinking Rightly

leave a comment »

Julian Baggini’s “Do They Think You’re Stupid” is a light, amusing read with a serious meta-lesson tucked away inside. Presented as a list of 100 common argumentative fallacies and why they’re wrong, it can actually be interrogated as a guide to good analysis. Read the rest of this entry »

Written by Christo Fogelberg

August 22, 02013 at 21:51

Improving my laptop’s battery life: Dell Inspiron 14z, Ubuntu 12.04

leave a comment »

The Dell Inspiron 14z is meant to have 4-5 hours battery life out of the box. Suffice to say that this wasn’t the case when I first put Ubuntu 12.04 (Precise Pangolin) on it. Two hours if I was lucky, more often 90 minutes or less.

With the help of many others on AskUbuntu.com I’ve got it up well beyond 4 hours now though. The detail and a summary of everything I did is here, hopefully this will be useful to others!

Written by Christo Fogelberg

June 25, 02013 at 22:56

Posted in Tech

Tagged with , , , ,

The best financial decision I ever made

with 2 comments

When Katie and I started going out, and for a long time afterwards, we lived apart. At first that just made sense (you don’t move in with someone three days after meeting them) and later it was a necessity, while I was working in London and she was finishing her doctorate in Oxford. Overall, long distance and living apart is rubbish, but it did mean that we managed to avoid all the thorny financial decisions that being in a relationship normally brings for much longer than you’d expect.

Read the rest of this entry »

Written by Christo Fogelberg

May 27, 02013 at 08:09

Follow

Get every new post delivered to your Inbox.

Join 165 other followers