Mac OS X


16
Jun 12

Text Ex Machina

Looking through my server logs, I noticed that when I moved my blog I somehow forgot to update my TextMate theme! Apparently someone likes it, because it’s been mirrored on the TextMate User Submitted Themes page, but I’ve also re-uploaded it here for anyone who’s interested.

Download TextExMachina.tmTheme

theme screenshot

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

12
Mar 12

MacFusion on OS X Lion

It looks like the “latest” version of MacFusion and MacFUSE (sarcasm quotes because neither have been updated in a very long time) doesn’t work with OS X Lion 64-bit—at least it didn’t for me. I kept seeing this error in /var/log/system.log:

macfusionAgent[849]: dyld: Library not loaded: /usr/local/lib/libfuse.0.dylib
Referenced from: /Applications/Utilities/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/ss
hfs-static

Yeah, that’s because /usr/local/lib/libfuse.0.dylib doesn’t exist. This site pointed me in the right direction, though. Install this version of MacFUSE and all will be well:

http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg

Any superior alternatives to MacFusion someone can point me to?

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

23
Dec 11

Restarting Pow when DNS stops responding

I love Pow, the Rack-based development web server from 37signals, but one thing I can’t stand is how sometimes it stops responding to DNS for no reason in particular.

Well, Mike Sutton figured out how to fix it, and I turned it into a Bash script. Just save this as pow-restart (or whatever) and run it whenever you start having issues:

#!/bin/bash
# Restarts Pow when DNS fails to resolve
lsof | grep 20560 | awk '{print $2}' | xargs kill -9
launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist
launchctl load ~/Library/LaunchAgents/cx.pow.powd.plist
Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

6
Dec 08

Quick tip: Converting DMG to ISO

Save this as dmg2iso and run from the terminal:

#!/bin/bash

if [ -z "$1" ]; then
    echo "Usage: ${0##*/} <file>"
    exit 1
fi

file=${1%.dmg}
hdiutil makehybrid ${file}.dmg -o $file
Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

5
May 08

Color Picker for OS X

This morning I needed to choose a hex color, but I didn’t have easy access to the Color Picker utility in Mac OS X. So I spent about 15 minutes creating a Color Picker.app utility and installed some plugins. Yes, you can install plugins for Color Picker.

Download Color Picker.app here.

Just drag to /Applications/Utilities/ and then you can find the Color Picker in Spotlight.

While you’re at it, make Color Picker more useful by installing these plugins:

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!