BrT

Musings about technology and other neat stuff

BrT random header image

Removing all extended attributes from a directory tree

May 7th, 2008 · 24 Comments

Here’s a simple one-liner I came up with to remove all HFS+ extended attributes on all files and directories below the current one in Mac OS X. Useful before creating a tar file that will be shared with non-Mac users (tar in OSX will create additional “resource” files to store extended attributes, which when untared [...]

[Read more →]

Tags: · ·

Grepping plist files

April 28th, 2008 · No Comments

I’m trying to track down why some of my attachments keep being downloaded to ~/Library/Mail Downloads/ even after I have set my Downloads directory in Mail.app to ~/Downloads/. I haven’t found it yet, but in the process I wrote a quick script for searching for a regular expression in .plist files, converting them to XML [...]

[Read more →]

Tags: · · ·

Google Transit includes Switzerland

February 11th, 2008 · 3 Comments

This is probably old news, but I just noticed that Google Transit has coverage for Switzerland, and it is now integrated with Google maps. This could be even handier to use than the native interfaces of the local public transport systems. It has both train and bus information, although it doesn’t seem to know about [...]

[Read more →]

Tags:

Productivity tip: keep a handwritten log

January 31st, 2008 · 4 Comments

This is the best productivity tip I have received in a long time, and it is surprisingly simple:
Keep a handwritten, detailed log of your daily activities.

I have been using GTD for some time now, and my problem has always remained in the last step: actually doing the things in my actions list. I am easily [...]

[Read more →]

Tags: · · ·

OpenSim on OSX… or: your own secondlife grid in 8 easy steps

January 31st, 2008 · 35 Comments

Following DrScofield’s instructions for setting up OpenSim , I thought I’d give it a try on my OSX laptop. The process is not quite as straightforward, but it works. Here’s what I did:

Download and install the Mono package for OSX from the Mono downloads page.
If you don’t have subversion, install it. I personally like the [...]

[Read more →]

Tags: · · · ·

Using launchd to immortalize Quicksilver (howto)

January 28th, 2008 · 5 Comments

I love Quicksilver, but the latest version crashes every once in a while. It’s not so frequent as to be really annoying, but the annoying part is that to re-launch it I have to go hunting in the Applications folder, or use Spotlight, none of which is an acceptable alternative being used to Quicksilver.
It occurred [...]

[Read more →]

Tags: · · ·

How to emulate Unix’ getent with MacOSX’s dscl

January 21st, 2008 · 1 Comment

The Unix getent command does not exist in OSX. Starting from 10.5 (Leopard), the administrative databases have changed from Netinfo to DirectoryService, and the main tool for looking things in DS is dscl (see also this article at afp548.com).
For example, to query a user by UID with getent, you would run:

getent passwd <uid>

With dscl, you [...]

[Read more →]

Tags: · · ·

How to use Wordpress 2.3 tags with ecto3

December 19th, 2007 · 2 Comments

To use the new Wordpress 2.3 tags system with ecto, so you can set tags using the ecto side panel, the ecto configuration has to be changed from the default. The instructions are found in the ecto support forum (these instructions apply only to ecto3 – I don’t know how to do it for ecto2, [...]

[Read more →]

Tags: · ·

How to define a new wallet item in 1Password

December 17th, 2007 · 11 Comments

Update 1: I have modified the perl script to include Damon’s modification (see the comments) to make it work properly with the UTF-encoded Localizable.strings file used in recent 1Password versions.
Update 2: Somewhere around version 2.8.3 of 1Password there were some changes that make the original script not work anymore. I have updated the instructions and [...]

[Read more →]

Tags: · · · ·

How to lock the screen using a keystroke on Mac OS X

December 12th, 2007 · No Comments

It seems surprisingly difficult to map a keystroke to lock the screen in OSX – you can map a hot-corner to it, but if you prefer to use the keyboard, there is no official way to do it.
If you use QuickSilver (and why wouldn’t you?), you can set up a trigger (see also this tutorial) [...]

[Read more →]

Tags: · ·