# Ruby

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

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

---

## [Missing methods in Facets?](https://www.ruby-forum.com/t/missing-methods-in-facets/117666)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 0\
**Last updated:** [October 19, 2007, 1:50am UTC](https://www.ruby-forum.com/t/missing-methods-in-facets/117666 "2007-10-19T01:50:41Z")

</div>

Does anyone know why a lot of the String methods that are supposedly in Facets would not show up? Specifically, I was expecting fold, dresner, similarity and soundex to be there, but for some reason they don’t seem t…

---

## [High volume DRb server errors](https://www.ruby-forum.com/t/high-volume-drb-server-errors/117658)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 0\
**Last updated:** [October 19, 2007, 12:20am UTC](https://www.ruby-forum.com/t/high-volume-drb-server-errors/117658 "2007-10-19T00:20:49Z")

</div>

I’ve run into an interesting problem using DRb as the frontend for publishing one of our services. We have a single Ruby process publishing a service via DRb. The service is consumed by 100-300 clients at any given ti…

---

## [Extracting values from consecutive lines](https://www.ruby-forum.com/t/extracting-values-from-consecutive-lines/117521)

<div class="topic-metadata">

**Author:** [@baptiste\_AuguiSSSS](https://www.ruby-forum.com/u/baptiste_AuguiSSSS)\
**Replies:** 15\
**Last updated:** [October 19, 2007, 12:12am UTC](https://www.ruby-forum.com/t/extracting-values-from-consecutive-lines/117521 "2007-10-19T00:12:32Z")

</div>

Hello, This is a basic question, as I’m very new to Ruby. I have a text file ‘input.dat’ containing the following data and text: 161.00 2.9760E-03 1.7378E-03 162.00 2.8956E-03 1.7431E-03 …

---

## [Reverse the Polarity (#143)](https://www.ruby-forum.com/t/reverse-the-polarity-143/117655)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/reverse-the-polarity-143/117655 "2007-10-18T23:27:56Z")

</div>

I was glad to see this problem submitted. I worked on it a ways back when I was translating examples from Higher-Order Perl. It shows up in the book during the discussion of infinite streams. Watching others solve…

---

## [Attributes-4.1.0](https://www.ruby-forum.com/t/attributes-4-1-0/117644)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/attributes-4-1-0/117644 "2007-10-18T21:46:40Z")

</div>

NAME attributes.rb INSTALL gem install attributes URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby SYNOPSIS attributes.rb provides a set of attr\_\* like method with several user …

---

## [Naming Conventions](https://www.ruby-forum.com/t/naming-conventions/117598)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [October 18, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/naming-conventions/117598 "2007-10-18T21:44:55Z")

</div>

Hi all, I’m quite new to Ruby. One of the things I try to get when I learn a new language are naming conventions. I hate to write, for instance, Java code that looks like C++. My question is: are Ruby’s aliases inten…

---

## [Equal? versus eql? versus == versus === verus \<=\>](https://www.ruby-forum.com/t/equal-versus-eql-versus-versus-verus/117366)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 11\
**Last updated:** [October 18, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/equal-versus-eql-versus-versus-verus/117366 "2007-10-18T20:08:41Z")

</div>

I recently found myself explaining to a friend how Ruby’s various comparison operators work. In the process, I tried to find some decent documentation on why Ruby has so many different ways to test for equality, how t…

---

## [Tk question - how do i bind to multiple events?](https://www.ruby-forum.com/t/tk-question-how-do-i-bind-to-multiple-events/117602)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/tk-question-how-do-i-bind-to-multiple-events/117602 "2007-10-18T17:03:15Z")

</div>

I have a text field, and i want to get the value out of it when the user presses Return or tabs to another field. Currently i’m doing it like this: name\_field = TkEntry.new(root) var = TkVariable.new(“f”) name\_fiel…

---

## [Speed issue on Windows](https://www.ruby-forum.com/t/speed-issue-on-windows/55935)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 20\
**Last updated:** [October 18, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/speed-issue-on-windows/55935 "2007-10-18T16:25:27Z")

</div>

What progress is being made to improve Ruby’s speed on Windows platforms. I’m finding much slower on Windows, especially Windows 2003 Server.

---

## [How to breakpoint ruby code?](https://www.ruby-forum.com/t/how-to-breakpoint-ruby-code/117380)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 9\
**Last updated:** [October 18, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/how-to-breakpoint-ruby-code/117380 "2007-10-18T16:09:05Z")

</div>

Hello, I would like to know how I can have my ruby code stopped and an irb invoqued which would allow me to have full access to the current context. I’ve tried this : require ‘rubygems’ require\_gem ‘ruby-breakpoint’ …

---

## [Ruby without installation](https://www.ruby-forum.com/t/ruby-without-installation/117580)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/ruby-without-installation/117580 "2007-10-18T15:24:00Z")

</div>

Hi! I today make som scripts in Perl, it have the advantage it is installed everyware and i not allowed to install stuff, eg Ruby but i have full acces to my userarea. I time ago i so LispInABox witch was LISP and E…

---

## [2 - 2.01?](https://www.ruby-forum.com/t/2-2-01/117604)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 5\
**Last updated:** [October 18, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/2-2-01/117604 "2007-10-18T15:02:22Z")

</div>

Hey, How come 2 - 2.01 = -0.00999999999999979 and not -0.01 ??? Can someone explain this to me please?

---

## [Ruby without installation](https://www.ruby-forum.com/t/ruby-without-installation/196492)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/ruby-without-installation/196492 "2007-10-18T13:55:25Z")

</div>

Hi! I today make som scripts in Perl, it have the advantage it is installed everyware and i not allowed to install stuff, eg Ruby but i have full acces to my userarea. I time ago i so LispInABox witch was LISP and E…

---

## [Class#aliases?](https://www.ruby-forum.com/t/class-aliases/116919)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 8\
**Last updated:** [October 18, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/class-aliases/116919 "2007-10-18T13:22:13Z")

</div>

Does this method exist? I think that it doesn’t, but I just thought I’d make sure. – Giles B. Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com/

---

## [MySQL connection issue](https://www.ruby-forum.com/t/mysql-connection-issue/117585)

<div class="topic-metadata">

**Author:** [@hbotadra](https://www.ruby-forum.com/u/hbotadra)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 11:02am UTC](https://www.ruby-forum.com/t/mysql-connection-issue/117585 "2007-10-18T11:02:49Z")

</div>

Hey All, I am getting the following error in my Ruby Script: mysql\_adapter.rb:322:in connect': undefined method\[\]’ for nil:NilClass (NoMethodError) Essentially it occurs at a point when the script tries to connect to…

---

## [Abstract superclasses](https://www.ruby-forum.com/t/abstract-superclasses/117535)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 7\
**Last updated:** [October 18, 2007, 10:52am UTC](https://www.ruby-forum.com/t/abstract-superclasses/117535 "2007-10-18T10:52:51Z")

</div>

I sometimes use the Java thing of an abstract superclass in Ruby. I usually just set up the abstract parent so that it’ll break if used directly. Is it better to just use Modules? Have other people run into this? – …

---

## [AOT Compiler](https://www.ruby-forum.com/t/aot-compiler/117524)

<div class="topic-metadata">

**Author:** [@rjst](https://www.ruby-forum.com/u/rjst)\
**Replies:** 3\
**Last updated:** [October 18, 2007, 10:36am UTC](https://www.ruby-forum.com/t/aot-compiler/117524 "2007-10-18T10:36:28Z")

</div>

Hi, I'm wondering what's the status of the AOT compiler. Is it adequate for production ? I know it can compile all the .rb files in a directory, but looking at JRubyC seems like it can’t recurse subfolders. Is there …

---

## [YAML gem?](https://www.ruby-forum.com/t/yaml-gem/117577)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 9:06am UTC](https://www.ruby-forum.com/t/yaml-gem/117577 "2007-10-18T09:06:27Z")

</div>

hi, could anyone please point me to a gem of YAML? i am using windows. thank you aidy

---

## [Does the flickr gem still work?](https://www.ruby-forum.com/t/does-the-flickr-gem-still-work/117500)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 4\
**Last updated:** [October 18, 2007, 8:48am UTC](https://www.ruby-forum.com/t/does-the-flickr-gem-still-work/117500 "2007-10-18T08:48:54Z")

</div>

I’m trying to whip up a little textmate command based on this: http://muellerware.org/projects/getf4b/ But can’t seem to figure out how to get it to authenticate to flickr using my own flickr api key. I’ve tried var…

---

## [Continuous input until semicolon reached](https://www.ruby-forum.com/t/continuous-input-until-semicolon-reached/117027)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 7\
**Last updated:** [October 18, 2007, 8:13am UTC](https://www.ruby-forum.com/t/continuous-input-until-semicolon-reached/117027 "2007-10-18T08:13:14Z")

</div>

Hello I am doing a program in which I want to allow my user to keep keying in until they put semicolon then the prompt will process the data. It is something like mysql way. for example mysql\> select from user; …

---

## [\[BUG\] errno == 0 at IO#pos on DOSISH](https://www.ruby-forum.com/t/bug-errno-0-at-io-pos-on-dosish/117582)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 8:12am UTC](https://www.ruby-forum.com/t/bug-errno-0-at-io-pos-on-dosish/117582 "2007-10-18T08:12:39Z")

</div>

e$B$J$+$@$G$9!#e(B http://pc11.2ch.net/test/read.cgi/tech/1188014743/716 e$B$G8+3\]$1$?e(B e$B$N$G$9$,!“e(BDOSISHe$B$J%7%9%F%\`$G2~9T%3!\<%I$,e(BLFe$B$N%U%!%$%k$rFI$b$&$H$9e(B e$B$k$H!”$\*$+$7$J$3$H$K$J$k$h$&$G$9!#e(B $ …

---

## [DOC to PDF](https://www.ruby-forum.com/t/doc-to-pdf/117573)

<div class="topic-metadata">

**Author:** [@suja](https://www.ruby-forum.com/u/suja)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 7:16am UTC](https://www.ruby-forum.com/t/doc-to-pdf/117573 "2007-10-18T07:16:58Z")

</div>

Hi All, How to convert .doc to pdf in ruby. Is there any comverter library available in Ruby? Thanks in advance, Suja

---

## [New Wiki Page: Success Stories](https://www.ruby-forum.com/t/new-wiki-page-success-stories/117572)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 6:56am UTC](https://www.ruby-forum.com/t/new-wiki-page-success-stories/117572 "2007-10-18T06:56:05Z")

</div>

Since it appears a few people have success stories they’d like to share related to JRuby, there’s a new page in the wiki you can add them to: http://www.headius.com/jrubywiki/index.php/Success\_Stories Charlie To un…

---

## [Have Ruby warnings about uninitialized instance variables gotten more verbose in the past year?](https://www.ruby-forum.com/t/have-ruby-warnings-about-uninitialized-instance-variables-gotten-more-verbose-in-the-past-year/117550)

<div class="topic-metadata">

**Author:** [@Bill\_McNeill](https://www.ruby-forum.com/u/Bill_McNeill)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 5:09am UTC](https://www.ruby-forum.com/t/have-ruby-warnings-about-uninitialized-instance-variables-gotten-more-verbose-in-the-past-year/117550 "2007-10-18T05:09:12Z")

</div>

I just ran the unit tests on some code I haven’t touched since November 2006. The last time I checked, the unit tests ran without a hitch, but now I’m getting lots of “warning: instance variable … not initialized” wa…

---

## [Nil.to\_i returning zero](https://www.ruby-forum.com/t/nil-to-i-returning-zero/117213)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 44\
**Last updated:** [October 18, 2007, 3:45am UTC](https://www.ruby-forum.com/t/nil-to-i-returning-zero/117213 "2007-10-18T03:45:02Z")

</div>

zero in Ruby is true, not false, in a boolean context. What does false.to\_i return? An exception. There is not a numeric interpretation for false. What about nil. nil is nothing. The only other object that evaluates …

---

## [Goldspike static files caching](https://www.ruby-forum.com/t/goldspike-static-files-caching/117040)

<div class="topic-metadata">

**Author:** [@Stefan\_Magnus\_Landr](https://www.ruby-forum.com/u/Stefan_Magnus_Landr)\
**Replies:** 3\
**Last updated:** [October 17, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/goldspike-static-files-caching/117040 "2007-10-17T22:55:43Z")

</div>

Hi there, What would be the best approach for caching static files on let’s say tomcat? Stefan Bekk Open Source http://boss.bekk.no To unsubscribe from this list please visit: http://xircles.codehaus.org/manage\_e…

---

## [Trouble with super and .NET classes](https://www.ruby-forum.com/t/trouble-with-super-and-net-classes/116652)

<div class="topic-metadata">

**Author:** [@dermothogan](https://www.ruby-forum.com/u/dermothogan)\
**Replies:** 15\
**Last updated:** [October 17, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/trouble-with-super-and-net-classes/116652 "2007-10-17T22:25:47Z")

</div>

Iâ€™m trying to derive a class from a .NET class like this: class X \< System::Windows::Forms::Form and I get this error message: System.InvalidOperationException: superclass must be a Class (NestedTypeTracker given) …

---

## [Recommendations for working with PostgreSQL](https://www.ruby-forum.com/t/recommendations-for-working-with-postgresql/117454)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 13\
**Last updated:** [October 17, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/recommendations-for-working-with-postgresql/117454 "2007-10-17T21:40:40Z")

</div>

I have need to work with PostgreSQL via Ruby. What gems/modules do you recommend? Are there any quickstart-type howtos online to which you might direct me? Thanks in advance.

---

## [SEGV by def d(a) yield(a) end; d(0,&:x)](https://www.ruby-forum.com/t/segv-by-def-d-a-yield-a-end-d-0-x/117532)

<div class="topic-metadata">

**Author:** [@eklerni](https://www.ruby-forum.com/u/eklerni)\
**Replies:** 0\
**Last updated:** [October 17, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/segv-by-def-d-a-yield-a-end-d-0-x/117532 "2007-10-17T20:35:04Z")

</div>

eklerni e$B$G$9!#e(B 1.9e$B$G0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$7$?!#e(B C:\>ruby -e “def d(a) yield(a) end;d(0,&:x)” -e:1: – control frame ---------- c:0005 p:---- s:0012 b:0012 l:002048 d:000011 IFUNC :proc c:0004 …

---

## [Optionparser](https://www.ruby-forum.com/t/optionparser/117491)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 2\
**Last updated:** [October 17, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/optionparser/117491 "2007-10-17T20:15:36Z")

</div>

Dear Mohit, Do you know about the optionparser classes. If you know very well could you explain me. Because,as far I read that is very useful for parsing the commandline arguments. Please anyone help me. by vellin…

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

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