Handy calculator for the command-line. Hey, it’s already on the mac.
Category Archives: Apple
Some useful OS X hacks
Lighten OS X’s Load with: Turn off widgets: In a terminal type: defaults write com.apple.dashboard mcx-disabled -boolean YES killall Dock You can turn widgets back on with: defaults write com.apple.dashboard mcx-disabled -boolean NO killall Dock Make hidden apps ( in 10.5) look transparent: defaults write com.apple.Dock showhidden -bool YES killall Dock
Embed Tags for Quicktime
I’m working on a personal project for the iPhone. Specifically, I’d like to make an ajaxed index of all my music organized by artist. It’s a spare time project, and I don’t have much of that right now, but it’s coming along well. I started out by making an HTML index of a directory of [...]
Internet Connection Sharing with OS X
With OSX this is brain-dead simple. To share an Internet connection through the AirPort, go to System Preferences and click on the Sharing item. Highlight “Internet Sharing” from the list on the left (but leave it unchecked). Next, select the connection you wish to share, from the drop down list and how you would like [...]
Full Filenames in the Finder
By running the two commands below, in a terminal, it’s possible to get OS X’s Finder to display the current full path as the window’s title. $ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES $ killall Finder It’s not possible to edit or “grab” the path. Power users might like the Finder’s “Path Bar” more. You [...]
Build wget for the Mac
Looks like Apple has neglected to include the command line tool wget for a while now. I was able to find a precompiled binary for 10.4, but 10.5 is so recent that it looks like wget hasn’t make it’s way on to the tubes. If you’re looking for wget why not build it yourself? The [...]
iPhone Streaming with .htaccess
It appears that Safari on the iPhone does not like .htaccess. Your likely to receive an error message when you play anything password protected. The work around goes something like http://username:password@host.com/foo.mp3 Good luck with that. I’m thinking about writing a little javascript to work around this. I’ll update this post if I ever get to [...]
Mount Wikipedia… as a file system
It’s old news, but I figure you’re still enamoured enough by those pictures of Paris Hilton crying that you just might have missed this. In case you were wondering, linking to two completely different stories that attract completely different types of people happens to be one of my hobbies.
Linking Shell Scripts to Automator Actions
You might be wondering why I’d even want to link a shell script to an Automator action. Good question, I have no idea. It’s there, I have shell scripts and a Mac, seems like an obvious decision. From the tutorial The Run Shell Script action in this simple example runs the find command in the [...]
Recursively Copy Files but not Directories with Find
Every once in a while I’m floored by someone’s amazing foresight. In this case who ever came up with find’s -exec and -execdir actions. From the man page: -exec command ; Execute command; true if 0 status is returned. All following arguments to find are taken to be arguments to the command until an argument [...]