The guy of the DontTrustThisGuy blog wanted to share his code of a basic statistics application he built for a client that offers a website affiliate program. So he wrote a post entitled "I’m on Rails: Coding Statistics" where he shows a good illustration of how to tackle a cumbersome project relatively easily. He gave 3 functions:

» Read More

RMagick is a complete interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries. For details on how to install and use and for more info about RMagik see the user's guide.

Working with RMagick is very easy. Here are some examples:

» Read More

In PHP or other languages to get the content of a directory and all its subdirectories, you have to write some lines of code, but in Ruby it takes 2 lines:

require 'find'
Find.find('./') do |f| p f end

» Read More

If you want to start with Rails but want a real life example of Rails application, Doug Pfeffer has released the code for his site PointFingers.

Recently a visitor to PointFingers.com suggested I make the Ruby on Rails source code public, as a resource for other people interested in the framework. I thought that was a nice idea, so I cleaned up the code, added some comments, and uploaded it here. I'm also interested in any feedback you might have on my code, such as style tips or other improvements. I'll post any input I receive here. Anyway, on to the code.

» Read More

In Ruby there are 3 classes dedicated to windows users. The WIN32OLE class which is a client interface to windows 32 ole automation server, the WIN32OLE_EVENT class which is used in conjunction with the WIN32OLE class to add callbacks for Windows 32 events and the Win32API class that allows access to any arbitrary Windows 32 function.

I'll take only the Win32API class here. May be in other posts I'll cover the 2 others.

» Read More