# Ruby

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

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

---

## [Error while running ruby script](https://www.ruby-forum.com/t/error-while-running-ruby-script/137648)

<div class="topic-metadata">

**Author:** [@harryp](https://www.ruby-forum.com/u/harryp)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/error-while-running-ruby-script/137648 "2008-05-15T23:45:22Z")

</div>

Hi, I am new user of ruby and wrote simple script. After installing Ruby for Windows, i wrote simple script require ‘watir’ include Watir goto\_site = ‘http://www.yahoo.com’ ie = IE.new ie.goto(goto\_site) when I r…

---

## [JRuby 1.1.2 + You (bug nomination time)](https://www.ruby-forum.com/t/jruby-1-1-2-you-bug-nomination-time/137251)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 18\
**Last updated:** [May 15, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/jruby-1-1-2-you-bug-nomination-time/137251 "2008-05-15T23:31:51Z")

</div>

We plan on putting out a version of JRuby (1.1.2) some time between now and RailsConf (I would like to see us do this a good week before it like May 23 or May 26 at latest). So are there any bug that are really import…

---

## [Ask the Experts session on JRuby in NetBeans](https://www.ruby-forum.com/t/ask-the-experts-session-on-jruby-in-netbeans/137744)

<div class="topic-metadata">

**Author:** [@edort](https://www.ruby-forum.com/u/edort)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/ask-the-experts-session-on-jruby-in-netbeans/137744 "2008-05-15T22:37:38Z")

</div>

One of the significant new features added to NetBeans IDE 6 is support for JRuby. With this support, Ruby developers can take advantage of NetBeans IDE features such as code completion and the debugger to develop and …

---

## [Method lookup for modules included in modules](https://www.ruby-forum.com/t/method-lookup-for-modules-included-in-modules/137664)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/method-lookup-for-modules-included-in-modules/137664 "2008-05-15T22:25:42Z")

</div>

My question has to do with the diagram on page 12 of “Advanced Rails”. It arises from the following structure: module A; end; module B; include A; end module C; include A; end class D; include B; include C; end (Th…

---

## [Problem with JRuby, JTestr, and Hadoop](https://www.ruby-forum.com/t/problem-with-jruby-jtestr-and-hadoop/137729)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/problem-with-jruby-jtestr-and-hadoop/137729 "2008-05-15T22:10:16Z")

</div>

I’m writing an application in Java that uses Hadoop and is tested with JTestr. Hadoop uses some classpath magic to find config files it needs. I can verify that my classpath is correct, because if I make a minimal JUn…

---

## [Contionnal sum](https://www.ruby-forum.com/t/contionnal-sum/137724)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/contionnal-sum/137724 "2008-05-15T21:46:47Z")

</div>

Hi, I am wondering if it is possible to create a conditionnal sum. For instance I would like to do something like this: @total\_amount = @orders.sum { |order| order.amount if order.paid == true }

---

## [Tracking Ruby on Twitter](https://www.ruby-forum.com/t/tracking-ruby-on-twitter/137563)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/tracking-ruby-on-twitter/137563 "2008-05-15T21:24:51Z")

</div>

Hi all, I was having trouble finding some interesting rubyists to follow on twitter. Since my company is already playing around with tracking things on twitter, I took a bunch of ruby & rails related terms and create…

---

## [Celerity 0.0.2 released (and benchmarks are updated)](https://www.ruby-forum.com/t/celerity-0-0-2-released-and-benchmarks-are-updated/137707)

<div class="topic-metadata">

**Author:** [@TSAlexander\_Lystad](https://www.ruby-forum.com/u/TSAlexander_Lystad)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/celerity-0-0-2-released-and-benchmarks-are-updated/137707 "2008-05-15T20:13:10Z")

</div>

Celerity 0.0.2 was just released, and the benchmarks have been updated: http://celerity.rubyforge.org/ Celerity is a JRuby library for easy and fast functional test automation for web applications. It is a wrapper aro…

---

## [Using Derrick Pallas' ruby fcgi dispatcher](https://www.ruby-forum.com/t/using-derrick-pallas-ruby-fcgi-dispatcher/137149)

<div class="topic-metadata">

**Author:** [@codewerker](https://www.ruby-forum.com/u/codewerker)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/using-derrick-pallas-ruby-fcgi-dispatcher/137149 "2008-05-15T19:50:53Z")

</div>

I am trying to use the following dispatcher in lighttpd: http://derrick.pallas.us/ruby-cgi/ Code looks fine, and first request looks fine. But subsequent requests to the dispatcher via the webbrowser do not deliver th…

---

## [Watir: How to return a Watir::IE object for an existing IE?](https://www.ruby-forum.com/t/watir-how-to-return-a-watir-ie-object-for-an-existing-ie/137685)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/watir-how-to-return-a-watir-ie-object-for-an-existing-ie/137685 "2008-05-15T18:57:02Z")

</div>

Hi, I just wanted to know what code would be used to return a Watir::IE object for an existing IE window. Can anyone help in this regard? Thanks, Anukul

---

## [\[ANN\] The Book Of Ruby - Free eBook](https://www.ruby-forum.com/t/ann-the-book-of-ruby-free-ebook/137705)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/ann-the-book-of-ruby-free-ebook/137705 "2008-05-15T18:46:13Z")

</div>

As some of you may know, a couple of years ago, I wrote a free Ruby eBook called The Little Book Of Ruby. This has been downloaded many tens of thousands of times in English and an unknown number of times in translati…

---

## [Access Hash in the same order that was created](https://www.ruby-forum.com/t/access-hash-in-the-same-order-that-was-created/137721)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 8\
**Last updated:** [May 15, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/access-hash-in-the-same-order-that-was-created/137721 "2008-05-15T18:41:51Z")

</div>

I need to access to a Hash in the same order that It was created: mh=Hash.new() mh\[“one”\]=“1” mh\[“two”\]=“2” mh\[“three”\]=“3” mh\[“four”\]=“4” mh.each {|val| puts val\[0\] } In this example I get: three two one fo…

---

## [Jirb\_swing (v1.1.1 on win32) output issues?](https://www.ruby-forum.com/t/jirb-swing-v1-1-1-on-win32-output-issues/137720)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/jirb-swing-v1-1-1-on-win32-output-issues/137720 "2008-05-15T18:40:41Z")

</div>

Didn’t find anything similar in the mail archives…after installing 1.1.1 on a Win2K system, I can’t get jirb\_swing to give me output. For example… irb(main):001:0\> puts “JRuby” irb(main):002:0\> n = 10; c = 32; n + c …

---

## [1.8 NoMemoryError](https://www.ruby-forum.com/t/1-8-nomemoryerror/137722)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/1-8-nomemoryerror/137722 "2008-05-15T18:22:17Z")

</div>

1.8 e$B$G0J2\<$N$h$&$Ke(B NoMemoryError e$B$,=P$k$h$&$JG\[Ns3NJ\]$r7+$je(B e$BJV$79T$&$H!"e(B2e$B2s$a$G%W%m%;%9$,CfCG$7$^$9!#e(B % limit addressspace 300m % ./ruby -ve ’ 4.times {|i| p i begin Array.new(1 \<\< 28) res…

---

## [Ssh to execute remote ruby script](https://www.ruby-forum.com/t/ssh-to-execute-remote-ruby-script/137718)

<div class="topic-metadata">

**Author:** [@blakeage](https://www.ruby-forum.com/u/blakeage)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/ssh-to-execute-remote-ruby-script/137718 "2008-05-15T18:19:21Z")

</div>

I’m using ‘net/ssh’ to ssh into a OS X server and run a ruby script, like this: Net::SSH.start( “xxx.xxx.xxx”, :username =\> ‘xxx’, :password =\> ‘xxx’ ) do | session | shell = session.shell.open shell.exec “ruby /usr…

---

## [YARV Bytecode Documentation](https://www.ruby-forum.com/t/yarv-bytecode-documentation/137714)

<div class="topic-metadata">

**Author:** [@chmaruni](https://www.ruby-forum.com/u/chmaruni)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/yarv-bytecode-documentation/137714 "2008-05-15T17:41:06Z")

</div>

Hello \*, does anybody know any (if possible up-to-date) documentation/specification of the Ruby 1.9 (YARV) bytecodes? The only docs I could find are: YARV: Yet another RubyVM / Instruction Table (a simple table of th…

---

## [The RubySpec project at rubyspec.org](https://www.ruby-forum.com/t/the-rubyspec-project-at-rubyspec-org/137626)

<div class="topic-metadata">

**Author:** [@brixen](https://www.ruby-forum.com/u/brixen)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/the-rubyspec-project-at-rubyspec-org/137626 "2008-05-15T16:48:39Z")

</div>

Hi all, The RubySpec project is now officially hosted at http://rubyspec.org. The project aims to write a complete executable specification for the Ruby programming language based on RSpec-style specs. The project st…

---

## [Finding current drive](https://www.ruby-forum.com/t/finding-current-drive/137708)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/finding-current-drive/137708 "2008-05-15T16:35:29Z")

</div>

hello, Is there a way to find out under what drive my current/active file is? if the .rb file i’m working on is sitting in c:/code/ruby/myfile.rb, i would like to find a way to retrieve “c”. Thanks!

---

## [Code Review: testfixes-1](https://www.ruby-forum.com/t/code-review-testfixes-1/137712)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/code-review-testfixes-1/137712 "2008-05-15T16:33:42Z")

</div>

tfpt review /shelveset:testfixes-1;REDMOND\\jflam This fixes a broken test in run0 (test\_dir.rb) which had a dependency on the existence of environment variables that may not exist on local developer machines. It fixe…

---

## [Code Review: RubyMarshal](https://www.ruby-forum.com/t/code-review-rubymarshal/137711)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/code-review-rubymarshal/137711 "2008-05-15T16:27:46Z")

</div>

tfpt review /shelveset:RubyMarshal;REDMOND\\curth Reviewed face-to-face by Tomas. This is a complete implementation of the Marshal class and a nearly-complete implementation of the StringIO class, along with changes t…

---

## [Re: int/int -\> rational (Re: Re: ComplexFloat)](https://www.ruby-forum.com/t/re-int-int-rational-re-re-complexfloat/137710)

<div class="topic-metadata">

**Author:** [@Masahiro\_TANAKA](https://www.ruby-forum.com/u/Masahiro_TANAKA)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/re-int-int-rational-re-re-complexfloat/137710 "2008-05-15T16:16:59Z")

</div>

2008/05/14 23:24 Tadayoshi F. removed\_email\_address@domain.invalid: e$BEDCf\>;9($5$s$?$A$,I\>2A$7$F$/$l$k$J$i$P!“$3$l$r\<h$j9~$s$G$b$h$$$H;W$$$^e(B e$B$9!#$?$@!”$?$H$(!“e(BC e$B%3%s%Q%$%i$,J#AG?t$r:GE,2=$7$h$&$H$b%G!\<%?$…

---

## [Rake test](https://www.ruby-forum.com/t/rake-test/137702)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/rake-test/137702 "2008-05-15T15:14:47Z")

</div>

Should I even be running “rake test” at all? It is now failing further on in the tests: :0:in do\_generate': undefined local variable or methodmethods’ for main:Object (NoMethodError) from :0:in \`#block162' …

---

## [Memory requirement for JRuby deployment?](https://www.ruby-forum.com/t/memory-requirement-for-jruby-deployment/137700)

<div class="topic-metadata">

**Author:** [@n1c](https://www.ruby-forum.com/u/n1c)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/memory-requirement-for-jruby-deployment/137700 "2008-05-15T14:43:57Z")

</div>

So we’re trying to deploy our first JRuby app. We have a 256mb accelerator at Joyent. We couldn’t install Glassfish - not enough memory. So then we tried Jetty, which we got installed, but can’t get running. So are w…

---

## [Fork $BIT2DG=$J4D6-$G$N(B test\_argv0\_noarg](https://www.ruby-forum.com/t/fork-bit2dg-j4d6-g-n-b-test-argv0-noarg/137271)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 12\
**Last updated:** [May 15, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/fork-bit2dg-j4d6-g-n-b-test-argv0-noarg/137271 "2008-05-15T14:39:01Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B fork() e$B$N$J$$4D6-$G$Oe(B exec e$B7OE}$N%a%=%C%I$Oe(B redirect\_fds e$B$rL5;k$9$k$?$ae(B test\_process.rb e$B$Ne(B test\_argv0\_noarg e$B$G%F%9%H$,?J$^$J$/$J$j$^$9!#e(B e$B$3$N$h$&$J4D6-$G$O%F…

---

## [RmtObj release](https://www.ruby-forum.com/t/rmtobj-release/137697)

<div class="topic-metadata">

**Author:** [@takashi\_noma](https://www.ruby-forum.com/u/takashi_noma)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/rmtobj-release/137697 "2008-05-15T13:13:36Z")

</div>

Hi All, I released ‘RmtObj’ library on my web-site,which address shown below. http://amon.dip.jp/index.php?RmtObj\_English ‘RmtObj’ is a platform, which enables you to control the ruby object placed on the web-server.…

---

## [ActionView::TemplateError (Input/output error)](https://www.ruby-forum.com/t/actionview-templateerror-input-output-error/137696)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-input-output-error/137696 "2008-05-15T12:30:38Z")

</div>

hi, my application was running fine till 2 days back and suddenly i’m getting either of following errors. i’ve done some modification in the UI, thats it. i tried to chk it in the log but couldn’t find anything speci…

---

## [Webrick HTTP Errors?](https://www.ruby-forum.com/t/webrick-http-errors/137682)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 11:22am UTC](https://www.ruby-forum.com/t/webrick-http-errors/137682 "2008-05-15T11:22:52Z")

</div>

Hey How do i set the HTTP Error Code Header when using webrick. I found the response.set\_error function. What do i need to pass there to e.g. set a http 404 error? thx

---

## [Any population geneticists out there? interested in a Ruby SIG?](https://www.ruby-forum.com/t/any-population-geneticists-out-there-interested-in-a-ruby-sig/137605)

<div class="topic-metadata">

**Author:** [@philippeqc](https://www.ruby-forum.com/u/philippeqc)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 10:20am UTC](https://www.ruby-forum.com/t/any-population-geneticists-out-there-interested-in-a-ruby-sig/137605 "2008-05-15T10:20:31Z")

</div>

People, I have previously done all my simulation work in C/C++ (as a C++ exercise really) but it would be nice to do further work in Ruby (although I am concerned about performance for big simulations - might need a …

---

## [Windows Vista Tablet PC, handwriting and Open Source Software](https://www.ruby-forum.com/t/windows-vista-tablet-pc-handwriting-and-open-source-software/137651)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 9:50am UTC](https://www.ruby-forum.com/t/windows-vista-tablet-pc-handwriting-and-open-source-software/137651 "2008-05-15T09:50:54Z")

</div>

Dear all, sorry for asking something off-topic. I know there are many Windows experts on this list and I couldn’t find any response somewhere else yet. I have a handheld PC running Windows Vista Ultimate (actually a…

---

## [Problem while connecting to the server](https://www.ruby-forum.com/t/problem-while-connecting-to-the-server/137683)

<div class="topic-metadata">

**Author:** [@rizwana](https://www.ruby-forum.com/u/rizwana)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 9:30am UTC](https://www.ruby-forum.com/t/problem-while-connecting-to-the-server/137683 "2008-05-15T09:30:50Z")

</div>

Hi, I’m trying to take a rails project built on gem version 1.2.6 and upgrade it to 2.0.2. So far, I haven’t changed anything except this line in the config/environment.rb file … RAILS\_GEM\_VERSION = ‘2.0.2’ unless d…

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

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