# Ruby

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

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

---

## [Spaces in between brackets](https://www.ruby-forum.com/t/spaces-in-between-brackets/100360)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 3, 2006, 7:21am UTC](https://www.ruby-forum.com/t/spaces-in-between-brackets/100360 "2006-02-03T07:21:37Z")

</div>

Can anyone explain to me why the code works: \<input id=“recipe\_title” name=“recipe\[title\]” While this code doesn’t: \<input id=“recipe\_title” name=“recipe\[ title \]” I know that most people don’t put spaces in between …

---

## [Looking for a good web-based feed aggregator](https://www.ruby-forum.com/t/looking-for-a-good-web-based-feed-aggregator/53379)

<div class="topic-metadata">

**Author:** [@Francis\_H](https://www.ruby-forum.com/u/Francis_H)\
**Replies:** 2\
**Last updated:** [February 3, 2006, 5:45am UTC](https://www.ruby-forum.com/t/looking-for-a-good-web-based-feed-aggregator/53379 "2006-02-03T05:45:03Z")

</div>

Hi kids, I’m looking to install a web-based RSS & Atom aggregator for a project I’m doing in March. The ideal system would meet a few requirements, though of course I’ve got plenty of time to bang around under the hoo…

---

## [Strange posting about ebooks](https://www.ruby-forum.com/t/strange-posting-about-ebooks/98762)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 53\
**Last updated:** [February 3, 2006, 5:14am UTC](https://www.ruby-forum.com/t/strange-posting-about-ebooks/98762 "2006-02-03T05:14:41Z")

</div>

For some unfathomable reason I have received four emails containing various Ruby related ebooks: Pragmatic Programmer, From Journeyman to Master.pdf Syngress - Ruby Developer’s Guide.pdf The Pickaxe.pdf Game Program…

---

## [Gotcha for Newbies](https://www.ruby-forum.com/t/gotcha-for-newbies/100512)

<div class="topic-metadata">

**Author:** [@Neowulf](https://www.ruby-forum.com/u/Neowulf)\
**Replies:** 1\
**Last updated:** [February 3, 2006, 3:05am UTC](https://www.ruby-forum.com/t/gotcha-for-newbies/100512 "2006-02-03T03:05:09Z")

</div>

Hi all, I just thought I’d drop this one in for any newbie’s playing around with directory listings… me@somehost\> find /somedir \> results File.open("./results").each do |file| puts file unless File.directory(file) …

---

## [Re: neuroimage software - scientific computing and visualiza](https://www.ruby-forum.com/t/re-neuroimage-software-scientific-computing-and-visualiza/100510)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [February 3, 2006, 2:19am UTC](https://www.ruby-forum.com/t/re-neuroimage-software-scientific-computing-and-visualiza/100510 "2006-02-03T02:19:57Z")

</div>

So are you saying that if you have an array like: a = \[‘d’, ‘b’, ‘a’, ‘c’, ‘e’\] You would like to get something like: a.sort\_index #=\> \[2, 1, 3, 0, 4\] If that’s the case, then I’m sure it’s doable. No built-in met…

---

## [Port a Library (#64)](https://www.ruby-forum.com/t/port-a-library-64/100333)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 5\
**Last updated:** [February 3, 2006, 2:16am UTC](https://www.ruby-forum.com/t/port-a-library-64/100333 "2006-02-03T02:16:54Z")

</div>

The great element of porting a library is that you get examine another programmer’s ideas. If you’re lucky, that may teach you a new trick or two. I’ll use my experience as an example. Using Buffers When I decided …

---

## [Re: Work around for "Bignum out of Float range"?](https://www.ruby-forum.com/t/re-work-around-for-bignum-out-of-float-range/100437)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 3, 2006, 12:25am UTC](https://www.ruby-forum.com/t/re-work-around-for-bignum-out-of-float-range/100437 "2006-02-03T00:25:15Z")

</div>

Dear Sam, your problem is somewhat insolvable, since the square root of 5 has an infinite number of digits, so it cannot be represented correctly on any computer (in decimal or binary notation). For arbitrary precisi…

---

## [Re: Mongrel HTTP Library 0.2.0 (Fast And RubyForgified)](https://www.ruby-forum.com/t/re-mongrel-http-library-0-2-0-fast-and-rubyforgified/100195)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 4\
**Last updated:** [February 2, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/re-mongrel-http-library-0-2-0-fast-and-rubyforgified/100195 "2006-02-02T23:09:49Z")

</div>

Seem to have a slight problem with the mongrel gem, unless I’m using the custom require supplied by rubygems, I can’t get the gem to work. The following: p require ‘rubygems’ p require\_gem ‘mongrel’ p Mongrel gives…

---

## [Need help installing fxruby (gem) on gentoo](https://www.ruby-forum.com/t/need-help-installing-fxruby-gem-on-gentoo/100128)

<div class="topic-metadata">

**Author:** [@manuelkiessling](https://www.ruby-forum.com/u/manuelkiessling)\
**Replies:** 1\
**Last updated:** [February 2, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/need-help-installing-fxruby-gem-on-gentoo/100128 "2006-02-02T22:57:46Z")

</div>

Hello, I just tried to install fxruby throug rubygems, but got the following error (see at the end of the message for complete output): /usr/lib64/ruby/1.8/fileutils.rb:243: command not found: ruby extconf.rb i fxrub…

---

## [Win XP USB Port?](https://www.ruby-forum.com/t/win-xp-usb-port/53345)

<div class="topic-metadata">

**Author:** [@ESRSBruecklmeier](https://www.ruby-forum.com/u/ESRSBruecklmeier)\
**Replies:** 7\
**Last updated:** [February 2, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/win-xp-usb-port/53345 "2006-02-02T22:36:40Z")

</div>

Good morning rubyists, has anyone ever tried to termiante a USB device on a Win XP system from ruby? best regard out of the ice eric.

---

## [Numeric#of](https://www.ruby-forum.com/t/numeric-of/99591)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 27\
**Last updated:** [February 2, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/numeric-of/99591 "2006-02-02T22:24:37Z")

</div>

i threw this out before. thought i’d try again: harp:~ \> irb irb(main):001:0\> class Numeric; def of(&b) Array::new(self).map(&b) end; end =\> nil irb(main):002:0\> 42.of{ String::new } =\> \["", “”, “”, “”, “”, “”, “”…

---

## [Mongrel 0.2.1 HTTP Library (Fancy URI Matching)](https://www.ruby-forum.com/t/mongrel-0-2-1-http-library-fancy-uri-matching/100233)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 3\
**Last updated:** [February 2, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/mongrel-0-2-1-http-library-fancy-uri-matching/100233 "2006-02-02T22:03:28Z")

</div>

And now it’s time for yet another Mongrel release. Mongrel is a small fast HTTP library written in (partly) Ruby. It is intended to be used by web app framework authors to make their applications fast and deployable …

---

## [Question about PStore API](https://www.ruby-forum.com/t/question-about-pstore-api/53374)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [February 2, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/question-about-pstore-api/53374 "2006-02-02T22:03:27Z")

</div>

Hi all, This is one of those, “Why are things this way” kind of questions. Why doesn’t PStore#transaction yield itself? That way I could write: store.transaction{ |s| s\[‘names’\] = %w/foo bar baz/ s\[‘tree’\] = T.new …

---

## [Installing Mysql/ruby on Windows 2000](https://www.ruby-forum.com/t/installing-mysql-ruby-on-windows-2000/53373)

<div class="topic-metadata">

**Author:** [@Alain\_FELER](https://www.ruby-forum.com/u/Alain_FELER)\
**Replies:** 1\
**Last updated:** [February 2, 2006, 9:42pm UTC](https://www.ruby-forum.com/t/installing-mysql-ruby-on-windows-2000/53373 "2006-02-02T21:42:19Z")

</div>

Hello, I try to install Mysql/ruby on Windows 2000, but the http://www.tmtm.org/en/mysql/ruby/ page says 1. ruby extconf.rb (ok) 2. make (??? there is no make in windows → unknown command). Somebody can help me ? Than…

---

## [Chomping and stomping](https://www.ruby-forum.com/t/chomping-and-stomping/53367)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 16\
**Last updated:** [February 2, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/chomping-and-stomping/53367 "2006-02-02T21:09:03Z")

</div>

Chaps, Here’s a short script to keep requesting for input… #!/usr/bin/ruby -w def chomper xx = gets.chomp! until $\_ == “qq” puts “hit me with a squirell!” xx = gets.chomp! xx end end chomper this works but su…

---

## [Re: Indentation vs. "end"s](https://www.ruby-forum.com/t/re-indentation-vs-end-s/53348)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 2\
**Last updated:** [February 2, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/re-indentation-vs-end-s/53348 "2006-02-02T20:53:54Z")

</div>

Then get to REALLY love Python and the problem is gone for you (and for honorable Bruce Eckel too). Otherwise it looks like an inviation to a flame. Gennady.

---

## [Re: ruby-dev summary 28206-28273](https://www.ruby-forum.com/t/re-ruby-dev-summary-28206-28273/100372)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [February 2, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/re-ruby-dev-summary-28206-28273/100372 "2006-02-02T20:50:53Z")

</div>

h\["key"\] and h\["key"\].dispatch h\["key"\].nil? {|h| h.dispatch } This issue is still open. Yuck. Looks like a hack from Perl6. Not Ruby-ish. Syntactically, a method might look better than an operator: a\[1\].if?.s…

---

## [Work around for "Bignum out of Float range"?](https://www.ruby-forum.com/t/work-around-for-bignum-out-of-float-range/100428)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 1\
**Last updated:** [February 2, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/work-around-for-bignum-out-of-float-range/100428 "2006-02-02T20:32:40Z")

</div>

Hi! First, some codes. def calc(n) (2 \*\* n) \* (5 \*\* 0.5) end puts calc(10000) =\>warning: Bignum out of Float range I understand what the problem is. If I want to get the result, how can I work around the barrier? …

---

## [Re: Indentation vs. "end"s](https://www.ruby-forum.com/t/re-indentation-vs-end-s/100427)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [February 2, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/re-indentation-vs-end-s/100427 "2006-02-02T20:26:38Z")

</div>

\-----Original Message----- From: Michael S. \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, February 02, 2006 11:16 AM To: ruby-talk ML Subject: Re: Indentation vs. "end"s Somehow my first message got…

---

## [FXRuby Image Scaling question](https://www.ruby-forum.com/t/fxruby-image-scaling-question/100336)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 2\
**Last updated:** [February 2, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/fxruby-image-scaling-question/100336 "2006-02-02T20:20:36Z")

</div>

I have a screen with a logo on it, I would like the logo to scale with screen size. I have tried more than a couple variations on: # Construct an image @logo = FXPNGImage.new(getApp(), File.open("logo.png", "rb").read,…

---

## [Rails + Oracle](https://www.ruby-forum.com/t/rails-oracle/99987)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [February 2, 2006, 7:38pm UTC](https://www.ruby-forum.com/t/rails-oracle/99987 "2006-02-02T19:38:20Z")

</div>

I have tried every connection string on the Rails site and it will not connect. I can create a regular dbi script and connect and pull out data. If someone is using Rails + Oracle can you post the relevent portions o…

---

## [Readline extension doesn't compile with ruby-1.8.4 on RedHat](https://www.ruby-forum.com/t/readline-extension-doesnt-compile-with-ruby-1-8-4-on-redhat/53371)

<div class="topic-metadata">

**Author:** [@Sascha\_E](https://www.ruby-forum.com/u/Sascha_E)\
**Replies:** 0\
**Last updated:** [February 2, 2006, 6:40pm UTC](https://www.ruby-forum.com/t/readline-extension-doesnt-compile-with-ruby-1-8-4-on-redhat/53371 "2006-02-02T18:40:46Z")

</div>

Hi, I am basically following this guide: and do curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz tar xzvf readline-5.1.tar.gz cd readline-5.1 ./configure --prefix=/usr/local make make install fine. T…

---

## [Irb cursor navigation](https://www.ruby-forum.com/t/irb-cursor-navigation/100387)

<div class="topic-metadata">

**Author:** [@Matt\_Maycock](https://www.ruby-forum.com/u/Matt_Maycock)\
**Replies:** 4\
**Last updated:** [February 2, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/irb-cursor-navigation/100387 "2006-02-02T18:10:29Z")

</div>

Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or down results in ^\[\[D, ^\[\[A, etc instead of the intended effect. Is there a fix? Thank you, ~Matthew Maycock

---

## [Re: WIN32OLE extension using in/out SAFEARRAYs (Matlab inter](https://www.ruby-forum.com/t/re-win32ole-extension-using-in-out-safearrays-matlab-inter/100395)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 2, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/re-win32ole-extension-using-in-out-safearrays-matlab-inter/100395 "2006-02-02T17:49:18Z")

</div>

Here is the method signature. is the code I am using. require ‘win32ole’ matlab = WIN32OLE.new(‘Matlab.Application’) matlab.Execute(‘bob = 1:5;’) t1 = Array.new(5, 0.0) t2 = t1.dup t3 = matlab.GetFullMatrix(‘bob’…

---

## [Class vs. Object](https://www.ruby-forum.com/t/class-vs-object/100113)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 9\
**Last updated:** [February 2, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/class-vs-object/100113 "2006-02-02T17:34:13Z")

</div>

I’m new to Ruby, and relatively new to OOP (1.5 years of Java – but nothing too serious. I didn’t really bother to try and understand it deeply). I’m trying to grok the difference between a class and an object. My …

---

## [Re: How to make beep sounds?](https://www.ruby-forum.com/t/re-how-to-make-beep-sounds/100385)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 2, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/re-how-to-make-beep-sounds/100385 "2006-02-02T17:06:55Z")

</div>

length/frequency parameters?) in Ruby? Thanks, Axel On Windows, see win32-sound. Regards, Dan

---

## [How to make beep sounds?](https://www.ruby-forum.com/t/how-to-make-beep-sounds/100383)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 2, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-make-beep-sounds/100383 "2006-02-02T17:03:54Z")

</div>

Dear all, is there an easy way to output a beep sound (maybe with length/frequency parameters?) in Ruby? Thanks, Axel

---

## [Re: memoize to a file](https://www.ruby-forum.com/t/re-memoize-to-a-file/100370)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 2, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/re-memoize-to-a-file/100370 "2006-02-02T16:45:42Z")

</div>

it possible you ran this program using 1.8.2, downloaded Brian I have applied that patch along with Andrew J.'s refactoring. I should have a release out soon. Regards, Dan

---

## [Re: memoize to a file](https://www.ruby-forum.com/t/re-memoize-to-a-file/53368)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 2, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/re-memoize-to-a-file/53368 "2006-02-02T16:30:35Z")

</div>

message: "in that error if such is the case, since Marshal is not compatible Also note that ruby can read Marshal data in older formats if if (RTEST(ruby\_verbose) && minor != MARSHAL\_MINOR) { minor change happened …

---

## [Callbacks, events, notification in general](https://www.ruby-forum.com/t/callbacks-events-notification-in-general/53316)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [February 2, 2006, 3:45pm UTC](https://www.ruby-forum.com/t/callbacks-events-notification-in-general/53316 "2006-02-02T15:45:13Z")

</div>

OK, bare with me, this is brainstorming of a sorts: I want to have some kind of event notification from my classes. Typically what I would do would be to pass a logger object and let the class log by itself, but I’m n…

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

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