# Ruby

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

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

---

## [Re: I need serious help!](https://www.ruby-forum.com/t/re-i-need-serious-help/109656)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/re-i-need-serious-help/109656 "2007-07-17T19:28:55Z")

</div>

I’d encourage anyone who hasn’t read Amy Hoy’s perceptive blog entry to do it ASAP and save themselves some frustration http://slash7.com/articles/2006/12/22/vampires Peter

---

## [SOAP::RPC::Driver timeout](https://www.ruby-forum.com/t/soap-driver-timeout/109347)

<div class="topic-metadata">

**Author:** [@raughan](https://www.ruby-forum.com/u/raughan)\
**Replies:** 4\
**Last updated:** [July 17, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347 "2007-07-17T19:04:26Z")

</div>

I want to be able to control the timeout length on the SOAP::RPC::Driver. Anyone know how this can be done? Thanks

---

## [BackgrounDRb in standalone mode](https://www.ruby-forum.com/t/backgroundrb-in-standalone-mode/109644)

<div class="topic-metadata">

**Author:** [@franz](https://www.ruby-forum.com/u/franz)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/backgroundrb-in-standalone-mode/109644 "2007-07-17T19:03:51Z")

</div>

Hi, I would like to use BackgrounDRb in standalone mode (outside the rails app) but i can’t find a way to do so… Can someone help me please ? Thanks Franz

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/194540 "2007-07-17T18:00:42Z")

</div>

Begin forwarded message:

---

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

<div class="topic-metadata">

**Author:** [@w\_wg](https://www.ruby-forum.com/u/w_wg)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-gd/109659 "2007-07-17T17:58:42Z")

</div>

Hi, I installed the ruby-gd like so: gem install ruby-gd \[root@rj-bsd /var/www/rjinfo.com\]# gem install ruby-gd Attempting local installation of ‘ruby-gd’ Local gem file not found: ruby-gd\*.gem Attempting remote in…

---

## [Month and day](https://www.ruby-forum.com/t/month-and-day/109660)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/month-and-day/109660 "2007-07-17T17:35:39Z")

</div>

Assuming that to day it January 1 2007 when the following code is and the response is 1. Is there a way to get back 01? I’m also looking to get 01 for the day. It looks like %m and %d is what I’m looking for but I…

---

## [Need to use dates earlier than 1900 (Time library says out o](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109654)

<div class="topic-metadata">

**Author:** [@bunny](https://www.ruby-forum.com/u/bunny)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109654 "2007-07-17T16:29:29Z")

</div>

Hi, I am currently using the calendar\_grid library, which uses the Time library. My issue is that need to generate calendar grids before 1900 but the Time library does not support any dates before then. Is there an…

---

## [Real project -- general application structure](https://www.ruby-forum.com/t/real-project-general-application-structure/109341)

<div class="topic-metadata">

**Author:** [@ruv](https://www.ruby-forum.com/u/ruv)\
**Replies:** 18\
**Last updated:** [July 17, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/real-project-general-application-structure/109341 "2007-07-17T15:58:25Z")

</div>

Hi everyone, I’m supposed to build a test application where a PC would communicate with many other devices (say, temperature sensors) via TCP/IP sockets, and display their current status on a web page. Furthermore, al…

---

## [Ruby -ne ! dumps core](https://www.ruby-forum.com/t/ruby-ne-dumps-core/109645)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/ruby-ne-dumps-core/109645 "2007-07-17T15:40:23Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B 1.9 e$B$G0J2\<$N$h$&$K$9$k$HMn$A$^$9!#e(B $ ./ruby -vne ! ruby 1.9.0 (2007-07-17 patchlevel 0) \[i686-linux\] -e:1: syntax error, unexpected $end – control frame ---------- c:0001 p:---- s:0001 …

---

## [Re-run unit test-suite](https://www.ruby-forum.com/t/re-run-unit-test-suite/109639)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/re-run-unit-test-suite/109639 "2007-07-17T15:07:17Z")

</div>

Hi I have parametrised the data of my unit test methods. However I would like to re-run the test class, but I am unable to do this with the require method. require ‘test/unit’ require ‘Test\_Suite\_1’ require ‘Test\_S…

---

## [Force calculation result to BigDecimal](https://www.ruby-forum.com/t/force-calculation-result-to-bigdecimal/109579)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 8\
**Last updated:** [July 17, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/force-calculation-result-to-bigdecimal/109579 "2007-07-17T15:04:15Z")

</div>

Hi all, I’m doing some complex math which I need to be based on BigDecimal accuracy (not Float). It seems that ruby defaults to Float when there’s a mixture of type in there, e.g. Code : irb(main):001:0\> require ‘…

---

## [QtRuby - Error](https://www.ruby-forum.com/t/qtruby-error/109640)

<div class="topic-metadata">

**Author:** [@GermSSSSn\_alberto\_G](https://www.ruby-forum.com/u/GermSSSSn_alberto_G)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/qtruby-error/109640 "2007-07-17T15:04:15Z")

</div>

Hello, I new in the ruby world. Sorry my english, i’m argentino and speak spanish. My question is about QtRuby. Where can tutorials, Faq, Qt’s Classes?. Qt4 work with ruby or only Qt3? I’ design form with Qt4-design…

---

## [Re: xmlsimple: prevent folding multiple elements into array?](https://www.ruby-forum.com/t/re-xmlsimple-prevent-folding-multiple-elements-into-array/109625)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/re-xmlsimple-prevent-folding-multiple-elements-into-array/109625 "2007-07-17T12:19:49Z")

</div>

I have some xml that represents a somewhat weirdly formed hash. XmlSimple is eating some of my structure. Try this: xml = \<\<INPUT state open rate daily duration monthly INPUT …

---

## [Re: What is the fastest way to convert a object?](https://www.ruby-forum.com/t/re-what-is-the-fastest-way-to-convert-a-object/109622)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/re-what-is-the-fastest-way-to-convert-a-object/109622 "2007-07-17T12:02:47Z")

</div>

Yes, this is my problem, too. I need an efficient way to transfer data model, but it seems that drb is not just “transfer”. Even if I ignore the object size thing, still, calling a drbObject’s complex method is an i…

---

## [Re: Does a DRbObject run on server or client?](https://www.ruby-forum.com/t/re-does-a-drbobject-run-on-server-or-client/109623)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 11:57am UTC](https://www.ruby-forum.com/t/re-does-a-drbobject-run-on-server-or-client/109623 "2007-07-17T11:57:46Z")

</div>

I suggest you read “DRbTutorial” on rubygarden (\*): Once you’ve read this, if there’s something about the operation of DRb which is unclear, then describe your specific usage case and ask a specific question. Regar…

---

## [Russian translation of LTP](https://www.ruby-forum.com/t/russian-translation-of-ltp/109560)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 3\
**Last updated:** [July 17, 2007, 10:48am UTC](https://www.ruby-forum.com/t/russian-translation-of-ltp/109560 "2007-07-17T10:48:37Z")

</div>

Hi, all! I translated into Russian Chris P.'s original tutorial “Learn To Program”. It’s located at: http://www.shokhirev.com/mikhail/ruby/ltp/title.html Hope this translation will be of use for all the Russian-spea…

---

## [Memcache wrapper testing](https://www.ruby-forum.com/t/memcache-wrapper-testing/109577)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 10:34am UTC](https://www.ruby-forum.com/t/memcache-wrapper-testing/109577 "2007-07-17T10:34:36Z")

</div>

I have a wrapper class for memcache-client (adds a little extra functionality for something specific I need). Does anyone have any good ideas for how to do unit testing on it? The issue I have is that the memcache wil…

---

## [Trunk: $B%P%0$r;XE&$7$F$$$k7Y9p(B](https://www.ruby-forum.com/t/trunk-b-p-0-r-xe-7-f-k7y9p-b/109409)

<div class="topic-metadata">

**Author:** [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Replies:** 9\
**Last updated:** [July 17, 2007, 10:18am UTC](https://www.ruby-forum.com/t/trunk-b-p-0-r-xe-7-f-k7y9p-b/109409 "2007-07-17T10:18:18Z")

</div>

trunk e$B$Ge(B -Wall e$B$rIU$1$F%3%s%Q%$%k$7$F$\_$k$H!"%P%0$r;XE&$7$F$$$k7Y9p$,e(B e$B$$$/$D$+8+IU$+$j$^$7$?!#e(B compiling digest gcc -I. -I…/…/.ext/include/i386-freebsd6.2 -I…/…/./include -I…/…/./ext/digest -DRUBY\_…

---

## [What is the fastest way to convert a object?](https://www.ruby-forum.com/t/what-is-the-fastest-way-to-convert-a-object/109598)

<div class="topic-metadata">

**Author:** [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Replies:** 13\
**Last updated:** [July 17, 2007, 10:14am UTC](https://www.ruby-forum.com/t/what-is-the-fastest-way-to-convert-a-object/109598 "2007-07-17T10:14:18Z")

</div>

Dear all, Class Test def methodA puts(@var1) end def initialize @var1 = 0 end end obj = Object.new obj.instance\_variable\_set(:@var1, 2) Now I want obj to be Test’s instance, so I can obj.methodA How to do thi…

---

## [Re: I need serious help!](https://www.ruby-forum.com/t/re-i-need-serious-help/109291)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 145\
**Last updated:** [July 17, 2007, 8:03am UTC](https://www.ruby-forum.com/t/re-i-need-serious-help/109291 "2007-07-17T08:03:58Z")

</div>

Dont try to tackle more than one at a time (my problem) thats for sure.

---

## [JSON $B%i%$%V%i%j$N\<h$j9~$\_(B](https://www.ruby-forum.com/t/json-b-i-v-i-j-n-h-j9-b/92591)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 19\
**Last updated:** [July 17, 2007, 5:58am UTC](https://www.ruby-forum.com/t/json-b-i-v-i-j-n-h-j9-b/92591 "2007-07-17T05:58:50Z")

</div>

narusee$B$G$9!#e(B Ruby e$B$Oe(B CGI e$B;~Be$K$be(B Rails e$B;~Be$G$be(B Web e$B\<~JU$GIQHK$KMQ$$$i$l!"e(B e$B$^$?e(B JSON e$B$b:G6a$h$/e(B Web e$B$GMQ$$$i$l$k$h$&$K$J$j$^$7$?$,!"e(B e$B8=:\_e(B Ruby e$B$K$Oe(B JSON …

---

## [Newbie: fastcsv: Read rows, print rows](https://www.ruby-forum.com/t/newbie-fastcsv-read-rows-print-rows/108181)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [July 17, 2007, 5:10am UTC](https://www.ruby-forum.com/t/newbie-fastcsv-read-rows-print-rows/108181 "2007-07-17T05:10:48Z")

</div>

New to Ruby. It probably shows. Trying to accomplish some simple initial tasks, and study. Objectives Read rows from a CSV file Write rows to STDOUT A cat() equivalent. I’ve been looking but don’t find it. Are t…

---

## [Installation problem with rsruby](https://www.ruby-forum.com/t/installation-problem-with-rsruby/109495)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 7\
**Last updated:** [July 17, 2007, 3:17am UTC](https://www.ruby-forum.com/t/installation-problem-with-rsruby/109495 "2007-07-17T03:17:39Z")

</div>

Dear all, I am having problems installing rsruby, the bindings for the R statistical language. I am on an OpenSuSE 10.2, 64 bit system. It looked at first that everything in the installation went smoothly, ie the in…

---

## [I offer serious help](https://www.ruby-forum.com/t/i-offer-serious-help/109463)

<div class="topic-metadata">

**Author:** [@SonOfLilit](https://www.ruby-forum.com/u/SonOfLilit)\
**Replies:** 33\
**Last updated:** [July 17, 2007, 12:18am UTC](https://www.ruby-forum.com/t/i-offer-serious-help/109463 "2007-07-17T00:18:25Z")

</div>

Hello Joe, I don’t have much time now (ditching a physics lecture to write this) so I’ll make this first one short: Do you still want help learning to program so that you’ll eventually be able to program an MMORPG (I…

---

## [Essential Rails registration now open](https://www.ruby-forum.com/t/essential-rails-registration-now-open/109576)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/essential-rails-registration-now-open/109576 "2007-07-16T23:59:23Z")

</div>

Hi all, I know most of us here are already Ruby developers and probably are already familiar with Rails. But for those who might be new to Rails, I just wanted to get the word out that registration is now open for ou…

---

## [Clean nice way (hash)](https://www.ruby-forum.com/t/clean-nice-way-hash/109525)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 23\
**Last updated:** [July 16, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/clean-nice-way-hash/109525 "2007-07-16T23:28:20Z")

</div>

hi, was wondering what the prettiest way to do the below would be: i got a hash { ‘1’ =\> ‘some’, ‘4’ =\> ‘thing’, ‘6’ =\> ‘good’ } and i want to turn it into { ‘1’ =\> {‘name’ =\> ‘some’}, ‘4’ =\> {‘name’ =\> ‘thing’}, ‘6…

---

## [Net::FTP and ftp.dir()](https://www.ruby-forum.com/t/net-ftp-and-ftp-dir/109564)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/net-ftp-and-ftp-dir/109564 "2007-07-16T22:09:08Z")

</div>

Hey all, I’m having trouble with Net::FTP’s dir command. I’m looking to get a list of all the directories, but instead I get a list of every file IN every directory, and the permissions and timestamps as well. Is the…

---

## [Odd requirement behavior between two environments](https://www.ruby-forum.com/t/odd-requirement-behavior-between-two-environments/109557)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/odd-requirement-behavior-between-two-environments/109557 "2007-07-16T21:26:01Z")

</div>

I’m setting up a Ruby project on a new development machine and have run into some trouble getting my unit tests to run. Can any one suggest what the vital difference between these two machines might be, or what is cau…

---

## [Bdb](https://www.ruby-forum.com/t/bdb/109545)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/bdb/109545 "2007-07-16T20:06:50Z")

</div>

Does anyone know if this project: http://moulon.inra.fr/ruby/bdb.html is still being supported by the author? Is there a mailing list or forum where I can ask specific questions about Berkeley DB for Ruby? Thanks.

---

## [Namespaces](https://www.ruby-forum.com/t/namespaces/109554)

<div class="topic-metadata">

**Author:** [@Raffaele\_Bello](https://www.ruby-forum.com/u/Raffaele_Bello)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/namespaces/109554 "2007-07-16T20:04:50Z")

</div>

Hi I’m trying to implement web services with Ruby using WS-Security. I added to the header the Username and Password and the webservices receive the following: \<?xml version="1.0" encoding="utf-8" ?\> \<env:Envelope xml…

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

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