Found myself reading about values, variables, and literals in JavaScript.
Author Archives: Jay Jay
Array splice method
Found myself looking up the syntax of the Array splice method.
Text Escaping and Unescaping in JavaScript
Found a handy web-based utility for encoding/escaping text in JavaScript: Text Escaping and Unescaping in JavaScript.
Trimming new line in bash
To trim new lines in bash:
tr -d '\r\n'
Getting a file by HTTP and redirecting file contents to stdout
To download a file from the web and send its contents to standard out, try this:
wget -O - -o /dev/null https://www.unconfusable.com
Change root password in MySQL
Needed to set a MySQL root password. Found this article which suggested a way when no password is yet configured:
mysqladmin -u root password NEWPASSWORD
And a way when a password is already configured:
mysqladmin -u root -p'oldpassword' password newpass
Note: you use ‘mysqladmin’ not ‘mysql’.
Fixing mailman can’t discard/defer message via web config
I had a notice from Mailman for one of my lists that there was a message that required administrative attention (i.e. it was spam). The mailman web-interface provides a facility for treating email, however when I went to discard the message it wouldn’t go away. I tried a heap of things and it took a long time to figure out, but eventually I noticed that in the mailman web page the domain name it was using was “intranet.blackbrick.com” whereas that should have been “www.intranet.blackbrick.com”. So I did a little searching about how to configure a list’s base URL and discovered this, which fixed my issue:
/usr/lib/mailman/bin/withlist -l -r fix_url support \ --urlhost=www.intranet.blackbrick.com
Where ‘support’ above is ‘list name’.
RIP Phil Saunders
Here’s my old mate, Phil Saunders. Phil died recently, at the age of 32, after an accident with a train. He was a great guy and I’m going to miss him. RIP Phil.

What’s new in Ubuntu Server 12.04 LTS
Been meaning to get around to reading this white paper from Canonical: What’s new in Ubuntu Server 12.04 LTS.
XML on the Web Has Failed
Here’s an interesting article from way back in 2004: XML on the Web Has Failed.