Displaying a Productivity Chart in Emacs

Fri May 31, 2013 by brett

I have created the following bit of Emacs Lisp that generates my daily productivity graph and displays it in it’s very own emacs buffer. You can kill the buffer by pressing the ‘q’ key.

(defun bh-kill-productivity-buffer()
  (kill-buffer "*Productivity*")
(defun bh-display-productivity ()
  (shell-command-to-string (expand-file-name     "~/my/bin/pomodoro_daily_chart.py -o ~/tmp/pomodoro_daily_chart.png"))
  (let ((bf (get-buffer-create "*Productivity*")))
    (switch-to-buffer bf)
    (setq buffer-read-only nil)
    (insert-image (create-image (expand-file-name     "~/tmp/pomodoro_daily_chart.png")))
    (setq buffer-read-only t)
    (set-buffer-modified-p nil)
    (local-set-key (kbd "q") 'bh-kill-productivity-buffer )

Using Things.app as a Kanban System

Fri May 31, 2013 by brett

Today I worked out how to use Things as a Kanban system. The trick is to use the “Focus” top-level item on the sidebar properly. A lot of my tasks had built up in the “Next” folder. I moved all those tasks from “Next” into the “Someday” folder. Then I only move into the “Next” folder the stuff I’m planning to work on that day. The task I’m currently working on I move into the “Today” folder.

Productivity for 2013-05-30

Thu May 30, 2013 by brett

Not a hugely productive day today, unfortunately. Although since I have been monitoring my productivity hourly, I have been way more productive than normal, which is interesting.

This morning I was planning to write a cron job to save my daily productivity totals to a database, but I realised that I actually have all the information in my Mac OS/X calendar anyway, and can just retrieve the data there.


Productivity for 29th May, 2013

Wed May 29, 2013 by brett

I coded up a script to output a chart of what my productivity looks like for the day. It is based on my Pomodoro software that logs all the time-boxes to my calendar on Mac OS/X. My program extracts all the information and constructs a nice looking chart. The idea is that I track what things are making me more productive.

You can find the script over in my GitHub repository

Pomodoro Daily Chart 2013-05-29

callistevents now on GitHub

Wed May 29, 2013 by brett

I wrote a small command-line program this morning called callistevents (from Calendar List Events). It is a Mac OS/X program that lists all the events in a specific calendar between 2 dates.

I wrote this program because I have been using Pomodoros to time-box my tasks each day. My Pomodoro software logs all the time-boxes I do to a calendar called “Pomodoros”. I wanted to sum up all the time-boxes so I could keep track of my productivity each day.

I hope this is useful to other people. If so, you can find it on GitHub.

Awesome Code Commenting

Tue May 28, 2013 by brett

The comments in this JavaScript file by Lunametrics are hysterical. To give you a taste; here is the start of the file:

`The comments in this JavaScript file by Lunametrics are hysterical. To give you a taste; here is the start of the file:


Renaming XCode Projects

Sun May 26, 2013 by brett

It turns out that renaming XCode projects is easy! This StackOverflow thread showed me the trick. All you need to do is double-click slowly on the Project Name in the project hierarchy tree. This allows you to change the name. You then get a dialog showing the refactoring of everything related to the new project name.

An Unexpected Detour

Sat May 25, 2013 by brett

Yesterday we were supposed to fly back to London from Denmark. Unfortunately our flight was cancelled. We found out about it when we arrived at the airport, but couldn’t check in. There was a massive queue of people waiting to try and rebook a flight or get a refund. I jumped on to my iPhone and changed flights for one the next day (tonight). I also investigated hotels. We managed to book The Renaissance hotel in Malmo, Sweden for the night. We also organised a late checkout, so it was quite a pleasant day today. Having O2 International Roaming was fantastic. It’s one of the big pains of travelling; not having data on your phone when you need it most.

Ale's Stones

Thu May 23, 2013 by brett

We drove out to the South East of Sweden until we found the largest standing stones in this region. They are called Ale’s Stones


Disas Ting

Thu May 23, 2013 by brett

Part of a stone square - standing stones called “Disas Ting” (Disa’s Thing in English). In southern Sweden.