Ph values

Stephan on testing, software (good and bad), Ruby and the world at large

Archive for the ‘Mac’ Category

Show the full path in Finder

Posted by stephan on 12. June 2009

As described over at “Mac OS X (Tiger and Leopard) Configuration Tips” you can configure Finder to display the full path to the currently displayed folder by using this (in a terminal of your choice):

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Change back to the default (of the default) using ‘NO’ instead of ‘YES’. Apparently this works in Leopard (or later) only.

Posted in Mac | Tagged: , | Leave a Comment »

Get Going with Git

Posted by stephan on 28. March 2009

While still in the process switch ing from Subversion to Git, here are a few helpful links I found:

Once up and running there’s of course githubgitcentral and gitorious. For hosting open source projects currently github seems to be the choice, but in case you prefer not to share stuff (just yet) gitcentral offers free (as in no money) hosting of private projects using free (as in open source) software.

Posted in Mac, Software, Work Environment | Tagged: , | Leave a Comment »

Syntax Highlight Code with TextMate in HTML

Posted by stephan on 10. March 2009

Andi Schnacke describes how to to generate HMTL to display syntax highlighted code from within TextMate. The short version:

Bundles → TextMate → Create HTML from Document

Strange I didn’t notice before.

Posted in Mac, Work Environment, syntax | Leave a Comment »

Safari 4 – Tabs Moved Back

Posted by stephan on 2. March 2009

It has been noted at other places: The tabs in Safari 4 appear in the very top of the window, where you’d display page information and could CMD-click to see the browsing history. And you could easily move the window with a click ‘n drag. That space is now (mostly) occupied by the tabs. To go back to what it used to be previously just do this (at your own risk):

defaults write com.apple.Safari DebugSafari4TabBarIsOnTop -bool NO

There you are, the tab are back just above the content (where I think they belong anyway).

Posted in Mac, Work Environment | Leave a Comment »

Things We Do, But Shouldn’t

Posted by stephan on 21. September 2008

I regularly fire up the same applications: TextMate, a browser or two, mail programs, iTunes, a shell, irb and others. Now, while Quicksilver is excellent for firing up applications (and a lot of other things), I’d still be busy typing and/or mouse-pointing and clicking. And doing that is boring, cumbersome and not what I like to do anyway. I shouldn’t (have to) do it. And, in fact, I don’t. A little bit of Ruby code will do it:

#!/usr/bin/ruby
%w( <full_application_paths_go_here> ).each{ | app | system "open #{app} &" }

Replace <full_application_paths_go_here> with a list of space-delimited full application paths, save it into a file (in ~/bin presumably), make it executable and there you go. Actually, the language doesn’t matter at all here. The only thing that does matter is to fire up the applications.

Starting all most used applications is now just a few key strokes away. There’s certainly a very similar way to do this on other *nix OSes and Windows.

Posted in Mac, Programming, Ruby, Work Environment | Tagged: , | Leave a Comment »