Selenium-RC and Snow Leopard

Selenium-RC was having issues on Snow Leopard:

 
dyld: Library not loaded: /usr/lib/libsqlite3.dylib
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0

Web searches produced a lot of information including some workarounds that didn’t. Finally I read that Selenium-RC 1.x has some hardcoded paths in it that mean it won’t [...]

Completely uninstall mysql from Mac OS X

Remove mysql, prefpane item, startup item.
then:

sudo rm -rf /Library/Receipts/mysql*

There is a good complete explanation of this here.

Mac OS X command-line launchd control of mysql

To start, stop and disable mysql server from the command line:

# start
sudo launchctl start com.mysql.mysqld
# stop
sudo launchctl stop com.mysql.mysqld
# Unload
sudo launchctl unload /Library/LaunchDaemons/com.mysql.mysqld.plist

Terminal.app custom tab names

So it turns out you can have the best of both worlds. I have been using ITerm for a while because it allows me to rename its tabs. Chad just turned me on to a hack that makes the same thing possible with Terminal.app:
1. Install SIMBL: http://www.culater.net/software/SIMBL/SIMBL.php
2. Install TabNamer.Bundle: http://ericanderson.us/2008/03/02/terminalapp-tab-namer-v01-alpha/
[...]

MacOS Leopard bash echo not interpreting escape sequences

I just hit this incredibly retarded irritating gotcha in Mac OS Leopard. Luckily, unlike this poor bastard, it only cost me an hour.
Bash echo is supposed to interpret \ escape sequences (e.g. \n) if you supply it a -e flag. This works from the command line. It works in shell scripts. [...]

iStat menus

There appear to be a couple of different iStat applications.  You want this one.

Increasing RubyMine memory usage

After a long search I figured out how to increase the memory available for RubyMine on MacOS:
In RubyMine.app/Contents/Info.plist
Find:

<key>VMOptions</key>
<string>-Xms16m -Xmx192m …

Xmx is maximum memory to use.

LockScreen icon in menu bar on MacOS X

How to add an icon in your MacOS X menu bar (a la System Tray) that will allow you to lock the screen:
/Applications/Utilities/Keychain Access.app
-> Preferences -> General -> Show Status in Menu Bar

Installing Ruby MySQL gem on Mac OS X Leopard

Thanks to this post, I discovered how to install the MySQL ruby gem on Mac OS X:
You must be using the x86 variant of MySQL, not x86_64, apparently.  Then:

sudo env ARCHFLAGS="-arch i386" gem install mysql — \
–with-mysql-dir=/usr/local/mysql –with-mysql-lib=/usr/local/mysql/lib \
–with-mysql-include=/usr/local/mysql/include

SchemaSpy with MySQL on Mac OS X

To get SchemaSpy working on Mac OS X, I:
Downloaded the latest SchemaSpy, schemaSpy_4.0.0.jar
Installed GraphViz using MacPorts

sudo port install graphviz

Installed the MySQL JDBC drivers using MacPorts

sudo port install mysql-connector-java

Ran it like this:

java -jar schemaSpy_4.0.0.jar -t mysql -dp /opt/local/var/macports/software/mysql-connector-java/5.0.7_0/opt/local/share/java/mysql-connector-java-5.0.jar -o <outputdir> -host localhost -db <dbname> -u <username> -p <password>