Archive for the ‘ruby’ category

Firing up Rails

March 9, 2008

Was about this time last year I installed Rails, Ruby, Gem and an updated MySQL on my development laptop (which was running 10.4). Since then I wiped it and installed Leopard. As infrequently as I do any development work… this hasn’t really been an issue until now.

So, I go back to square one and do my

gems -v

rails -v

gcc -v

And, to my very pleasant surprise… With the stock Leopard install I have 0.9.2 gem installed, Rails 1.2.3 and gcc is at 4.0.1. I’m tickled not to have to go through all that again.

GCC4.0 Problem Solved

August 18, 2007

I’m in the process of installing Ruby, Rails, Subversion, Mongrel and MySQL on the MacBook Pro. Problems reared up fairly early into the new and improved process I originally followed from HiveLogic (which, btw, I highly recommend).

So, here’s what I was running up against while installing readline via the terminal:

C compiler cannot create executables

There’s nothing readily available via Google. So, it dawned on me… My default compiler was showing GCC3.3. Well, that’s obviously out of date. So, I peformed this

sudo gcc_select 4.0

And, now, my readline has configured and completed its make just fine. And, 25 minutes later still I’m full tilt gonzo. Awesome!

Scaling Ruby On Rails

June 26, 2007

There are a few really good slide shows over at SlideShare on the topic of scaling Ruby on Rails. I’m also interested in scaling MySQL and large scale architecture if you have any particularly crisp presentations in your sights out there.

I had hoped to go to Google last week and participate in their Scalable Computing workshop/presentation. Other arrangements fell through. Ah well, Dare Obasanjo has some really good notes

Crouching Leopard. Hidden Features.

June 16, 2007

No, this is not a spoiler posting. I’m pondering what other of the hidden features might leap out at us. What they might (or hopefully, might not) be. The role of Apple’s Developers and how that could change in the near future based on things like Google Gears. The real gem of my screed is at the very end.

Please, consider adding the gwhiz blog to your RSS feed reading. Thanks!

First up? Everyone’s favorite (and hopefully, first) non-Apple app they run to when they buy a new Mac… QuickSilver. Apple has this quirky habit of glomming onto other people’s REALLY good ideas and making them, well, their own. I’m specifcally calling to mind things like Watson (aka Apple’s Sherlock), Konfabulator (aka Widgets) or VirtueDesktop (aka Leopard Spaces). I’m sure there are more which are not top of mind. I can only hope Apple doesn’t do to Black Tree’s QuickSilver or Delicious Monster what they’ve done to these other of their innovative developers.

Have to plead ignorance here… Do Sun, Microsoft or Linux pull these kinds of stunts with their OS builds? Swiping from their developers I mean…

The flip side of that is Apple does do right by some of their developers. CoverFlow for instance. Which seems to be taking more and more prominent positioning in their lineup with the new CoverFlow powered Finder.

Second up – Open Sourcing. When Apple’s not being strongly influenced by the innovations of others (pat on back, nicely politely put) they’re doing some MARVELOUS stuff with open source bedrock. CalDAV. Mongrel. SquirrelMail. Ruby. Java. Blojsom. Some of the Teams components in Leopard Server we’ve been told in the public forum are based on lots of open source goodness. So, please, despite all my dissing on Apple this week… I can diss my own family. Someone else pulls that crap and I’m all over them 🙂 I LOVE Apple. I simply want to see them do right by their developers. I recall someone suggesting Apple’s coming up short in this regard (must look at my CoComment threads – yep, it was The Scobleizer). I happen to think that’s spot on the money.

Which brings me to the third and final point. I’ve been an Apple Developer since I left Apple in 1994. Before that I was firmly in the camp of Apple’s internal developers as one of their “Systems Engineers” (what a GREAT job during such a DARK period… jogs self back to present). Ahem. We were secretive then and that was under Spindler and Amelio. I can only imagine how things have changed under Mr. We Will NEVER Do A Video Ipod. That’s all good and fine and I can certainly appreciate the mystique that promotes. Still, when you’re a developer and you’re trying to build the next best thing to page swapping… well, secrets kinda crimp your style.

This is one of the dirty little secrets of the Mac developer community. We have to route around Apple. Read another way, we have to route around the damage. On the one hand they say they love their developers. And, to a degree I believe them. But, then they do things that don’t match up with their declaration of love. The big example I wave around is probably the most important. I’m not the worlds best coder. I’m largely self-taught. Once upon a time I was among the first hundred or so Newton Messagepad developers. Even then (much as today) there has not been a place for Apple’s Developers to swap experience outside of the WWDC meeting. (EDIT: appears I didn’t finish out the thought… Apple is putting their developers in a position to go akimbo to their NDAs by talking outside of channels)

Why, in this day and age, can’t Apple break off a nice little chunk of their Web Crossing Forum software and make a petri dish for us? That way the conversation is contained in a hermetically sealed space. Apple can control the inning and outing of information. And, most importantly, we developers can discuss stuff like Leopard’s upcoming features under the watchful eye of Apple (but we both know I was thinking Mordor). I want to become a better developer. I want to hire people who share their coding talents with others (net “givers”, not net “takers”).

Anyway… I’m looking at Leopard (OSX in general) imagining all it can become and the pace at which it could get there. Apple’s not doing the platform any favors and they risk losing fine and innovative developers like Mark at ClamXav (and aspiring ones like me) who are expanding the utility of the platform more out of a sense of cause and community than anything. Hopefully, Apple swings closer to the middle for the sake of the platform rather than hang out in the relative safety of the cloister in Cupertino.

One more thing (ouch!)… IF Apple’s approach to developing for the iPhone is really (and I’m skeptical) centered on web deployable apps AND Google’s Gears is emerging as the take-your-web-apps-offline king of the heap AND Google and Apple are deep under the sheets THEN don’t you think it is reasonable to expect some day things like the iPhone and OSX even will no longer require an installed app? Think about that one and get back to me.

RubyOSA Scripting

May 3, 2007

Was only a matter of time… MacZealot has a VERY nice tutorial on scripting with Ruby to automate things (, Finder, etc). Not a replacement for Automator or AppleScript… just an addition.

Don’t forget the comments at MacZealot on the above… some good nuggets there.

XCode 3

February 24, 2007

XCode3 Finally getting around to installing XCode 3. The Ruby on Rails book from SitePoint Publishing’s kinda kicked me into action.

The author reminded me of something I had forgotten… Ruby on Rails is installed in Leopard along with MySQL by default. So, I’m ramping up to get smarter about RoR, Mongrel and AJAX. Anxious to see how our ‘next gen’ OS handles everything.

You might be asking… “XCode 3!? Huh?” Yeah, XC3 is part and parcel with Leopard. Join ADC as a Select or Premier Developer and you too could buy your way into the club. Worth every penny folks!

Ruby on Rails, a Mac & a Mongrel

February 6, 2007

Hive Logic

My link blog is was really pretty skinny… That’s one of my main to-do’s on the blog this year… to promote the heck out of all the great stuff I bump into throughout the course of my nocturnal cycle (kids are in bed, Michelle’s nodding off and my third shift is just starting).

However, if you’re the least bit interested in Ruby On Rails and what it can do on your Macs… Check this out! Back when I was just getting started with ROR it was not nearly as easy to get up to speed as the guys at HiveLogic have made it. Kudos to them for championing Ruby on the Mac. Fantastic stuff!

PS – There are reasons (namely Leopard) why Mongrel ought to be in Mac Developers’ lexicon RFN. Hint – It’s an integral component of the Teams platform as well as the Podcast Producer suite.