# Ruby

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

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

---

## [Install Issues on FC5](https://www.ruby-forum.com/t/install-issues-on-fc5/63661)

<div class="topic-metadata">

**Author:** [@coolboarderguy](https://www.ruby-forum.com/u/coolboarderguy)\
**Replies:** 9\
**Last updated:** [June 20, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/install-issues-on-fc5/63661 "2006-06-20T18:50:07Z")

</div>

Hi All, firstly, I’m a newb to Ruby and programming in general. I currently attend a Ruby study group here in Sydney. Matz, and others, thanx for this great language. Ok, now to my dilemna. I installed Ruby via yum a…

---

## [A new home for RubyForge](https://www.ruby-forum.com/t/a-new-home-for-rubyforge/63857)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [June 20, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/a-new-home-for-rubyforge/63857 "2006-06-20T18:30:17Z")

</div>

Hi all - Thanks to the nice folks at Ruby Central, RubyForge is getting new hardware (\*) and a new colocation home. In other words, we’re moving it out of Rich Kilmer’s basement! So, tomorrow RubyForge will be down …

---

## [Lack in pp](https://www.ruby-forum.com/t/lack-in-pp/95902)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 6\
**Last updated:** [June 20, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/lack-in-pp/95902 "2006-06-20T18:14:50Z")

</div>

e$B$3$s$K$A$O!#:XF#$H?=$7$^$9!#e(B e$B\<+J,$Oe(Bppe$B$K\>$7$/$O$J$$$N$G$9$,!"B8:\_$9$kMWAG$,I=\<($5$l$J$$$N$Oe(B e$BJQ$G$O$J$$$G$7$g$&$+!#e(B $ ruby -rpp -ve ‘a=\[1,\[2,3\]\]; puts PP.pp(a, “”); pp a’ ruby 1.9.0 (2006-06-19)…

---

## [Module include matters?](https://www.ruby-forum.com/t/module-include-matters/63866)

<div class="topic-metadata">

**Author:** [@zenzei](https://www.ruby-forum.com/u/zenzei)\
**Replies:** 6\
**Last updated:** [June 20, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/module-include-matters/63866 "2006-06-20T18:05:11Z")

</div>

Hi, I was playing with various modules and found something I can’t explain. It seems like module inclusion’s order matters ? Here is a simple test case : module B; end module C; include B; end module A; def somemet…

---

## [Is it more convenient to have a random\_each in ruby stdlib?](https://www.ruby-forum.com/t/is-it-more-convenient-to-have-a-random-each-in-ruby-stdlib/63787)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 24\
**Last updated:** [June 20, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/is-it-more-convenient-to-have-a-random-each-in-ruby-stdlib/63787 "2006-06-20T18:01:59Z")

</div>

I found it may be a common case that we need randomly enumerate elements in a array or some other collections. Please take a look at the very simple snippet of code below: class Array def random\_each a = self.dup …

---

## [Uniq() Oddity](https://www.ruby-forum.com/t/uniq-oddity/95940)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 14\
**Last updated:** [June 20, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/uniq-oddity/95940 "2006-06-20T17:49:50Z")

</div>

Would someone please explain this behavior to me? a = \[ { :foo =\> :bar }, { :foo =\> :bar } \] p a #=\> \[{:foo=\>:bar}, {:foo=\>:bar}\] p a\[0\] == a\[1\] #=\> true why does this next call do nothing? p a.uniq …

---

## [Short But Unique (#83)](https://www.ruby-forum.com/t/short-but-unique-83/63591)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [June 20, 2006, 5:40pm UTC](https://www.ruby-forum.com/t/short-but-unique-83/63591 "2006-06-20T17:40:30Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Wish list: webrick server with cgi test file](https://www.ruby-forum.com/t/wish-list-webrick-server-with-cgi-test-file/63910)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 4\
**Last updated:** [June 20, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/wish-list-webrick-server-with-cgi-test-file/63910 "2006-06-20T17:03:56Z")

</div>

Anyone has a webrick server which works with a cgi test file, to share with me? Hopefully, not all webrick users are at the rails conference! I have tried various combinations with various errors. Here is the latest …

---

## [Re: uniq() Oddity](https://www.ruby-forum.com/t/re-uniq-oddity/63914)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/re-uniq-oddity/63914 "2006-06-20T16:45:14Z")

</div>

\-----Original Message----- From: James Edward G. II \[mailto:removed\_email\_address@domain.invalid\] Sent: Tuesday, June 20, 2006 8:32 AM To: ruby-talk ML Subject: Re: uniq() Oddity So which one is uniq() really us…

---

## [Re: Ruby documentation (was Re: RUBY or (PHP5+PEAR+SMARTY))](https://www.ruby-forum.com/t/re-ruby-documentation-was-re-ruby-or-php5-pear-smarty/63878)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/re-ruby-documentation-was-re-ruby-or-php5-pear-smarty/63878 "2006-06-20T15:29:44Z")

</div>

On Jun 18, 2006, at 17:12, James B. wrote: Please see http://ruby-doc.org/stdlib/status.html This sounded interesting, so I dropped by, then started looking through some of the files to see if I knew enough about Ruby…

---

## [Converting a date to the day of the week](https://www.ruby-forum.com/t/converting-a-date-to-the-day-of-the-week/63909)

<div class="topic-metadata">

**Author:** [@krisleech](https://www.ruby-forum.com/u/krisleech)\
**Replies:** 2\
**Last updated:** [June 20, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/converting-a-date-to-the-day-of-the-week/63909 "2006-06-20T15:26:36Z")

</div>

http://www.ruby-doc.org/stdlib/libdoc/date/rdoc/classes/Date.html#M000370 Looking at the Date class there are two constants, a hash DAYS and an array ABBR\_DAYNAMES. DAYS = { ‘sunday’ =\> 0, ‘monday’ =\> 1, ‘tuesday’ =\> …

---

## [Failing with Dir.glob results](https://www.ruby-forum.com/t/failing-with-dir-glob-results/63809)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [June 20, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/failing-with-dir-glob-results/63809 "2006-06-20T15:13:51Z")

</div>

Hello, My script is failing at the following move command, right after the capturing of a bunch of files in a directory. My glob is a big one. It’s checking against 49 different file prefixes. Is that a problem? All I …

---

## [Bug in $.?](https://www.ruby-forum.com/t/bug-in/95937)

<div class="topic-metadata">

**Author:** [@wybodekker](https://www.ruby-forum.com/u/wybodekker)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/bug-in/95937 "2006-06-20T14:37:07Z")

</div>

wybo\>cat t def out; print "#$. "; end # print $. plus a space out $. = 0 out DATA.each { out } puts END 1 2 3 4 wybo\>ruby t 7 0 8 9 10 11 This should, probably even without the $.=0 statement, print: 7 0 1…

---

## [About \<programming ruby, 2nc edition\>, meta class and Class](https://www.ruby-forum.com/t/about-programming-ruby-2nc-edition-meta-class-and-class/61185)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 13\
**Last updated:** [June 20, 2006, 1:39pm UTC](https://www.ruby-forum.com/t/about-programming-ruby-2nc-edition-meta-class-and-class/61185 "2006-06-20T13:39:53Z")

</div>

General speaking, itâ??s about the relationship between virtual class(metaclass ) and Class. Itâ??s all in chapter 24. In Figure 24.2, Dave gives the relationship between object instance(a\_guitar), its class(Guitar) …

---

## [Installing irb in Ubuntu](https://www.ruby-forum.com/t/installing-irb-in-ubuntu/63883)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 10\
**Last updated:** [June 20, 2006, 1:03pm UTC](https://www.ruby-forum.com/t/installing-irb-in-ubuntu/63883 "2006-06-20T13:03:11Z")

</div>

Hi. I’ve installed Ubuntu Dapper in my desktop. To my disappoint it doesn’t have ruby preinstalled. That’s still okay, because I can do it by myself. I’ve apt-get install ruby. Then, I’ve apt-get install irb1.8 becau…

---

## [Re: associative array naming indirection](https://www.ruby-forum.com/t/re-associative-array-naming-indirection/63863)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 10:52am UTC](https://www.ruby-forum.com/t/re-associative-array-naming-indirection/63863 "2006-06-20T10:52:43Z")

</div>

the array is in has a method that takes an array of string values. end foo(:a, :b, :c) You can read about Array#zip and Array#flatten on the documentation pages, or by using ri from the terminal, e.g. $ ri Array#…

---

## [Re: Installing irb in Ubuntu](https://www.ruby-forum.com/t/re-installing-irb-in-ubuntu/95931)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 10:43am UTC](https://www.ruby-forum.com/t/re-installing-irb-in-ubuntu/95931 "2006-06-20T10:43:33Z")

</div>

you can not even dream about ‘sudo apt-get install rails’. Also, there the ideal way imho, is to install rails using gem, plus you get the latest stable of rails, too… kind regards -botp

---

## [Re: Installing irb in Ubuntu](https://www.ruby-forum.com/t/re-installing-irb-in-ubuntu/63884)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 9:09am UTC](https://www.ruby-forum.com/t/re-installing-irb-in-ubuntu/63884 "2006-06-20T09:09:22Z")

</div>

is there any way to fix such a non-intuitive installation procedure? you can try it all on one line: “apt-get install ruby libzlib-ruby rdoc irb” it’s an apt thingy (as far as ruby is concern;) apt maintainers holds, …

---

## [Not ok iterator 80 -- ./sample/test.rb:1104](https://www.ruby-forum.com/t/not-ok-iterator-80-sample-test-rb-1104/63696)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 6\
**Last updated:** [June 20, 2006, 8:15am UTC](https://www.ruby-forum.com/t/not-ok-iterator-80-sample-test-rb-1104/63696 "2006-06-20T08:15:07Z")

</div>

sample/test.rb e$B$,e(B 2e$B$D\<:GT$7$F$$$^$9$,!":G=i$N\<:GT$O\<!$N$b$N$G$9!#e(B % ./ruby ./sample/test.rb … not ok iterator 80 – ./sample/test.rb:1104 … e$B\<h$j=P$7$F$\_$k$H!"\<!$N$h$&$K$J$j$^$9!#e(B % ./ruby -ve ’ d…

---

## [Ruby versus the world](https://www.ruby-forum.com/t/ruby-versus-the-world/95916)

<div class="topic-metadata">

**Author:** [@kyrre](https://www.ruby-forum.com/u/kyrre)\
**Replies:** 15\
**Last updated:** [June 20, 2006, 6:01am UTC](https://www.ruby-forum.com/t/ruby-versus-the-world/95916 "2006-06-20T06:01:52Z")

</div>

Hello! I might have missed past discussions, but where may I find comparisons between Ruby and the rest of the major programming languages out there? If there are none, how about we make one? Remember the key to good…

---

## [InstantRails using existing installed pieces](https://www.ruby-forum.com/t/instantrails-using-existing-installed-pieces/63803)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 4:36am UTC](https://www.ruby-forum.com/t/instantrails-using-existing-installed-pieces/63803 "2006-06-20T04:36:19Z")

</div>

Hi! I’ve been looking for this information on InstantRails mail archieves and couldn’t find any hints. So, I have posted some tips and tricks how I did it: mindstorms: InstantRails using existing installations (tips …

---

## [Numeric roadmap?](https://www.ruby-forum.com/t/numeric-roadmap/63785)

<div class="topic-metadata">

**Author:** [@dimas](https://www.ruby-forum.com/u/dimas)\
**Replies:** 8\
**Last updated:** [June 20, 2006, 4:33am UTC](https://www.ruby-forum.com/t/numeric-roadmap/63785 "2006-06-20T04:33:05Z")

</div>

Why don’t we have proper support for numbers in Ruby? Numeric, Fixnum, Float, Bignum, Complex, Rational, BigDecimal… What a mess! And they are often incompatible and can’t be safely interchanged! There MUST BE ONE SI…

---

## [Vim 7 ruby omni-complete 0.6](https://www.ruby-forum.com/t/vim-7-ruby-omni-complete-0-6/63877)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 4:32am UTC](https://www.ruby-forum.com/t/vim-7-ruby-omni-complete-0-6/63877 "2006-06-20T04:32:47Z")

</div>

It’s been a while, but I’m back again with a new version. If you missed the original announcement, rubycomplete provides a vim7 omni-completion function (code completion) for vim. It is based on complete.rb, pycomplet…

---

## [Problems with Ruby and C++](https://www.ruby-forum.com/t/problems-with-ruby-and-c/63473)

<div class="topic-metadata">

**Author:** [@wooleywoolee](https://www.ruby-forum.com/u/wooleywoolee)\
**Replies:** 4\
**Last updated:** [June 20, 2006, 3:13am UTC](https://www.ruby-forum.com/t/problems-with-ruby-and-c/63473 "2006-06-20T03:13:53Z")

</div>

Hi all, I’ve been using Ruby, SWIG and C++ on Linux for my development work and am encountering some problems. The C++ consists of a built dynamic library and I’m implementing SWIG the standard way http://www.swig.or…

---

## [Where's the backtrace?](https://www.ruby-forum.com/t/wheres-the-backtrace/63875)

<div class="topic-metadata">

**Author:** [@lists](https://www.ruby-forum.com/u/lists)\
**Replies:** 3\
**Last updated:** [June 20, 2006, 2:10am UTC](https://www.ruby-forum.com/t/wheres-the-backtrace/63875 "2006-06-20T02:10:40Z")

</div>

I’m probably misunderstanding the way things are supposed to work. Here’s what I’m seeing: $ cat lib.rb class MyClass def throws\_an\_exception self.non\_existent\_method end end if FILE == $0 MyClass.new.throws\_an\_…

---

## [Associative array naming indirection](https://www.ruby-forum.com/t/associative-array-naming-indirection/63849)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 7\
**Last updated:** [June 20, 2006, 12:01am UTC](https://www.ruby-forum.com/t/associative-array-naming-indirection/63849 "2006-06-20T00:01:58Z")

</div>

I have an array of names in string form as an instance var. The class the array is in has a method that takes an array of string values. I want to construct an associative array such that the names in the first array …

---

## [Mongrel\_cluster 0.2.0 -- Mongrel 0.3.13 Compliant](https://www.ruby-forum.com/t/mongrel-cluster-0-2-0-mongrel-0-3-13-compliant/63858)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 1\
**Last updated:** [June 19, 2006, 11:11pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-0-2-0-mongrel-0-3-13-compliant/63858 "2006-06-19T23:11:22Z")

</div>

Bradley couldn’t make it so I’m filling in for him. This is a short announcement to tell everyone using the mongrel\_cluster gem to manage their Mongrels that there’s a new official version out. Version 0.2.0 is sporti…

---

## [Best way to deal with command line options](https://www.ruby-forum.com/t/best-way-to-deal-with-command-line-options/63801)

<div class="topic-metadata">

**Author:** [@thomas\_coopman](https://www.ruby-forum.com/u/thomas_coopman)\
**Replies:** 6\
**Last updated:** [June 19, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/best-way-to-deal-with-command-line-options/63801 "2006-06-19T22:12:37Z")

</div>

Hi, I’m verry new to ruby, just use it for some days now and I have question about the best implementation of how to deal with command line options. Suppose I have a program, with a class say A and a main. My program…

---

## [GeoCoding API updates](https://www.ruby-forum.com/t/geocoding-api-updates/63845)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [June 19, 2006, 9:36pm UTC](https://www.ruby-forum.com/t/geocoding-api-updates/63845 "2006-06-19T21:36:18Z")

</div>

I’ve added a new geocoding API, metacarta-geoparser: $ sudo gem install metacarta-geoparser MetaCartaGeoParser contains two geocoding APIs, #locate: gp = MetaCartaGeoParser.new location = gp.locate ‘baghdad’ p locat…

---

## [ANN: ZenObfuscate - for when you really really have to ship](https://www.ruby-forum.com/t/ann-zenobfuscate-for-when-you-really-really-have-to-ship/63200)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 31\
**Last updated:** [June 19, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/ann-zenobfuscate-for-when-you-really-really-have-to-ship/63200 "2006-06-19T21:13:43Z")

</div>

“Being perfectly honest, your obfuscator has made me feel like writing RubyCocoa apps is a commercially viable business, whereas before I had my doubts.” - Aidan R. ZenObfuscate What is it? For when you really real…

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

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