# Ruby

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

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

---

## [Hash problem](https://www.ruby-forum.com/t/hash-problem/185732)

<div class="topic-metadata">

**Author:** [@aneeley](https://www.ruby-forum.com/u/aneeley)\
**Replies:** 9\
**Last updated:** [March 25, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/hash-problem/185732 "2010-03-25T13:11:19Z")

</div>

Hi I have small problem with adding data to hash table In loop I take some string and get IP address from it like this: ip = /(?:(?:25\[0-5\]|2\[0-4\]\[0-9\]|\[01\]?\[0-9\]\[0-9\]?).){3}(?:25\[0-5\]|2\[0-4\]\[0-9\]|\[01\]?\[0-9\]\[0-9\]?)/.…

---

## [On procs and methods](https://www.ruby-forum.com/t/on-procs-and-methods/185671)

<div class="topic-metadata">

**Author:** [@revlob](https://www.ruby-forum.com/u/revlob)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 11:09am UTC](https://www.ruby-forum.com/t/on-procs-and-methods/185671 "2010-03-25T11:09:33Z")

</div>

Hi. I have a question about procs and methods. Why is not possible to invoke them in same form: proc: foo\[param1, param2\] method: foo(param1, param2) Only curious. Thanks for your ideas.

---

## [How to create an infinite enumerable of Times?](https://www.ruby-forum.com/t/how-to-create-an-infinite-enumerable-of-times/185721)

<div class="topic-metadata">

**Author:** [@trib4lmaniac](https://www.ruby-forum.com/u/trib4lmaniac)\
**Replies:** 5\
**Last updated:** [March 25, 2010, 11:03am UTC](https://www.ruby-forum.com/t/how-to-create-an-infinite-enumerable-of-times/185721 "2010-03-25T11:03:06Z")

</div>

I want to be able to have an object extend Enumerable in Ruby to be an infinite list of Mondays (for example). So it would yield: March 29, April 5, April 12… etc How can I implement this in Ruby?

---

## [Read & Write data on the web](https://www.ruby-forum.com/t/read-write-data-on-the-web/185726)

<div class="topic-metadata">

**Author:** [@omegas7](https://www.ruby-forum.com/u/omegas7)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 9:52am UTC](https://www.ruby-forum.com/t/read-write-data-on-the-web/185726 "2010-03-25T09:52:17Z")

</div>

What do I need to read & write data from the web? I simply want to have something on my site to be like a variable $data, and my application can connect to the site and edit $data or other variables (or create new one…

---

## [Speeding up TCP](https://www.ruby-forum.com/t/speeding-up-tcp/185499)

<div class="topic-metadata">

**Author:** [@seanwarburton](https://www.ruby-forum.com/u/seanwarburton)\
**Replies:** 5\
**Last updated:** [March 25, 2010, 9:44am UTC](https://www.ruby-forum.com/t/speeding-up-tcp/185499 "2010-03-25T09:44:06Z")

</div>

I have a script that opens a TCP socket and then sends an XML request using SSL over the socket, it then receives an answer back from the server. The whole send and receive is taking between 160 and 175 milliseconds t…

---

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

<div class="topic-metadata">

**Author:** [@mehektet](https://www.ruby-forum.com/u/mehektet)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 9:12am UTC](https://www.ruby-forum.com/t/help-a-noob/185728 "2010-03-25T09:12:29Z")

</div>

Ok, I have been programming for two days now. Ruby is my first language ever. But all the books I look for already assume you have a good deal of knowledge in programming. Does anyone know where I can get a good b…

---

## [How to uninstall ruby?](https://www.ruby-forum.com/t/how-to-uninstall-ruby/185393)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 8:55am UTC](https://www.ruby-forum.com/t/how-to-uninstall-ruby/185393 "2010-03-25T08:55:30Z")

</div>

Dear all, I have installed ruby 1.8.7 in slackware 13. Now i need to uninstall my ruby from slackware how should i do? Regards, Jose

---

## [Socket::TCPServer.accept\_nonblock accepts non blocking connections ERROR](https://www.ruby-forum.com/t/socket-tcpserver-accept-nonblock-accepts-non-blocking-connections-error/185730)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 7:39am UTC](https://www.ruby-forum.com/t/socket-tcpserver-accept-nonblock-accepts-non-blocking-connections-error/185730 "2010-03-25T07:39:25Z")

</div>

e$B$-$7$b$H$G$9e(B e$B\<j85$N4D6-!J$3$s$J46$8$G$9!Ke(B $ uname -a FreeBSD norikura.localdomain 8.0-STABLE FreeBSD 8.0-STABLE #0 r200622: Thu Dec 17 14:39:59 JST 2009 removed\_email\_address@domain.invalid:/usr/src/sys/…

---

## [JRuby 1.4.0 monitor.rb thread safety](https://www.ruby-forum.com/t/jruby-1-4-0-monitor-rb-thread-safety/185506)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 1:57am UTC](https://www.ruby-forum.com/t/jruby-1-4-0-monitor-rb-thread-safety/185506 "2010-03-25T01:57:01Z")

</div>

Hi All, We recently upgraded a rails based webapp to jruby 1.4.0 and are seeing intermittent exceptions thrown around the activerecord connection pool. After some narrowing down it appears that a timeout on the conne…

---

## [Win32/process Process.create failure](https://www.ruby-forum.com/t/win32-process-process-create-failure/185657)

<div class="topic-metadata">

**Author:** [@Mike\_Stead](https://www.ruby-forum.com/u/Mike_Stead)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 12:54am UTC](https://www.ruby-forum.com/t/win32-process-process-create-failure/185657 "2010-03-25T00:54:59Z")

</div>

Hi all, I’m hoping you can lend me some help. I make the following call: require ‘win32/process’ Process.create(:app\_name =\> “perl C:/bin/filepp-1.8.0/filepp.pl -c”) This fails with the error: CreateProcess() failed…

---

## [Call a ruby script from html](https://www.ruby-forum.com/t/call-a-ruby-script-from-html/185687)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 6\
**Last updated:** [March 24, 2010, 11:32pm UTC](https://www.ruby-forum.com/t/call-a-ruby-script-from-html/185687 "2010-03-24T23:32:28Z")

</div>

I would like to call a ruby script from a html page passing a few parameters, something like: Search Anybody knows how to do it? Thanks.

---

## [New feature: JRuby::Synchronized for thread-safety stuff](https://www.ruby-forum.com/t/new-feature-jruby-synchronized-for-thread-safety-stuff/185707)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/new-feature-jruby-synchronized-for-thread-safety-stuff/185707 "2010-03-24T21:16:05Z")

</div>

After talking with MenTaLguY on IRC about adding some concurrent collections to JRuby, we came up with a new feature for people to try out: require ‘jruby/synchronized’ class MyClass include JRuby::Synchronized … o…

---

## [WIN32OLE memory leaks](https://www.ruby-forum.com/t/win32ole-memory-leaks/181505)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 20\
**Last updated:** [March 24, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/win32ole-memory-leaks/181505 "2010-03-24T21:13:10Z")

</div>

In my ruby code I am making a call out to a COM object that is returning an array of objects. I extract some information from these objects and then request a new batch to do the same work all over again. Even though …

---

## [\[Bug #1423\] config.charset not found](https://www.ruby-forum.com/t/bug-1423-config-charset-not-found/166847)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [March 24, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/bug-1423-config-charset-not-found/166847 "2010-03-24T19:57:40Z")

</div>

Bug #1423: config.charset not found http://redmine.ruby-lang.org/issues/show/1423 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext ruby -v: r23308 ext/iconv/charset\_…

---

## [\[Bug:trunk\] add explicit constraints for WONTFIX IO bug](https://www.ruby-forum.com/t/bug-trunk-add-explicit-constraints-for-wontfix-io-bug/183839)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/bug-trunk-add-explicit-constraints-for-wontfix-io-bug/183839 "2010-03-24T18:04:06Z")

</div>

Hi, all I propose writing two constraints into rdoc of IO: after running IO#dup, both an original IO and generated IO may cause “bezarre behavior” except IO#close after running IO#reopen, an original IO that pass…

---

## [IPv6 multicast server/client](https://www.ruby-forum.com/t/ipv6-multicast-server-client/185516)

<div class="topic-metadata">

**Author:** [@pollopoop92](https://www.ruby-forum.com/u/pollopoop92)\
**Replies:** 1\
**Last updated:** [March 24, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/ipv6-multicast-server-client/185516 "2010-03-24T17:21:48Z")

</div>

Hi list, i’m writing as subject to know if someone can give me some suggestion/tips/snipplet to write a multicast client/server in ruby. As i see, IPv6 isnt on 1.8.7 and i’ve to move in 1.9.1 to have by default and n…

---

## [Class instance variable visibility to nested modules](https://www.ruby-forum.com/t/class-instance-variable-visibility-to-nested-modules/185682)

<div class="topic-metadata">

**Author:** [@grar](https://www.ruby-forum.com/u/grar)\
**Replies:** 1\
**Last updated:** [March 24, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/class-instance-variable-visibility-to-nested-modules/185682 "2010-03-24T17:09:05Z")

</div>

Hi, I’d like to organize the inner namespace of a class s.t. an inner, or ‘nested’, module (or class) has access to the instance variables of the outer class. After experimenting a bit, it seems there is no visibility …

---

## [IronRuby on your Phone](https://www.ruby-forum.com/t/ironruby-on-your-phone/185683)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/ironruby-on-your-phone/185683 "2010-03-24T16:43:19Z")

</div>

You might like Tomas’ latest blog entry: -Curt

---

## [What's the suggested raise Exception idiom?](https://www.ruby-forum.com/t/whats-the-suggested-raise-exception-idiom/185624)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/whats-the-suggested-raise-exception-idiom/185624 "2010-03-24T16:40:23Z")

</div>

What’s the distinction between: raise ArgumentError, “the argument was invalid” and raise ArgumentError.new(“the argument was invalid”) How does this apply in the case of exceptions with custom initializers for attr…

---

## [How to install nokogiri](https://www.ruby-forum.com/t/how-to-install-nokogiri/185654)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 6\
**Last updated:** [March 24, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/how-to-install-nokogiri/185654 "2010-03-24T15:33:39Z")

</div>

in my terminal pt@pt-laptop:~$ gem RubyGems is a sophisticated package manager for Ruby. This is a basic help message containing pointers to more information. Usage: gem -h/–help gem -v/–version gem command \[argu…

---

## [\[Bug #3007\] subtle inconsistency of Class#to\_s](https://www.ruby-forum.com/t/bug-3007-subtle-inconsistency-of-class-to-s/185676)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/bug-3007-subtle-inconsistency-of-class-to-s/185676 "2010-03-24T15:28:23Z")

</div>

Bug #3007: subtle inconsistency of Class#to\_s http://redmine.ruby-lang.org/issues/show/3007 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$BC4Ev\<Te(B: Yukihiro M., e$B%+%F%4%je(B: core, Target ve…

---

## [\[Bug #616\] instance\_eval and Module#to\_s](https://www.ruby-forum.com/t/bug-616-instance-eval-and-module-to-s/150238)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 11\
**Last updated:** [March 24, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/bug-616-instance-eval-and-module-to-s/150238 "2010-03-24T15:15:30Z")

</div>

Bug #616: instance\_eval and Module#to\_s http://redmine.ruby-lang.org/issues/show/616 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yukihiro M., e$B%+%F%4%je(B: core e$B0J2\<$N$h…

---

## [Manipulating an Array Element](https://www.ruby-forum.com/t/manipulating-an-array-element/185664)

<div class="topic-metadata">

**Author:** [@saeed](https://www.ruby-forum.com/u/saeed)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/manipulating-an-array-element/185664 "2010-03-24T15:10:49Z")

</div>

Hi All, I am saving some html code in an Array, I then want to extract certain values from the html code. I have saved the html code into an Array but having difficulty manipulating the elements to extract the exact …

---

## [\[Bug #866\] gem(1) gemrc(5)](https://www.ruby-forum.com/t/bug-866-gem-1-gemrc-5/155547)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 2\
**Last updated:** [March 24, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/bug-866-gem-1-gemrc-5/155547 "2010-03-24T14:05:50Z")

</div>

Bug #866: gem(1) gemrc(5) http://redmine.ruby-lang.org/issues/show/866 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$BC4Ev\<Te(B: Yuki S., e$B%+%F%4%je(B: DOC, Target version: 1.9.1 Release Candid…

---

## [Learn Ruby - Lesson 0: Setup and Installation](https://www.ruby-forum.com/t/learn-ruby-lesson-0-setup-and-installation/185666)

<div class="topic-metadata">

**Author:** [@Space\_Ship\_T](https://www.ruby-forum.com/u/Space_Ship_T)\
**Replies:** 3\
**Last updated:** [March 24, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/learn-ruby-lesson-0-setup-and-installation/185666 "2010-03-24T12:26:20Z")

</div>

Hello, I’m writing a tutorial for beginners, primarily aimed at Teachers and Students. I’ve written the following tutorial. http://www.oriontransfer.co.nz/education/learn-ruby/lesson-0/index Any feedback would be re…

---

## [Missing method in NKF module](https://www.ruby-forum.com/t/missing-method-in-nkf-module/185612)

<div class="topic-metadata">

**Author:** [@Mark\_Rendle](https://www.ruby-forum.com/u/Mark_Rendle)\
**Replies:** 2\
**Last updated:** [March 24, 2010, 11:25am UTC](https://www.ruby-forum.com/t/missing-method-in-nkf-module/185612 "2010-03-24T11:25:26Z")

</div>

I’m trying to use the waz-storage gem for talking to Windows Azure storage services, but it uses kconv and there’s a problem with the toutf8 mix-in method, which is trying to call NKF.nkf, which is not defined. Repro…

---

## [Module A extends Moudle B possible?](https://www.ruby-forum.com/t/module-a-extends-moudle-b-possible/185579)

<div class="topic-metadata">

**Author:** [@smarter](https://www.ruby-forum.com/u/smarter)\
**Replies:** 6\
**Last updated:** [March 24, 2010, 9:38am UTC](https://www.ruby-forum.com/t/module-a-extends-moudle-b-possible/185579 "2010-03-24T09:38:54Z")

</div>

Hello: Can Modules extends within themselves? Like Class A \< B is Valid, where B is another class Module X \< Y is invalid, where Y is another module? Thanks.

---

## [Sort elements](https://www.ruby-forum.com/t/sort-elements/185606)

<div class="topic-metadata">

**Author:** [@i72gumaj](https://www.ruby-forum.com/u/i72gumaj)\
**Replies:** 10\
**Last updated:** [March 24, 2010, 9:35am UTC](https://www.ruby-forum.com/t/sort-elements/185606 "2010-03-24T09:35:26Z")

</div>

Hello, I’m newbie so I apologize if my question it’s stupid. I want to write a program that counts how many times a word appears in a text. This is my code: a = ‘Apple car caR house tree ice ice ice house’ b = a.down…

---

## [\[ANN\]IronRuby 1.0 RC4](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc4/185645)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [March 24, 2010, 4:54am UTC](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc4/185645 "2010-03-24T04:54:28Z")

</div>

The IronRuby team is pleased to announce version 1.0 RC4! http://ironruby.net/download Direct download link: http://ironruby.codeplex.com/releases/view/41854#DownloadId=112345 As IronRuby approaches the final 1.0, th…

---

## [Require, from within lib, files located under the local path](https://www.ruby-forum.com/t/require-from-within-lib-files-located-under-the-local-path/185592)

<div class="topic-metadata">

**Author:** [@jdv](https://www.ruby-forum.com/u/jdv)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 4:49am UTC](https://www.ruby-forum.com/t/require-from-within-lib-files-located-under-the-local-path/185592 "2010-03-24T04:49:59Z")

</div>

Hi. Here’s an issue I’ve not been able to solve for some time now. Let’s say I designed a tiny library, following a standard structure: $ tree . |-- LICENSE |-- README.md |-- Rakefile |-- VERSION |-- lib | |-…

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

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