If you are getting an error like the following, when running ‘bundle install’ or ‘gem install mysql2′ on Rails 3:

gem install mysql2
ERROR: Error installing mysql2:
The ‘mysql2′ native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from ‘http://rubyinstaller.org/downloads’ and follow the instructions
at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit’

Then read on.

From Rails v3 onwards, mysql2 has been made the default mysql gem/driver for MySql. That’s good news, as mysql2 is offering better performance over the other gem (mysql). For Windows users, however, installing mysql2 gem is going to be tricky.

Make sure you have Ruby 1.9.2, Rails 3.0.7 or greater, and you have updated your gems.

After searching around for a way to make it work, I got it installed with the following on the command prompt:

gem install mysql2 -v 0.2.6

With the following results:

Fetching: mysql2-0.2.6-x86-mingw32.gem (100%)
Successfully installed mysql2-0.2.6-x86-minw32
1 gem installed
Installing ri documentation for mysql2-0.2.6-x86-mingw32…
Enclosing class/module ‘mMysql2′ for class Client not known
Installing RDoc documentation for mysql2-0.2.6-x86-mingw32…
Enclosing class/module ‘mMysql2′ for class Client not known

Try it. Let me know your results in the comments.

For all those searching for a way to use multiple Skype accounts on a single computer, let me tell you that it\’s actually very simple to achieve for Skype 4.0 and above.

When I searched for such a solution, I found lots of links that talked about running multiple Skype accounts through multiple administrator accounts or through Task Scheduler. Pfft … scrap that if you are running version 4 or above!

The solution is posted after the jump.

Read the rest of this entry »

Docking taskbar toolbar in Windows VistaI liked the way I was able to create additional toolbars from the taskbar in Windows XP, and then detach and move them around to dock to any side of the desktop screen. Unfortunately, this is not possible in Windows Vista, or so I experienced at first. The ability to detach a toolbar from the taskbar is no longer there, but there is another way now.

This nifty little feature of having a toolbar dock to any of the edges of your desktop screen is still there; only the mechanism to achieve this has changed.

The new technique is nicely described here: Create a New Vista Toolbar – Magic Trick. It\’s quite simple: all you have to do is drag a folder to the edge of the screen and it will dock! Yes, that is all.

Here are a few additional links to take maximum advantage from this sweet little feature:

Detached and docked Quick Launch bar in Windows Vista

10 things you\’ll miss when you upgrade to Vista (and how to get some of them back) – #1 tells you how to get the Quick Launch bar off of the main taskbar and dock it vertically to one side of the screen.

Trim Windows Vista’s Bloated Window Borders – You might find the new docked toolbars a bit ugly because of that thick translucent border around them (with Aero in Windows Vista). Follow this link and put those borders on a diet for good!

The Vista taskbar: it\’s worse than XP\’s – Although this rant by Dan Warne is no more relevant, since the solution has been discovered (and mentioned in the comments), but it\’s still fun to read this old blog post on this at-that-time-presumed missing feature (of detachable-n-dockable toolbars) from Vista.

How to Create a Toolbar in Vista – Once again, the link to the article containing the solution (magic trick) mentioned above.


© 2007 Zenning! | iKon Wordpress Theme by Windows Vista Administration | Powered by Wordpress