# Ruby

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

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

---

## [Another Ruby Conf Speaker needing to pull out the Tin Cup](https://www.ruby-forum.com/t/another-ruby-conf-speaker-needing-to-pull-out-the-tin-cup/196083)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [October 8, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/another-ruby-conf-speaker-needing-to-pull-out-the-tin-cup/196083 "2010-10-08T23:59:18Z")

</div>

On Sat, Oct 2, 2010 at 10:19 AM, Eleanor McHugh removed\_email\_address@domain.invalid wrote: Thanks to the overwhelming generosity of a number of people here I can now afford not only my roundtrip flight from London to…

---

## [Chris Pine Program Challenges](https://www.ruby-forum.com/t/chris-pine-program-challenges/107037)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 12\
**Last updated:** [October 8, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/chris-pine-program-challenges/107037 "2010-10-08T23:31:48Z")

</div>

puts ‘Type in as many words as you want’ puts ‘When you are finished, press ‘ENTER’ on an empty line’ puts 'I’ll give ‘em all back to you in alphabetical order!’ stuff = \[\] user\_input = gets.chomp while user\_input !…

---

## [\[ANN\] Money 3.1.5 released](https://www.ruby-forum.com/t/ann-money-3-1-5-released/196233)

<div class="topic-metadata">

**Author:** [@semmons99](https://www.ruby-forum.com/u/semmons99)\
**Replies:** 0\
**Last updated:** [October 8, 2010, 11:29pm UTC](https://www.ruby-forum.com/t/ann-money-3-1-5-released/196233 "2010-10-08T23:29:43Z")

</div>

Money 3.1.5 Features Added support for creating objects with the main monetary unit instead of cents. (#issue/25) Deprecated Money#format with separate params instead of Hash. Deprecation target set to Money 3.5.…

---

## [How can I count number of elements in an HTML page](https://www.ruby-forum.com/t/how-can-i-count-number-of-elements-in-an-html-page/196037)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 10\
**Last updated:** [October 8, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/how-can-i-count-number-of-elements-in-an-html-page/196037 "2010-10-08T23:17:44Z")

</div>

Hi there, I’m using net/http to retrieve some html pages and now I want to count the number of items in a list on the page. The response.body is stored as a string. The HTML looks something like this: Sect…

---

## [Missing rake/extensiontask](https://www.ruby-forum.com/t/missing-rake-extensiontask/196227)

<div class="topic-metadata">

**Author:** [@gonzalo\_g](https://www.ruby-forum.com/u/gonzalo_g)\
**Replies:** 1\
**Last updated:** [October 8, 2010, 10:14pm UTC](https://www.ruby-forum.com/t/missing-rake-extensiontask/196227 "2010-10-08T22:14:45Z")

</div>

I’m looking into compiling fxruby from its gem but it dies as it cannot find rake/extensiontask. I downloaded the latest rake and it is missing there too. Can anyone help me sort it out?

---

## [Monitor Resque with Bluepill](https://www.ruby-forum.com/t/monitor-resque-with-bluepill/196226)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 0\
**Last updated:** [October 8, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/monitor-resque-with-bluepill/196226 "2010-10-08T21:53:07Z")

</div>

Hi, Anyone have any .bill file that can monitor resque? I already did the .bill file to monitor nginx and redis, just need now to monitor resque. Thanks.

---

## [Require error](https://www.ruby-forum.com/t/require-error/196222)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 5\
**Last updated:** [October 8, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/require-error/196222 "2010-10-08T20:41:25Z")

</div>

Hi, I’m getting the following error… internal:lib/rubygems/custom\_require\>:28:in \`require’: wrong number of arguments (2 for 1) (ArgumentError) it corresponds to this line in my code… require ‘animals’, ‘csv’ Any id…

---

## [Popen hangs out for user input](https://www.ruby-forum.com/t/popen-hangs-out-for-user-input/196166)

<div class="topic-metadata">

**Author:** [@felix.leg](https://www.ruby-forum.com/u/felix.leg)\
**Replies:** 4\
**Last updated:** [October 8, 2010, 7:30pm UTC](https://www.ruby-forum.com/t/popen-hangs-out-for-user-input/196166 "2010-10-08T19:30:36Z")

</div>

Hi, I want to use Ruby with latex,so I wrote a simple program which waits for “\\typein” command called from pdflatex: #!/usr/bin/ruby file = IO.popen(‘pdflatex -interaction scrollmode test.tex’,‘r+’) #1 until file.r…

---

## [Regexp issue](https://www.ruby-forum.com/t/regexp-issue/196185)

<div class="topic-metadata">

**Author:** [@rubist](https://www.ruby-forum.com/u/rubist)\
**Replies:** 7\
**Last updated:** [October 8, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/regexp-issue/196185 "2010-10-08T19:10:42Z")

</div>

Hi All, I have an issue in parsing regular expression and im new to regexp. Varaiable = “Internation tip ($25 fee)” The $25 might vary each time, it might be $5, $ 10 so on I tried doing something like this which di…

---

## ["Load" Works, But "Require" Doesn't?](https://www.ruby-forum.com/t/load-works-but-require-doesnt/196128)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 5\
**Last updated:** [October 8, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/load-works-but-require-doesnt/196128 "2010-10-08T18:23:52Z")

</div>

Can someone please explain what’s going on here. No matter what I try, every time I call require() with a relative path, it comes back with “LoadError: no such file to load”. Yet, at the same time, load() works perfec…

---

## [Each\_with\_index](https://www.ruby-forum.com/t/each-with-index/196190)

<div class="topic-metadata">

**Author:** [@valachi](https://www.ruby-forum.com/u/valachi)\
**Replies:** 6\
**Last updated:** [October 8, 2010, 6:17pm UTC](https://www.ruby-forum.com/t/each-with-index/196190 "2010-10-08T18:17:58Z")

</div>

hello everybody! i’m working on a programm that has that peace of code: def show\_titles file = File.read(“articles\_file.txt”) raw\_articles = file.split("\\n\\n") raw\_articles.each do |elem| title, \*text = elem.split("…

---

## [Isolate 2.0.1 Released](https://www.ruby-forum.com/t/isolate-2-0-1-released/189121)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 2\
**Last updated:** [October 8, 2010, 3:21pm UTC](https://www.ruby-forum.com/t/isolate-2-0-1-released/189121 "2010-10-08T15:21:35Z")

</div>

isolate version 2.0.1 has been released! http://github.com/jbarnette/isolate Isolate is a very simple RubyGems sandbox. It provides a way to express and automatically install your project’s Gem dependencies. Changes…

---

## [\[Ruby 1.9-Bug#3920\]\[Open\] WEBrick::HTTPServlet::ProcHandler $B$,F0$+$J$$(B](https://www.ruby-forum.com/t/ruby-1-9-bug-3920-open-webrick-prochandler-b-f0-j-b/196200)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 8, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3920-open-webrick-prochandler-b-f0-j-b/196200 "2010-10-08T12:19:12Z")

</div>

Bug #3920: WEBrick::HTTPServlet::ProcHandler e$B$,F0$+$J$$e(B http://redmine.ruby-lang.org/issues/show/3920 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib ruby -v: ruby 1.9.2p…

---

## [Named parameters in ruby?](https://www.ruby-forum.com/t/named-parameters-in-ruby/196091)

<div class="topic-metadata">

**Author:** [@xiMera](https://www.ruby-forum.com/u/xiMera)\
**Replies:** 3\
**Last updated:** [October 8, 2010, 11:29am UTC](https://www.ruby-forum.com/t/named-parameters-in-ruby/196091 "2010-10-08T11:29:25Z")

</div>

Hi all, Ruby does not support named parameter for now as all of you know. There is really three solutions for this hash as parameter class as parameter bindings Hash parameters: def do\_some( params ) a = params\[ :…

---

## [Ruby 1.9.2, rubygems and gentoo linux](https://www.ruby-forum.com/t/ruby-1-9-2-rubygems-and-gentoo-linux/196186)

<div class="topic-metadata">

**Author:** [@crocco](https://www.ruby-forum.com/u/crocco)\
**Replies:** 0\
**Last updated:** [October 8, 2010, 9:24am UTC](https://www.ruby-forum.com/t/ruby-1-9-2-rubygems-and-gentoo-linux/196186 "2010-10-08T09:24:43Z")

</div>

Hello to everyone. On Gentoo linux, I have installed both ruby 1.9.2 and ruby 1.8.7, both installed using emerge (the Gentoo package manager). This setup contains a gem executable (rubygems version 1.3.7) which uses …

---

## [Benchmarks Project and example for \`||=\`](https://www.ruby-forum.com/t/benchmarks-project-and-example-for/196127)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 8\
**Last updated:** [October 8, 2010, 8:42am UTC](https://www.ruby-forum.com/t/benchmarks-project-and-example-for/196127 "2010-10-08T08:42:34Z")

</div>

Has anyone ever put together a suite of benchmarks that simply measure interesting Ruby practices? For example, here is a comparison of using ||= vs not using it. n = 1000000 puts “#{n} Times” t = Time.now @b = :b …

---

## [System("command") is not working and returns false](https://www.ruby-forum.com/t/system-command-is-not-working-and-returns-false/196183)

<div class="topic-metadata">

**Author:** [@Behrang\_S](https://www.ruby-forum.com/u/Behrang_S)\
**Replies:** 2\
**Last updated:** [October 8, 2010, 5:16am UTC](https://www.ruby-forum.com/t/system-command-is-not-working-and-returns-false/196183 "2010-10-08T05:16:36Z")

</div>

Hi, On my system (Win 7 64-bit), system(“command”) is not working and always returns false. Any ideas what could be the problem and how can I fix it? Cheers, Behrang S. To unsubscribe from this list, please visit…

---

## [Data binding in Silverlight 4](https://www.ruby-forum.com/t/data-binding-in-silverlight-4/195660)

<div class="topic-metadata">

**Author:** [@fxp](https://www.ruby-forum.com/u/fxp)\
**Replies:** 6\
**Last updated:** [October 8, 2010, 5:08am UTC](https://www.ruby-forum.com/t/data-binding-in-silverlight-4/195660 "2010-10-08T05:08:25Z")

</div>

I’m beginning to research this, but I don’t want to reinvent the wheel if there is already a solution out there. My understanding of the problem is this: Data binding in Silverlight does not work because the system do…

---

## [Undefined method \`\*' for nil:NilClass](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass/196157)

<div class="topic-metadata">

**Author:** [@datulravi](https://www.ruby-forum.com/u/datulravi)\
**Replies:** 2\
**Last updated:** [October 8, 2010, 2:14am UTC](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass/196157 "2010-10-08T02:14:44Z")

</div>

Please find the .txt file attached. Am getting the following error message. Please help! Error Loading File slab.rb undefined method \`\*’ for nil:NilClass

---

## [Behavior of 'system'. Jruby 1.5.3](https://www.ruby-forum.com/t/behavior-of-system-jruby-1-5-3/196118)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 5\
**Last updated:** [October 8, 2010, 1:03am UTC](https://www.ruby-forum.com/t/behavior-of-system-jruby-1-5-3/196118 "2010-10-08T01:03:51Z")

</div>

Hi All, When I run the command: jruby -e "system '/usr/bin/ruby -v'" the version output I see is from JRuby, rather that the Ruby that I expected. I suspect that this is related to some optimization used to avoid …

---

## ["map" a deeply nested structure: Object#deep\_map](https://www.ruby-forum.com/t/map-a-deeply-nested-structure-object-deep-map/196084)

<div class="topic-metadata">

**Author:** [@gderosa](https://www.ruby-forum.com/u/gderosa)\
**Replies:** 10\
**Last updated:** [October 8, 2010, 12:35am UTC](https://www.ruby-forum.com/t/map-a-deeply-nested-structure-object-deep-map/196084 "2010-10-08T00:35:10Z")

</div>

Hi, most of you probably know/use Ruby F.s http://rubyworks.github.com/facets/ I’ve recently posted a question on Facets discussion group: http://groups.google.com/group/facets-universal/browse\_thread/thread/683215a3…

---

## [Rdoc using DarkFish? Not generating rdoc coments?](https://www.ruby-forum.com/t/rdoc-using-darkfish-not-generating-rdoc-coments/196015)

<div class="topic-metadata">

**Author:** [@mydarkpassenger](https://www.ruby-forum.com/u/mydarkpassenger)\
**Replies:** 1\
**Last updated:** [October 7, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/rdoc-using-darkfish-not-generating-rdoc-coments/196015 "2010-10-07T23:54:12Z")

</div>

I am using: Product Version: NetBeans IDE 6.9.1 (Build 201007282301) Java: 1.6.0\_21; Java HotSpot™ Client VM 17.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en\_US (nb) I updated my rdoc gems using …

---

## [How can we make a ruby compiler](https://www.ruby-forum.com/t/how-can-we-make-a-ruby-compiler/195846)

<div class="topic-metadata">

**Author:** [@robin](https://www.ruby-forum.com/u/robin)\
**Replies:** 49\
**Last updated:** [October 7, 2010, 11:09pm UTC](https://www.ruby-forum.com/t/how-can-we-make-a-ruby-compiler/195846 "2010-10-07T23:09:57Z")

</div>

how can we make a thing that compiles ruby into c++ source code? does anyone want to help me make one… -r removed\_email\_address@domain.invalid

---

## [Ruby-nis library packaged as gem 'nis' 0.1.1.1](https://www.ruby-forum.com/t/ruby-nis-library-packaged-as-gem-nis-0-1-1-1/196173)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [October 7, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/ruby-nis-library-packaged-as-gem-nis-0-1-1-1/196173 "2010-10-07T22:28:11Z")

</div>

nis 0.1.1.1 has been released! = nis This is a gem repackage of the code available at: http://raa.ruby-lang.org/project/ruby-nis GitHub - flavorjones/nis: Mirror (and gem source) for the NIS(YP) API rubygem. == CHAN…

---

## [How many seconds old am i?](https://www.ruby-forum.com/t/how-many-seconds-old-am-i/196123)

<div class="topic-metadata">

**Author:** [@majorawesome](https://www.ruby-forum.com/u/majorawesome)\
**Replies:** 9\
**Last updated:** [October 7, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/how-many-seconds-old-am-i/196123 "2010-10-07T21:03:53Z")

</div>

for some reason line 6 doesnt work.i converted it into a integer but still i get the error ". How\_old\_are\_you?.rb:6:in \`\*’: String can’t be coerced into Fixnum (TypeError) from How\_old\_are\_you?.rb:6 " the \* should …

---

## [Problems using java.util.concurrent thread pools](https://www.ruby-forum.com/t/problems-using-java-util-concurrent-thread-pools/196116)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 4\
**Last updated:** [October 7, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/problems-using-java-util-concurrent-thread-pools/196116 "2010-10-07T20:08:17Z")

</div>

I’m playing around with ffi-rzmq which provides bindings to 0mq. I have a block of code that I run in a thread that creates a 0mq socket and then just loops forever reading and writing to it. Pseudo code… @thread\_p…

---

## [Ruby and windows GUI](https://www.ruby-forum.com/t/ruby-and-windows-gui/196142)

<div class="topic-metadata">

**Author:** [@spaghetticode](https://www.ruby-forum.com/u/spaghetticode)\
**Replies:** 5\
**Last updated:** [October 7, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/ruby-and-windows-gui/196142 "2010-10-07T20:05:56Z")

</div>

hello, a friend of mine has asked me to write a quick and simple application that should run only on windows OSes. It should be a desktop GUI application. It’s pretty simple in its working as it should basically just…

---

## [2011 Fukuoka Ruby Award Competition](https://www.ruby-forum.com/t/2011-fukuoka-ruby-award-competition/196154)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 2\
**Last updated:** [October 7, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/2011-fukuoka-ruby-award-competition/196154 "2010-10-07T17:30:49Z")

</div>

Hi all, Fukuoka prefecture sponsors the thrid Fukuoka Ruby Award as past years. Although sponsored by the Japanese local government, Fukuoka Ruby Award is fully open to non-Japanese, In fact, last two awards went to…

---

## [Maximum length of array#hash](https://www.ruby-forum.com/t/maximum-length-of-array-hash/196149)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 6\
**Last updated:** [October 7, 2010, 4:56pm UTC](https://www.ruby-forum.com/t/maximum-length-of-array-hash/196149 "2010-10-07T16:56:16Z")

</div>

I have a large array and want to calculate its hash-code using Array#hash. i.e. \[“a”,“b”,“c”\].hash I want to store this hash-code in a database table. Can anyone tell me (or point me in the right direction to find ou…

---

## [Can anyone give a an example of this please](https://www.ruby-forum.com/t/can-anyone-give-a-an-example-of-this-please/196145)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 5\
**Last updated:** [October 7, 2010, 2:49pm UTC](https://www.ruby-forum.com/t/can-anyone-give-a-an-example-of-this-please/196145 "2010-10-07T14:49:11Z")

</div>

“code blocks may accept none, one, or more parameters” I understand how ONE parameter is passed using the ‘each’ method. I also understand how TWO parameters is passed, like in this code x = { “a” =\> 100, “b” =\> 20 } …

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

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