Author Archives: Andrew Watts

Implementing python’s string format() in javascript

In python 2.6, a new standard string method was introduced: format(). I have started using it a lot in my python code and it is the new standard way to format strings in python 3.0.
I also write a lot of javascript, and probably more javascript than python, but debugging in javascript is difficult and I’ve [...]

Thoughts on Google Wave

If you don’t know, Google Wave is a new ambitious product from Google that is attempting to change the way we communicate electronically by making Email, IM, document editing, etc… all realtime and collaborative on a single page in the web browser.  There is an interesting and entertaining video out there that I recommend watching.
And as I watched [...]

1234567890

Running in a terminal today:

#!/bin/bash

while(true) do

    epoch=`date +%s`

 

    if [ 1234567890 = $epoch ]; then

        echo 'HAPPY 1234567890 SECOND!'

        exit

    else

        let delta=1234567890-$epoch

        time_left=`date -u -r $delta +%H:%M:%S`

        echo $time_left

        sleep 1

    fi

done

Otherpaces [...]

They haven’t paid enough attention

MF Bliki: FlaccidScrum:
What’s happened is that they haven’t paid enough attention to the internal quality of their software. If you make that mistake you’ll soon find your productivity dragged down because it’s much harder to add new features than you’d like.
and
I always like to point out that it isn’t methodologies that succeed or fail, it’s [...]

converting mac plist files from binary to xml

If you have Xcode installed there is a nifty tool called plutil to convert plist files from binary to xml and vice versa.
Why do you care?
Well if you are doing unadvertised things to your plist files you may want to verify the contents, and if its in binary form, then it’s a little hard [...]