# Ruby

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

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

---

## [\[Bug #1645\] $BBg$-$J?t$NHf3S$G@5$7$/$J$$7k2L$K$J$k$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-1645-bbg-j-t-nhf3s-g-5-7-j-7k2l-k-j-k-3-h-k-b/170432)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 3\
**Last updated:** [June 19, 2009, 10:07am UTC](https://www.ruby-forum.com/t/bug-1645-bbg-j-t-nhf3s-g-5-7-j-7k2l-k-j-k-3-h-k-b/170432 "2009-06-19T10:07:29Z")

</div>

Bug #1645: e$BBg$-$J?t$NHf3S$G@5$7$/$J$$7k2L$K$J$k$3$H$,$"$ke(B http://redmine.ruby-lang.org/issues/show/1645 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.x ruby -v…

---

## [How to capture the output of a call to Kernel.system](https://www.ruby-forum.com/t/how-to-capture-the-output-of-a-call-to-kernel-system/170549)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [June 19, 2009, 9:56am UTC](https://www.ruby-forum.com/t/how-to-capture-the-output-of-a-call-to-kernel-system/170549 "2009-06-19T09:56:56Z")

</div>

I suspect that this is an extremely simple question to answer. How do you capture the output of a system call? For example, if I do this: x = system(“date”) Thu Jun 18 13:00:00 CDT 2009 =\> true x =\> true I …

---

## [Mkmf.rb questions](https://www.ruby-forum.com/t/mkmf-rb-questions/170562)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 12:01am UTC](https://www.ruby-forum.com/t/mkmf-rb-questions/170562 "2009-06-19T00:01:54Z")

</div>

I am a very sad panda right now. I need some help with mkmf.rb. I have a header file “foo.h” that is in /usr/include. I have a list of other directories where a newer version of foo.h might live. For example, it is …

---

## [Floating point accuracy in JRuby](https://www.ruby-forum.com/t/floating-point-accuracy-in-jruby/170557)

<div class="topic-metadata">

**Author:** [@steven290](https://www.ruby-forum.com/u/steven290)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/floating-point-accuracy-in-jruby/170557 "2009-06-18T23:16:44Z")

</div>

\[ 03:23 PM (5) omega:thoth ~ \] \> jirb irb(main):001:0\> 0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1 =\> 0.9999999999999999 \[ 03:33 PM (8) omega:thoth ~ \] \> irb 0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1 =\> 1.0 Disappoin…

---

## [Eventful 1.0.0 Released](https://www.ruby-forum.com/t/eventful-1-0-0-released/170533)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/eventful-1-0-0-released/170533 "2009-06-18T21:20:36Z")

</div>

eventful version 1.0.0 has been released! http://github.com/jcoglan/eventful +Eventful+ is a small extension on top of Ruby’s +Observable+ module that implements named events, block listeners and event bubbling. It …

---

## [Verify-0.3](https://www.ruby-forum.com/t/verify-0-3/170552)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/verify-0-3/170552 "2009-06-18T21:17:38Z")

</div>

Hi list this is to announce the release of verify-0.3. It is released as a gem too, finally!!! 009-06-18 Verify ( Mockify ) Stripped away from Labrador/Lab419 as a standalone package, under the same license. Ruby1.9…

---

## [Auto-Require some .rb files for specific .cgi page](https://www.ruby-forum.com/t/auto-require-some-rb-files-for-specific-cgi-page/170546)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/auto-require-some-rb-files-for-specific-cgi-page/170546 "2009-06-18T21:04:45Z")

</div>

I am using Linux + Apache + ruby 1.8.7 (2009-06-08 patchlevel 173) I use quite many .cgi pages which are nothing more than .rb files which output a html string. I found that every of this .cgi page requires my “web.rb…

---

## [Modifying data in an array using a reference](https://www.ruby-forum.com/t/modifying-data-in-an-array-using-a-reference/170550)

<div class="topic-metadata">

**Author:** [@navouri](https://www.ruby-forum.com/u/navouri)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/modifying-data-in-an-array-using-a-reference/170550 "2009-06-18T20:56:58Z")

</div>

Ok so my situation is as follows. I have an array “foo”, which contains several instances of the class “bar”. I get a copy of an object inside of “foo” using foo.detect, and then modify that copy. Afterwards, I need …

---

## [Capture standard Error and failure of ruby unit test](https://www.ruby-forum.com/t/capture-standard-error-and-failure-of-ruby-unit-test/170539)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/capture-standard-error-and-failure-of-ruby-unit-test/170539 "2009-06-18T19:55:31Z")

</div>

Hi, I would like to capture standard failure and standard error message of testcases executed using ruby unit test framework. is there any plugin to capture failure and error? how can i capture error and failure. Pl…

---

## [Ruby feasibility?](https://www.ruby-forum.com/t/ruby-feasibility/170351)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 13\
**Last updated:** [June 18, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/ruby-feasibility/170351 "2009-06-18T19:48:19Z")

</div>

Good morning, I know just about zero about Ruby but the company I work for is doing some Ruby development and I need to eventually learn the language. There is a program re-write project I need to complete and I was …

---

## [Process.create equivalent on ubuntu](https://www.ruby-forum.com/t/process-create-equivalent-on-ubuntu/170518)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/process-create-equivalent-on-ubuntu/170518 "2009-06-18T17:26:32Z")

</div>

hello everyone I am currently stuck with the Ruby process I was previous working on windows and with the help of win32-process gem I was able to achieve this starter = ‘ruby test.rb’ pid = Process.create(:app\_name =\>…

---

## [Fixnum#fdiv](https://www.ruby-forum.com/t/fixnum-fdiv/170227)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 22\
**Last updated:** [June 18, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/fixnum-fdiv/170227 "2009-06-18T17:19:29Z")

</div>

Bignum#fdiv e$B$K$OBg$-$J?t$G$"$k\>l9g$NG\[N8$,$"$k$h$&$G$9$,!"e(BFixnum e$B$G$O$Je(B e$B$$$h$&$G$9!#e(B 1.fdiv(Float::MAX.to\_i\*2) #=\> 0.0 e$B$H$J$j$^$9$,!"8=:\_$N?6Iq$$$O0U?^DL$j$H9M$($F$$$$$N$G$7$g$&$+!#e(B e$B$b$7!"…

---

## [I need help learning Ruby; completely lost!](https://www.ruby-forum.com/t/i-need-help-learning-ruby-completely-lost/170485)

<div class="topic-metadata">

**Author:** [@kalebmcc](https://www.ruby-forum.com/u/kalebmcc)\
**Replies:** 8\
**Last updated:** [June 18, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/i-need-help-learning-ruby-completely-lost/170485 "2009-06-18T17:16:10Z")

</div>

I need help. I need to learn some basics of programming, and was turned on to Ruby by a friend. So I bought a book about it, installed Ruby and Vim, sat down and made a tiny little Ruby program that should print out “…

---

## [How to get Registry DWARD value?](https://www.ruby-forum.com/t/how-to-get-registry-dward-value/170512)

<div class="topic-metadata">

**Author:** [@girish](https://www.ruby-forum.com/u/girish)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/how-to-get-registry-dward-value/170512 "2009-06-18T17:00:53Z")

</div>

HI… i want to read specific DWORD Value in registry i tried following Win32::Registry::HKEY\_LOCAL\_MACHINE.open(‘SOFTWARE\\Netscape\\Netscape Navigator’) do |reg| reg\_typ, reg\_val = reg.read(’’) return reg\_val end en…

---

## [The Ruby Script Context](https://www.ruby-forum.com/t/the-ruby-script-context/170516)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 9\
**Last updated:** [June 18, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/the-ruby-script-context/170516 "2009-06-18T16:52:28Z")

</div>

When you enter a script, am I right in thinking that automatically an overall Module object and a Class object are created, so that all your methods not within another class or module are part of these objects? What a…

---

## [Deleted unwanted characters from a string](https://www.ruby-forum.com/t/deleted-unwanted-characters-from-a-string/170483)

<div class="topic-metadata">

**Author:** [@juo](https://www.ruby-forum.com/u/juo)\
**Replies:** 4\
**Last updated:** [June 18, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/deleted-unwanted-characters-from-a-string/170483 "2009-06-18T16:20:34Z")

</div>

Hi :slight\_smile: Im trying to write a script that can check if Rapidshare links are online, ive managed to get the content of \[code\] tags from my website using scrubyt \<root\> \<link\>http://rapidshare.com/files/ex…

---

## [\[Bug #1656\] fdiv $B$N;HMQ$G(B Segmentation fault $B$,H/@8$9$k(B](https://www.ruby-forum.com/t/bug-1656-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170531)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/bug-1656-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170531 "2009-06-18T15:54:44Z")

</div>

Bug #1656: fdiv e$B$N;HMQ$Ge(B Segmentation fault e$B$,H/@8$9$ke(B http://redmine.ruby-lang.org/issues/show/1656 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2009-0…

---

## [\[Bug #1655\] fdiv $B$N;HMQ$G(B Segmentation fault $B$,H/@8$9$k(B](https://www.ruby-forum.com/t/bug-1655-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170530)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/bug-1655-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170530 "2009-06-18T15:50:38Z")

</div>

Bug #1655: fdiv e$B$N;HMQ$Ge(B Segmentation fault e$B$,H/@8$9$ke(B http://redmine.ruby-lang.org/issues/show/1655 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.1p129 (20…

---

## [Tomcat-rails, using an embed tomcat to develop rails applications](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 5\
**Last updated:** [June 18, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061 "2009-06-18T15:50:02Z")

</div>

First of all, apologizes for the self promotion, but the users feedback is the best way to catch bugs and get new ideas. I’ve released a jruby gem to use an embed Tomcat to develop rails applications, as we do with m…

---

## [ActiveSupport "is not missing constant" errors](https://www.ruby-forum.com/t/activesupport-is-not-missing-constant-errors/170314)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 6\
**Last updated:** [June 18, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/activesupport-is-not-missing-constant-errors/170314 "2009-06-18T15:47:41Z")

</div>

I’ve gone spelunking through ActiveRecord’s dependencies.rb until my eyes bleed, and I’m still yet to understand what causes these errors and how can they can be prevented. As far as I can tell, ActiveSupport’s cons…

---

## [Linq in IronRuby](https://www.ruby-forum.com/t/linq-in-ironruby/170522)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 2:59pm UTC](https://www.ruby-forum.com/t/linq-in-ironruby/170522 "2009-06-18T14:59:01Z")

</div>

Is it possible? Thanks, Shay.

---

## [Run only the tests with failures on Eclipse](https://www.ruby-forum.com/t/run-only-the-tests-with-failures-on-eclipse/170520)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/run-only-the-tests-with-failures-on-eclipse/170520 "2009-06-18T14:44:21Z")

</div>

Hi. I’m running many test cases using Test::Unit on Eclipse. At the end of the process only a few ones fail and I would like to run only these ones instead of running again everything, is there any way to run them wi…

---

## [Launch external program](https://www.ruby-forum.com/t/launch-external-program/170422)

<div class="topic-metadata">

**Author:** [@demas](https://www.ruby-forum.com/u/demas)\
**Replies:** 7\
**Last updated:** [June 18, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/launch-external-program/170422 "2009-06-18T12:45:07Z")

</div>

Hi all, I’m running external programs like this: status = \`rdesktop .... &\` But my ruby script doesn’t work until the external program finished. How can I run an external program asynchronously? Thanks.

---

## [How to â€œclickâ€ on the screen at scheduled time with Ruby?](https://www.ruby-forum.com/t/how-to-a-oeclicka-on-the-screen-at-scheduled-time-with-ruby/170436)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 10:51am UTC](https://www.ruby-forum.com/t/how-to-a-oeclicka-on-the-screen-at-scheduled-time-with-ruby/170436 "2009-06-18T10:51:03Z")

</div>

Using Ruby, can I write a program, probably calling Win32 API, to “click” on the screen at scheduled time, like every 1 hour? Details: This is for experimentation – and can the clicking be effective on Flash content …

---

## [Why IronRuby?](https://www.ruby-forum.com/t/why-ironruby/170492)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 10:12am UTC](https://www.ruby-forum.com/t/why-ironruby/170492 "2009-06-18T10:12:10Z")

</div>

I have been having fun playing around with IronRuby but one question keeps coming to my mind which is Why IronRuby? What purpose does it serve? I know we can use the simplicity of the IronRuby language to call .NET A…

---

## [Shouldn't a JRuby\<=Sockets=\>Java Connection be simple?](https://www.ruby-forum.com/t/shouldnt-a-jruby-sockets-java-connection-be-simple/170449)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 4\
**Last updated:** [June 18, 2009, 10:11am UTC](https://www.ruby-forum.com/t/shouldnt-a-jruby-sockets-java-connection-be-simple/170449 "2009-06-18T10:11:34Z")

</div>

I know it MUST be simple, but I am just unable to get these two to speak to each other. Can anyone shed any light on my problem here? In Jruby, I have a client as: class SocketsexamplesController \< ApplicationControll…

---

## [Minitest 1.4.0 Released](https://www.ruby-forum.com/t/minitest-1-4-0-released/170503)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 9:36am UTC](https://www.ruby-forum.com/t/minitest-1-4-0-released/170503 "2009-06-18T09:36:51Z")

</div>

minitest version 1.4.0 has been released! http://rubyforge.org/projects/bfts minitest/unit is a small and fast replacement for ruby’s huge and slow test/unit. This is meant to be clean and easy to use both as a regul…

---

## [Problem catching nested exception](https://www.ruby-forum.com/t/problem-catching-nested-exception/151903)

<div class="topic-metadata">

**Author:** [@TJTJTJ](https://www.ruby-forum.com/u/TJTJTJ)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 8:54am UTC](https://www.ruby-forum.com/t/problem-catching-nested-exception/151903 "2009-06-18T08:54:24Z")

</div>

Hello, I’m new to ruby and just wrote a script that try to send many email, reading them from a database. For each domain, the script opens a TCP socket to the first available MX, and try to send as many email as it …

---

## [Millerâ€“Rabin primality test](https://www.ruby-forum.com/t/millera-rabin-primality-test/170421)

<div class="topic-metadata">

**Author:** [@ftf3k3](https://www.ruby-forum.com/u/ftf3k3)\
**Replies:** 7\
**Last updated:** [June 18, 2009, 8:45am UTC](https://www.ruby-forum.com/t/millera-rabin-primality-test/170421 "2009-06-18T08:45:45Z")

</div>

I tried to follow the instructions here: It doesn’t work as expected… any help would be very appreciated. class Integer def is\_prime?(k) if self % 2 == 0 return ‘NO’ end n = self d = n - 1 s = 0 while d % 2 == 0…

---

## [Regexp for CSV header](https://www.ruby-forum.com/t/regexp-for-csv-header/170442)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 7:44am UTC](https://www.ruby-forum.com/t/regexp-for-csv-header/170442 "2009-06-18T07:44:15Z")

</div>

My script currently is processing various csv files. The top row/header resembles this format: Device ID,1) S31 Which best describes how you answered the online reading comprehension quiz?,2) S32 Which best describes …

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

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