Running Rails on OS X with MySQL 5.0.24 24
While installing all the pre-requisites for running Rails on my new Mac Pro, I ran across a problem with either the mysql gem or mysql 5.0.24 where it depends on 'ulong' being defined by the OS include files. On OS X it isn't, and this causes the ruby mysql gem to fail compilation which causes Rails to (possibly) throw a Lost Connection to MySQL Server during query error due to the fact that the built-in Ruby driver doesn't work with mysql 4.1+ authentication (edge rails fixes this limitation with the built-in mysql driver).
A quick fix for this is to edit the ruby gem mysql.c and add the #define for a ulong so the gem can properly compile.
#define ulong unsigned long
Full time Apple Mac OS X 11
I've had my MacBook Pro for a couple months now and I've really enjoyed using it. I keep finding out that "things just work", like the time I was rebuiling my PC and Mac laptops and my Linux server had an emergency. I was working on the PC at the time, and...well crap, wheres my ssh program?!? Okay, swivel on over to the Mac, load up Terminal and fix the problem. Or the time I wanted to burn a DVD, gosh darn it, which Burning software do I want to download? Swivel over to the Mac, stick the disc in and click a few times and I have my DVD burned.
Now the MBP hasn't been without problems. I ran into the (now admitted) battery problem during Rails Conf. Couldn't use my MBP unless I had a plug to give it some juice. Also, when it's hooked to the 30" cinema, occasionally, the output gets corrupted and I see little aquagreen dots all over my desktop, a reboot usually clears it up thankfully. Back to my story, I haven't totally swapped to the Mac because I still have a (rather new) desktop PC at home. AMD 64-bit X2 3800+ with a couple terabytes of disk space, 4 gigs of ram and 3 21" CRT's hooked to it. I really enjoy this setup with three monitors and didn't really want to give it up just to use the MBP at home.
Out with the new, in with the newer. I figure I wouldn't ever move to Mac all the way if I wasn't forced to use it both at home and at work, so I bit the bullet and ordered a shiny new MacPro for home. I had a limited budget so I had to scale back for now but I got the essentials. I went with the 2.66 duos, left memory at 1G, cut the hard drive to 160GB (I'll pull the 4 Hitachis out of my current desktop), added the extra SuperDrive and Bluetooth (got my free 2GB iPod Nano after rebate) and best of all, 3 20" cinemas. I'll post some pics when I get it all setup. It's gonna be sweet!! I hope they don't wait too long to get PC drivers out for the new hardware just in case I need the occasional native PC app. (I use Parrallels at work already and it's OK, but not for gaming.)
The trade off? Gotta sell my '90 GMC 3/4 ton pickup to pay for it. That's the only way I could get the wife to reluctantly agree to it. That and a few dinners followed up by **censored** should smooth things over pretty well. A new Mac *and* more sex? I think you know who's getting the better deal here! Update
The monitors arrived today, MacPro still hasn't shipped so I can only drool over this picture.
Now the MBP hasn't been without problems. I ran into the (now admitted) battery problem during Rails Conf. Couldn't use my MBP unless I had a plug to give it some juice. Also, when it's hooked to the 30" cinema, occasionally, the output gets corrupted and I see little aquagreen dots all over my desktop, a reboot usually clears it up thankfully. Back to my story, I haven't totally swapped to the Mac because I still have a (rather new) desktop PC at home. AMD 64-bit X2 3800+ with a couple terabytes of disk space, 4 gigs of ram and 3 21" CRT's hooked to it. I really enjoy this setup with three monitors and didn't really want to give it up just to use the MBP at home.
Out with the new, in with the newer. I figure I wouldn't ever move to Mac all the way if I wasn't forced to use it both at home and at work, so I bit the bullet and ordered a shiny new MacPro for home. I had a limited budget so I had to scale back for now but I got the essentials. I went with the 2.66 duos, left memory at 1G, cut the hard drive to 160GB (I'll pull the 4 Hitachis out of my current desktop), added the extra SuperDrive and Bluetooth (got my free 2GB iPod Nano after rebate) and best of all, 3 20" cinemas. I'll post some pics when I get it all setup. It's gonna be sweet!! I hope they don't wait too long to get PC drivers out for the new hardware just in case I need the occasional native PC app. (I use Parrallels at work already and it's OK, but not for gaming.)
The trade off? Gotta sell my '90 GMC 3/4 ton pickup to pay for it. That's the only way I could get the wife to reluctantly agree to it. That and a few dinners followed up by **censored** should smooth things over pretty well. A new Mac *and* more sex? I think you know who's getting the better deal here! Update
The monitors arrived today, MacPro still hasn't shipped so I can only drool over this picture.
