# Ruby

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

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

---

## [Debug IronRuby in Silverlight](https://www.ruby-forum.com/t/debug-ironruby-in-silverlight/181429)

<div class="topic-metadata">

**Author:** [@Randall\_Sutton](https://www.ruby-forum.com/u/Randall_Sutton)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 10:59pm UTC](https://www.ruby-forum.com/t/debug-ironruby-in-silverlight/181429 "2010-01-11T22:59:56Z")

</div>

Ok. I give up. I cannot for the life of me getting a simple IronRuby Silverlight project to debug. I am using VS2008 SP1 and the Silverlight 3 Tools. These are my steps: Create website using chiron. Set the initpa…

---

## [\[Bug #1485\] warning in pathname when verbose mode](https://www.ruby-forum.com/t/bug-1485-warning-in-pathname-when-verbose-mode/168217)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 5\
**Last updated:** [January 11, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/bug-1485-warning-in-pathname-when-verbose-mode/168217 "2010-01-11T22:47:38Z")

</div>

Bug #1485: warning in pathname when verbose mode http://redmine.ruby-lang.org/issues/show/1485 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Akira T., e$B%+%F%4%je(B: lib …

---

## [Adding a finalizer to a ruby object](https://www.ruby-forum.com/t/adding-a-finalizer-to-a-ruby-object/181266)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 6\
**Last updated:** [January 11, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/adding-a-finalizer-to-a-ruby-object/181266 "2010-01-11T22:40:01Z")

</div>

Hi How do I add a finalizer to a ruby object? I’ve tried using ObjectSpace and define\_finalizer. But the proc never got executed when I called ObjectSpace.garbage\_collect Calling System::GC.collect had the same outc…

---

## [Questions for IronRuby's RubyInside Article](https://www.ruby-forum.com/t/questions-for-ironrubys-rubyinside-article/181300)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 3\
**Last updated:** [January 11, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/questions-for-ironrubys-rubyinside-article/181300 "2010-01-11T22:07:50Z")

</div>

All, RubyInside.comhttp://rubyinside.com/ will be running a series of articles about all the various Ruby implementations, written by the implementers, and each article is accompanied with a Q&A-style section. IronRu…

---

## [Fib.rb 1.9.1/1.8.6 source code conflicts/errors](https://www.ruby-forum.com/t/fib-rb-1-9-1-1-8-6-source-code-conflicts-errors/181376)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 4\
**Last updated:** [January 11, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/fib-rb-1-9-1-1-8-6-source-code-conflicts-errors/181376 "2010-01-11T21:46:25Z")

</div>

In the latest ruby-1.8.6-p388 source code I just downloaded the file fib.rb; 2007-2-12 contains correct code: calculate Fibonacci(20) benchmark def fib(n) if n\<2 n else fib(n-2)+fib(n-1) end end print(fib(20…

---

## [File.realpath](https://www.ruby-forum.com/t/file-realpath/181419)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/file-realpath/181419 "2010-01-11T19:46:46Z")

</div>

File.realpath (ã¨ File.realdirpath) ã‚’æä¾›ã™ã‚‹ã®ã¯ã©ã†ã§ã—ã‚‡ã†ã‹ã€‚ require\_relative ã‚’å‘¼ã³å‡ºã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒªãƒ³ã‚¯ã‚’é€šã—ã¦ æŒ‡å®šã—ãŸã¨ãã€å®Ÿä½“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‹…

---

## [Coverage and thread](https://www.ruby-forum.com/t/coverage-and-thread/180980)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/coverage-and-thread/180980 "2010-01-11T18:35:55Z")

</div>

coverage e$B$G!"%9%l%C%IFb$GF0:n$7$?%3!\<%I$,?t$($i$l$J$$$h$&$J$N$G$9$,!"e(B e$B$=$&$$$&$b$N$J$s$G$7$?$C$1e(B? % cat z.rb Thread.new { 100.times { 1 + 1 } }.join % ./ruby -rcoverage -ve ’ Coverage.start load “z…

---

## [Help](https://www.ruby-forum.com/t/help/181375)

<div class="topic-metadata">

**Author:** [@mnjagadeesh](https://www.ruby-forum.com/u/mnjagadeesh)\
**Replies:** 11\
**Last updated:** [January 11, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/help/181375 "2010-01-11T18:29:53Z")

</div>

Hi, DATA = {} prs = \[ 457678,457678-3,open 457678,457678-5,closed 457678,457678-6,open \] prs.each do |line| (pr, pr\_scope, state) = line.split(/,/) DATA\[pr\] = Hash\[state, pr\_scope\] end But when I pring DATA, i…

---

## [Debugger pains](https://www.ruby-forum.com/t/debugger-pains/181405)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/debugger-pains/181405 "2010-01-11T18:03:07Z")

</div>

Hi all, I am testing a script using the built-in debugger (running 1.8.6 - windows - one click installer version). I want to set a breakpoint on a particular method. The problem is, my first line is require’sqlite3…

---

## [Re: Reflection bug?](https://www.ruby-forum.com/t/re-reflection-bug/181408)

<div class="topic-metadata">

**Author:** [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/re-reflection-bug/181408 "2010-01-11T16:45:50Z")

</div>

That worked! That would be a fun bug to track down. :slight\_smile: I was worried that it was reflection against an attribute, because the documentation on the IR site seems to suggest that attributes still aren’t su…

---

## [Regex help](https://www.ruby-forum.com/t/regex-help/181397)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 7\
**Last updated:** [January 11, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/regex-help/181397 "2010-01-11T16:35:18Z")

</div>

Hi I want to test a string for three properties: It is exactly 9 characters long. Character number 5 is a comma (’,’). The other characters are either numbers 0-9 or letters a-f. I have been able to do this by a comb…

---

## [How to modify a text value in a xml?](https://www.ruby-forum.com/t/how-to-modify-a-text-value-in-a-xml/181410)

<div class="topic-metadata">

**Author:** [@milo\_luo](https://www.ruby-forum.com/u/milo_luo)\
**Replies:** 0\
**Last updated:** [January 11, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/how-to-modify-a-text-value-in-a-xml/181410 "2010-01-11T15:41:24Z")

</div>

Hi, folks I met a problem with xml. I can’t write to the file directly, here is my code: f = File.open(FILE\_NAME) xml = REXML::Document.new(f) xml.root.each\_element do |xml| xml.each\_element do |node| #if the node…

---

## [Rice 1.3.1 - Bug fixes and memory management tweaks](https://www.ruby-forum.com/t/rice-1-3-1-bug-fixes-and-memory-management-tweaks/181406)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [January 11, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/rice-1-3-1-bug-fixes-and-memory-management-tweaks/181406 "2010-01-11T15:24:26Z")

</div>

Rice: Ruby Interface for C++ Extensions What is Rice? Rice is a C++ interface to Ruby’s C API. It provides a type-safe and exception-safe interface in order to make embedding Ruby and writing Ruby extensions with C++…

---

## [A small internationalization issue?](https://www.ruby-forum.com/t/a-small-internationalization-issue/181008)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 5\
**Last updated:** [January 11, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/a-small-internationalization-issue/181008 "2010-01-11T15:03:57Z")

</div>

Hi all, I am a Puerto Rican using Ruby, so the apps I develop are mostly in Spanish. I am using FXRuby for GUI development (I want to learn wxRuby, but I can’t find any good tutorials out there). Sometimes, when I …

---

## [What is ruby-web.exe](https://www.ruby-forum.com/t/what-is-ruby-web-exe/181216)

<div class="topic-metadata">

**Author:** [@teddio](https://www.ruby-forum.com/u/teddio)\
**Replies:** 3\
**Last updated:** [January 11, 2010, 12:22pm UTC](https://www.ruby-forum.com/t/what-is-ruby-web-exe/181216 "2010-01-11T12:22:57Z")

</div>

Newbie question! I have never used Ruby, but I am trying to mirror a production web app written in Ruby onto a new test server running Windows 2003 and IIS. The production server lists ruby-web.exe as one of the files…

---

## [\[Bug #2583\] $B%/%i%9Dj5ACf$N(B defined? yield $B$,(B "yield" $B$rJV$9(B](https://www.ruby-forum.com/t/bug-2583-b-i-9dj5acf-n-b-defined-yield-b-b-yield-b-rjv-9-b/181329)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 3\
**Last updated:** [January 11, 2010, 11:35am UTC](https://www.ruby-forum.com/t/bug-2583-b-i-9dj5acf-n-b-defined-yield-b-b-yield-b-rjv-9-b/181329 "2010-01-11T11:35:32Z")

</div>

Bug #2583: e$B%/%i%9Dj5ACf$Ne(B defined? yield e$B$,e(B “yield” e$B$rJV$9e(B http://redmine.ruby-lang.org/issues/show/2583 e$B5/I\<\<Te(B: \_ wanabe e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sas…

---

## [Reflection bug?](https://www.ruby-forum.com/t/reflection-bug/181334)

<div class="topic-metadata">

**Author:** [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 10:43am UTC](https://www.ruby-forum.com/t/reflection-bug/181334 "2010-01-11T10:43:27Z")

</div>

I am building a console application that uses a MSH style CmdParser ( Shows | Microsoft Learn) to read input parameters and reflect match them up against a data class defining their meaning. In the attempt to use RSp…

---

## [Help](https://www.ruby-forum.com/t/help/181381)

<div class="topic-metadata">

**Author:** [@sneha9](https://www.ruby-forum.com/u/sneha9)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 9:51am UTC](https://www.ruby-forum.com/t/help/181381 "2010-01-11T09:51:57Z")

</div>

in web page if we have an objcect n it has some color n its not an image, then how to get the color of an object in ruby? please tell me the syntax

---

## [LA Ruby Conference 2010 - Call for Proposal Extended 48 hours](https://www.ruby-forum.com/t/la-ruby-conference-2010-call-for-proposal-extended-48-hours/181380)

<div class="topic-metadata">

**Author:** [@Coby\_Randquist](https://www.ruby-forum.com/u/Coby_Randquist)\
**Replies:** 0\
**Last updated:** [January 11, 2010, 8:14am UTC](https://www.ruby-forum.com/t/la-ruby-conference-2010-call-for-proposal-extended-48-hours/181380 "2010-01-11T08:14:48Z")

</div>

The Los A. Ruby Conference is being held February 20th in Burbank, CA at the Holiday Inn Media Center. For more information visit the conference web-site at Home - La Ruby Conf. This is the second year we have held…

---

## [OT: Setting up Paypal/Merchant processing](https://www.ruby-forum.com/t/ot-setting-up-paypal-merchant-processing/181373)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 5\
**Last updated:** [January 11, 2010, 6:07am UTC](https://www.ruby-forum.com/t/ot-setting-up-paypal-merchant-processing/181373 "2010-01-11T06:07:14Z")

</div>

Hi is there a easy way for me to use the paypal merchant system though Ruby? I currently have a merchant account with paypal and would like to setup an automate payment processing system on one of my sites. If anyone …

---

## [Non-blocking communication between Ruby processes](https://www.ruby-forum.com/t/non-blocking-communication-between-ruby-processes/181219)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 29\
**Last updated:** [January 11, 2010, 2:50am UTC](https://www.ruby-forum.com/t/non-blocking-communication-between-ruby-processes/181219 "2010-01-11T02:50:38Z")

</div>

Hi, I run Unicorn which is a Rack http server using N forked worker processes. I need the following: When a worker processes a HTTP request it must notify some data to other independent Ruby process XXX (different…

---

## [Security -- Ruby 1.8.6 pl388 released](https://www.ruby-forum.com/t/security-ruby-1-8-6-pl388-released/181354)

<div class="topic-metadata">

**Author:** [@kirkhoward](https://www.ruby-forum.com/u/kirkhoward)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 12:06am UTC](https://www.ruby-forum.com/t/security-ruby-1-8-6-pl388-released/181354 "2010-01-11T00:06:44Z")

</div>

This release fixes the security vulnerability that was just announced, and rolls in a few other bug fixes, including a backport of r24713 which fixes a segfault from freelist exhaustion that can be triggered by certai…

---

## [WEBrick has an Escape Sequence Injection vulnerability](https://www.ruby-forum.com/t/webrick-has-an-escape-sequence-injection-vulnerability/181347)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 6\
**Last updated:** [January 10, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/webrick-has-an-escape-sequence-injection-vulnerability/181347 "2010-01-10T18:36:05Z")

</div>

WEBrick has an Escape Sequence Injection vulnerability Synopsis A vulnerability was found on WEBrick, a part of Ruby’s standard library. WEBrick lets attackers to inject malicious escape sequences to its logs, making …

---

## [How to create a pipe file ("mkfifo pipe\_file")](https://www.ruby-forum.com/t/how-to-create-a-pipe-file-mkfifo-pipe-file/181240)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [January 10, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-create-a-pipe-file-mkfifo-pipe-file/181240 "2010-01-10T13:47:31Z")

</div>

Hi, I don’t find the appropriate command to create a “pipe” file in Ruby. Which is the command to behave as system “mkfifo pipe\_file”? Thanks.

---

## [Recommended practice for Ruby 1.8.6 and Ruby 1.9.x on Windows](https://www.ruby-forum.com/t/recommended-practice-for-ruby-1-8-6-and-ruby-1-9-x-on-windows/181342)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 2\
**Last updated:** [January 10, 2010, 11:13am UTC](https://www.ruby-forum.com/t/recommended-practice-for-ruby-1-8-6-and-ruby-1-9-x-on-windows/181342 "2010-01-10T11:13:38Z")

</div>

Hi there! Is there any recommended practice for using Ruby 1.8.6 and Ruby 1.9.x on the same Windows PC? I do some work in Rails and a lot of our stuff was written and is working fine in Ruby 1.8…6, so we’re hesitant…

---

## [App Servers](https://www.ruby-forum.com/t/app-servers/181337)

<div class="topic-metadata">

**Author:** [@CSKSPonnappa](https://www.ruby-forum.com/u/CSKSPonnappa)\
**Replies:** 1\
**Last updated:** [January 10, 2010, 6:33am UTC](https://www.ruby-forum.com/t/app-servers/181337 "2010-01-10T06:33:22Z")

</div>

Folks, a quick question - is there an equivalent app server to Thin (C-Ruby) and Glassfish (JRuby) for IronRuby? Something small, with no external deps that I can gem install? Thanks, Sidu. http://twitter.com/ponnap…

---

## [\[Bug #2552\] HOME $BJQ?t$r6u$K$7$F5/F0$9$k$H!":FEY6u$K$G$-$J$/$J$k(B](https://www.ruby-forum.com/t/bug-2552-home-bjq-t-r6u-k-7-f5-f0-9-k-h-fey6u-k-g-j-j-k-b/181339)

<div class="topic-metadata">

**Author:** [@pegacorn\_jp](https://www.ruby-forum.com/u/pegacorn_jp)\
**Replies:** 0\
**Last updated:** [January 10, 2010, 6:32am UTC](https://www.ruby-forum.com/t/bug-2552-home-bjq-t-r6u-k-7-f5-f0-9-k-h-fey6u-k-g-j-j-k-b/181339 "2010-01-10T06:32:12Z")

</div>

e$B%A%1%C%He(B #2552 e$B$,99?7$5$l$^$7$?!#e(B (by pegacorn jp) e$B!&e(Bputenv()e$B$G@\_Dj$7$?$b$N$O!"e(Bgetenv()e$B$G$be(BGetEnvironmentVariable()e$B$G$b\<hF@$G$-$ke(B e$B!&e(BSetEnvironmentVariable()e$B$G@\_Dj$7$?$b$N$O!…

---

## [Confusing docs . . . how do I use gcd2?](https://www.ruby-forum.com/t/confusing-docs-how-do-i-use-gcd2/181335)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 6\
**Last updated:** [January 10, 2010, 4:46am UTC](https://www.ruby-forum.com/t/confusing-docs-how-do-i-use-gcd2/181335 "2010-01-10T04:46:17Z")

</div>

The standard library docs don’t make sense to me a lot of the time. How do I use the gcd2 method in class Integer (or is it in file mathn.rb . . . no idea)?

---

## [Posix\_mq 0.3.0 - notify(&block) + 1.8.6 fix](https://www.ruby-forum.com/t/posix-mq-0-3-0-notify-block-1-8-6-fix/181333)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [January 10, 2010, 12:22am UTC](https://www.ruby-forum.com/t/posix-mq-0-3-0-notify-block-1-8-6-fix/181333 "2010-01-10T00:22:21Z")

</div>

POSIX message queues allow local processes to exchange data in the form of messages. This API is distinct from that provided by System V message queues, but provides similar functionality. posix\_mq - POSIX message q…

---

## [Decimal in for loop?](https://www.ruby-forum.com/t/decimal-in-for-loop/181308)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 5\
**Last updated:** [January 9, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/decimal-in-for-loop/181308 "2010-01-09T23:15:40Z")

</div>

Hi, I have a quick question: How can I increase a valuable by a certain decimal (not an integer) in a for loop? For example, in C, for( i = 0; i \< 0.5; i += 0.1 ) printf( "%f ", i ); the code above returns 0.0 0.1 …

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

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