# Ruby

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

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

---

## [Soap4R - Question](https://www.ruby-forum.com/t/soap4r-question/158167)

<div class="topic-metadata">

**Author:** [@balla123](https://www.ruby-forum.com/u/balla123)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 12:06am UTC](https://www.ruby-forum.com/t/soap4r-question/158167 "2009-01-20T00:06:39Z")

</div>

I am trying to add a custom header to my outgoing SOAP4R messages. I figured out how to add a header by doing the following. class ClientAuthHeaderHandler \< SOAP::Header::Handler NAMESPACE = XSD::QName.new(“somenamesp…

---

## [Migration too slow?](https://www.ruby-forum.com/t/migration-too-slow/158139)

<div class="topic-metadata">

**Author:** [@yudora111](https://www.ruby-forum.com/u/yudora111)\
**Replies:** 6\
**Last updated:** [January 20, 2009, 12:03am UTC](https://www.ruby-forum.com/t/migration-too-slow/158139 "2009-01-20T00:03:00Z")

</div>

I have a migration including a update\_all statement to a big table(having 100K+ rows). It gets too slow. It has been running for 8 hours and not done yet. I don’t know if it is still running. Any one can give me some…

---

## [AlterEgo Mailing List](https://www.ruby-forum.com/t/alterego-mailing-list/158165)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/alterego-mailing-list/158165 "2009-01-19T23:38:05Z")

</div>

I’ve received sufficient interest in AlterEgo that I’ve started a mailing list for it. Due to lack of time I haven’t been very good about answering questions and addressing problems with AlterEgo, so I’m hoping that …

---

## [1.8.7p72 on HP-UX 11.x/IA64 with pthreads](https://www.ruby-forum.com/t/1-8-7p72-on-hp-ux-11-x-ia64-with-pthreads/158164)

<div class="topic-metadata">

**Author:** [@Albert\_Chin](https://www.ruby-forum.com/u/Albert_Chin)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 11:25pm UTC](https://www.ruby-forum.com/t/1-8-7p72-on-hp-ux-11-x-ia64-with-pthreads/158164 "2009-01-19T23:25:46Z")

</div>

Anyone built 1.8.7p72 on HP-UX 11.23/IA64 or 11.31/IA64 with pthreads enabled? The following works: $ gtar zxf ruby-1.8.7-p72.tar.gz $ cd ruby-1.8.7-p72 $ ./configure But the following does not: $ gtar zxf ruby-1.8…

---

## [Regular Expression {m,n}](https://www.ruby-forum.com/t/regular-expression-m-n/158155)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/regular-expression-m-n/158155 "2009-01-19T23:04:44Z")

</div>

File.open(“patientrecords.txt”, ‘r’) do |p| if p.gets =~ /%{2,3}PersonID/ then puts “PersonID exist twice” end end Hi. This is supposed to tell me if there a line in my text file that contains ‘PersonID’ at leas…

---

## [C extensions in Vista](https://www.ruby-forum.com/t/c-extensions-in-vista/158018)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/c-extensions-in-vista/158018 "2009-01-19T22:21:05Z")

</div>

I’m posting this to document this effort (for me, and any other poor soul who has to do this…) After some painful trial and error, I finally figured out how to do this… The key was discovering Al Hoeng’s post: http:…

---

## [\[ANN\] Inochi 0.1.0](https://www.ruby-forum.com/t/ann-inochi-0-1-0/158160)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/ann-inochi-0-1-0/158160 "2009-01-19T22:06:56Z")

</div>

Inochi 0.1.0 Gives life to RubyGems-based software http://snk.tuxfamily.org/lib/inochi Inochi is an infrastructure for \[1\]RubyGems-based software projects that encourages…

---

## [\[ANN\] ERBook 6.0.1](https://www.ruby-forum.com/t/ann-erbook-6-0-1/158159)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/ann-erbook-6-0-1/158159 "2009-01-19T22:06:03Z")

</div>

ERBook 6.0.1 Extensible document processor based on eRuby http://snk.tuxfamily.org/lib/erbook/ ERBook is an extensible document processor that emits \[1\]any document you can im…

---

## [Db class and connection problems](https://www.ruby-forum.com/t/db-class-and-connection-problems/158134)

<div class="topic-metadata">

**Author:** [@lmcdougal](https://www.ruby-forum.com/u/lmcdougal)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/db-class-and-connection-problems/158134 "2009-01-19T21:56:41Z")

</div>

Hello, I am new in ruby and have a little problem… I have the following code class Grid attr\_accessor :host … attr\_accessor :connection def initialize (host, user, passwd, dbname) @host = host @user = … end def…

---

## [\[ANN\] Inochi 0.0.0](https://www.ruby-forum.com/t/ann-inochi-0-0-0/158112)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/ann-inochi-0-0-0/158112 "2009-01-19T20:26:17Z")

</div>

Inochi 0.0.0 Gives life to RubyGems-based software http://snk.tuxfamily.org/lib/inochi Inochi is an infrastructure for \[1\]RubyGems-based software projects that encourages…

---

## [\[ANN\] Inochi 0.0.1](https://www.ruby-forum.com/t/ann-inochi-0-0-1/158148)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/ann-inochi-0-0-1/158148 "2009-01-19T20:21:14Z")

</div>

Inochi 0.0.1 Gives life to RubyGems-based software http://snk.tuxfamily.org/lib/inochi Inochi is an infrastructure for \[1\]RubyGems-based software projects that encourages…

---

## [Grepper 0.9.3: grepping library and commandline tool](https://www.ruby-forum.com/t/grepper-0-9-3-grepping-library-and-commandline-tool/157627)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/grepper-0-9-3-grepping-library-and-commandline-tool/157627 "2009-01-19T20:15:12Z")

</div>

Hi – I’ve just released version 0.9.3 of the Grepper library, which includes a grep.rb commandline tool for grepping. It all tries to strictly emulate the results of a subset of GNU grep(1). Supported options: -A, -…

---

## [Parsing List results](https://www.ruby-forum.com/t/parsing-list-results/196883)

<div class="topic-metadata">

**Author:** [@oferar](https://www.ruby-forum.com/u/oferar)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/parsing-list-results/196883 "2009-01-19T20:01:05Z")

</div>

Hi Folks, I need to parse a result that comes in this format : ========================= ec2.describe\_instances #=\> \[{:aws\_image\_id =\> “ami-e444444d”, :aws\_reason =\> “”, :aws\_state\_code =\> “16”, …

---

## [In Depth: attr\_reader/writer/accessor](https://www.ruby-forum.com/t/in-depth-attr-reader-writer-accessor/153958)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/in-depth-attr-reader-writer-accessor/153958 "2009-01-19T18:12:41Z")

</div>

Can anyone explain exactly what happens when the interpreter interprets attr\_reader and its kin? E.G. where is the method located (in which module, class) and what does it do with the symbols in order to expand the me…

---

## [Cloning ruby's svn repo](https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019 "2009-01-19T17:02:02Z")

</div>

from http://blog.emptyway.com/2008/06/19/full-git-clone-of-matz-ruby-subversion-repository/ git svn clone --stdlayout http://svn.ruby-lang.org/repos/ruby This takes a long time and collects 300Mb+ of data. Say I just…

---

## [Ip address of client from GServer#serve](https://www.ruby-forum.com/t/ip-address-of-client-from-gserver-serve/158119)

<div class="topic-metadata">

**Author:** [@juba](https://www.ruby-forum.com/u/juba)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/ip-address-of-client-from-gserver-serve/158119 "2009-01-19T16:01:34Z")

</div>

Hi, I would like to know if there is a way to take the ip address of client from GServer#serve. Regards, Julien

---

## [\[Feature:1.9\] backlog option for TCPServer and UNIXServer](https://www.ruby-forum.com/t/feature-1-9-backlog-option-for-tcpserver-and-unixserver/158057)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/feature-1-9-backlog-option-for-tcpserver-and-unixserver/158057 "2009-01-19T13:52:31Z")

</div>

e$B$J$+$@$G$9!#e(B e$B0JA0$+$i$H$-$\*$jMWK\>$N$"$C$?$N$G!"e(B{TCP,UNIX}Server.newe$B$Ge(B listen()e$B$9$ke(Bbackloge$B$N?t$r;XDj$G$-$k$h$&$K$7$F$\_$^$7$?!#e(B \[ruby-dev:35379\]e$B$,F~$k$H$b$&\>/$74JC1$K=q$1$k$s$G$9$,!#e(B I…

---

## [\[ANN\] ERBook 6.0.0](https://www.ruby-forum.com/t/ann-erbook-6-0-0/158110)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/ann-erbook-6-0-0/158110 "2009-01-19T13:48:09Z")

</div>

ERBook 6.0.0 Extensible document processor based on eRuby http://snk.tuxfamily.org/lib/erbook/ ERBook is an extensible document processor that emits \[1\]any document you can im…

---

## [How to refresh Image through ajax request](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157922)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 12\
**Last updated:** [January 19, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157922 "2009-01-19T13:46:49Z")

</div>

Hi all , I am very new for ruby. I am using Ajax Request(Rmagick in controller) for changing image on my DIV but the problem is it refresh for first time only then after i have to refresh the browser always. If anybod…

---

## [Issues with net/ping](https://www.ruby-forum.com/t/issues-with-net-ping/158109)

<div class="topic-metadata">

**Author:** [@rjst](https://www.ruby-forum.com/u/rjst)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/issues-with-net-ping/158109 "2009-01-19T13:46:02Z")

</div>

Hi, Just wanted to report that the ICMP ping functionality of the net/ping library isn’t working with jruby. To reproduce, install the library and : require 'net/ping' Net::Ping::ICMP.new('localhost').ping You'll ge…

---

## [Pingecho function raises Timeout error](https://www.ruby-forum.com/t/pingecho-function-raises-timeout-error/154976)

<div class="topic-metadata">

**Author:** [@Juan\_PSTarquino](https://www.ruby-forum.com/u/Juan_PSTarquino)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/pingecho-function-raises-timeout-error/154976 "2009-01-19T13:45:26Z")

</div>

The Pingecho method is not rescuing the Timeout::Error exception. I try it to ping a computer that was not on and I got: Timeout::Error (execution expired): C:/jruby-1.1.5/lib/ruby/1.8/ping.rb:51:in \`pingecho’ The co…

---

## [\[FFI\] how to bind to a function with variable number of args](https://www.ruby-forum.com/t/ffi-how-to-bind-to-a-function-with-variable-number-of-args/157932)

<div class="topic-metadata">

**Author:** [@keltia](https://www.ruby-forum.com/u/keltia)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/ffi-how-to-bind-to-a-function-with-variable-number-of-args/157932 "2009-01-19T13:07:33Z")

</div>

I’m looking at ruby-ffi 0.2.0 with MRI 1.8.7 (haven’t tried with rubinius yet) and I can get to attach to setproctitle(3) defined like this: void setproctitle(const char \*fmt, ...); require “ffi” module LibC ex…

---

## [Connecting to a running ruby process](https://www.ruby-forum.com/t/connecting-to-a-running-ruby-process/158090)

<div class="topic-metadata">

**Author:** [@piyush\_r](https://www.ruby-forum.com/u/piyush_r)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 11:33am UTC](https://www.ruby-forum.com/t/connecting-to-a-running-ruby-process/158090 "2009-01-19T11:33:11Z")

</div>

Hi! Is there any way you can connect to a running ruby process (for instance a mongrel) and ‘talk’ to it like we can do in lisp using slime ? For instance in you may connect to a running lisp image (like a hunchento…

---

## [Thread starvation](https://www.ruby-forum.com/t/thread-starvation/158050)

<div class="topic-metadata">

**Author:** [@Jakub\_PavlSSS\_k\_jn](https://www.ruby-forum.com/u/Jakub_PavlSSS_k_jn)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 11:22am UTC](https://www.ruby-forum.com/t/thread-starvation/158050 "2009-01-19T11:22:10Z")

</div>

Hello, In my game freeVikings \[http://freevikings.sf.net\] I have code listed below. It uses threads and sometimes problem known as “thread starvation” occurs. Does anyone know some solution? (A more detailed descri…

---

## [String#hash](https://www.ruby-forum.com/t/string-hash/157891)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 10:53am UTC](https://www.ruby-forum.com/t/string-hash/157891 "2009-01-19T10:53:58Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. Ruby1.9e$B7O$Ne(B String#hash e$B$H$$$&$+e(B e$B$9$Y$F$Ne(B hashe$B4X?t$K$D$$$F$G$9$,e(B, e$B%W%m%;%9Kh$K0c$&CM$K$J$k$N$G$9$,e(B, e$B2?$+?\<$$M}M3$,$"$k$N$G$7$g$&$+e(B? e$BB\>$N%O%C%7%e4X…

---

## [A stream implementation for Ruby](https://www.ruby-forum.com/t/a-stream-implementation-for-ruby/157963)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 10:05am UTC](https://www.ruby-forum.com/t/a-stream-implementation-for-ruby/157963 "2009-01-19T10:05:38Z")

</div>

Hi all Streams are lazily evaluated lists. I have been inspired by James’ excellent blog about infinite streams, and the functional interface of Scheme towards their usage. But just in order to keep this short I hav…

---

## [FileUtils.cp\_r is slow?](https://www.ruby-forum.com/t/fileutils-cp-r-is-slow/157717)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 9:42am UTC](https://www.ruby-forum.com/t/fileutils-cp-r-is-slow/157717 "2009-01-19T09:42:14Z")

</div>

I wrote a ruby script to backup files from my hard drive to my flash drive. For some reason, with one of my flash drives, copying files with FileUtils.cp\_r is about 250 times slower than if I drag and drop the files…

---

## [Spec server with jruby](https://www.ruby-forum.com/t/spec-server-with-jruby/157985)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 9:16am UTC](https://www.ruby-forum.com/t/spec-server-with-jruby/157985 "2009-01-19T09:16:26Z")

</div>

Hello, Is it possible to get spec server running with jruby 1.1.6? When I run spec:server:start rake task (from netbeans) it says: Starting up spec server. Loading Rails environment script/spec\_server:81:in \`daemoni…

---

## [How to thanks for your beloved?](https://www.ruby-forum.com/t/how-to-thanks-for-your-beloved/158086)

<div class="topic-metadata">

**Author:** [@maky19873](https://www.ruby-forum.com/u/maky19873)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 9:11am UTC](https://www.ruby-forum.com/t/how-to-thanks-for-your-beloved/158086 "2009-01-19T09:11:09Z")

</div>

Take the chance of the V’Day to show your love, appreciation, and humor for your love, family, and friends: “Clone” your lover to surprise your sweet heart! “Clone” your boss to please your supervisor! “Clone” your f…

---

## [Get not working](https://www.ruby-forum.com/t/get-not-working/158051)

<div class="topic-metadata">

**Author:** [@freebird](https://www.ruby-forum.com/u/freebird)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 6:38am UTC](https://www.ruby-forum.com/t/get-not-working/158051 "2009-01-19T06:38:01Z")

</div>

I have a class Halt. If i type Halt, the output is Halt =\> Halt(id: integer, troute\_id: integer, seq: integer, day: integer, arrival: integer, departure: integer, duration: integer, tnode\_id: integer, mode: string,…

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

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