# Ruby

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

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

---

## [Bm + net/http sanity check](https://www.ruby-forum.com/t/bm-net-http-sanity-check/60862)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 2\
**Last updated:** [May 18, 2006, 1:57am UTC](https://www.ruby-forum.com/t/bm-net-http-sanity-check/60862 "2006-05-18T01:57:24Z")

</div>

Hey all, I’m using this in a quick-n-dirty script: Benchmark.bm { |bm| \[root1, root2\].each\_with\_index { |host,i| bm.report("HTTP Host ##{i}: #{host}") { Net::HTTP.get host, "/#{stem}" } } \[root1, …

---

## [Re: bm + net/http sanity check](https://www.ruby-forum.com/t/re-bm-net-http-sanity-check/94948)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 0\
**Last updated:** [May 18, 2006, 1:57am UTC](https://www.ruby-forum.com/t/re-bm-net-http-sanity-check/94948 "2006-05-18T01:57:12Z")

</div>

Sorry, I should have clarified; I’m benchmarking the same site (server, content, etc) on two different hosts. I suspect the delta is due to a different environment (one is in a VM, the other is actual iron). I expec…

---

## [Examples using reliable-msg gem?](https://www.ruby-forum.com/t/examples-using-reliable-msg-gem/60586)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [May 18, 2006, 1:50am UTC](https://www.ruby-forum.com/t/examples-using-reliable-msg-gem/60586 "2006-05-18T01:50:28Z")

</div>

I’m wondering if anyone out there has written any code using the reliable-msg gem. It looks like a great system but I’m having a lot of trouble getting it to work. For example, I can’t get a Queue to successfully put…

---

## [Re: greatest float smaller than 1.0?](https://www.ruby-forum.com/t/re-greatest-float-smaller-than-1-0/94941)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 18, 2006, 12:11am UTC](https://www.ruby-forum.com/t/re-greatest-float-smaller-than-1-0/94941 "2006-05-18T00:11:59Z")

</div>

If you look into some numerics book , like the one by Stoer and Burlisch, they introduce a convention of an epsilon as the smallest positive number that a computer can store. This is of course machine/implementation…

---

## [Re: Ticked Off](https://www.ruby-forum.com/t/re-ticked-off/94936)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/re-ticked-off/94936 "2006-05-17T22:25:33Z")

</div>

If whatever you’re \[copying\] is actually causing people to \[not acquire\] some of what \[non-consensual IP laws require you give them\] (money) then you’re a thief. (edited for accuracy, sorry for dragging out this threa…

---

## [Print quota management in Ruby?](https://www.ruby-forum.com/t/print-quota-management-in-ruby/94909)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 1\
**Last updated:** [May 17, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/print-quota-management-in-ruby/94909 "2006-05-17T21:43:53Z")

</div>

I’m a unix admin at a lab, and we use Pykota to manage print quotas (essentially, each user has a ‘balance’, each printer has a ‘cost per page’, and Pykota manages that). I’ve grown to hate Pykota (it was installed be…

---

## [Re: ruby/gnuplot on windows](https://www.ruby-forum.com/t/re-ruby-gnuplot-on-windows/94840)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [May 17, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/re-ruby-gnuplot-on-windows/94840 "2006-05-17T21:22:31Z")

</div>

I don’t know about persist flags, but as a quick-and-dirty solution, you could either use something like the ‘pause’ Gnuplot command: pause 10 or pause -1 “Hit any key to continue” (pause 10 will hold the graph for…

---

## [Load unless requires - what are the ramifications](https://www.ruby-forum.com/t/load-unless-requires-what-are-the-ramifications/60827)

<div class="topic-metadata">

**Author:** [@todd](https://www.ruby-forum.com/u/todd)\
**Replies:** 2\
**Last updated:** [May 17, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/load-unless-requires-what-are-the-ramifications/60827 "2006-05-17T21:13:50Z")

</div>

I very new to Ruby (this is my second week), so excuse the “newbieness” of my question. I downloaded a project from RubyForge and I’m playing around with the scripts. I’m having trouble getting the tests to pass - so…

---

## [Method name](https://www.ruby-forum.com/t/method-name/94905)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 5\
**Last updated:** [May 17, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/method-name/94905 "2006-05-17T21:00:00Z")

</div>

Hi, I’m looking around, but I didn’t find a replacement for c++ PRETTY\_FUNCTION or FUNC macro. How can I find out a method’s name at runtime? Best regards Michael

---

## [Re: ruby/gnuplot on windows](https://www.ruby-forum.com/t/re-ruby-gnuplot-on-windows/94897)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 17, 2006, 8:51pm UTC](https://www.ruby-forum.com/t/re-ruby-gnuplot-on-windows/94897 "2006-05-17T20:51:09Z")

</div>

Dear Jon, I tried what I wrote to you yesterday on Cygwin/Windows and it worked there. Now, I have tried gnuplot -persist g.pltÂ´ where g.plt is a file containing just the line plot sin(x) and this works - without…

---

## [Re: load unless requires - what are the ramifications](https://www.ruby-forum.com/t/re-load-unless-requires-what-are-the-ramifications/94929)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-load-unless-requires-what-are-the-ramifications/94929 "2006-05-17T20:41:11Z")

</div>

of my question. I downloaded a project from RubyForge and I’m playing around with the scripts. I’m having trouble getting the tests to pass - some pass if run from the main directory, others I have to be in the main…

---

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

<div class="topic-metadata">

**Author:** [@McDevittS\_Chris](https://www.ruby-forum.com/u/McDevittS_Chris)\
**Replies:** 1\
**Last updated:** [May 17, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/help-installing-rails/60808 "2006-05-17T20:33:33Z")

</div>

Any suggestions? C:\\WINDOWS\>gem install rails Attempting local installation of ‘rails’ Local gem file not found: rails\*.gem Attempting remote installation of ‘rails’ ERROR: While executing gem … (Errno::EBADF) Bad…

---

## [Simple regexp: Matching CRLF in a Windows file](https://www.ruby-forum.com/t/simple-regexp-matching-crlf-in-a-windows-file/60810)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [May 17, 2006, 7:22pm UTC](https://www.ruby-forum.com/t/simple-regexp-matching-crlf-in-a-windows-file/60810 "2006-05-17T19:22:19Z")

</div>

All, I’m trying to do subs on CRLF in a Windows file, but I’m having a time of it trying to get the regexp working. I am sure that I have a text file with Windows newlines (CRLF) embedded in it This doesn’t work: n…

---

## [Weird forking/rejoining issue](https://www.ruby-forum.com/t/weird-forking-rejoining-issue/60797)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 3\
**Last updated:** [May 17, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/weird-forking-rejoining-issue/60797 "2006-05-17T19:18:58Z")

</div>

I’m a Unix admin at a research lab in the technion, and use (and loooove) Ruby for all kinds of useful applications I wrote for use in the lab. One of them is the Matlab Application Server, a queue/batch manager for …

---

## [Install Local Gem files](https://www.ruby-forum.com/t/install-local-gem-files/94915)

<div class="topic-metadata">

**Author:** [@McDevittS\_Chris](https://www.ruby-forum.com/u/McDevittS_Chris)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/install-local-gem-files/94915 "2006-05-17T19:06:43Z")

</div>

I have down loaded all the required gem files for rails. They are all in the same directory. If I run “gem install rails” I receive an error message complaining about the dependences for rails, even thought the gem…

---

## [Is there "equalsIgnoreCase" in ruby?](https://www.ruby-forum.com/t/is-there-equalsignorecase-in-ruby/94910)

<div class="topic-metadata">

**Author:** [@viswesh](https://www.ruby-forum.com/u/viswesh)\
**Replies:** 6\
**Last updated:** [May 17, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/is-there-equalsignorecase-in-ruby/94910 "2006-05-17T19:03:29Z")

</div>

Hi Please let me know whether any method similar to (“equalsIgnoreCase” in java) exists in ruby as well… thanx

---

## [Re: ruby sdbm library reliable?](https://www.ruby-forum.com/t/re-ruby-sdbm-library-reliable/94851)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 8\
**Last updated:** [May 17, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/re-ruby-sdbm-library-reliable/94851 "2006-05-17T19:00:22Z")

</div>

\-----Original Message----- From: Jamey C. \[mailto:removed\_email\_address@domain.invalid\] Sent: Tuesday, May 16, 2006 8:37 AM To: ruby-talk ML Subject: ruby sdbm library reliable? Does anyone have any recent experien…

---

## [Rails Install](https://www.ruby-forum.com/t/rails-install/94914)

<div class="topic-metadata">

**Author:** [@McDevittS\_Chris](https://www.ruby-forum.com/u/McDevittS_Chris)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/rails-install/94914 "2006-05-17T18:25:26Z")

</div>

Any suggestions? C:\\WINDOWS\>gem install rails Attempting local installation of ‘rails’ Local gem file not found: rails\*.gem Attempting remote installation of ‘rails’ ERROR: While executing gem … (Errno::EBADF) Bad…

---

## [Re: Nonlinear scaling - could symbols help solve this?](https://www.ruby-forum.com/t/re-nonlinear-scaling-could-symbols-help-solve-this/60760)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [May 17, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/re-nonlinear-scaling-could-symbols-help-solve-this/60760 "2006-05-17T17:41:02Z")

</div>

M. Edward (Ed) Borasky wrote: Thanks for the response. You are right that my CSV file is very much like a database table (used to load database tables). However, my XML document is not so tree-like and actually fits …

---

## [Module, class and methods confusion](https://www.ruby-forum.com/t/module-class-and-methods-confusion/60798)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 5\
**Last updated:** [May 17, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/module-class-and-methods-confusion/60798 "2006-05-17T17:38:00Z")

</div>

I have a test harness script that requires module “mhiqErrorLogger”. Within the test script, I’m attempting to call a method within a class in the “mhiqErrorLogger” module and am getting a “undefined method” error. Ob…

---

## [GetoptLong Accessing the values with out looping](https://www.ruby-forum.com/t/getoptlong-accessing-the-values-with-out-looping/60651)

<div class="topic-metadata">

**Author:** [@Paul\_DSKraus](https://www.ruby-forum.com/u/Paul_DSKraus)\
**Replies:** 3\
**Last updated:** [May 17, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/getoptlong-accessing-the-values-with-out-looping/60651 "2006-05-17T17:06:21Z")

</div>

Simple question but for the life of me I can’t figure it out. I am converting some of my basic perl scripts that I use daily as an excersice in learning ruby. I need to grab a date from the command line that will even…

---

## [Re: When will the gateway be back?](https://www.ruby-forum.com/t/re-when-will-the-gateway-be-back/60800)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/re-when-will-the-gateway-be-back/60800 "2006-05-17T16:25:54Z")

</div>

\-----Original Message----- From: Phil T. \[mailto:removed\_email\_address@domain.invalid\] Sent: Tuesday, May 16, 2006 11:29 PM To: ruby-talk ML Subject: When will the gateway be back? I really prefer to read comp.lang…

---

## [Ruby Central presents the European Rails Conference](https://www.ruby-forum.com/t/ruby-central-presents-the-european-rails-conference/94872)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [May 17, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-central-presents-the-european-rails-conference/94872 "2006-05-17T16:12:46Z")

</div>

Hello everyone – Ruby Central, Inc. is pleased to announce the first official… EUROPEAN RAILS CONFERENCE September 14-15, 2006 TUC Congress Centre London, UK Sponsored by Skills Matter L…

---

## [Blocks in Procs?](https://www.ruby-forum.com/t/blocks-in-procs/60739)

<div class="topic-metadata">

**Author:** [@travis\_michel](https://www.ruby-forum.com/u/travis_michel)\
**Replies:** 4\
**Last updated:** [May 17, 2006, 11:55am UTC](https://www.ruby-forum.com/t/blocks-in-procs/60739 "2006-05-17T11:55:52Z")

</div>

Hi all, I have been using a lot of Proc’s and lambda’s lately and I have encountered something a little baffling. It might be syntax or a misunderstanding of the language; would anyone mind helping me out? I expect t…

---

## [Re: ruby/gnuplot on windows](https://www.ruby-forum.com/t/re-ruby-gnuplot-on-windows/94896)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 9:59am UTC](https://www.ruby-forum.com/t/re-ruby-gnuplot-on-windows/94896 "2006-05-17T09:59:20Z")

</div>

gunzip ruby\*.zip This line should read gunzip ruby\*gz , sorry… Best regards, Axel

---

## [Ticked Off](https://www.ruby-forum.com/t/ticked-off/94865)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 2\
**Last updated:** [May 17, 2006, 8:46am UTC](https://www.ruby-forum.com/t/ticked-off/94865 "2006-05-17T08:46:13Z")

</div>

Not to mention most people on this list are making their livelihoods by selling and creating intellectual property. Its like stabbing a bee hive. Just imagine, people whose livelihoods are based on the creation of …

---

## [A bug? Socket broken due to resource leak in failed connect?](https://www.ruby-forum.com/t/a-bug-socket-broken-due-to-resource-leak-in-failed-connect/60617)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 4\
**Last updated:** [May 17, 2006, 7:57am UTC](https://www.ruby-forum.com/t/a-bug-socket-broken-due-to-resource-leak-in-failed-connect/60617 "2006-05-17T07:57:48Z")

</div>

It is really a triky problem. Following code is used to illustrate the problem I encountered. Before you execute it, please ensure to be offline, so it can be run very fast. Please notice the line in tcpclient.rb “145…

---

## [Rbfactorings](https://www.ruby-forum.com/t/rbfactorings/94893)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 7:54am UTC](https://www.ruby-forum.com/t/rbfactorings/94893 "2006-05-17T07:54:54Z")

</div>

Hi everyone, The other day I had an idea - wouldn’t it be cool to collect refactorings which are possible only, or mostly, in Ruby? “Extract to class method”, for example. I’ve reserved the domain rbfactorings.com be…

---

## [Re: Nonlinear scaling - could symbols help solve this?](https://www.ruby-forum.com/t/re-nonlinear-scaling-could-symbols-help-solve-this/94847)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 1\
**Last updated:** [May 17, 2006, 5:10am UTC](https://www.ruby-forum.com/t/re-nonlinear-scaling-could-symbols-help-solve-this/94847 "2006-05-17T05:10:07Z")

</div>

M. Edward (Ed) Borasky wrote: A CSV file is (usually) very much like a database table. And an XML document is (usually) a tree. A hash of hashes of arrays is an inefficient way to store a tree. You need an algorithm…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/197312)

<div class="topic-metadata">

**Author:** [@kclcghkxoco](https://www.ruby-forum.com/u/kclcghkxoco)\
**Replies:** 0\
**Last updated:** [May 17, 2006, 4:39am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/197312 "2006-05-17T04:39:41Z")

</div>

Begin forwarded message:

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

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