# Ruby

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

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

---

## [How can I fix this?](https://www.ruby-forum.com/t/how-can-i-fix-this/69885)

<div class="topic-metadata">

**Author:** [@Gaech](https://www.ruby-forum.com/u/Gaech)\
**Replies:** 4\
**Last updated:** [September 25, 2006, 1:26pm UTC](https://www.ruby-forum.com/t/how-can-i-fix-this/69885 "2006-09-25T13:26:02Z")

</div>

I\`m just install Ruby 1.8.5 C:\\rubyclr\\Samples\\GoogleCalc\>calc.rb c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_re quire': no such file to load -- rubyclr (LoadError) from c:/ruby/lib/r…

---

## [Yahoo promotes Flash, Ruby mashups](https://www.ruby-forum.com/t/yahoo-promotes-flash-ruby-mashups/69894)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 0\
**Last updated:** [September 25, 2006, 10:15am UTC](https://www.ruby-forum.com/t/yahoo-promotes-flash-ruby-mashups/69894 "2006-09-25T10:15:39Z")

</div>

Yahoo announced on Thursday the addition of the Flash Developer Center and Ruby Developer Center to its Yahoo Developer Network (http://developer.yahoo.com). Each center contains how-to articles, downloadable componen…

---

## [Make Ruby on Rails easy with RadRails and Eclipse](https://www.ruby-forum.com/t/make-ruby-on-rails-easy-with-radrails-and-eclipse/69887)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 0\
**Last updated:** [September 25, 2006, 10:05am UTC](https://www.ruby-forum.com/t/make-ruby-on-rails-easy-with-radrails-and-eclipse/69887 "2006-09-25T10:05:38Z")

</div>

RadRails is the Eclipse-based IDE for Ruby on Rails. Learn about installing RadRails, the structure and use of the application window, and the primary steps in developing an application. http://www-128.ibm.com/develop…

---

## [Problem in new.rhtml file](https://www.ruby-forum.com/t/problem-in-new-rhtml-file/69878)

<div class="topic-metadata">

**Author:** [@Andrea\_Raimondi](https://www.ruby-forum.com/u/Andrea_Raimondi)\
**Replies:** 1\
**Last updated:** [September 25, 2006, 8:43am UTC](https://www.ruby-forum.com/t/problem-in-new-rhtml-file/69878 "2006-09-25T08:43:32Z")

</div>

Hello, My database is MySQL5 and has this structure: NAME: gigolo\_development TABLES Gigolos( id,name,description,photo ) Services( id, name, description, quote ) Service\_Gigolos( id, service\_id, gigolo\_id ) I’m try…

---

## [Duck origins Code to S-Exp (#95)\]](https://www.ruby-forum.com/t/duck-origins-code-to-s-exp-95/69865)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [September 25, 2006, 5:29am UTC](https://www.ruby-forum.com/t/duck-origins-code-to-s-exp-95/69865 "2006-09-25T05:29:16Z")

</div>

On Sep 24, 2006, at 5:43 PM, fprimus wrote: Hal F. wrote: The first time I heard the phrase was in 1980 or '81 when my friend Jamie used it to me. I think that was long after Dirksen’s time, but I’m not much on his…

---

## [Global error handling in rails](https://www.ruby-forum.com/t/global-error-handling-in-rails/69857)

<div class="topic-metadata">

**Author:** [@Michael\_PSSoulier](https://www.ruby-forum.com/u/Michael_PSSoulier)\
**Replies:** 0\
**Last updated:** [September 25, 2006, 2:56am UTC](https://www.ruby-forum.com/t/global-error-handling-in-rails/69857 "2006-09-25T02:56:56Z")

</div>

Hey people, I’m having a problem implementing global error handling in Rails. I using the Rails bible\*, and on page 464 it has some code for implementing email notification of such errors via the rescue\_action\_in\_pub…

---

## [ParseTree 1.5.0 Released](https://www.ruby-forum.com/t/parsetree-1-5-0-released/69837)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [September 25, 2006, 2:26am UTC](https://www.ruby-forum.com/t/parsetree-1-5-0-released/69837 "2006-09-25T02:26:54Z")

</div>

ParseTree version 1.5.0 has been released! http://rubyforge.org/projects/parsetree/ zenspider projects | software projects | by ryan davis \*\* DESCRIPTION: ParseTree is a C extension (using RubyInline) that extracts t…

---

## [Looking for Webric example code](https://www.ruby-forum.com/t/looking-for-webric-example-code/69747)

<div class="topic-metadata">

**Author:** [@dokondr](https://www.ruby-forum.com/u/dokondr)\
**Replies:** 8\
**Last updated:** [September 25, 2006, 1:54am UTC](https://www.ruby-forum.com/t/looking-for-webric-example-code/69747 "2006-09-25T01:54:53Z")

</div>

I need examples of writing Webric code handling GET and POST requests. Thanks! Dima

---

## [Importing from YAML](https://www.ruby-forum.com/t/importing-from-yaml/69829)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 6\
**Last updated:** [September 25, 2006, 1:30am UTC](https://www.ruby-forum.com/t/importing-from-yaml/69829 "2006-09-25T01:30:15Z")

</div>

I’ve learned that a very quick and easy way to save a Ruby object to a file is to use YAML e.g. def saveMyObject File.open(self.fileName,"a+") { |f| f.write(self.to\_yaml) f.close } end However, the article which…

---

## [How do I create an attribute accessor to do this](https://www.ruby-forum.com/t/how-do-i-create-an-attribute-accessor-to-do-this/69842)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 5\
**Last updated:** [September 25, 2006, 1:06am UTC](https://www.ruby-forum.com/t/how-do-i-create-an-attribute-accessor-to-do-this/69842 "2006-09-25T01:06:51Z")

</div>

I want to be able to do this to merge a hash into attribute bas on instance bar in class foo; bar = Foo.new bar.bas \<\< { :this =\> “that” } Is there any way to define the accessor in Foo to be able to do this? Thanks…

---

## [Slave-0.2.0](https://www.ruby-forum.com/t/slave-0-2-0/69769)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [September 24, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/slave-0-2-0/69769 "2006-09-24T23:40:42Z")

</div>

SYNOPSIS the Slave class forks a process and starts a drb server in the child using any object as the server. the process is detached so it is not required (nor possible) to wait on the child pid. a Heartbeat is s…

---

## [Ruby IPC: messaging, blackboard, etc.?](https://www.ruby-forum.com/t/ruby-ipc-messaging-blackboard-etc/69816)

<div class="topic-metadata">

**Author:** [@dokondr](https://www.ruby-forum.com/u/dokondr)\
**Replies:** 4\
**Last updated:** [September 24, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/ruby-ipc-messaging-blackboard-etc/69816 "2006-09-24T23:10:47Z")

</div>

I am looking for Ruby crossplatform local and network IPC: messaging, blackboard, etc. It would be great to find a survey of existing projects in this area. Things I am most interested in: Distributed blackboard or …

---

## [Adding a new method to a class](https://www.ruby-forum.com/t/adding-a-new-method-to-a-class/69835)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 4\
**Last updated:** [September 24, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/adding-a-new-method-to-a-class/69835 "2006-09-24T22:40:38Z")

</div>

Hi, What is called the process of adding a new method of an already defined class ? For example: class A def a end end And in another file: class A def b end end And now my real question: What if I want to …

---

## [Help w/ Codegolf Total Triangles- reading input](https://www.ruby-forum.com/t/help-w-codegolf-total-triangles-reading-input/69808)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 11\
**Last updated:** [September 24, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/help-w-codegolf-total-triangles-reading-input/69808 "2006-09-24T22:30:34Z")

</div>

Hello all - I’m getting quite frustrated with a very “easy” part of this problem…reading the input! Basically, the input is given as so: 1 1 2 1 3 2 1 4 2 1 What I intend to do is read the input line by line, spli…

---

## [Unique data](https://www.ruby-forum.com/t/unique-data/69821)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 3\
**Last updated:** [September 24, 2006, 9:36pm UTC](https://www.ruby-forum.com/t/unique-data/69821 "2006-09-24T21:36:27Z")

</div>

Hi, I’d like to use the gem “rubytree” to store some data in a tree. But this requires a unique name for each node. Does anybody has some advice, how to generate such a unique id? Could be a random, but unique number…

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/69809)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 24, 2006, 7:38pm UTC](https://www.ruby-forum.com/t/nomethoderror/69809 "2006-09-24T19:38:13Z")

</div>

I am trying to validate the uniqueness of a field: class Department \< ActiveRecord::Base belongs\_to :company belongs\_to :region has\_many :employees validates\_presence\_of :dept\_name end When I run it, I get this er…

---

## [Use of array shift and blocks](https://www.ruby-forum.com/t/use-of-array-shift-and-blocks/69827)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 4\
**Last updated:** [September 24, 2006, 7:04pm UTC](https://www.ruby-forum.com/t/use-of-array-shift-and-blocks/69827 "2006-09-24T19:04:10Z")

</div>

(Something a bit more basic than the other thread about the array shfit bug!) Given the following: myArray=\[“a”, “b”, “c”, “d”\] until myArray.empty? myArray.shift { |letter| puts letter } end … I would expect th…

---

## [Ferret 0.10.7 released](https://www.ruby-forum.com/t/ferret-0-10-7-released/69806)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [September 24, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/ferret-0-10-7-released/69806 "2006-09-24T17:23:57Z")

</div>

Hey folks, \*\* Description \*\* Firstly for those who don’t know, Ferret is a full-text search library which makes adding search to your application a breeze. It’s much faster than MySQL full-text search as well most ot…

---

## [RunTimeError from SOAP::WSDLDriverFactory(...).create\_rpc\_dr](https://www.ruby-forum.com/t/runtimeerror-from-soap-wsdldriverfactory-create-rpc-dr/69438)

<div class="topic-metadata">

**Author:** [@Rene\_Perrier](https://www.ruby-forum.com/u/Rene_Perrier)\
**Replies:** 1\
**Last updated:** [September 24, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/runtimeerror-from-soap-wsdldriverfactory-create-rpc-dr/69438 "2006-09-24T16:35:54Z")

</div>

Hi, I’m trying to build a SOAP client using a wsdl and I get an error message saying that a part cannot be resolved. The message is the same as the one I found in the archive (http://blade.nagaokaut.ac.jp/cgi-bin/sca…

---

## [Problem with generated soap requests using the WSDLDriverFac](https://www.ruby-forum.com/t/problem-with-generated-soap-requests-using-the-wsdldriverfac/68733)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 3\
**Last updated:** [September 24, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/problem-with-generated-soap-requests-using-the-wsdldriverfac/68733 "2006-09-24T16:31:54Z")

</div>

When using the SOAP::WSDLDriverFactory to talk to webservices the form tag of some elements is not honored. If you look at the wsdl below you will see that the schemas 'elementFormDefault="qualified"' but the complexType…

---

## [XP: "An existing connection was forcibly closed" ECONNRESET](https://www.ruby-forum.com/t/xp-an-existing-connection-was-forcibly-closed-econnreset/69688)

<div class="topic-metadata">

**Author:** [@dokondr](https://www.ruby-forum.com/u/dokondr)\
**Replies:** 4\
**Last updated:** [September 24, 2006, 11:51am UTC](https://www.ruby-forum.com/t/xp-an-existing-connection-was-forcibly-closed-econnreset/69688 "2006-09-24T11:51:09Z")

</div>

Hello, I am running Ruby 1-185-21 on Win XP without any proxy enabled. When trying to connect to HTTP server (both server and client are my Ruby scripts) at localhost I get this error: " c:/usr/ruby/lib/ruby/1.8/net…

---

## [Creating a reference to a ruby variable in a C extension](https://www.ruby-forum.com/t/creating-a-reference-to-a-ruby-variable-in-a-c-extension/69389)

<div class="topic-metadata">

**Author:** [@chrsan](https://www.ruby-forum.com/u/chrsan)\
**Replies:** 12\
**Last updated:** [September 24, 2006, 11:24am UTC](https://www.ruby-forum.com/t/creating-a-reference-to-a-ruby-variable-in-a-c-extension/69389 "2006-09-24T11:24:47Z")

</div>

Hi! I’m just making my first C extension and have a question about creating a reference to a ruby variable, that’s passed as a method parameter to my C equivalent of initialize. I need this variable to be available a…

---

## [Receive timeout on socket](https://www.ruby-forum.com/t/receive-timeout-on-socket/69800)

<div class="topic-metadata">

**Author:** [@Michael\_PSSoulier](https://www.ruby-forum.com/u/Michael_PSSoulier)\
**Replies:** 0\
**Last updated:** [September 24, 2006, 5:02am UTC](https://www.ruby-forum.com/t/receive-timeout-on-socket/69800 "2006-09-24T05:02:40Z")

</div>

Hello, How do I set a receive timeout on a UDPSocket? I’d like to timeout after 5 seconds. I tried this sock.setsockopt(Socket::SOL\_SOCKET, Socket::SO\_RCVTIMEO, SockTimeout) but I got an error. ./bin/…/lib/net/tftp…

---

## [WWW::Mechanize 0.6.1 (Chuck) released](https://www.ruby-forum.com/t/www-mechanize-0-6-1-chuck-released/69799)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [September 24, 2006, 5:00am UTC](https://www.ruby-forum.com/t/www-mechanize-0-6-1-chuck-released/69799 "2006-09-24T05:00:39Z")

</div>

== DESCRIPTION: The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be popu…

---

## [A idea about Ruby module, can we degrade a class to a module](https://www.ruby-forum.com/t/a-idea-about-ruby-module-can-we-degrade-a-class-to-a-module/69011)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 9\
**Last updated:** [September 24, 2006, 4:46am UTC](https://www.ruby-forum.com/t/a-idea-about-ruby-module-can-we-degrade-a-class-to-a-module/69011 "2006-09-24T04:46:39Z")

</div>

To naturally represent following kind of relationship in Ruby code, I think, if we can degrade a class to a module, it will be posssible. For example, we have a Person class, a Man class ,and a Teacher class. Man inhe…

---

## [Setup.rb copies .bat files to linux system](https://www.ruby-forum.com/t/setup-rb-copies-bat-files-to-linux-system/69783)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [September 24, 2006, 3:48am UTC](https://www.ruby-forum.com/t/setup-rb-copies-bat-files-to-linux-system/69783 "2006-09-24T03:48:36Z")

</div>

I created .bat files for windows, and I assume they should be in the conventional bin/ directory. But setup.rb copies .bat files to my linux system. Should setup.rb be made to aviod this, or is there already an approp…

---

## [Hoe 1.0 released](https://www.ruby-forum.com/t/hoe-1-0-released/69343)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 20\
**Last updated:** [September 24, 2006, 3:22am UTC](https://www.ruby-forum.com/t/hoe-1-0-released/69343 "2006-09-24T03:22:34Z")

</div>

Farmer Ted came to me the other day with a problem. He has about 10 different packages he wants to work on and periodically release, but sometimes it seems to him that maintaining a threshing machine is easier than it…

---

## [(s) Ruby 185 incompatibility/issues with openssl](https://www.ruby-forum.com/t/s-ruby-185-incompatibility-issues-with-openssl/69768)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 24, 2006, 12:52am UTC](https://www.ruby-forum.com/t/s-ruby-185-incompatibility-issues-with-openssl/69768 "2006-09-24T00:52:17Z")

</div>

hi, i’d originally posted this @: http://trac.macosforge.org/projects/macports/ticket/4103 on review, it’s not clear 2 me if/how that project’s fixes get back into main trunk dev. soooo, reposting here. as of 23 Se…

---

## [New Ruby Site Launches; Gives Ruby Inside Thumbs Up](https://www.ruby-forum.com/t/new-ruby-site-launches-gives-ruby-inside-thumbs-up/69761)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 1\
**Last updated:** [September 24, 2006, 12:36am UTC](https://www.ruby-forum.com/t/new-ruby-site-launches-gives-ruby-inside-thumbs-up/69761 "2006-09-24T00:36:14Z")

</div>

Via Peter C. on RubyInside.com. Its the 2nd post on this page: Vasudev Ram

---

## [Objectives for Ruby Reports and other news](https://www.ruby-forum.com/t/objectives-for-ruby-reports-and-other-news/69767)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [September 24, 2006, 12:34am UTC](https://www.ruby-forum.com/t/objectives-for-ruby-reports-and-other-news/69767 "2006-09-24T00:34:10Z")

</div>

Hey folks, Just two little bits of news about Ruport for those who are interested and not yet on our mailing list. Our RubyTalk announcements will be more sparse. Since we now do fairly regular bug-fix and maintaine…

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

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