Archive for the ‘mac’ Tag

 

2, 12, 15, 20, 26, 75

December 7th, 2008
By: Steven Haddox
1 Comment »

Some of you may know that I’m a huge fan of LOST (thanks to Katie).  If you don’t, you do now.  I was sitting here trying to figure out a quick way to blog about the month of December as I know I don’t have time to blog as much as I should and I realized that numbers are pretty much a representation of how this month is for me.  So here comes the explanations:

  • 2: The number of years Katie and I have been married (as of December 2, 2008).
  • 12: The number of hours I am trying to work on average each day to earn some savings for possible unemployment come January 1, 2009.
  • 15: Paisley’s age in months currently.
  • 20: Katie’s age in years currently.
  • 26: My age in years (as of yesterday).
  • 75: The number of lightbulbs we replaced on our Candy Land tree in order to get one of the two missing strands of lights to work again this year.

I’ll take a quick moment to go over some of these in more details.  Read the rest of this entry »

Installing ruby-mysql on OS X Leopard

October 23rd, 2008
By: Steven Haddox
1 Comment »

So I was receiving a lovely deprecation warning from Rails tonight that if I didn’t install the C-library mysql adapter for Ruby then my applications would stop working in my environment when Rails 2.2 is released.  I decided it couldn’t be too hard to install the adapter and found out that there are a few problems with using the default gem install mysql when you are running the OS X Leopard mysql.com installation.

Anyway, the short and sweet of this is that there is a solution if your mysql gem install is giving you grief in Leopard. Simply run the following command and take note of the options in the parameter –cflags after the -I/usr/local/mysql/include directory. Those options will need to be passed in as your ARCHFLAGS value when you execute your gem install:

$ mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
        --cflags         [-I/usr/local/mysql/include -Os -arch x86_64 -fno-common]
        --include        [-I/usr/local/mysql/include]
        --libs           [-L/usr/local/mysql/lib -lmysqlclient -lz -lm]
        --libs_r         [-L/usr/local/mysql/lib -lmysqlclient_r -lz -lm]
        --socket         [/tmp/mysql.sock]
        --port           [3306]
        --version        [5.0.51b]
        --libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lm]

In my instance (on a Mac Pro and MacBook Pro) I was able to get ruby-mysql working with the following command:

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

Mac Apps I Can’t Live Without

May 14th, 2008
By: Steven Haddox
No Comments »

Here’s a list of Mac Applications I use frequently (for the most part), and the ones I use less frequently are ones that I’ve found fit my target niche or some need perfectly:

Graphic design apps: Pixelmator, VectorDesigner, Photoshop, Digital Color Meter (available by default in utilities, few know of it)
Web development apps: TextMate Read the rest of this entry »