Category: "Ruby/Rails"

Ruby Sorting

May 9th, 2012
Sorting (elements in an array) is a very common tasks in many scripts. A lot of research has gone into finding the most efficient way to sort. In Ruby the "sort" function performs a standard comparison accoring to the data type inspected, but as in mo… more »

AnnoTrack: Web-Server

January 27th, 2011
AnnoTrack is a Ruby-On-Rails application with is executed by an Apache2 server with the mod-rails (Passenger) plugin. It is living on virtual machines (VM) where we don't run any other services as rails does not play nice with other web-services. The… more »

Ruby String Functions

April 9th, 2009
METHODS THAT ARE OPERATORS Operators such as + and * work on strings (concatenate and replicate). The % operator is a short form for sprintf, and the more »

Ruby & MySQL

January 12th, 2009
Using MySQL from Ruby Ruby can connect to a MySQL database using the Ruby/MySQL module. There is a complete introduction into the subject can be found here: http://www.kitebird.com/articles/ruby-mysql.html The core functions of the modules are explained… more »

Rails Optimization

January 8th, 2009
Find bottlenecks with NewRelic RPM Register at https://rpm.newrelic.com for the free light version of the RPM benchmarking tool. An email will be sent with a configuration file which goes into rails-application/config/. Go into rail… more »