February, 2008


26
Feb 08

A little piece of gold

Just thought I’d take the time to share a little piece of gold on the internet. It is my favourite comic strip and it can be found on a site called xkcd. Enjoy.

Exploits of a Mom
Image sourced from: http://xkcd.com/327/

Being a web developer, I deal with SQL on a daily basis, so I find this comic particularly hilarious. I hope you do too.


26
Feb 08

Google Summer of Code 2008 Announced!

Well, its that time of the year again; Google has announced Summer of Code 2008! I’ve always wanted to take part, but I never seem to have the time. Maybe 2008 is the year for me?

Is anyone else interested in participating in SOC2008?


17
Feb 08

Issues with mysql 2.7 gem

I’ve been trying to get a rails development setup running on my Leopard install. After managing to get the mysql gem installed without errors, I can’t use the gem in any projects.

When I run rake db:migrate, I get the following error:

G5:ag $ rake db:migrate(in /Users/xxx/Projects/ag)
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Expected in: dynamic lookupdyld: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Expected in: dynamic lookup
Trace/BPT trap

If anyone knows what the problem is, and has a solution, please let me know by leaving a comment!

EDIT:Thanks to Chris for doing the hard and blogging about it on this blog post  which appears to solve this problem. I’ll post here again once I have tried this solution.


17
Feb 08

Rails gem install mysql throws error: *** extconf.rb failed ***

Whilst reading guides on how to setup a rails dev server under OS X (both Tiger and Leopard), I kept running into issues installing the mysql gem. The guides would instruct you to install the mysql client libraries from the mysql website, which is fine. But to get improved performance under rails, you must install the mysql gem, but in doing so, I would constantly run into issues getting the gem to install correctly. The issues normally arises after running the following command:

sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql

And the resulting error is:

checking for mysql_query() in -lmysqlclient... no

*** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of

necessary libraries and/or headers.  Check the mkmf.log file for more

details.  You may need configuration options.

Basically, the gem compile fails as a result of not knowing where the correct mysql files are, despite the fact that the command line switch points to the mysql folder.

To fix this problem, use a line like the following:

sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Note that instead of pointing at the mysql folder, we are pointing at a mysql config which is bundled with the mysql client install files.


17
Feb 08

Google Adsense Partner Meeting

Google AdsenseAs an employee of a high profile site, I was invited by my boss to attend the Google Adsense Partner Meeting at the Googleplex in Sydney. Unfortunately I can’t really talk about much that was talked about as we were all required to sign NDAs on arrival.

Overall, the day was a huge success. Very interesting developments within the world of Google that we can all look forward to (You didn’t need to go to know that already!). The networking was fantastic as there were a lot of other high profile sites invited too, such as drugs.com, ski.com.au, hotel.com.au just to name a few.

Continue reading →