Qua locus

Keeping both eyes on the long game.

Archive for the ‘Tech’ Category

How I installed monit as an upstart service

This blog has been split in three and all content moved to the new blogs – Qua Locus LifeQua Locus Tech and Qua Locus Puzzle – comments are disabled here.

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

This blog has been split in three and all content moved to the new blogs – Qua Locus LifeQua Locus Tech and Qua Locus Puzzle – comments are disabled here.

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 , , ,

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

This blog has been split in three and all content moved to the new blogs – Qua Locus LifeQua Locus Tech and Qua Locus Puzzle – comments are disabled here.

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 , , , ,

User-friendly, developer-friendly error handling with Lithium

This blog has been split in three and all content moved to the new blogs – Qua Locus LifeQua Locus Tech and Qua Locus Puzzle – comments are disabled here.

Lithium’s error-handling infrastructure is very comprehensive, making it possible to handle errors in a rich and flexible way. However the documentation is still being fleshed out as the framework approaches version 1.0, so it’s not obvious yet how to take full advantage of it. In this post I describe the general error-handling features I’ve built for my web apps using Lithium’s error-handling infrastructure, including user-friendly error pages, distinguishing between different types of error, logging the error information to the database and also allowing users to contribute additional notes for some types of errors.

Read the rest of this entry »

Written by Christo Fogelberg

September 29, 02012 at 14:42

Posted in Tech

Tagged with , , ,

“Keeping both eyes on the long game”

This blog has been split in three and all content moved to the new blogs – Qua Locus Life, Qua Locus Tech and Qua Locus Puzzle – comments are disabled here.

This blog is mostly about the long game of life. But more on that in a moment. Because, from time to time, I’ll also share some puzzles (I like puzzles), and more rarely I’ll also write about coding and technical stuff and tricks I’ve come across while I’m teaching myself to draw, speak Mandarin and everything else on my long list of interests. Mostly though, this blog is about the long game of life.

Which is quite a broad topic that includes almost everything, and so it’s not much use as a topic. More specifically, more usefully, I’m only interested in how we – you, me, all of us – can best play it to win. That is its focus, and on closer examination, it also serves us best to divide the long game into two.

Read the rest of this entry »

Written by Christo Fogelberg

March 15, 02012 at 00:54