Installing ruby-mysql on OS X Leopard
October 23rd, 2008By: 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
Enduring To The End
September 15th, 2008By: Steven Haddox
No Comments »
It’s not often that I get to take the things that I absolutely love the most in the world and combine them with things that I absolutely hate the most in the world. Usually when those two things happen it is related to Microsoft Windows in some form and it absolutely kills me for several days. Well not this time, this time it pertains to a very positive turning point in my life I believe. I have recently acquired a Wii Fit as well as a Nike+ iPod kit. These two small sets of hardware have enabled me to combine something I love with something I used to hate and hopefully improve my life and have fun while doing it.
I must admit that there are several factors involved in my decision to start getting more healthy. I decided to cut the majority of soda out of my life after my incident several months ago where I had 4 kidney stones and some major medical issues that were not very pleasant to go through. But in addition to cutting out soda there needs to be more. Something more substantial that will make it so I’m not having a heart attack before Paisley has even graduated high school. So here is the list of things that has helped change my motivation for working out and getting healthy: Read the rest of this entry »
Why I Stood in Line for an iPhone 3G Today
July 11th, 2008By: Steven Haddox
2 Comments »
I just posted the following as a comment on a blog as to why I already purchased the iPhone 3G. I thought it might be appropriate to share on my blog as well. Enjoy.
I’ll try to keep this short and simple, but don’t be surprised if you get a short novel. I am a little offended that the beginning of this post [original blog linked above] begins with such bias as to say that if Steve Jobs branded a sandwich with the Apple logo a line would form to buy it. Give most Apple “fanboys” a little more credit than that.
I personally have an Apple logo tattoo (for the letter A in my wife’s name as she converted me to Apple). I also have a Burton tattoo on my foot. Why are both of my tattoos commercial companies? Read the rest of this entry »
Singing, er standing, in the rain
July 11th, 2008By: Steven Haddox
No Comments »
I’m at the Apple store in Gilbert, AZ standing for more than an hour now. It just barely started pouring and doesn’t show any sign of letting up.
So, while I forgot my chair, at least I remembered Katie’s umbrella and my Burton hoodie. Although it is really humid so I may lose the hoodie asap ;)
And a cricket just crawled up my chest. WOOT for lines
However, I hope to have a white iPhone 3G to show for it as I’m 9th in line.
So much for working this morning while I wait :(
WWDC Keynote in 34 minutes!
June 9th, 2008By: Steven Haddox
No Comments »
I have a ton of stuff to blog about still, but no time right now. My wishlist: iPhone 3G, new Mac Book Pros, otherwise I’m sure I’ll love whatever I get ;) So here’s the link to the live WWDC keynote coverage I’ll be watching as much as possible (within work limitations):
http://www.engadget.com/2008/06/09/steve-jobs-keynote-live-from-wwdc-2008/
And the end result that most matters:
http://store.apple.com/us/browse/home/shop_iphone/family/iphone?mco=MTE2NTQ











![Paisley is G-l-a-m-or-ous Paisley is G-l-a-m-or-ous [ViddYou Video]](http://www.viddyou.com/get/40169.medium.jpg)
![Paisley Crawling in Full 720p HD Goodness Paisley Crawling in Full 720p HD Goodness [ViddYou Video]](http://www.viddyou.com/get/32576.medium.jpg)
![Anyone Need a Web Developer Anyone Need a Web Developer [ViddYou Video]](http://www.viddyou.com/get/29871.medium.jpg)
![Video of Steven's dilated bladder Video of Steven's dilated bladder [ViddYou Video]](http://www.viddyou.com/get/29046.medium.jpg)