# Ruby

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

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

---

## [Rio: which is the slow one?](https://www.ruby-forum.com/t/rio-which-is-the-slow-one/75062)

<div class="topic-metadata">

**Author:** [@olicat](https://www.ruby-forum.com/u/olicat)\
**Replies:** 7\
**Last updated:** [March 6, 2006, 5:19am UTC](https://www.ruby-forum.com/t/rio-which-is-the-slow-one/75062 "2006-03-06T05:19:39Z")

</div>

The speed difference looks too extreme too me: caps = \[\] File.open(‘caps\_u8.dic’).each {|line| caps \<\< line.split(’;’)\[0\]} =\> 1.8 seconds require ‘rio’ caps = rio(‘caps\_u8.dic’).csv(";").columns(0)\[\].flatten p caps …

---

## [RubyGems Malfunction](https://www.ruby-forum.com/t/rubygems-malfunction/77139)

<div class="topic-metadata">

**Author:** [@superN00b](https://www.ruby-forum.com/u/superN00b)\
**Replies:** 2\
**Last updated:** [March 6, 2006, 5:12am UTC](https://www.ruby-forum.com/t/rubygems-malfunction/77139 "2006-03-06T05:12:37Z")

</div>

Thanks to everybody who helped me with my 1.6â??1.8 issue. Shamefully, however, I have a new question for you. I downloaded the RubyGems folder and tried to run ./configure on it; couldn’t do it so I assume it’s not i…

---

## [Ruby pass like statement](https://www.ruby-forum.com/t/ruby-pass-like-statement/76930)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 12\
**Last updated:** [March 6, 2006, 3:34am UTC](https://www.ruby-forum.com/t/ruby-pass-like-statement/76930 "2006-03-06T03:34:04Z")

</div>

When laying out programs in Python, sometimes during preliminary design, functions/methods are named but not defined. Instead, ‘pass’ is used to indicate that it’ll be defined later. It may look like this: def some\_fu…

---

## [Asserting in code vs unit tests](https://www.ruby-forum.com/t/asserting-in-code-vs-unit-tests/54453)

<div class="topic-metadata">

**Author:** [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Replies:** 13\
**Last updated:** [March 6, 2006, 3:09am UTC](https://www.ruby-forum.com/t/asserting-in-code-vs-unit-tests/54453 "2006-03-06T03:09:53Z")

</div>

Hi! I talked to few fellow ruby programmers, and most of them agreed that unit tests are the place where the asserts should be placed, however in my own opinion, unit tests mostly never cover everything and asserts in …

---

## [The Golden Fibonacci Ratio (#69)](https://www.ruby-forum.com/t/the-golden-fibonacci-ratio-69/77049)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [March 6, 2006, 2:45am UTC](https://www.ruby-forum.com/t/the-golden-fibonacci-ratio-69/77049 "2006-03-06T02:45:48Z")

</div>

Simple Tk version. “Inifinite” steps (rectangles); press “Space” bar for each step; automatic increase scroll region. require ‘tk’ class GoldenRect include Enumerable def initialize @w = @h = 1 end def each in…

---

## [Dynamic assignment of iterator name](https://www.ruby-forum.com/t/dynamic-assignment-of-iterator-name/77097)

<div class="topic-metadata">

**Author:** [@heinous](https://www.ruby-forum.com/u/heinous)\
**Replies:** 1\
**Last updated:** [March 6, 2006, 12:15am UTC](https://www.ruby-forum.com/t/dynamic-assignment-of-iterator-name/77097 "2006-03-06T00:15:06Z")

</div>

I apologize if this is a foolish questions, but I am new to the language and having trouble finding an example of what I am looking to do (if it’s possible.) I would like to know if there is a way to pass in the name …

---

## [\[SOLUTION\] The Golden Fibonacci Ration (#69)](https://www.ruby-forum.com/t/solution-the-golden-fibonacci-ration-69/77095)

<div class="topic-metadata">

**Author:** [@Brian\_Mattern](https://www.ruby-forum.com/u/Brian_Mattern)\
**Replies:** 0\
**Last updated:** [March 5, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/solution-the-golden-fibonacci-ration-69/77095 "2006-03-05T22:59:22Z")

</div>

Here is my text based (and animated) solution. The parameters are: ruby 69.rb \[number of steps\] \[scaling factor\] by default, it shows 6 steps with a scaling factor of 2. (The square with side i is scaled to (m \* i + …

---

## [Swig & passing array of arrays](https://www.ruby-forum.com/t/swig-passing-array-of-arrays/76900)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 1\
**Last updated:** [March 5, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/swig-passing-array-of-arrays/76900 "2006-03-05T22:14:04Z")

</div>

Hi, I’m trying to get SWIG to create a wrapper for some C code. I have some functions which take an int\*\* (which points to an array of arrays, and they also take the dimensions as arguments). I don’t know how to do…

---

## [Mr. Guid 0.2.8](https://www.ruby-forum.com/t/mr-guid-0-2-8/76964)

<div class="topic-metadata">

**Author:** [@mitchell](https://www.ruby-forum.com/u/mitchell)\
**Replies:** 0\
**Last updated:** [March 5, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/mr-guid-0-2-8/76964 "2006-03-05T19:01:44Z")

</div>

Mr. Guid 0.2.8 does not require local copies of scripts for remote debugging anymore. The scripts are transferred to the client automatically as needed. (Therefore no file arguments need to be passed to mr\_guid) Note…

---

## [Re: Writing to Parent and Child table at the same time](https://www.ruby-forum.com/t/re-writing-to-parent-and-child-table-at-the-same-time/76929)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [March 5, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/re-writing-to-parent-and-child-table-at-the-same-time/76929 "2006-03-05T17:33:14Z")

</div>

Hi JimNJ72, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscriptio…

---

## [How to use it: require](https://www.ruby-forum.com/t/how-to-use-it-require/76927)

<div class="topic-metadata">

**Author:** [@Servando\_G](https://www.ruby-forum.com/u/Servando_G)\
**Replies:** 2\
**Last updated:** [March 5, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/how-to-use-it-require/76927 "2006-03-05T16:38:46Z")

</div>

I have a custom file filled with a word list. How do call it in my main program. I have tried “require wordlist” but ruby can’t find the file In C/C++ I would have used Include\<wordlist.h\> or for python I would hav…

---

## [Reading binary data stops unexpectedly](https://www.ruby-forum.com/t/reading-binary-data-stops-unexpectedly/76926)

<div class="topic-metadata">

**Author:** [@gonchuki](https://www.ruby-forum.com/u/gonchuki)\
**Replies:** 2\
**Last updated:** [March 5, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/reading-binary-data-stops-unexpectedly/76926 "2006-03-05T16:23:46Z")

</div>

i’m trying to parse a binary file that simply contains Wav files one after the other packed with an arbitrary header that points where one file begins and the lenght of it. The case is that i want to ignore decomposin…

---

## [Different results between wsdl2ruby and wsdlDriver](https://www.ruby-forum.com/t/different-results-between-wsdl2ruby-and-wsdldriver/98962)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 1\
**Last updated:** [March 5, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/different-results-between-wsdl2ruby-and-wsdldriver/98962 "2006-03-05T14:30:56Z")

</div>

Sorry for barging in like this, but I’ve spent a few days looking for this info somewhere online, and I’ve just gone through the mailing list archive, and I can’t find anything anywhere. I’m trying to talk to an apa…

---

## [Wsdl2ruby NoMethodError](https://www.ruby-forum.com/t/wsdl2ruby-nomethoderror/98840)

<div class="topic-metadata">

**Author:** [@Giedrius](https://www.ruby-forum.com/u/Giedrius)\
**Replies:** 2\
**Last updated:** [March 5, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/wsdl2ruby-nomethoderror/98840 "2006-03-05T14:30:56Z")

</div>

Hi, i’m trying to generate objects for my wsdl and wsdl2ruby comes with error: F, \[2006-01-30T15:16:20.082000 #3520\] FATAL – app: Detected an exception. Stopping … undefined method \`namespace’ for nil:NilClass (NoMet…

---

## [Sending mail when exception occured](https://www.ruby-forum.com/t/sending-mail-when-exception-occured/76460)

<div class="topic-metadata">

**Author:** [@myysth](https://www.ruby-forum.com/u/myysth)\
**Replies:** 4\
**Last updated:** [March 5, 2006, 9:52am UTC](https://www.ruby-forum.com/t/sending-mail-when-exception-occured/76460 "2006-03-05T09:52:18Z")

</div>

Hello! I want to send e-mail when an exception will occur. What is important mail should contain backtrace. At first I redefined initialize method in Exception class, it worked but of course I didnt have access to ba…

---

## [Writing to Parent and Child table at the same time](https://www.ruby-forum.com/t/writing-to-parent-and-child-table-at-the-same-time/54441)

<div class="topic-metadata">

**Author:** [@JimNJ72](https://www.ruby-forum.com/u/JimNJ72)\
**Replies:** 0\
**Last updated:** [March 5, 2006, 6:49am UTC](https://www.ruby-forum.com/t/writing-to-parent-and-child-table-at-the-same-time/54441 "2006-03-05T06:49:35Z")

</div>

I am new to Ruby on Rails and Relationonal Database Development in general. I have been a notes/domino (formula, lotusscript), html, javascript coder for 10 years. I am building user authentication into a new app a…

---

## [Simple Script Help (New to Ruby)](https://www.ruby-forum.com/t/simple-script-help-new-to-ruby/54436)

<div class="topic-metadata">

**Author:** [@jmckible](https://www.ruby-forum.com/u/jmckible)\
**Replies:** 7\
**Last updated:** [March 5, 2006, 2:29am UTC](https://www.ruby-forum.com/t/simple-script-help-new-to-ruby/54436 "2006-03-05T02:29:32Z")

</div>

Hello Ruby Masters! I’m attempting to write a very simple guessing game script in an effort to expand my knowledge about the Ruby Language. I’m running ruby on my OpenSuse Linux 10 box at home. I’m typically a web-pro…

---

## [Jumble character order in a string](https://www.ruby-forum.com/t/jumble-character-order-in-a-string/54438)

<div class="topic-metadata">

**Author:** [@jotto](https://www.ruby-forum.com/u/jotto)\
**Replies:** 2\
**Last updated:** [March 5, 2006, 2:23am UTC](https://www.ruby-forum.com/t/jumble-character-order-in-a-string/54438 "2006-03-05T02:23:28Z")

</div>

I’m trying to figure out a way to randomize the letters in a word, essentially jumbling the spelling. jumbling the word jumble would give: lbujme or bujlme etc… right now i’m considering: rand(string.length) to get a…

---

## [Ruby on the mobile?](https://www.ruby-forum.com/t/ruby-on-the-mobile/76285)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 17\
**Last updated:** [March 5, 2006, 12:01am UTC](https://www.ruby-forum.com/t/ruby-on-the-mobile/76285 "2006-03-05T00:01:13Z")

</div>

Hi all, I found this post interesting. Is Ruby ignoring the mobile market? Do we need a “microruby” implementation? From Berco Beute, commenting on GvR’s “Marketing Python - An Idea Whose Time Has Come” Artima post…

---

## [Array comparison returning nil](https://www.ruby-forum.com/t/array-comparison-returning-nil/54398)

<div class="topic-metadata">

**Author:** [@juliangall](https://www.ruby-forum.com/u/juliangall)\
**Replies:** 15\
**Last updated:** [March 4, 2006, 10:29pm UTC](https://www.ruby-forum.com/t/array-comparison-returning-nil/54398 "2006-03-04T22:29:59Z")

</div>

I am comparing two arrays with: original\_item\_ids.sort \<=\> new\_item\_ids.sort However, this returns nil, which seems to be against the documentation which says the result will be -1, 0 or 1. Both arrays contain the sam…

---

## [Fox, printing and exporting](https://www.ruby-forum.com/t/fox-printing-and-exporting/54429)

<div class="topic-metadata">

**Author:** [@giom](https://www.ruby-forum.com/u/giom)\
**Replies:** 1\
**Last updated:** [March 4, 2006, 8:34pm UTC](https://www.ruby-forum.com/t/fox-printing-and-exporting/54429 "2006-03-04T20:34:45Z")

</div>

Two questions about FXRuby: Does printing with FXDCPrint works? All I manage to get are corrupt poscript file or completely blank pages… Any tricks or pitfalls to avoid when using FXDCPrint? Can I export the content …

---

## [Subclassing Struct.new](https://www.ruby-forum.com/t/subclassing-struct-new/74631)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 36\
**Last updated:** [March 4, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/subclassing-struct-new/74631 "2006-03-04T18:30:16Z")

</div>

Hi group. Please have a look at the following: irb(main):001:0\> class F \< Struct.new :n irb(main):002:1\> def dec\_n irb(main):003:2\> n = n - 1 irb(main):004:2\> end irb(main):005:1\> end =\> nil irb(main):006…

---

## [Test](https://www.ruby-forum.com/t/test/76694)

<div class="topic-metadata">

**Author:** [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 4:26pm UTC](https://www.ruby-forum.com/t/test/76694 "2006-03-04T16:26:17Z")

</div>

Sorry just testing… please ignore.

---

## [ANN: Ruby metablog for Korean rubyists](https://www.ruby-forum.com/t/ann-ruby-metablog-for-korean-rubyists/76496)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 5\
**Last updated:** [March 4, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/ann-ruby-metablog-for-korean-rubyists/76496 "2006-03-04T14:52:39Z")

</div>

As of today, I proudly announce rubyist.or.kr, a meta blog for Korean rubyists, whose primary goal is to provide useful documents and information to Korean Ruby programmers. rubyist.or.kr automatically aggregates RSS …

---

## [Intercepting STDERR](https://www.ruby-forum.com/t/intercepting-stderr/54333)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 8\
**Last updated:** [March 4, 2006, 9:14am UTC](https://www.ruby-forum.com/t/intercepting-stderr/54333 "2006-03-04T09:14:00Z")

</div>

I’m writing a Ruby script to run Lua code for TextMate. Using: output = lua #{filename} works when the file prints happily, but when an error occurs (e.g. a syntax error in the file) the error message is printed to st…

---

## [Problem in database updation through Adapter in VB.Net](https://www.ruby-forum.com/t/problem-in-database-updation-through-adapter-in-vb-net/76582)

<div class="topic-metadata">

**Author:** [@r2destini](https://www.ruby-forum.com/u/r2destini)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 8:55am UTC](https://www.ruby-forum.com/t/problem-in-database-updation-through-adapter-in-vb-net/76582 "2006-03-04T08:55:56Z")

</div>

Hi Friends, I am new to .Net. So I don’t know much. I am facing a problem in updating database through ADO.Net I am creating the dataset and there is no problem in the updation and deletion or insertion in the datase…

---

## [Problem in database updation through Adapter in VB.Net](https://www.ruby-forum.com/t/problem-in-database-updation-through-adapter-in-vb-net/54421)

<div class="topic-metadata">

**Author:** [@r2destini](https://www.ruby-forum.com/u/r2destini)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 8:55am UTC](https://www.ruby-forum.com/t/problem-in-database-updation-through-adapter-in-vb-net/54421 "2006-03-04T08:55:56Z")

</div>

Hi Friends, I am new to .Net. So I don’t know much. I am facing a problem in updating database through ADO.Net I am creating the dataset and there is no problem in the updation and deletion or insertion in the datase…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/76581)

<div class="topic-metadata">

**Author:** [@SSSB66KSSSSB\_SSB0lS](https://www.ruby-forum.com/u/SSSB66KSSSSB_SSB0lS)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 8:46am UTC](https://www.ruby-forum.com/t/no-subject/76581 "2006-03-04T08:46:52Z")

</div>

chaddr removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid matome 29

---

## [Canada on Rails announces location, and a site redesign](https://www.ruby-forum.com/t/canada-on-rails-announces-location-and-a-site-redesign/54419)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 6:43am UTC](https://www.ruby-forum.com/t/canada-on-rails-announces-location-and-a-site-redesign/54419 "2006-03-04T06:43:23Z")

</div>

BCIT Downtown Campus\[1\] has been chosen, with a maximum capacity of 300 people. With already over 50% of the seats filled, be sure to register soon or you might miss out on one of the most exciting technical events to …

---

## [Re: string slice elegant way](https://www.ruby-forum.com/t/re-string-slice-elegant-way/76494)

<div class="topic-metadata">

**Author:** [@PenaS\_Botp](https://www.ruby-forum.com/u/PenaS_Botp)\
**Replies:** 1\
**Last updated:** [March 4, 2006, 6:43am UTC](https://www.ruby-forum.com/t/re-string-slice-elegant-way/76494 "2006-03-04T06:43:23Z")

</div>

Mage \[mailto:removed\_email\_address@domain.invalid\] #a = ‘hello there’ #and I need ‘llo there’ #a\[2,a.size\] works, but I find it ugly because the given length #is larger #than the real length of the result. #a\[2,a.…

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

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