# Ruby

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

[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:** 1786

---

## [Ruby-dev summary 28606-28636](https://www.ruby-forum.com/t/ruby-dev-summary-28606-28636/62134)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/ruby-dev-summary-28606-28636/62134 "2006-05-31T20:37:57Z")

</div>

Hi all, This is a summary of ruby-dev ML in these days. \[ruby-dev:28606\] “;;” causes syntax error Shyouhei U. reported that “;;” causes syntax error: ~ % ruby-1.8 -ve ';;' ruby 1.8.4 (2006-02-12) \[x86\_64-linux\] ~ % …

---

## [Generating files with libsndfile](https://www.ruby-forum.com/t/generating-files-with-libsndfile/62128)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 7:56pm UTC](https://www.ruby-forum.com/t/generating-files-with-libsndfile/62128 "2006-05-31T19:56:12Z")

</div>

I’m trying to generate sound files with the ruby wrapper around libsndfile.\[1\] I have no problem reading sound files as there are examples for this in the documentation. But writing is another matter. This script r…

---

## [TMail question / ?error?](https://www.ruby-forum.com/t/tmail-question-error/62112)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 2\
**Last updated:** [May 31, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/tmail-question-error/62112 "2006-05-31T18:34:44Z")

</div>

Hi I am trying to write a Ruby program to test our antispam filter. So the first part of my strategy is to take a bunch of spam and a bunch of notspam messages which I’ve sorted into two mozilla-thunderbird mbox fil…

---

## [OO Thinking - First Attempt at building an object](https://www.ruby-forum.com/t/oo-thinking-first-attempt-at-building-an-object/62114)

<div class="topic-metadata">

**Author:** [@Paul\_DSKraus](https://www.ruby-forum.com/u/Paul_DSKraus)\
**Replies:** 3\
**Last updated:** [May 31, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/oo-thinking-first-attempt-at-building-an-object/62114 "2006-05-31T18:27:48Z")

</div>

Objective: store sales & units sold information by vendor, by year, by month, by class code. In my nested data structured brain i see it like this hash{vendor}{year}{month}\[0…5\]\[0…1\] 0…5 = represent 6 different item…

---

## [Installation Issues - SCO Openserver 5](https://www.ruby-forum.com/t/installation-issues-sco-openserver-5/95414)

<div class="topic-metadata">

**Author:** [@Paul\_DSKraus](https://www.ruby-forum.com/u/Paul_DSKraus)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/installation-issues-sco-openserver-5/95414 "2006-05-31T18:02:32Z")

</div>

I have an old sco openserver 5 box that still gets a ton of work here at work. Trying to get ruby installed on it. Configure runs with out a hitch but during make i get the following error… …/…/.ext/i686-sco3.2v…

---

## [Another Rails book announcement](https://www.ruby-forum.com/t/another-rails-book-announcement/62104)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 4:06pm UTC](https://www.ruby-forum.com/t/another-rails-book-announcement/62104 "2006-05-31T16:06:05Z")

</div>

Apress (www.apress.com) has announced one RoR book and mentioned that more are coming. Blog Announcement: http://ablog.apress.com/?p=1116 Beginning Ruby P.ming Book Website: http://www.apress.com/book/bookDisplay.ht…

---

## [Habtm on an array](https://www.ruby-forum.com/t/habtm-on-an-array/62091)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 5\
**Last updated:** [May 31, 2006, 3:35pm UTC](https://www.ruby-forum.com/t/habtm-on-an-array/62091 "2006-05-31T15:35:12Z")

</div>

Hi, I have three Models User, Group and File. User habtm group Group habtm File How can I find all that files that a particular user has access to? eg user.groups.files ?

---

## [Get folderlist in ruby](https://www.ruby-forum.com/t/get-folderlist-in-ruby/62094)

<div class="topic-metadata">

**Author:** [@rlee](https://www.ruby-forum.com/u/rlee)\
**Replies:** 4\
**Last updated:** [May 31, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/get-folderlist-in-ruby/62094 "2006-05-31T14:42:53Z")

</div>

Hi all, i am quite new to ruby and I was wondering if there is a method in ruby to get a list of folders and subfolders. e.g.: I have a ‘root’ directory and some sub directories and finaly some data files. —root |—…

---

## [Rflickr](https://www.ruby-forum.com/t/rflickr/95415)

<div class="topic-metadata">

**Author:** [@n8agrinster](https://www.ruby-forum.com/u/n8agrinster)\
**Replies:** 3\
**Last updated:** [May 31, 2006, 2:34pm UTC](https://www.ruby-forum.com/t/rflickr/95415 "2006-05-31T14:34:04Z")

</div>

hey all, i’m looking for anyone out there who is using rflickr to access the flickr API. i’ve got some issues with flickr.auth.getToken, where, no matter what, I get an error of ‘invalid frob’. it would also be nice…

---

## [Best UI library?](https://www.ruby-forum.com/t/best-ui-library/62015)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 3\
**Last updated:** [May 31, 2006, 12:53pm UTC](https://www.ruby-forum.com/t/best-ui-library/62015 "2006-05-31T12:53:34Z")

</div>

Hello, I need a simple UI library for a simple project (an UI simple to program). It must be multiplatform and easy to bundle with that small app. Which one would feet my needs ? I’ve found ruby-tk beeing quite easy…

---

## [Re: Best UI library?](https://www.ruby-forum.com/t/re-best-ui-library/62084)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 1\
**Last updated:** [May 31, 2006, 11:22am UTC](https://www.ruby-forum.com/t/re-best-ui-library/62084 "2006-05-31T11:22:44Z")

</div>

\-----Original Message----- From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] On Behalf Of Nuno Subject: Best UI library ? Hello, I need a simple UI library for a simple project…

---

## [Re: Search-result referrals in Net::LDAP](https://www.ruby-forum.com/t/re-search-result-referrals-in-net-ldap/95395)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [May 31, 2006, 10:41am UTC](https://www.ruby-forum.com/t/re-search-result-referrals-in-net-ldap/95395 "2006-05-31T10:41:18Z")

</div>

fr Francis: This happens because many A/D servers are configured to return what LDAP calls “Search-result referrals”- an additional LDAP URL that you are encouraged to query in order to get additional relevant results. …

---

## [YAML - how to encode an empty string](https://www.ruby-forum.com/t/yaml-how-to-encode-an-empty-string/95397)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 31, 2006, 7:24am UTC](https://www.ruby-forum.com/t/yaml-how-to-encode-an-empty-string/95397 "2006-05-31T07:24:40Z")

</div>

Learned something interesting (to me) today. In a fixture file I’m using to test some db code, I need a field to contain an empty string. I had no idea how to encode that in YAML. I checked the faq but it consists of …

---

## [Re: Installation question](https://www.ruby-forum.com/t/re-installation-question/95358)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 31, 2006, 7:21am UTC](https://www.ruby-forum.com/t/re-installation-question/95358 "2006-05-31T07:21:32Z")

</div>

Dear Matthew, I realise that people are trying to help, but I’d also like to suggest that unless people are familiar with a platform, they hold back on giving advice about it. Trying to help was my intention and y…

---

## [\[ANN\[ Milwaukee Ruby User Group Meeting](https://www.ruby-forum.com/t/ann-milwaukee-ruby-user-group-meeting/62068)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 5:32am UTC](https://www.ruby-forum.com/t/ann-milwaukee-ruby-user-group-meeting/62068 "2006-05-31T05:32:39Z")

</div>

The Milwaukee Ruby U.'s Group is pleased to announce it’s first meeting. Date: June 7, 2006 - Wednesday Time: 5:30 - 7:30 p.m. Location: SpiderLogic, Conference Room 1 on first floor 10000 West Innovation Dr. Milwa…

---

## [Pathname](https://www.ruby-forum.com/t/pathname/95317)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [May 31, 2006, 5:08am UTC](https://www.ruby-forum.com/t/pathname/95317 "2006-05-31T05:08:05Z")

</div>

About 6 months ago or so, I rewrote the Pathname library to internally store a path as an Array instead of a String. It appears to be about 20% faster than the original and the code is a good bit less complex. I no lo…

---

## [Re: It Will Get Better - Article Mini Series](https://www.ruby-forum.com/t/re-it-will-get-better-article-mini-series/61961)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [May 31, 2006, 4:22am UTC](https://www.ruby-forum.com/t/re-it-will-get-better-article-mini-series/61961 "2006-05-31T04:22:50Z")

</div>

fr zd: The first installment is today. It can be found on my site: http://blogs.mktec.com/zdennis/ very useful blog, imho. kind regards -botp

---

## [Re: rcov 0.5.0: code coverage + callsite info, RubyGems, Ran](https://www.ruby-forum.com/t/re-rcov-0-5-0-code-coverage-callsite-info-rubygems-ran/62061)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 2:53am UTC](https://www.ruby-forum.com/t/re-rcov-0-5-0-code-coverage-callsite-info-rubygems-ran/62061 "2006-05-31T02:53:47Z")

</div>

fr Mauricio: Attractive at first sight, but on second thought I don’t think anybody would enjoy editing with a browser (unless running an embedded vim or browsing with emacs) :slight\_smile: I’ll think about integratio…

---

## [Re: Search-result referrals in Net::LDAP](https://www.ruby-forum.com/t/re-search-result-referrals-in-net-ldap/62050)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 31, 2006, 1:00am UTC](https://www.ruby-forum.com/t/re-search-result-referrals-in-net-ldap/62050 "2006-05-31T01:00:25Z")

</div>

you try. Would you blame a company that has, say, 40,000 employees for implementing this? This is due to an “LDAP control” that A/D uses to prevent large queries. This has already been fixed in the HEAD revision …

---

## [Re: What happened to clrtoeol?](https://www.ruby-forum.com/t/re-what-happened-to-clrtoeol/95387)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 31, 2006, 12:23am UTC](https://www.ruby-forum.com/t/re-what-happened-to-clrtoeol/95387 "2006-05-31T00:23:56Z")

</div>

\-----Original Message----- From: Leslie V. \[mailto:removed\_email\_address@domain.invalid\] Sent: Tuesday, May 30, 2006 1:47 PM To: ruby-talk ML Subject: What happened to clrtoeol? Also, while I’m asking: anyone kn…

---

## [Search-result referrals in Net::LDAP](https://www.ruby-forum.com/t/search-result-referrals-in-net-ldap/62049)

<div class="topic-metadata">

**Author:** [@blackhedd](https://www.ruby-forum.com/u/blackhedd)\
**Replies:** 0\
**Last updated:** [May 31, 2006, 12:17am UTC](https://www.ruby-forum.com/t/search-result-referrals-in-net-ldap/62049 "2006-05-31T00:17:41Z")

</div>

All, I received an email from a gentleman who had a problem using Net::LDAP (library at Rubyforge) to query an Active Directory (A/D) server. He got the following error message: This happens because many A/D servers…

---

## [Re: Passing an array to DBI statement execute](https://www.ruby-forum.com/t/re-passing-an-array-to-dbi-statement-execute/95386)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/re-passing-an-array-to-dbi-statement-execute/95386 "2006-05-30T23:27:48Z")

</div>

any way to print out what sql statement it is trying to execute? I can’t find any API docs for DBI. Are you doing dbh.commit before you’re finished? I believe autocommit defaults to false with OCI8. Regards, Dan …

---

## [SafeObject protection for standard gotcha's](https://www.ruby-forum.com/t/safeobject-protection-for-standard-gotchas/61863)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/safeobject-protection-for-standard-gotchas/61863 "2006-05-30T23:15:39Z")

</div>

I have just noticed that my codeline has silent breakage all over the place and I have an idea how to catch this sort of thing in future… How it happened is this… I had a variable “platform” that I used all over the p…

---

## [Re: Passing an array to DBI statement execute](https://www.ruby-forum.com/t/re-passing-an-array-to-dbi-statement-execute/95385)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [May 30, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/re-passing-an-array-to-dbi-statement-execute/95385 "2006-05-30T23:09:15Z")

</div>

table. Here is my script: values = \[id\] values.concat line.chomp.split("\\t") (10…12).each {|x| values\[x\] = Time.parse(values\[x\]) unless values\[x\].nil? || values\[x\].strip == “”} sth.execute(values) sth.execute(\*v…

---

## [Ruby papers in Linux Journal](https://www.ruby-forum.com/t/ruby-papers-in-linux-journal/95367)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois](https://www.ruby-forum.com/u/Jean-FranSSSSois)\
**Replies:** 12\
**Last updated:** [May 30, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/ruby-papers-in-linux-journal/95367 "2006-05-30T23:09:02Z")

</div>

Hello everyone, Has anybody noticed that ? :slight\_smile: http://www.linuxjournal.com/issue/147 http://www.linuxjournal.com/articles/lj/0147/toc147/cover147.png (wow !) – Jean-FranÃ§ois .

---

## [Passing an array to DBI statement execute](https://www.ruby-forum.com/t/passing-an-array-to-dbi-statement-execute/62033)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/passing-an-array-to-dbi-statement-execute/62033 "2006-05-30T22:28:39Z")

</div>

I am trying to write a ruby script that will parse a tab-delimited text file and load the data into a database table. Here is my script: require “dbi” DBI.connect(“DBI:OCI8:mydb”, “myusername”, “mypassowrd”) do |dbh…

---

## [What happened to clrtoeol?](https://www.ruby-forum.com/t/what-happened-to-clrtoeol/62028)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/what-happened-to-clrtoeol/62028 "2006-05-30T21:48:30Z")

</div>

Hey people I have been trying out rush - the Ruby shell, but I see it’s a bit broken right now - there’s no clrtoeol function in Ruby curses! The author of Rush said thus: The changes was accepted for the ruby 1.8.3 …

---

## [Can not connect MS Access Database](https://www.ruby-forum.com/t/can-not-connect-ms-access-database/62024)

<div class="topic-metadata">

**Author:** [@JacobS\_Raymond\_A\_Jr](https://www.ruby-forum.com/u/JacobS_Raymond_A_Jr)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/can-not-connect-ms-access-database/62024 "2006-05-30T21:14:42Z")

</div>

What URI should I use? DBI.available\_drivers reports =\> \[“dbi:ODBC:”, “dbi:Oracle:”,“dbi:Proxy:”\] DBI.data\_sources(“dbi:ODBC:”) reports =\> \[“dbi:ODBC:Visio Database Samples”, “dbi:ODBC:MS Access Database”,…\] I can …

---

## [Re: Trying to download files using WWW::Mechanize](https://www.ruby-forum.com/t/re-trying-to-download-files-using-www-mechanize/95382)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/re-trying-to-download-files-using-www-mechanize/95382 "2006-05-30T21:13:24Z")

</div>

How do I grab a particular file and load it into memory or onto the Would be found like this: ‘.csv’, you could do this: page.links.href(/.csv$/).each { |link| puts agent.click(link).body } Hope this helps! Yo…

---

## [Trying to download files using WWW::Mechanize](https://www.ruby-forum.com/t/trying-to-download-files-using-www-mechanize/95374)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [May 30, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/trying-to-download-files-using-www-mechanize/95374 "2006-05-30T21:01:00Z")

</div>

Hi all, Ruby 1.8.4 www-mechanize 0.4.5 I’ve got a web page. On that page are a series of links to .csv files. I need a way to download a particular csv file. This file can either be loaded into memory or onto the …

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

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