Posts Tagged ‘snow leopard’

The real British Mac keyboard

Posted in Uncategorized on March 27th, 2010 by admin – Be the first to comment

You bought a mac in the UK only to find the keyboard layout isn’t fully British or fully American. See Wikipedia. There’s a pound symbol but the at, hash and quotation marks don’t seem quite right.

You’ll want to go to http://liyang.hu/osx-british.xhtml for a fix for snow leopard.

If you’re thinking that it’s the “mac way” and you should accept it and live with I have to totally disagree. Any system should should be configurable to meet the user’s needs and imposing only one method of doing something is counter productive. It feels good to type this article on a keyboard knowing what each key should output rather than rewiring my brain.

Installing mysql on Mac Snow Leopard

Posted in Uncategorized on September 18th, 2009 by ph-lee – 2 Comments

This articles is regarding Mac OS X 10.6 with mysql 5.1.37.

I followed this article at hivelogic.com which required compiling mysql from source. It mostly worked with a few hitches which I’d like to share.

After following the article and attempting to run my rails app the first problem I hit was…

uninitialized constant MysqlCompat::MysqlRes

this problem seemed to be that you need to specify the atchitecture as 64-bit when installing the mysql gem. So run the below command intead when install the mysql gem…

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-
config=/usr/local/mysql/bin/mysql_config

Or if you already installed the gem just re-install with this command. The next problem was the following…

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I’d move a project from ubuntu onto the mac I couldn’t find the mysql socket to use as it was specifying the wrong location. On the mac the file can be found at

/tmp/mysql.sock

So you’ll need to modify your database.yml file accordingly to point to this location

Hope this helps.