Chris J Mears

Web Developer Extraordinaire!
RSS icon Email icon Home icon
  • Best of Canadian Indie Music 2010

    Posted on January 2nd, 2011 3 comments

    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 the rest of this entry »

  • List the files changed using Git and Textmate

    Posted on August 3rd, 2010 No comments

    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
  • Best of Canadian Indie Music 2009

    Posted on December 17th, 2009 No comments

    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 the rest of this entry »

  • HAML + Javascript

    Posted on October 20th, 2009 7 comments

    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();
      });
    
  • Textmate and Git Bundle

    Posted on September 25th, 2009 3 comments

    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!