January 2010 Entries

Visual Studio hangs when opening certain files

Posted Sunday, January 17, 2010 11:33 PM | Feedback (5), Filed Under Web Visual Studio Buggs Tips

Today I’ve restarted Visual Studio 2008 some 8 or 9 times, oh, did I say restarted, I meant killed the devenv.exe process. The reason of this is that on every one of those occasions I was opening a .aspx or .master file in my web project, when Visual Studio suddenly freezes and stops responding.
I could explain how I felt but it wouldn’t be suitable for minors reading this.

Since I have never experienced this before and my laptop has an SSD drive my first thought was that some memory banks where getting corrupted. I threw away that thought when I, without any problems could open the same file in Notepad++ and gVim. So it was back to MS.
I finally found an old post from 2009 that hinted that a component installed called "Microsoft Visual Studio Web authoring Component"  could be the crook behind all evil. I actually don’t have a clue of what good this component does, if any, for me it was most bad.

Anyway I uninstalled the Microsoft Visual Studio Web authoring Component and my headache was gone.

!!! The bundled mysql.rb driver has been removed from Rails

Posted Monday, January 11, 2010 12:43 AM | Feedback (11), Filed Under Ruby Rails MySql

So I’m trying to get the Rails rake db:migrate command to work and just getting the same output each time

“!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql."

After tearing my hair, installing and reinstalling the MySQL 2.8.1 gem goggling for answers for an hour I finally found the answer that helped me. The in the reply from by Hao Zhao, he pointed out that the 2.2.2 version of Rails does not support the MySQL 5.x client!

The solution to this is this:

  1. Download an older version of the MySQL client library from  http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
  2. Copy the downloaded file to c:\Your Ruby install folder\bin


That’s it! I could go mad right now but I’m too happy to finally have found this.

In my case I didn’t have that file at all, thus the “mysql.rb driver has been removed” warning. !It’s not the gem that is missing, it’s the driver! Bad rails bad!
I hope this can help some others in despair.

Btw my system is a Windows 7 x64 with MySQL 5.1, Rrails 2.3.4 and mysql-2.8.1-x86-mswin32.gem