July 2012

A Different Kind of Tech Presentation

July 14, 2012 •

Rob Conery’s presentation from the Norwegian Developers Conference is well worth a watch. Rather than flash up some slides and example code that doesn’t really tell you anything about the language, he decided to code. Just code. As he says on his blog:

I sat down and coded to some fun music for 50 solid minutes.

The video is well worth a watch as it really gets across the atmosphere of the room, and the music fits the presentation almost perfectly. Rob makes surprisingly few typos (I forget how to touch type if someone walks past me!), and the presentation flows smoothly through many aspects of Node. I feel like I learned more from casually watching this than I would have from spending a few hours typing out “Hello, world!” tutorials, and I really thing that is what Rob was trying to put across.

A fantastic model for tech presentations, if you can pull it off!

Logging Blog Ideas

July 12, 2012 •

Like most people these days, I’d like to blog more. A key part of that is finding things to write about. Whenever I had an idea, I would open up nvALT, find my list of ideas, then add a new idea to the bottom. None of those steps are too difficult, but they do cause a fairly lengthy disruption if you are in the middle of something else. To streamline the process, I used Alfred, an application launcher from Running With Crayons.

One great feature of Alfred is the ability to trigger a shell script, along with passing it an optional parameter. A simple shell script to log ideas would look something like this:

	echo "idea" >> ~/Dropbox/notes/blog_ideas.txt

Combining that with Alfred means that I can replace whatever is inside the quotes with a parameter that Alfred will pass to the script. The value this parameter takes will be whatever you type after the keyword you use to trigger your script. The actual script you need to put in Alfred looks something like this:

echo "- {query}" >> /Users/david/Dropbox/notes/blog_ideas.md 
    && echo "Added {query} to blog ideas…"

I use a hyphen at the start of the item because I maintain my file as a markdown list. The echo at the end gives me a Growl notification with whatever was added to my list of ideas. I can now hit ⌘-Space to bring up Alfred, then type “blog ‘new idea’“, and get a new line at the end of my ideas file.

Journaling with DayOne

July 8, 2012 •

Yesterday, I took the plunge and invested a whole ~£4.50 buying DayOne for both OS X and iOS. The app is billed as

The easiest to use journal / diary / text logging application for the Mac…

and I think that is probably true. So far, I’ve only written about six (short) entries over two days, but I’m really enjoying the simple, clean, interface.

What I think will become a key feature for me are the reminders. I used to use ohlife for keeping a journal, something I stuck with for a just over a month, and one of the best features there were the daily email reminders to make an entry. However, whilst it was easy to hit reply and submit your entry, I don’t think a mail client is where most people do their best writing – certainly not their most intimate.

The first thing I did when I installed DayOne was to work out how to import my old ohlife entries, something that currently needs to be done using the dayone command line tool. It is very simple to use, and the sample script they provide, along with Brett Terpstra’s post on using DayOne from the command line had me well on my way to getting my old entries imported.

The ohlife export file simply contains all your entries, with a simple date, content format. I whipped up a quick ruby script to parse my file and create the new entries and I was done.

Flicking through these old entries (from last August) really highlighted the benefits of keeping some kind of daily log of thoughts/feelings/actions, and it was really interesting to read through some of my old entries, knowing that things I was worrying about had turned out fine, and how things I’d wanted to happen have now come to pass.

I’m feeling quite positive that DayOne will help me log enough about each day to be able to look back in 6 months or a year and (hopefully) feel good about what I have done since then!

Launch Centre Pro & OmniFocus

July 7, 2012 •

Recently, Michael Schechter posted about using Launch Center Pro as a mobile alternative to David Sparks’ TextExpander snippets for OmniFocus. I’d heard about Launch Center Pro before but never really gave it much thought. At first glance it just seemed like an app launcher, and as someone who probably uses less than 10 apps regularly, and without any concrete use cases, it didn’t seem like something I had to buy.

AppCubby’s Launch Center Pro, for those as unfamiliar as I was, leads with the line:

Launch actions, not just apps!

A kind-of-neat phrase that does a good job of summing it up. Whilst I haven’t fully explored everything that Launch Center Pro does, I have added a few shortcuts to things like calling or texting specific people, as well as the OmniFocus shortcuts Michael described.

The idea is using the url schemes that OmniFocus provides to add tasks with some pre-determined format, and pre-populated data (e.g. from the clipboard). I’ve copied some of Michael’s shortcuts, and added a few cribbed from David Sparks’ snippets, my favourite being a ‘Conduct Research’ task for things I want to look up. There are two variants, one with, and one without, the clipboard contents included as a note.

	omnifocus:///add?name=Conduct%20research%20re%20
	omnifocus:///add?name=Conduct%20research%20re%20&note=[clipboard]

As an OmniFocus devotee, and someone who frequently uses TextExpander with OmniFocus on my Mac, this Launch Center Pro trick goes a long way to filling the void left by the lack of TextExpander support in the iOS versions of OmniFocus.