# Ruby

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

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

---

## [\-r$B;~$N(Bdefault\_external](https://www.ruby-forum.com/t/r-b-n-bdefault-external/159596)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/r-b-n-bdefault-external/159596 "2009-02-06T19:18:20Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B \[Bug #1111\]e$B$rD\>$7$F$$$F5$$E$$$?$N$G$9$,!"e(Bshebange$B$Ge(Bdefault\_external e$B$r;XDj$7$?\>l9g!“8=\>u!”$=$l$,e(B-re$B$KH?1G$5$l$^$;$s!#e(B % cat foo.rb #! ruby -Eutf…

---

## [\[BUG\] rb\_thread\_create\_timer\_thread: return non-zero (11)](https://www.ruby-forum.com/t/bug-rb-thread-create-timer-thread-return-non-zero-11/159652)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/bug-rb-thread-create-timer-thread-return-non-zero-11/159652 "2009-02-06T18:44:18Z")

</div>

e$B%W%m%;%9?t$r@)8B$7$?\>uBV$Ge(B system e$B$r8F$V$He(B \[BUG\] e$B$H$J$j$^$9!#e(B % ./ruby -ve ’ Process.setrlimit(:NPROC, 1) system(“ls”) ’ ruby 1.9.2dev (2009-02-06 trunk 22098) \[i686-linux\] -e:3: \[BUG\] rb\_thread\_…

---

## [Dynamically create an unknown number of arrays](https://www.ruby-forum.com/t/dynamically-create-an-unknown-number-of-arrays/159644)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [February 6, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/dynamically-create-an-unknown-number-of-arrays/159644 "2009-02-06T18:34:24Z")

</div>

I need to create an unknow number of arrays on the fly (could be 1 array could be 10, I don’t know), is there a way to do this in Ruby and also name them dynamically? I also need to set those array’s to a collection o…

---

## [Recursive parallel readdir() with drb and slave libraries](https://www.ruby-forum.com/t/recursive-parallel-readdir-with-drb-and-slave-libraries/159650)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/recursive-parallel-readdir-with-drb-and-slave-libraries/159650 "2009-02-06T18:19:34Z")

</div>

Hi all, I’m trying to write a ruby script to do a recursive descent, counting up the size of each directory and it’s contents. Obviously, you just recurse down to the bottom, and work your way back up. But I need to…

---

## [Question - looking for library to use for query like code?](https://www.ruby-forum.com/t/question-looking-for-library-to-use-for-query-like-code/159634)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 7\
**Last updated:** [February 6, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/question-looking-for-library-to-use-for-query-like-code/159634 "2009-02-06T17:46:08Z")

</div>

Can this be done with Ruby? (this may be a shot in the dark) Say you have a text file with a lot of data and you want to group all of your data by a specific value. Is there a way to code something in ruby similar to …

---

## [\[Bug:1.9\] lack consistency in hash iteration](https://www.ruby-forum.com/t/bug-1-9-lack-consistency-in-hash-iteration/159458)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 6\
**Last updated:** [February 6, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/bug-1-9-lack-consistency-in-hash-iteration/159458 "2009-02-06T16:57:23Z")

</div>

e$B1sF#$G$9!#e(B \[ruby-core:21812\] e$B$GD4$Y$F$$$F5$$,IU$$$?$3$H$G$9$,!"e(B $ ./ruby -e ‘h = {0 =\> nil}; i = 1; h.each\_key { h\[i\] = nil; i += 1 }’ e$B$ODd;\_$7!"e(B $ ./ruby -e ‘h = {0 =\> nil, 1 =\> nil}; i = 2; h.each…

---

## [Strange arrayfields behaviour](https://www.ruby-forum.com/t/strange-arrayfields-behaviour/159639)

<div class="topic-metadata">

**Author:** [@Jean-Denis\_M](https://www.ruby-forum.com/u/Jean-Denis_M)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/strange-arrayfields-behaviour/159639 "2009-02-06T15:42:49Z")

</div>

Here is a counterintuitive behaviour of the arrayfields.rb module. It’s suppose to add light “indexing by keywords” capabilities to the Array class, without going all the way to hashes. See http://rubyfurnace.com/doc…

---

## [Using a Class (not an instance) into threads](https://www.ruby-forum.com/t/using-a-class-not-an-instance-into-threads/159426)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 18\
**Last updated:** [February 6, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/using-a-class-not-an-instance-into-threads/159426 "2009-02-06T14:28:28Z")

</div>

Hi, i’m using Ragel parser generating Ruby code. The generated code uses a Class instead of an instance, and that class has lots of attributes and methods. Something like: class MyParser class \<\< self attr\_acces…

---

## [Equivalent of "click\_no\_wait" using win32ole and threads?](https://www.ruby-forum.com/t/equivalent-of-click-no-wait-using-win32ole-and-threads/159627)

<div class="topic-metadata">

**Author:** [@mandeepbaruah](https://www.ruby-forum.com/u/mandeepbaruah)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/equivalent-of-click-no-wait-using-win32ole-and-threads/159627 "2009-02-06T13:57:15Z")

</div>

Hi guys, I have a watir script to download few files. In the script I am currently using “click\_no\_wait” to download which is working fine. But if I remove the download file from the backend and then run my script. T…

---

## [Does something like pty for windows?](https://www.ruby-forum.com/t/does-something-like-pty-for-windows/159624)

<div class="topic-metadata">

**Author:** [@Jarod\_Z](https://www.ruby-forum.com/u/Jarod_Z)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/does-something-like-pty-for-windows/159624 "2009-02-06T13:56:09Z")

</div>

Hi, all In my work, I often have to control applications running on Unix servers from Windows through ssh. In order to be more effective, I choosed to build some automation interactive script by ruby. I had tri…

---

## [Add 10 minutes to parsed time stamp?](https://www.ruby-forum.com/t/add-10-minutes-to-parsed-time-stamp/157024)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 8\
**Last updated:** [February 6, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/add-10-minutes-to-parsed-time-stamp/157024 "2009-02-06T13:55:34Z")

</div>

How can I add 10 minutes to this time stamp? Thanks. MC ServerTime = ‘Wed Dec 09 16:05:00 -0600 2009’ ServerTime + Time.parse(10) #\<-it does not work without parse since I get error can’t convert Fixnum into a string…

---

## [Offre tres interressante](https://www.ruby-forum.com/t/offre-tres-interressante/159620)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/offre-tres-interressante/159620 "2009-02-06T13:00:51Z")

</div>

Bonjour Vous êtes étudiant(e), retraité, maman au foyer, fonctionnaire, peu importe ; Vous êtes à la recherche d’un revenu complémentaire, vous désirez créer votre propre affaire et travailler de chez vous à temps pa…

---

## [Bug in SQLite3 Ruby wrapper when results\_as\_hash=true?](https://www.ruby-forum.com/t/bug-in-sqlite3-ruby-wrapper-when-results-as-hash-true/159549)

<div class="topic-metadata">

**Author:** [@Jean-Denis\_M](https://www.ruby-forum.com/u/Jean-Denis_M)\
**Replies:** 3\
**Last updated:** [February 6, 2009, 11:05am UTC](https://www.ruby-forum.com/t/bug-in-sqlite3-ruby-wrapper-when-results-as-hash-true/159549 "2009-02-06T11:05:08Z")

</div>

Hello, I am in my first days of Ruby, so I may have done something stupid, but my search did not uncover it. It seems to me that the SQLite3 wrapper doesn’t return correct results when results\_as\_hash is true. I ge…

---

## [Adding in jirb on an existing project?](https://www.ruby-forum.com/t/adding-in-jirb-on-an-existing-project/159554)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 10:29am UTC](https://www.ruby-forum.com/t/adding-in-jirb-on-an-existing-project/159554 "2009-02-06T10:29:57Z")

</div>

I have a sizable web application built in Java. It uses Spring, Hibernate, and WebWork. I would like to use JRuby to be able to “get at” the DAO and business objects in a console like I can in Ruby. I’ve done some r…

---

## [Videos over IronRuby](https://www.ruby-forum.com/t/videos-over-ironruby/159414)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 8\
**Last updated:** [February 6, 2009, 9:36am UTC](https://www.ruby-forum.com/t/videos-over-ironruby/159414 "2009-02-06T09:36:33Z")

</div>

Hi, I did a couple presentations the last few months on IronRuby or Silverlight Rails. One was at Devoxx 2008, which I gravely underestimated, where I actually use a lot of content from Jimmy’s presentation and I …

---

## [Watir is acting retarded](https://www.ruby-forum.com/t/watir-is-acting-retarded/159509)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 12\
**Last updated:** [February 6, 2009, 8:24am UTC](https://www.ruby-forum.com/t/watir-is-acting-retarded/159509 "2009-02-06T08:24:22Z")

</div>

This… NameError: uninitialized constant Windows::API::Error Or this… irb(main):009:0\> Watir::IE.new.goto ‘google.com’ NoMethodError: undefined method \`goto’ for #Watir::IE:0x32e108c I reinstalled Windows about 4 hou…

---

## [Recursive directory rename problem](https://www.ruby-forum.com/t/recursive-directory-rename-problem/159580)

<div class="topic-metadata">

**Author:** [@ransom](https://www.ruby-forum.com/u/ransom)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 6:05am UTC](https://www.ruby-forum.com/t/recursive-directory-rename-problem/159580 "2009-02-06T06:05:36Z")

</div>

Problem: trying to standardize on a naming convention for all of my directories(OS agnostic). new structure should be all lower-case with hyphphens for spaces Using windows, I am running the following: Dir.foreach(".…

---

## [Method Precedence](https://www.ruby-forum.com/t/method-precedence/159595)

<div class="topic-metadata">

**Author:** [@Daly](https://www.ruby-forum.com/u/Daly)\
**Replies:** 14\
**Last updated:** [February 6, 2009, 5:26am UTC](https://www.ruby-forum.com/t/method-precedence/159595 "2009-02-06T05:26:33Z")

</div>

Hello all, If I have a class such as: class Example def one puts “one” def two puts "two inside one" end end def two puts “two inside Example” end end And I do: e = Example.new e.one e.two I get, obvious…

---

## [Deployment task in jruby on rails](https://www.ruby-forum.com/t/deployment-task-in-jruby-on-rails/159525)

<div class="topic-metadata">

**Author:** [@LSSSSszlSSSSBSSSSc](https://www.ruby-forum.com/u/LSSSSszlSSSSBSSSSc)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 5:02am UTC](https://www.ruby-forum.com/t/deployment-task-in-jruby-on-rails/159525 "2009-02-06T05:02:33Z")

</div>

Hi, I’m new to this list, so hello everyone. I’m LÃ¡szlÃ³ BÃ¡csi from Hungary, where I work for Virgo Systems as the lead ruby developer. I have a problem that have bugged me for I while. The question is how to deplo…

---

## [\[Bug #1111\] -E and -K on shbang](https://www.ruby-forum.com/t/bug-1111-e-and-k-on-shbang/159517)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 4:07am UTC](https://www.ruby-forum.com/t/bug-1111-e-and-k-on-shbang/159517 "2009-02-06T04:07:36Z")

</div>

Bug #1111: -E and -K on shbang http://redmine.ruby-lang.org/issues/show/1111 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High e$B%+%F%4%je(B: M17N, Target version: 1.9.x ruby -v: ruby 1.9.2dev…

---

## [Code Review: netinterop1](https://www.ruby-forum.com/t/code-review-netinterop1/158692)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 6\
**Last updated:** [February 6, 2009, 3:18am UTC](https://www.ruby-forum.com/t/code-review-netinterop1/158692 "2009-02-06T03:18:27Z")

</div>

tfpt review “/shelveset:netinterop1;REDMOND\\jdeville” Comment : More tests for .net interop. This is taking advantage of the IronRuby selfhosting that Tomas blogged about in order to maintain isolation as I run diff…

---

## [Git Pushed](https://www.ruby-forum.com/t/git-pushed/159589)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 3:12am UTC](https://www.ruby-forum.com/t/git-pushed/159589 "2009-02-06T03:12:01Z")

</div>

Enjoy! JD

---

## [Code Review: IO7](https://www.ruby-forum.com/t/code-review-io7/159587)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:12am UTC](https://www.ruby-forum.com/t/code-review-io7/159587 "2009-02-06T02:12:23Z")

</div>

tfpt review “/shelveset:IO7;REDMOND\\tomat” Reviewed F2F by Curt. Includes inherited overloads in CLR method groups (RubyMethodGroupInfo). Method groups can now comprise of methods that are declared in multiple deriv…

---

## [Code Review: OI7](https://www.ruby-forum.com/t/code-review-oi7/159586)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:58am UTC](https://www.ruby-forum.com/t/code-review-oi7/159586 "2009-02-06T01:58:20Z")

</div>

Sending again with the right shelveset name this time. tfpt review “/shelveset:OI7;REDMOND\\tomat” Reviewed F2F by Curt. Includes inherited overloads in CLR method groups (RubyMethodGroupInfo). Method groups can now …

---

## [Best way to encrypt/decrypt a word](https://www.ruby-forum.com/t/best-way-to-encrypt-decrypt-a-word/159562)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 8\
**Last updated:** [February 5, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/best-way-to-encrypt-decrypt-a-word/159562 "2009-02-05T23:49:40Z")

</div>

Hello Team, I have the need to encrypt/decrypt a one word string. The encrypted word will be saved in a file. Later the word will be picked-up from the file, decrypt it at execution time, and use it as a UNIX passwor…

---

## [File.delete one-liner](https://www.ruby-forum.com/t/file-delete-one-liner/159346)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 8\
**Last updated:** [February 5, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/file-delete-one-liner/159346 "2009-02-05T23:07:29Z")

</div>

Hi guys, I’m looking for a single line that essentially deletes the lockfile argument passed to the unlock method, or deletes the instance variable (default) lockfile. Like this, but simpler: @lockfile = some\_other\_l…

---

## [How to extract links of a particular class type](https://www.ruby-forum.com/t/how-to-extract-links-of-a-particular-class-type/153473)

<div class="topic-metadata">

**Author:** [@Sita\_Rami\_R](https://www.ruby-forum.com/u/Sita_Rami_R)\
**Replies:** 10\
**Last updated:** [February 5, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/how-to-extract-links-of-a-particular-class-type/153473 "2009-02-05T22:32:32Z")

</div>

I have a web page which has n number of links. The only i can differentiate links is with their class attribute. I need the extract the set of links and their titles of a particular class type. I tried using scrubyt…

---

## [Irb and single quoted strings](https://www.ruby-forum.com/t/irb-and-single-quoted-strings/159570)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [February 5, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/irb-and-single-quoted-strings/159570 "2009-02-05T22:27:35Z")

</div>

This is the problem: irb(main):002:0\> x = ‘–rails --exclude something\_is\_not\_right /usr/lib,test/lib’ =\> “–rails --exclude something\_is\_not\_right \\/usr\\/lib,test\\/lib” irb(main):004:0\> p x “–rails --exclude somethin…

---

## [How to use Sitealizer Web Stats in rails 2.2 version?](https://www.ruby-forum.com/t/how-to-use-sitealizer-web-stats-in-rails-2-2-version/159522)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [February 5, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/how-to-use-sitealizer-web-stats-in-rails-2-2-version/159522 "2009-02-05T21:31:33Z")

</div>

Hello all, Can any one suggest me how to use “Sitealizer Web Stats” I want to use “Sitealizer Web Stats” in my application for log/development.log for (logging analysis). I am using rails 2.2 version. “Sitealizer Web…

---

## [Proposing an arbitrary precision class building on BigDecimal and being derived from Numeric](https://www.ruby-forum.com/t/proposing-an-arbitrary-precision-class-building-on-bigdecimal-and-being-derived-from-numeric/155039)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 5, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/proposing-an-arbitrary-precision-class-building-on-bigdecimal-and-being-derived-from-numeric/155039 "2009-02-05T20:20:44Z")

</div>

Dear Ruby commuity, this note deals with arbitrary precision arithmetics and Ruby module BigMath and Ruby class BigDecimal. So we are dealing with the mind children of Shigeo Kobayashi, and my first action in promoti…

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

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