Tag Archive | "Ruby"

Beginners Guide to Quick File Listing Using Ruby

Sunday, January 25, 2009

2 Comments

As a beginner to the Ruby language, I often found myself needing feedback listing which files are in a given directory. Ruby, for that reason alone, has been a quick savior. A couple of Google searches on this topic will land you somewhere near the Ruby class Dir. Dir is a part of the [...]

Continue reading...

Ruby 1.9 Quick Speed Test

Sunday, January 4, 2009

3 Comments

It has been a while since I’ve had a chance to play with Ruby, and with 1.9.1 coming out in January I figured I’d go ahead and install 1.9 to get a feel.  Since speed was always an issue in 1.8 I figured I’d re-run my fib.rb script to find the fibonacci number for 35.  [...]

Continue reading...

Programming a Simple Client/Server Application with Ruby

Sunday, November 23, 2008

4 Comments

Being able to add some sort of client/server model to your programs is pretty essential these days, and Ruby does a fine job making your life easier. For this article, I’ll show you a quick, down-and-dirty way of getting a very simple server up and running and a client that will say “Hello Server World” and [...]

Continue reading...

Handling Exceptions in Ruby

Tuesday, October 28, 2008

2 Comments

Dealing with exceptions is a big part of any object oriented programmer’s job. We need to be able to recover from things like connect failures or syntax errors, and do so gracefully. Thankfully, raising and “rescuing” exceptions in Ruby is a fairly easy task. Let’s start with a basic example. We all know [...]

Continue reading...

Add Logging to Ruby Scripts with Log4r

Tuesday, October 14, 2008

0 Comments

Log4r is a logging library inspired by Apache Foundation’s Log4j, “but is not a direct implementation or clone.” Of course this doesn’t change the fact that log4r is a very efficient, fast, and easy to use library. I’m going give a quick tutorial how to add logging capabilities to your Ruby scripts using Log4r. [...]

Continue reading...

ZK 3.5.1 Released – RIA Framework, NetBeans Plugin and Tutorial

Monday, October 13, 2008

1 Comment

This past week ZKoss refreshed their flagship product, ZK, to version 3.5.1. If you haven’t heard of ZK before, it is a very slick framework which was “designed to maximize enterprise operation efficiency and minimize the development cost [with] its groundbreaking Direct RIA architecture. ” Unlike most marketing ploys used to overstate the capabilities of a [...]

Continue reading...

Sun, IBM and Microsoft Host Workshop to Combine VM Efforts

Wednesday, October 1, 2008

0 Comments

Sun recently held a 3-day workshop where technical leads and directors from IBM and Microsoft were invited to join together at the Sun campus to try and work on consolidating Virtual Machine efforts going forward; more specifically focused on developing solutions that would yield Java-like performance for Ruby, Python, PHP, and Scala on the JVM. No [...]

Continue reading...

Using XRuby to Speed up Ruby Script Performance

Wednesday, October 1, 2008

4 Comments

Do you want to squeeze the most performance out of your Ruby scripts? If so, you might be interested in a little project called XRuby. According to the website “in most benchmark tests, XRuby runs faster than Ruby 1.8.5″. Personally, I was a bit skeptical, and you may be too. So let’s explore this [...]

Continue reading...