Entries Tagged as 'ruby'

Thursday, January 7th, 2010

Scott Becker – How to generate CSV files in Rails

74.125.155.132 [Saving this since the original seems to have gone away.] Posted via web from crasch’s posterous

Wednesday, July 16th, 2008

GEEK: Running a ruby script via crontab

So, I’m trying to set up a ruby script that screenscrapes another website, writes the results to a local file, then rsyncs the file to another machine behind a firewall. This post details the problems I ran into while trying to get cron to run the ruby script and rsync to the remote host.

Tuesday, November 27th, 2007

GEEK: Notes on rubygem, pdb.set_trace()

If you want to use a newly installed rubygems, and you don’t want to require ‘rubygems’ for every program that uses a gem, you need to set the RUBYOPT environment variable. For example, if you’re using tcsh, you should put the following in your .tcshrc file: setenv RUBYOPT rubygems This will cause the rubygems module [...]

Wednesday, August 1st, 2007

GEEK: how to add test cases to your ruby program

Wednesday, May 16th, 2007

GEEK: How to install ruby-dbi on cygwin

Wednesday, May 16th, 2007

GEEK: PostgreSQL connectivity on Cygwin

I found Steve Litt’s Ruby Database Connectivity article quite helpful for configuring ruby access to PostgreSQL on Cygwin. However, I ran into a couple of errors while running the sample files which I detail below:

Tuesday, April 24th, 2007

GEEK: ruby object methods

If you want a list of all a ruby object’s methods, try this: puts object.public_methods.sort