# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1502

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1503

---

## [Golfing the Farey Sequence](https://www.ruby-forum.com/t/golfing-the-farey-sequence/89174)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 7\
**Last updated:** [March 27, 2007, 2:21am UTC](https://www.ruby-forum.com/t/golfing-the-farey-sequence/89174 "2007-03-27T02:21:26Z")

</div>

A Farey Sequence is all the fractions between 0 and 1 (inclusive) with a denominator no bigger than N, arranged in increasing order of magnitude. For example, the Farey Sequence of order 3 is: 0/1, 1/3, 1/2, 2/3, 1/1 …

---

## [Re: Find.find() doesn't work with broken symlinks](https://www.ruby-forum.com/t/re-find-find-doesnt-work-with-broken-symlinks/90238)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 1:34am UTC](https://www.ruby-forum.com/t/re-find-find-doesnt-work-with-broken-symlinks/90238 "2007-03-27T01:34:23Z")

</div>

I am using ruby 1.8.5 (2006-12-25 patchlevel 12) \[i686-darwin8.8.1\]. I will do more testing tonight. The broken symlinks pointed to network mounts. -------------- Original message ---------------------- From: Stefa…

---

## [Adding anotehr each method to String](https://www.ruby-forum.com/t/adding-anotehr-each-method-to-string/90033)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [March 27, 2007, 1:26am UTC](https://www.ruby-forum.com/t/adding-anotehr-each-method-to-string/90033 "2007-03-27T01:26:23Z")

</div>

f it doesn’t exist allready, i’d like to add another each method to String similar to each\_byte except it loops over chars for example : “zero”.each\_char{|c| puts c} would print-out : z e r o i know how to add a …

---

## [Patch to use ruby-zlib with ruby 1.9?](https://www.ruby-forum.com/t/patch-to-use-ruby-zlib-with-ruby-1-9/90242)

<div class="topic-metadata">

**Author:** [@StSSSSphane\_Wirtel](https://www.ruby-forum.com/u/StSSSSphane_Wirtel)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 1:00am UTC](https://www.ruby-forum.com/t/patch-to-use-ruby-zlib-with-ruby-1-9/90242 "2007-03-27T01:00:20Z")

</div>

Hi all, Is there a patch to compile ruby-zlib with ruby 1.9 ? Because, I can make a diff file of the zlib.c file to compile with the svn revision 12127 for Win32. Best regards, Stephane W.

---

## [Some inflection (?) questions](https://www.ruby-forum.com/t/some-inflection-questions/90236)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 5\
**Last updated:** [March 27, 2007, 12:31am UTC](https://www.ruby-forum.com/t/some-inflection-questions/90236 "2007-03-27T00:31:19Z")

</div>

Hi all I have the following code snipped: @country = Country.new Instead of hardcoding @country and Country I’d like to use the contents of two strings: instance\_var\_name = ‘country’ class\_name = ‘Country’ How can…

---

## [Find.find() doesn't work with broken symlinks](https://www.ruby-forum.com/t/find-find-doesnt-work-with-broken-symlinks/90234)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 3\
**Last updated:** [March 27, 2007, 12:04am UTC](https://www.ruby-forum.com/t/find-find-doesnt-work-with-broken-symlinks/90234 "2007-03-27T00:04:14Z")

</div>

Find.find() seems to filter out broken symlinks. I was hoping to use it to get a recursive list of files in directory so I could run various tests on each file (like whether or not a symlink points to a valid file) W…

---

## [Serializing a nested hash](https://www.ruby-forum.com/t/serializing-a-nested-hash/89915)

<div class="topic-metadata">

**Author:** [@keithtom](https://www.ruby-forum.com/u/keithtom)\
**Replies:** 3\
**Last updated:** [March 26, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/serializing-a-nested-hash/89915 "2007-03-26T21:20:28Z")

</div>

Hi all, I ran into some trouble w/ a model that has a nested hash attribute and need some help. Here are the details: migration has “t.column :attribute, :text” model has “serialize :attribute, Hash” Now when I put…

---

## [More Summer of Code goodness (please forward)](https://www.ruby-forum.com/t/more-summer-of-code-goodness-please-forward/89387)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 8\
**Last updated:** [March 26, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/more-summer-of-code-goodness-please-forward/89387 "2007-03-26T21:11:26Z")

</div>

RubyCentral is proud to announce that we have our Summer of Code and Summer of Code Ideas pages up. Please go enjoy the html goodness at: http://www.rubycentral.org/projects/soc2007 and http://www.rubycentral.org/pr…

---

## [Rubygem openssl error on 64 bit](https://www.ruby-forum.com/t/rubygem-openssl-error-on-64-bit/90207)

<div class="topic-metadata">

**Author:** [@jz176](https://www.ruby-forum.com/u/jz176)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/rubygem-openssl-error-on-64-bit/90207 "2007-03-26T21:05:35Z")

</div>

when i run cap -f config/deploy.rb setup on 64 bit centos i get this error for openssl ruby: symbol lookup error: /usr/local/lib/ruby/1.8/x86\_64-linux/openssl.so: undefined symbol: EVP\_CIPHER\_CTX\_cipher openssl and …

---

## [Ruby DBI](https://www.ruby-forum.com/t/ruby-dbi/90170)

<div class="topic-metadata">

**Author:** [@Starke](https://www.ruby-forum.com/u/Starke)\
**Replies:** 4\
**Last updated:** [March 26, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/ruby-dbi/90170 "2007-03-26T21:05:25Z")

</div>

I am trying to create a reporting system via rails and iSeries DB2. I have ruby retrieve records with Ruby DBI. Is there a way to get this working inside rails?

---

## [Local network](https://www.ruby-forum.com/t/local-network/90201)

<div class="topic-metadata">

**Author:** [@longinos](https://www.ruby-forum.com/u/longinos)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/local-network/90201 "2007-03-26T20:57:24Z")

</div>

can ruby be used to make an inventory and administration program,to run locally with no internet conection? can it be done with ruby on rails? or it can only be done in ruby ?

---

## [Question about using ruby and gtk to make an app](https://www.ruby-forum.com/t/question-about-using-ruby-and-gtk-to-make-an-app/90082)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/question-about-using-ruby-and-gtk-to-make-an-app/90082 "2007-03-26T20:46:22Z")

</div>

I have a question about using ruby and ruby-gtk2. I have a simple gui and am using SourceView as my text buffer and have added a menu to open and save files. My question is how in the world to I open a file and disp…

---

## [Backus, Functional Programming, and Ruby](https://www.ruby-forum.com/t/backus-functional-programming-and-ruby/90029)

<div class="topic-metadata">

**Author:** [@mindtriggerz](https://www.ruby-forum.com/u/mindtriggerz)\
**Replies:** 11\
**Last updated:** [March 26, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/backus-functional-programming-and-ruby/90029 "2007-03-26T20:43:22Z")

</div>

Recently, John Backus, the father of Fortran, died. In 1977 he won the Turing Award, and gave a lecture promoting functional programming. The lecture can be accessed here: Â http://www.stanford.edu/class/cs242/read…

---

## [How to handle "System Exceptions" vs "Application Errors" vs](https://www.ruby-forum.com/t/how-to-handle-system-exceptions-vs-application-errors-vs/89592)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/how-to-handle-system-exceptions-vs-application-errors-vs/89592 "2007-03-26T20:12:17Z")

</div>

Hi all, Just trying to cement by understanding of how to handle system exceptions/application errors/audit events for a Ruby on Rails application. How do people personally handle the following categories of events. a…

---

## [Find\_by\_sql and date\_format](https://www.ruby-forum.com/t/find-by-sql-and-date-format/90112)

<div class="topic-metadata">

**Author:** [@felix\_sheng](https://www.ruby-forum.com/u/felix_sheng)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/find-by-sql-and-date-format/90112 "2007-03-26T19:51:11Z")

</div>

Hello, I’m beginning my first project in Ruby (and Rails) and running into an issue. I need to pull some data out of mysql using the date\_format command but ActiveRecord is not appreciating my sql. I’m doing somethin…

---

## [Alternative to switch statements](https://www.ruby-forum.com/t/alternative-to-switch-statements/90180)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/alternative-to-switch-statements/90180 "2007-03-26T18:15:45Z")

</div>

Hi, I am trying to write a ‘keyword-driven test automation framework’ in Ruby. Using a case statement def field(name, args) case name when ‘username’ name=‘login’ when ‘password’ name=‘password’ end return $i…

---

## [Ruby Weekly News 12th - 18th March 2007](https://www.ruby-forum.com/t/ruby-weekly-news-12th-18th-march-2007/89558)

<div class="topic-metadata">

**Author:** [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/ruby-weekly-news-12th-18th-march-2007/89558 "2007-03-26T18:07:44Z")

</div>

Links are at http://www.rubyweeklynews.org/20070318.html Ruby Weekly News 12th - 18th March 2007 Ruby Weekly News takes a look at the week’s discussions on the ruby-talk mailing list (and its equivalents, the comp.la…

---

## [Gets gets](https://www.ruby-forum.com/t/gets-gets/90133)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/gets-gets/90133 "2007-03-26T18:01:42Z")

</div>

I’m a little surprised at this. In irb, I tried puts gets gets. Why? I don’t know. but basically, gets gets, seems to almost act like a heredoc! myString = gets gets puts myString

---

## [Capturing standard out?](https://www.ruby-forum.com/t/capturing-standard-out/89369)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 8\
**Last updated:** [March 26, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/capturing-standard-out/89369 "2007-03-26T17:54:41Z")

</div>

Is there an easy way to capture standard out in Ruby, so that “puts” throws its output into a buffer instead of just popping up on the screen?

---

## [Syntax error, unexpected kOR](https://www.ruby-forum.com/t/syntax-error-unexpected-kor/90178)

<div class="topic-metadata">

**Author:** [@nonno\_lele](https://www.ruby-forum.com/u/nonno_lele)\
**Replies:** 3\
**Last updated:** [March 26, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-kor/90178 "2007-03-26T17:47:39Z")

</div>

Hello there, I’m newbie with ruby and to be onest I’m quite surprised about a strange behaviour I found: How the interpreter works with this lines looks odd to me: def dummy? (true or false ) end This one has no p…

---

## [Ajax-update with link\_to\_remote(image\_tag), how to?](https://www.ruby-forum.com/t/ajax-update-with-link-to-remote-image-tag-how-to/90140)

<div class="topic-metadata">

**Author:** [@saravanan](https://www.ruby-forum.com/u/saravanan)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/ajax-update-with-link-to-remote-image-tag-how-to/90140 "2007-03-26T16:31:28Z")

</div>

Hi, I have a image. link\_to\_remote(image\_Tag…) with update option. Its working. But, i cant get the next image what i want to display after click this. How to do it? what i code it(If i click the link)? render\_tex…

---

## [Ruby and Cryptography](https://www.ruby-forum.com/t/ruby-and-cryptography/89409)

<div class="topic-metadata">

**Author:** [@amrkamel](https://www.ruby-forum.com/u/amrkamel)\
**Replies:** 12\
**Last updated:** [March 26, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/ruby-and-cryptography/89409 "2007-03-26T15:29:47Z")

</div>

Hello everyone, Is there any Ruby packages that provides cryptography “either symmetric or asymmetric cryptography”? If so can any one tell me and recommend me what to use? Thanks in advance.

---

## [Sorting an array basedon two attributes of objects](https://www.ruby-forum.com/t/sorting-an-array-basedon-two-attributes-of-objects/90157)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 3\
**Last updated:** [March 26, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/sorting-an-array-basedon-two-attributes-of-objects/90157 "2007-03-26T14:57:56Z")

</div>

Hi all, I want to sort the objects of array based on two attributes.I want sort an employee class based on his salary and name , so that if two person has same salary it should be sorted with name. Lets say for examp…

---

## [Rubyforge login failure?](https://www.ruby-forum.com/t/rubyforge-login-failure/90139)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 5\
**Last updated:** [March 26, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/rubyforge-login-failure/90139 "2007-03-26T14:00:44Z")

</div>

Hiya people I can’t retrieve the rubyforge login page - is it just me? Les

---

## [Tk under Windows XP](https://www.ruby-forum.com/t/tk-under-windows-xp/90002)

<div class="topic-metadata">

**Author:** [@Jimmy\_G](https://www.ruby-forum.com/u/Jimmy_G)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 1:16pm UTC](https://www.ruby-forum.com/t/tk-under-windows-xp/90002 "2007-03-26T13:16:24Z")

</div>

Hi, I am trying learn how to use TK in Ruby to make my first GUI. I have win XP and Installed TK from “ActiveState/ ActiveTcl” . But When I run this script I get error !. Any ideas why ?.. Do I have to install TK…

---

## [Sequel 0.0.9 - Concise ORM for Ruby](https://www.ruby-forum.com/t/sequel-0-0-9-concise-orm-for-ruby/90137)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 10:50am UTC](https://www.ruby-forum.com/t/sequel-0-0-9-concise-orm-for-ruby/90137 "2007-03-26T10:50:55Z")

</div>

Sequel is a new ORM tool for Ruby. Sequel provides the following features: Thread safety and connection pooling. You can write multi-threaded applications that connect to databases without worrying about handling co…

---

## [Visual ruby project](https://www.ruby-forum.com/t/visual-ruby-project/90121)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 3\
**Last updated:** [March 26, 2007, 10:47am UTC](https://www.ruby-forum.com/t/visual-ruby-project/90121 "2007-03-26T10:47:55Z")

</div>

Hi, is there someone doing like this http://cs.joensuu.fi/jeliot/description.php in ruby? if not, it would be great as a SoC project (w universal plugin to editors and supports outputs including asciitext/curses). Th…

---

## [Open4-0.9.2](https://www.ruby-forum.com/t/open4-0-9-2/90122)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 7:18am UTC](https://www.ruby-forum.com/t/open4-0-9-2/90122 "2007-03-26T07:18:56Z")

</div>

URIS http://rubyforge.org/projects/codeforpeople/ http://www.codeforpeople.com/lib/ruby/ SYNOPSIS open child process with handles on pid, stdin, stdout, and stderr: manage child processes and their io handles easil…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/90118)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 6:41am UTC](https://www.ruby-forum.com/t/unsubscribe/90118 "2007-03-26T06:41:54Z")

</div>

unsubscribe

---

## [Mountain West Ruby Conference slides, keynote?](https://www.ruby-forum.com/t/mountain-west-ruby-conference-slides-keynote/89454)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 14\
**Last updated:** [March 26, 2007, 2:20am UTC](https://www.ruby-forum.com/t/mountain-west-ruby-conference-slides-keynote/89454 "2007-03-26T02:20:34Z")

</div>

Will the Mountain West Ruby Conference talks be posted? Or Chad’s keynote? Thanks, Dan

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1501)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1503)
