Archive for the ‘Tools’ Category
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
NetBeans IDE version 6.8 has been released, Sun Microsystems’ newest flagship programming environment. Primarily targeted at Java programmers, NetBeans also sports a very polished IDE for Ruby on Rails developers.
New NetBeans 6.8 features and improvements for Ruby on Rails include:
-
Upgraded bundled JRuby to 1.4
-
Ruby 1.9 debugging support
-
Run/Debug File with arguments
-
Support for running/debugging files that are not part of a project
-
Improved handling of inherited methods in rename refactoring
Author: ceefour | Filed under: Tools

Upgrading to the latest RubyGems in Ubuntu Gutsy is a bit non-straightforward. I’d like to share a quick fix this time. It’s trivial when you know it, but if not, a friend of mine has almost hosed his system just because of this annoying “bug”.
Installing Ruby in Ubuntu is pretty simple:
sudo aptitude install ruby ri irb rdoc rubygems libruby-extras libmysql-ruby ruby1.8-dev
(add other packages as you see fit)
The problem occurs right after you upgrade RubyGems to the latest version:
sudo gem update --system
Then you get something like this:
Author: ceefour | Filed under: Beginner, Complaints, Ruby, Tips, Tools, Tutorials
Tags: error, fix, gem, gems, gutsy, installation, rubygems.ruby, troubleshooting, tutorial, ubuntu, update, upgrade
While using Ruby for your projects, you may need some references.
These are some references that might help you in using Ruby:
General Syntax Rules
- Comments start with a pound/sharp (#) character and go to EOL.
- Ruby programs are sequence of expressions.
- Each expression is delimited by semicolons(;) or newlines unless obviously incomplete (e.g. trailing ‘+’).
- Backslashes at the end of line does not terminate expression.
Reserved words
alias and BEGIN begin break case class def defined
do else elsif END end ensure false for if
in module next nil not or redo rescue retry
return self super then true undef unless until when
while yield
Type
Author: ceefour | Filed under: HTML, Rails, Reviews, Ruby, Tools
Recently I got a task which involves moving, or let’s say copying, an entire Subversion repository with history to another server. Problem is, I didn’t have access to the server itself, which means I couldn’t do a regular “svnadmin dump”.
SVK comes to the rescue!

To make it work, first of all you need to install SVK. In Ubuntu it goes like this:
sudo aptitude install svk
When you first run svk it’ll ask you to create a local depot, you can simply agree to its suggestion.
Author: ceefour | Filed under: Cool, Opinions, Tips, Tools, Tutorials
Tags: dump, export, import, load, migrate, migration, repository, subversion, svk
Ruby is a high level, object-oriented open source scripting language. It has excellent support for regular expressions as a language feature.
In Ruby, a regular expression is written in the form of /pattern/modifiers where “pattern” is the regular expression itself, and “modifiers” are a series of characters indicating various options. The “modifiers” part is optional. This syntax is borrowed from Perl.
Ruby supports the following modifiers:
- /i makes the regex match case insensitive.
- /m makes the dot match newlines. Ruby indeed uses /m, whereas Perl and many other programming languages use /s for “dot matches newlines”.
Author: ceefour | Filed under: Ajax, Rails, Ruby, Tools

Morph Labs is currently beta-testing their next-generation solution in application deployment, delivery, and management, the Morph Application Platform.
Acquiring hardware and configuring software to support web apps are things of the past. Morph Labs brings you the next-generation solution in application deployment, delivery, and management. Reduce your time to market and lower your startup costs no matter if you are an ISV, a developer or a business.
About Morph Labs
Morph Labs Inc. www.morphexchange.com is a Philippine-based Web 2.0 technology company focused on providing innovative technologies and applications to support Software as a Service (SaaS) globally.
Author: ceefour | Filed under: Cool, HTML, News, Rails, Ruby, Tools, Web 2.0
Tags: 284, 289, 296, 299, 300, 302
Monkeybars is a library that enables you to make use of Swing from JRuby.
Monkeybars aims to allow you to continue using the GUI editing tools you are used to but makes it easy to write all your application logic in pure Ruby. In fact, with most editors you’ll never even have to look at Java code.
Monkeybars was created from a pretty specific need. Rising Tide Software company was working on a large Swing application and wanted to be able to easily write all the logic in Ruby via JRuby. The initial attempts laid the groundwork for what was to become Monkeybars. Monkeybars has an emphasis on using normal Swing development tools (using Netbeans 6) and especially the ability to sit down with a client and use a visual designer to create the Swing layouts.
Author: ceefour | Filed under: GUI, JRuby, Ruby, Tools
Tags: 288, 291, 331, 359
A common stumbling block for beginner Rails developers is learning the basics required to write plugins. This is made more complicated by the fact that Ruby is inherently dynamic and offers many techniques for code reuse.
Luckily, if you can write Rails applications you can write plugins by simply drawing on a handful of basic patterns.
Why write plugins?
Writing a plugin will:
- Help make sharing code more efficient, whether it’s between projects or within the same project
- Allow you to publish generic code to the community
- Save time and increase your confidence by testing once and reusing many times
Author: ceefour | Filed under: Beginner, Plugins, Rails, Tips, Tools, Tutorials
Tags: 294, 296, 344
RM-Manage is a monitoring product for Rails applications. Their claim:
Building elegant and powerful Rails applications rapidly is important. Ensuring that they perform properly once deployed in production is even more important. A poorly performing or unavailable business-critical application can have a devastating impact on your bottom line, negating the benefits of Rails development.
Rails applications are more than just Rails itself. Databases like MySQL and Oracle, web servers such as Apache, and even the host operating system each affect performance and availability.
Author: ceefour | Filed under: Cool, Enterprise, Rails, Tools, Web 2.0
Tags: 296, 299, 341
Practical Reporting with Ruby and Rails is a great book for Ruby and Rails developers seeking to create compelling business intelligence and reporting solutions using a wide variety of applications and services. Published by Apress, and the author is David Berube.
Business intelligence and real-time reporting mechanisms play a major role in any of today’s forward-looking business plans. With many of these solutions being moved to the Web, the popular Rails framework and its underlying Ruby language are playing a major role alongside web services in building the reporting solutions of tomorrow.
Tags: 282, 296, 299, 312, 347, 348, 349, 40