Ruby

Ruby on Rails comes with a lot of nice helper methods for generating the JavaScript driving the AJAX calls to your controllers. Handling the responses from the HTTP server becomes a snap too, with Rails providing a few simple callbacks to handle the response from...

A while ago Ben wrote about how Ruby on Rails development sucks on Windows. It seems that the move by the Rails Core team from subversion to Git has inflamed this issue further.My favourite comment is: If you’re freaking out, calm down. Rails and the developers...

Leopard and Rails
After having gone through the pain of installing Ruby on Rails on my MacBook Pro running Tiger (OS X 10.4) I was pleased to see that Leopard (OS X 10.5) ships with Rails 'pre-installed' and ready to go.So, after I upgraded my installation on Friday night I was perplexed when trying to run my Rails apps. Why was it broken?In the end, it turns out there were several problems.
It takes almost ten seconds to start a Rails test on my Windows XP box. The test may report that it took it a fraction of a second to run, but it actually takes about ten seconds for it to start. The Rails Console and Mongrel have the same problem, but I can deal with that. However, with unit tests, it's not acceptable because rapid feedback from tests is the key to rapid development.I've had JUnit tests using Spring and Hibernate that start faster than this. And in Java, incremental compilers (for example, the one that comes with Eclipse) tell me immediately when I've stuffed up syntax. With interpreted Ruby on Rails, I have to wait ten seconds just to be told that I've made a typo.To experience the problem, all I have to do is create a new Rails project, create a single model, and then run the test for that model. It takes ten seconds to start the test, give or take a second or so. Trying JRuby is not an option at this stage because at the end of the day I need to use ferret on my project, which requires native C extensions.
No, I don't mean the buzzword gone bad - I mean Synergy; the software that, in its own words:
lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware
We're working on a Rails app at Shine that we need to test on both Internet Explorer 6 and 7. Furthermore, developing Rails kind of sucks on Windows (which is another story I promise that I'll go into some other time), so I develop on a Mac. So I actually have 3 PCs on my desk - my laptop (which runs IE 6 and contains all my mail), an iMac, and another PC that runs IE 7. Running them all from different keyboards and mice would be a nightmare. So I hooked 'em all together using Synergy.
We were faced with the interesting problem of having a database column that stored YAML representations of data. To be more precise, that wasn't the problem, it was how to load YAML data in using Rails fixtures, which themselves are in YAML (or CSV, but we prefer YAML).After the usual Googling, I eventually found a few sites that gave me some hints. Apologies for not referencing those sites but now can't find them again (and it took me a couple of hours the first time). So, in the hope that others who follow behind me have another source of assistance I thought it would be useful to blog it here.

Last month I attended a seminar about Virtual Worlds and in particular Second Life, during which it was suggested that Second Life had been through the hype stage, passed over the bell curve of growth and the "cool" factor, and was now on the other...

For the first time in many years I am learning a new programming language - Ruby. I started about 6 months ago and it occurred to me the other day that they way I go about acquiring knowledge now is so much different from 1999...

I saw the post on theserverside.com that had gone official 1.0 release. With much anticipation I jumped over to www.jruby.org only to find the news about the RC3 release.Never fear, jump to the Downloads page and you will see the 1.0 downloads sitting meekly by...