The ramblings of Eric Seijo - Software Developer / Life Hacker

Google Chrome Frame

Posted by Eric Seijo Thu, 24 Sep 2009 13:19:00 GMT

I'm very excited about the release of Google's new open source project Google Chrome Frame.  Google Chrome Frame enable open web technologies in Internet Explorer. It is an open source plug-in that seamlessly brings Google Chrome's open web technologies and JavaScript engine to Internet Explorer. With Google Chrome Frame, you can:

  • Start using open web technologies - like the HTML5 canvas tag - right away, even technologies that aren't yet supported in Internet Explorer 6, 7, or 8.
  • Take advantage of JavaScript performance improvements to make your apps faster and more responsive.

I think all web developers should make a concerted effort to push adoption of the Chrome Frame plugin. I'm excited to be able to create a web standards version of a site and not have to worry about how it looks in earlier versions of IE.

 

 

 

Snow Leopard - MySQL Upgrade

Posted by Eric Seijo Tue, 01 Sep 2009 20:34:00 GMT

I just upgraded my main production Mac to Snow Leopard and when I sat down to work today I noticed that I was unable to access the local MySQL instance. After doing some research I found that it is probably best to seize the moment and upgrade to the 64bit version.

There were some tricky things I encountered along the way so I thought I would share in hopes of making someone else's life easier.

  1. Before you upgrade backup any of your databases:

    mysqldump -u username -ppassword database_name > dump.sql

    Or, if you want to backup all databases use:

    mysqldump -u username -ppassword –all-databases > dump.sql

  2. Run the Snow Leopard install.

  3. Download and install the 64-bit MySQL 5.1.37 from mysql.com.

  4. For Ruby on Rails run the following commands to update your gems:

    sudo gem update --system

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

  5. Import your data:

    mysql -u username -ppassword database_name < dump.sql

  6. Update MacPorts if needed.

  7. Update your gems.

You should be up and running.

References:

http://gist.github.com/177368
http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard