# Ruby

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

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

---

## [Float("7.")](https://www.ruby-forum.com/t/float-7/138505)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/float-7/138505 "2008-05-23T20:02:15Z")

</div>

e$B8=:\_!"e(BFloat(“7.”) e$B$,e(B 7.0 e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p Float(“7.”)’ ruby 1.9.0 (2008-05-23 revision 16559) \[i686-linux\] 7.0 1.8.5, 1.8.6 e$B$G$Oe(B ArgumentError e$B$K$J$k$h$&$G$9!#e(B % ruby-1.8 -v…

---

## [Pathlist separator, Windows and Unix](https://www.ruby-forum.com/t/pathlist-separator-windows-and-unix/109648)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 6\
**Last updated:** [May 23, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/pathlist-separator-windows-and-unix/109648 "2008-05-23T19:53:48Z")

</div>

My application deals with pathlists similar to what we know from PATH, LD\_LIBRARY\_PATH and so on, and is intended to run under Windows, Cygwin, and Linux/Unix type of systems. Example: On Windows: set MY\_SEARCH\_PATH=…

---

## [Re: File::Separator on win32](https://www.ruby-forum.com/t/re-file-separator-on-win32/99645)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/re-file-separator-on-win32/99645 "2008-05-23T19:51:48Z")

</div>

. this confuses the system so that it cant find the files i need. is there a way round? is this a bug or wanted behaviour? Use File::ALT\_SEPARATOR instead. Regards, Dan This communication is the property of Qwest …

---

## [File::Separator on win32](https://www.ruby-forum.com/t/file-separator-on-win32/99644)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/file-separator-on-win32/99644 "2008-05-23T19:51:13Z")

</div>

Hello Folks, on my win32 machine, File::Separator returns / instead of a . this confuses the system so that it cant find the files i need. is there a way round? is this a bug or wanted behaviour? greets – Michael S…

---

## [Warning: Float 0.0 out of range](https://www.ruby-forum.com/t/warning-float-0-0-out-of-range/138502)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/warning-float-0-0-out-of-range/138502 "2008-05-23T19:28:00Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B warning: Float 0.0 out of range e$B$H$$$&7Ye(B e$B9p$,=P$^$9$,!"e(B0.0 e$B$,HO0O30$H$$$&$N$O$\*$+$7$$$N$G$O$J$$$G$7$ge(B e$B$&$+!#e(B % ./ruby -ve ‘\[0\].pack(“i4294967296”) rescue nil;p Float(“0…

---

## [Is rdoc (http://www.ruby-doc.org/core/) complete?](https://www.ruby-forum.com/t/is-rdoc-http-www-ruby-doc-org-core-complete/138385)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 9\
**Last updated:** [May 23, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/is-rdoc-http-www-ruby-doc-org-core-complete/138385 "2008-05-23T19:22:42Z")

</div>

Hello Team, Although I have over a dozen Ruby books (and still do not master the language) I try to make frequent use of the online documentation, rdoc, located at: RDoc Documentation. However, I was searching the rd…

---

## [Why does returning from a block cause a LocalJumpError](https://www.ruby-forum.com/t/why-does-returning-from-a-block-cause-a-localjumperror/138347)

<div class="topic-metadata">

**Author:** [@cbare](https://www.ruby-forum.com/u/cbare)\
**Replies:** 5\
**Last updated:** [May 23, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/why-does-returning-from-a-block-cause-a-localjumperror/138347 "2008-05-23T19:17:23Z")

</div>

Hi Ruby gurus, I’m hoping someone can set me straight about something. Take the following lines of Ruby and output from the interpreter: \[1,2,3\].map {|a| a\*a} \[1,4,9\] \[4,5,6\].map {|a| return a\*a} LocalJumpErr…

---

## [Return value of pp](https://www.ruby-forum.com/t/return-value-of-pp/138492)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/return-value-of-pp/138492 "2008-05-23T18:58:33Z")

</div>

e$B1sF#$G$9!#e(B p e$B$,0z?t$rJV$9$h$&$K$J$C$?$N$G!“e(Bpp e$B$b$=$l$K$”$o$;$k$He(B e$B$$$$$H;W$&$N$G$9$,!"$I$&$G$7$g$&$+!#e(B Index: lib/pp.rb — lib/pp.rb (revision 16560) +++ lib/pp.rb (working copy) @@ -54,12 …

---

## [Ruby http pipelining?](https://www.ruby-forum.com/t/ruby-http-pipelining/138490)

<div class="topic-metadata">

**Author:** [@Googy](https://www.ruby-forum.com/u/Googy)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/ruby-http-pipelining/138490 "2008-05-23T17:03:11Z")

</div>

I am not able to find anything related to ruby’s net/http and its support for http pipelining. Any body know whether its possible ?, Or do you have any other alternative library to do this ?

---

## [SEGV by "abc".gsub(/./).next](https://www.ruby-forum.com/t/segv-by-abc-gsub-next/138487)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/segv-by-abc-gsub-next/138487 "2008-05-23T15:59:03Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % ./ruby -ve ‘“abc”.gsub(/./).next’ ruby 1.9.0 (2008-05-23 revision 16559) \[i686-linux\] \[BUG\] Segmentation fault ruby 1.9.0 (2008-05-23 revision 16559) \[i686-linux\] – sta…

---

## [Unable to run(automate) different file via Ruby](https://www.ruby-forum.com/t/unable-to-run-automate-different-file-via-ruby/138371)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/unable-to-run-automate-different-file-via-ruby/138371 "2008-05-23T15:42:32Z")

</div>

Hi I am having a LoadRunner File which I want to run via Ruby Script. I am trying to execute it proper functioning, but can’t. I am putting the script here; please suggest if i am committing any mistake. Script …

---

## [\-Wall](https://www.ruby-forum.com/t/wall/138404)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 5\
**Last updated:** [May 23, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/wall/138404 "2008-05-23T15:31:53Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!:G6a!$e(Bgcc e$B$Ne(B -Wall e$B$NB8:$rK:$l$F$$$?$H$3$m!$$=$l$r$d$C$F$$$l$P5$e(B e$B$,$D$$$?$O$:$N%P%0$K5$$E$+$:$K%3%%C%H$7$F$^$$!$K?KNIt7/$K;6!9E$i$le(B e$B$^$7$?!%e(B e$B!!e(Bconfigure e$B…

---

## [Help extending Hash to allow hexadecimal encoded keys (problem with "Delegator")](https://www.ruby-forum.com/t/help-extending-hash-to-allow-hexadecimal-encoded-keys-problem-with-delegator/138467)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 5\
**Last updated:** [May 23, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/help-extending-hash-to-allow-hexadecimal-encoded-keys-problem-with-delegator/138467 "2008-05-23T15:09:29Z")

</div>

Hi, basically I need to implement a Hash in which keys can be encoded with “pseudo” hexadecimal. This is basically to store URI parameters and headers (defined in RFC 2396), so: “tag” == “t%61g” “alice” == “%61l%69…

---

## [Where's the best RDoc resource?](https://www.ruby-forum.com/t/wheres-the-best-rdoc-resource/138460)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/wheres-the-best-rdoc-resource/138460 "2008-05-23T13:41:34Z")

</div>

For Rails, I use http://www.railsbrain.com/api/rails-2.0.2/doc/index.html . Ajax-enhanced search system. But is there any alternative in Ruby? What do you do in exploring RDoc? Do you use your mouse a lot?

---

## [Why can't I define vars in caller's binding using eval?](https://www.ruby-forum.com/t/why-cant-i-define-vars-in-callers-binding-using-eval/138340)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/why-cant-i-define-vars-in-callers-binding-using-eval/138340 "2008-05-23T12:21:25Z")

</div>

In other words, why can’t I do this? def f(b) eval(“x = 10”, b) end f(binding) puts “x = #{x}” Is there any way to make that code work (besides obviously setting x to something before calling f). Thanks.

---

## [How to get back focus on opening firefox via firewatir?](https://www.ruby-forum.com/t/how-to-get-back-focus-on-opening-firefox-via-firewatir/138474)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 11:55am UTC](https://www.ruby-forum.com/t/how-to-get-back-focus-on-opening-firefox-via-firewatir/138474 "2008-05-23T11:55:32Z")

</div>

Hi, I am writing software that will allow persons with severe motor disabilities – people who cannot use a full keyboard and mouse – to be able to use the Internet, an extension of what you see in Inputs …

---

## [Backgroundrb problems?](https://www.ruby-forum.com/t/backgroundrb-problems/138470)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 11:24am UTC](https://www.ruby-forum.com/t/backgroundrb-problems/138470 "2008-05-23T11:24:35Z")

</div>

Hi All, I wanna use backgroundrb for running my scheduler task but the newer version is not working on windows.Then i am using version from svn://rubyforge.org//var/svn/backgroundrb Please help me and tell can i use …

---

## [Rubyful Soup/SGML Parser parses newlines as an entity](https://www.ruby-forum.com/t/rubyful-soup-sgml-parser-parses-newlines-as-an-entity/138469)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 10:46am UTC](https://www.ruby-forum.com/t/rubyful-soup-sgml-parser-parses-newlines-as-an-entity/138469 "2008-05-23T10:46:07Z")

</div>

Hello, I have a problem with Rubyful Soup parsing “\\n” as an entity. This makes for some very hard parsing and navigation around the parse tree. I looked around and found but one page citing this problem and even tha…

---

## [Reading data from excel](https://www.ruby-forum.com/t/reading-data-from-excel/62508)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 12\
**Last updated:** [May 23, 2008, 10:30am UTC](https://www.ruby-forum.com/t/reading-data-from-excel/62508 "2008-05-23T10:30:33Z")

</div>

Hi, I’m brand new to Ruby. Can somebody share their expertise on how to open and read data from excel using ruby? Thanks in advance. And also any suggestions on where/how to learn Ruby would be very helpful and app…

---

## [Converting Ã¶ to o, Ã¼ to u, encoding](https://www.ruby-forum.com/t/converting-a-to-o-a-to-u-encoding/138463)

<div class="topic-metadata">

**Author:** [@shevken](https://www.ruby-forum.com/u/shevken)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 10:00am UTC](https://www.ruby-forum.com/t/converting-a-to-o-a-to-u-encoding/138463 "2008-05-23T10:00:48Z")

</div>

Hi guys, Does any1 have a ruby snippet to do the conversion? Probably using the iconv lib? Best Wishes.

---

## [Bug? - Resolv.getnames hanging after being interrupted](https://www.ruby-forum.com/t/bug-resolv-getnames-hanging-after-being-interrupted/138461)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 9:45am UTC](https://www.ruby-forum.com/t/bug-resolv-getnames-hanging-after-being-interrupted/138461 "2008-05-23T09:45:33Z")

</div>

Hi everybody, I came across some weird behavior and I don’t know if it is a bug or not. If you execute the following command it will run okay first, but when Resolv.getnames gets interrupted by the timeout, it sometim…

---

## [Programming MUD](https://www.ruby-forum.com/t/programming-mud/138458)

<div class="topic-metadata">

**Author:** [@andrugator](https://www.ruby-forum.com/u/andrugator)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 9:12am UTC](https://www.ruby-forum.com/t/programming-mud/138458 "2008-05-23T09:12:40Z")

</div>

Hi there! 116 days past after last post about MUD and here it back! I am programming an absolutely new engine for multi-users game with text interface. Yet there is no particular plot line, but engine works fine with…

---

## [Lambda Block vs. Method](https://www.ruby-forum.com/t/lambda-block-vs-method/138445)

<div class="topic-metadata">

**Author:** [@APNelson.L](https://www.ruby-forum.com/u/APNelson.L)\
**Replies:** 5\
**Last updated:** [May 23, 2008, 8:19am UTC](https://www.ruby-forum.com/t/lambda-block-vs-method/138445 "2008-05-23T08:19:05Z")

</div>

I was just wondering what the benefit would be of creating a block that can be called rather than defining a method. Here is an example: def puts\_time(x) puts x end instead of… puts\_time = lambda { |x| puts x } pe…

---

## [Code Review: ItsAboutTime](https://www.ruby-forum.com/t/code-review-itsabouttime/138451)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 6:11am UTC](https://www.ruby-forum.com/t/code-review-itsabouttime/138451 "2008-05-23T06:11:29Z")

</div>

tfpt review /shelveset:ItsAboutTime;REDMOND\\curth As part of bringing up ActiveRecord, implemented Time.strftime and fixed various issues with Time.local and Time.gm

---

## [Server maintenance](https://www.ruby-forum.com/t/server-maintenance/138373)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 5:39am UTC](https://www.ruby-forum.com/t/server-maintenance/138373 "2008-05-23T05:39:54Z")

</div>

Hello, Services on ruby-lang.org except SVN will be down for server maintenance on Fri May 23 02:00:00 UTC 2008. Sorry for inconvenience.

---

## [The process invoked by backticks stays as zombie!](https://www.ruby-forum.com/t/the-process-invoked-by-backticks-stays-as-zombie/138281)

<div class="topic-metadata">

**Author:** [@Artem\_K](https://www.ruby-forum.com/u/Artem_K)\
**Replies:** 5\
**Last updated:** [May 23, 2008, 5:14am UTC](https://www.ruby-forum.com/t/the-process-invoked-by-backticks-stays-as-zombie/138281 "2008-05-23T05:14:11Z")

</div>

Hi Gurus :slight\_smile: Here is the problem: I need to gather the output from an external program. So in my code I do: result \<\< #{@caputackt} #{@channel} #{ackt} but the script stops at this line, and when I do ps …

---

## [Code Review: InstanceEval](https://www.ruby-forum.com/t/code-review-instanceeval/138441)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 2:31am UTC](https://www.ruby-forum.com/t/code-review-instanceeval/138441 "2008-05-23T02:31:25Z")

</div>

tfpt review /shelveset:InstanceEval;REDMOND\\tomat Implements Kernel#instance\_eval and fixes local variables lookup bugs in eval. Tomas

---

## [Customized serialization unreliable?](https://www.ruby-forum.com/t/customized-serialization-unreliable/138406)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 7\
**Last updated:** [May 23, 2008, 2:29am UTC](https://www.ruby-forum.com/t/customized-serialization-unreliable/138406 "2008-05-23T02:29:19Z")

</div>

Hi, I have a strange problem with the customized serialization… I have a large object which is built by several classes and each class has its own marshal\_dump and marshal\_load, like: class YYY attr\_reader :data, :v…

---

## [Block\_given? with send](https://www.ruby-forum.com/t/block-given-with-send/138407)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [May 22, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/block-given-with-send/138407 "2008-05-22T23:57:21Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bsend e$B$rMxMQ$7$F\<B9T$7$?e(B block\_given? e$B$,e(B 1.8 e$B$N\<B9T7k2L$N$h$&$K$J$ke(B e$B$N$O$3$&$$$&$b$s$G$7$g$&$+!%e(B p send(:block\_given?) p send(:block\_given?){} 1.8 false, true 1.9…

---

## [Needing to pipe commands to automate program](https://www.ruby-forum.com/t/needing-to-pipe-commands-to-automate-program/137961)

<div class="topic-metadata">

**Author:** [@Ruggershawn](https://www.ruby-forum.com/u/Ruggershawn)\
**Replies:** 4\
**Last updated:** [May 22, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/needing-to-pipe-commands-to-automate-program/137961 "2008-05-22T23:27:25Z")

</div>

Hello, I am fairly new in the ruby language. I have a ruby program that needs to be automated. Every time I run this program you have to manually type in the questions. Examples: Are you using 32/64 bit? Enter th…

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

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