Archive for March, 2008
fun with anagrams
<?php define(’WORD_LIST_FILENAME’, ‘/usr/share/dict/words’); class AnagramLookup { private $lookup; // Loads a file with one word per line private function load_word_list($filename) { $lines = file($filename); // One word per line [...]
Javascript…
Javascript is both infuriating and awesome at the same time. I don’t think I’ve ever speant so much time tracking down annoying bugs (even compared to PHP), yet at the same time it makes functions like the one below very simple to write. For reference, the below code returns a `getter` method that we use [...]
Fun with a n800
My respect for the N800 just went up, the whole procedure must have taken 15-20 seconds. Nokia-N800-50-2:~# wget -sh: wget: not found Nokia-N800-50-2:~# curl -sh: curl: not found Nokia-N800-50-2:~# apt-get install wget [snip apt downloading and install wget] Nokia-N800-50-2:~# wget wget: missing URL Usage: wget [OPTION]… [URL]… Try `wget –help’ for more options. Nokia-N800-50-2:~#
Thankyou TPG
Ping statistics for 64.233.167.99: Packets: Sent = 15312, Received = 11515, Lost = 3797 (24% loss), Approximate round trip times in milli-seconds: Minimum = 232ms, Maximum = 537ms, Average = 237ms
