Archive for the ‘Tech’ Category
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.
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?
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.
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.
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.