New website is now live

Published Saturday, 21 February 2015

Finally, the new website is now live. There are still some features to complete, such as searching, commenting, responsiveness, blog archive and more, but we're close enough to go live.

Since the fateful event of August 2014 when my darling girlfriend turned off all the power before a holiday and somehow destroyed the previous server and therein the old website, this site had been kept running barely by Ghost.

Well, that's a thing of the past now. Ghost is...well, a ghost. A codebase arises.

I'll be actively adding features and finishing off the edges over the next few months.

Oh, and as a bonus, backlinks from my old website now work too.

Disable iptables

Published Monday, 8 December 2014

Rather than disabling iptables in Ubuntu 14.04, you can allow everything.

iptables -F
iptables -P INPUT ACCEPT

It's bad, but it works.

Version ranges for node package dependencies

Published Friday, 14 November 2014

I've lifted this from, but here at least I'll find it again.

version Must match version exactly
>version Must be greater than version
>=version etc
~version "Approximately equivalent to version"
^version "Compatible with version"
1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
http://... See 'URLs as Dependencies' below
* Matches any version
"" (just an empty string) Same as *
version1 - version2 Same as >=version1 <=version2.
range1 || range2 Passes if either range1 or range2 are satisfied.
git... See 'Git URLs as Dependencies' below
user/repo See 'GitHub URLs' below
tag A specific version tagged and published as tag path/path/path See Local Paths below

For example, these are all valid:

{ "dependencies" :
    { "foo" : "1.0.0 - 2.9999.9999"
    , "bar" : ">=1.0.2 <2.1.2"
    , "baz" : ">1.0.2 <=2.3.4"
    , "boo" : "2.0.1"
    , "qux" : "<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0"
    , "asd" : ""
    , "til" : "~1.2"
    , "elf" : "~1.2.3"
    , "two" : "2.x"
    , "thr" : "3.3.x"
    , "lat" : "latest"
    , "dyl" : "file:../dyl"

Git urls can be of the form:


Read more:

Remove .DS_Store from git repository

Published Tuesday, 5 August 2014

The following will help you remove .DS_Store from your git repository.

$ find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
$ echo ".DS_Store" >> .gitignore
$ git add .gitignore
$ git commit -m ".DS_Store removed from repository"

Now you can relax.

Showing posts 1-5 of 151