Jan 22
Powerful find and replace with regular expressions should be the hallmark of every IDE worth its mettle. MS Visual Studio does it so-so, but lo and behold, Netbeans (at least in version 6.1) is even worse.
So I wanted to put foo at the beginning of every line in a text, which calls for a regex like:
^.*
and replace like:
foo $0
However, Netbeans only ever replaces the first match in a text, over and over again. It also hangs up easily in the process.
As with many a Netbeans quirk, it’s Quanta Plus to the rescue again:

Works like a charm.
Nov 24
If you get the “Could not connect to the server” error running you project from Netbeans while script/server works fine, first make sure you have the correct Rails version set for your project, it should show “Installed version: 2.2.2”:

If you still get:
Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again.
But the suggested
gem update —system
often fails to update your gem to the new version so try
sudo gem install rubygems-update
and then run:
sudo gem install rubygems-update
and check with
gem -v
where it should show 1.3.1 at the time of writing.
Recent Comments