Archive for the ‘Utilities’ Category

Murky Finder Service for Snowy

Wednesday, September 30th, 2009

Using Automator on Mac OS X 10.6, it’s easy to create a service for the Finder that opens the currently selected folder in Murky.

Download MurkyFinderService.zip

Unzip, copy the .workflow file into your ~/Library/Services folder, and away you go.

Opening Murky from a shell

Wednesday, September 30th, 2009
alias murky=’open -b com.mooseyard.Murky $PWD’

You’re in a shell and your current working directory is being tracked by Mercurial.  It would handy to have a command to open the repo in Murky.  Your wish is my command.

alias murky=’open -b com.mooseyard.Murky $PWD’

Add this line to your .profile and let ‘murky’ do the work, eh.

OpenInMurky

Tuesday, September 29th, 2009

In the spirit of OpenInTerminal and OpenInGitGui, I’ve put together an Automator application that will open the selected Finder folder in Murky.  When said folder contains an Hg repository, all manner of good things happen.

Download OpenInMurky.zip

Installation and Use

  1. Download and unzip OpenInMurky.zip
  2. Drag OpenInMurky.app to your Finder’s toolbar.
  3. Navigate to your favorite Hg repository folder.
  4. Click on the OpenInMurky Finder toolbar item.
  5. Watch Murky open up your repository.

SOLogger: a Cocoa ASL Logging framework

Wednesday, August 19th, 2009

I spent some time recently putting together a Cocoa interface to the built-in Apple System Logging (ASL) facility.

Following Peter Hosey’s excellent blog series on ASL and some other tidbits on Cocoa-Dev, I fashioned small and simple Cocoa framework for integrating ASL’s multi-leveled logging into your project.


#import <SOLogger/SOLogger.h>

SOLogger *logger;

logger = [SOLogger loggerForFacility: @"com.example.MyApp" options:ASL_OPT_STDERR];

[logger debug:@"A debugging note on: %@", [NSDate date]];

[logger info:@"We just did something."];
[logger notice:@"That's going to leave a mark"];
[logger warning:@"WTF?"];
[logger alert:@"WTF!"];
[logger critical:@"OMG"];
[logger panic:@"OMG WTF!"];

An interesting feature of SOLogger (courtesy of ASL) is that you can create separate loggers for subsystems in your code, potentially logging them to separate destinations.

I host the SOLogger project on Bitbucket with a BSD License.

Check it out.