Posted by & filed under General.

I’m very excited to announce that a book I’ve written has been published! The book is called TextMate How-to and is published by Packt Publishing.

TextMate How-To Cover

At just a little over 70 pages, it’s a short read geared toward web developers and designers who want to learn about the best features of TextMate 1.5 without diving too deep into the manual. It covers the following topics:

  • Configuring TextMate, including installing themes
  • Navigating text and files quickly and easily
  • Converting text using the best and most useful methods
  • Searching using various methods whether in one or multiple files
  • Creating and utilizing projects
  • Installing bundles quickly and easily
  • Overview of some of the more useful bundles
  • Utilizing shell commands and variables
  • Recording and using macros to speed up your editing

This book is not meant to be a comprehensive source (see TextMate: Power Editing for the Mac), but I hope it’ll be a go-to resource for those who wish to learn the best practices of TextMate quickly.

If you have a chance to read it, let me know what you think in the comments, and feel free to submit a review.

Posted by & filed under Music.

Volume 4

Welcome to the 4th volume of my Best of Canadian Independent music mix. Compiled each year, this mix contains my favorite tracks from the top Canadian independent artists.

Enjoy and let me know what you think in the comments!

Read more »

Posted by & filed under General.

Here’s a little workflow I thought I’d share for when I want to see all the files changed during a commit range:

Requires: git, Textmate, and Mac OS X (of course)


git show --pretty="format:" --name-only [SHA range, (e.g. 7c98847..f8fa22d)] > ~/Desktop/changed_files.txt
mate ~/Desktop/changed_files.txt

When Textmate opens:

  1. Select All Text
  2. Bundles > Text > Sorting > Sort Lines & Remove Duplicates

Posted by & filed under General, Music.

Volume 3 — “When You Wish Upon a Maple Leaf”

Welcome to the 3rd volume of my Best of Canadian Independent music mix. Compiled each year, this mix contains my favorite tracks from the top Canadian independent artists.

This year, I’ve included my thoughts, trivia, or shout-outs on each track. Enjoy and let me know what you think in the comments!

Read more »

Posted by & filed under Geeky Stuff.

I am very meticulous when it comes to server calls. In most of my Rails applications, I make sure to only specify those Javascript files that are deemed absolute necessary for any given view so as to not clutter things with wasted bytes of memory.

While I was playing around with HAML, I needed to insert a very simple, very specific jQuery function. As of this writing, a simple Google search of “haml and javascript” came up with some old and unhelpful results. The official HAML documentation was, of course, among those results, but the answer was at the bottom of the document and a quick scan of the table of contents didn’t associate “Filters :” as being the correct the section.

Of course, a blog or two and the HAML google group already tackled the topic, so I’m just going to regurgitate in order in hopes that next person with this problem will find the answer in 2 minutes instead of my 10 minutes.

An example:

:javascript
  $(function() {
    $("#tabs").tabs();
  });

Posted by & filed under Geeky Stuff.

I just recently had this problem and saw that the answer was buried in a TextMate blog entry comment thread.

Are you getting the following error whenever you try to use the bundle?

sh: git: command not found

Did you install git through Macports or manually compile the source? Could your Git bundle for TextMate be a tad old?

All of the above was true for me, but I was easily able to solve the issue with the following command:

sudo ln -s /opt/local/bin/git /usr/bin/git

Hope that cuts back on troubleshooting time for some of you out there!

Posted by & filed under Geeky Stuff.

Partly because I wanted to post more and partly because I transfer computers a lot and I figure a blog is as good place as any to share my thoughts with, well, myself.

Here’s a list of aliases I’ve collected over the times searching the Internet (note: so far, not so many, but that’ll change as I keep finding more).

To be put in ~/.bash_profile:

alias ls='ls -aFhlG'
alias ll='ls -l'
alias search=grep
alias ..='cd ..'
alias ...='cd ../..'
alias bake='/opt/local/apache2/htdocs/cake/cake/console/cake bake'
alias cake='cd /opt/local/apache2/htdocs/cake'

If anyone wants more detailed explanation of any or all of these, or if you’d like to know what in the bejesus I’m even talking about, post a comment.

Oh, and I would also happily welcome further suggestions too.

Posted by & filed under GTD.

Motivation is a fascinating thing. Sometimes you have it, other times it’s no where to be found.

I started writing a blog to inspire me, and others, with any random thoughts and ideas that came to mind. Then I realized that I haven’t actually written anything in a very long time. Like all skills, writing takes practice. Practice makes perfect, but to a perfectionist like me, it’s hard to sit down and write when what’s coming out is pure crap.

In fact, the most inspirational piece I’ve heard is from Ira Glass (This American Life), on the subject of sucking. Though the topic is on storytelling, his message is very universal for beginners: you’re going to suck, deal with it and overcome by putting in the effort.

Some other things that I also found helpful are:

Posted by & filed under Music.

Animal Collective Summertime Clothes from Merriweather Post Pavillion (Domino 2009)

In all honesty, like most of my now favorite albums, “Merriweather Post Pavillion” took me several listens to get into. While we’re on the subject of honesty, I got into Animal Collective pretty late in the game. Starting with “Strawberry Jam” I loved the noise, screaming, and psychedelic electronic instrumentation that was filling my ears! Alas, I find out that was a very odd album for Animal Collective and the newer album gets back to its roots. This isn’t a bad thing, just was a bit disappointing and slowed my appreciation. However, after the 3rd or 4th listen, I started to get hooked. My Girls is easily a favorite. However, this weeks song, Summertime Clothes, just makes me happy to think about all of those summertime clothes we’ll be enjoying soon. Oh, if only it weren’t still March.