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
Flash Happy: Simple flash updates for your Rails application
August 28th, 2008By: Steven Haddox
No Comments »
So I’ve been learning Ruby on Rails the past few months but I’ve mostly been working on projects that already have the major underpinnings created. I’ve had the opportunity to work on a side project on and off and I’ve finally gotten one of my major hurdles accomplished and am pretty happy with how I did it. I’m open to code refinement, but I thought I’d share it since I couldn’t find much in the way of tutorials regarding flash.now with Rails via Google.
Essentially what I did was implement a way to update the regular flash and the flash.now values at the same time. Read the rest of this entry »
Having Fallen Off the Face of the Earth…
August 14th, 2008By: Steven Haddox
1 Comment »
I thought that it might be time to give an update. I have been very busy over with the agile evangelists at Integrum Technologies and have been loving every minute of all the things I’ve managed to absorb in the past few months. My conversion to Rails has been drastically better than my past experience of learning other languages. Within weeks I felt confident enough to start my own side projects and dive head-first into things that I used to wait months to fully understand how to do with previous conversions.
I have come to gain a very solid appreciation of AJAX, as long as it is done unobtrusively. I’ve also come to love the purpose and structure that a good MVC framework can provide. I’ve come to swear by TextMate. I can’t imagine managing a web project again without it. I’ve found that pair programming provides amazing benefits that can never be guessed at until you’ve tried it yourself. I’ve found that my errors and refactoring due to pair programming have been exponentially improved and that my development style in general has become more efficent, more detailed, and more well-thought than in the past (in much less time). I’ve also found that agile methodology as a method of software development just makes sense (for me at least). Software (especially web based applications or sites) are constantly changing in their requirements, goals, needs, and acceptence criteria. Agile methodology ties in perfectly with this dynamic lifestyle of software growth.
As to the other things that I’ve been up to, well I’ve started at least three side-projects Read the rest of this entry »
I’ve Been Contracted
May 9th, 2008By: Steven Haddox
No Comments »
I won’t go into too many details but I’ve found an amazing group of really cool developers who have been kind enough to give me the chance at helping them out even though it’s a completely new language for me.
More to come later, for now I’m a bookworm ;)









![[del.icio.us]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/digg.png)
![[Google]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/linkedin.png)
![[StumbleUpon]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Windows Live]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://www.stevenhaddox.com/wp-content/plugins/bookmarkify/email.png)