Twitter icon.
Random notes on software, programming and languages.
By Adrian Kuhn

How do I track time? II


Recently, I showed how to use the command line and a ruby script to keep track of time. Due to popular demand, here is the full script (including time cloud generation).

track_my_time.rb

The script is used as follows:

% I am back from lunch
0d 0:46'32"
% I read mail
0d 0:12'05"
% I fixed bug 20446 in Some.app for Acme
0d 1:38'12"
% …

On monday, you can use --cloud to show the time cloud of last week. A time cloud is a tag cloud with all terms that appear in last week’s entries, weighted by frequency and duration of the containing entries. No stemming so far, but you can provide a stopword list in a separate file.

For example, my time cloud of last week looks as follows:

Installation instructions and more usage see script file.

3 Responses to “How do I track time? II”

  1. Dezi Says:

    And why not map the time of the day as a distance metric and then HEAD TO THE OBSERVATORY!

    In which ‘the observatory’ of course is the landscape-hill-thingy, the height metric being the occurrences of the word.

  2. Toomas Römer Says:

    I was giving it a try, got a:
    track_my_time.rb:55:in `-’: undefined method `date’ for nil:NilClass (NoMethodError)
    from track_my_time.rb:112:in `arguments_given’
    from track_my_time.rb:99:in `main’
    from track_my_time.rb:163

    Any ideas? Running on Linux Debian unstable.

  3. akuhn Says:

    @Toomas Römer
    Issue fixed, checkout the latest version.
    I added code to handle missing/empty text file

For.example is Digg proof thanks to caching by WP Super Cache!