# Ruby

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

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

---

## [Referencing a CLR List in IronRuby](https://www.ruby-forum.com/t/referencing-a-clr-list-in-ironruby/116985)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 5\
**Last updated:** [October 12, 2007, 12:02am UTC](https://www.ruby-forum.com/t/referencing-a-clr-list-in-ironruby/116985 "2007-10-12T00:02:44Z")

</div>

I can’t figure out how to get items out of any of the CLR List types in IronRuby. Here’s a contrived example: require ‘mscorlib’ =\> true foo = System::Collections::ArrayList.new() =\> #ArrayList:0x0000056 …

---

## [Graticule error?](https://www.ruby-forum.com/t/graticule-error/116984)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/graticule-error/116984 "2007-10-11T21:31:54Z")

</div>

I’ve been wanting to just play around with graticule but i cant seem to get it to work properly. require ‘rubygems’ require ‘graticule’ module Graticule geocoder = Graticule.service(:google).new “api\_key” grid = ge…

---

## [WSDL says "cannot find type {}sayHi" - what does this mean?](https://www.ruby-forum.com/t/wsdl-says-cannot-find-type-sayhi-what-does-this-mean/116969)

<div class="topic-metadata">

**Author:** [@tkurosaka](https://www.ruby-forum.com/u/tkurosaka)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/wsdl-says-cannot-find-type-sayhi-what-does-this-mean/116969 "2007-10-11T19:34:16Z")

</div>

Hi, I’m new to Ruby (just finished Hello World) and also fairly new to SOAP. I have a Java service written using CXF. I ran these lines with the WSDL generated by CXF: require ‘soap/wsdlDriver’ WSDL\_URI = ‘http://xp…

---

## [Question DRb class definition share or not share](https://www.ruby-forum.com/t/question-drb-class-definition-share-or-not-share/116959)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 2\
**Last updated:** [October 11, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/question-drb-class-definition-share-or-not-share/116959 "2007-10-11T19:32:30Z")

</div>

Just go through ruby cookbook & only tutorial for any DRb stuff. But I need help explain below example that I don’t understand why DRbUndump is not needed. On some of the samples, I see class definition is defined in …

---

## [Using strings to drill down into objects](https://www.ruby-forum.com/t/using-strings-to-drill-down-into-objects/116921)

<div class="topic-metadata">

**Author:** [@Ross\_X\_Dawson](https://www.ruby-forum.com/u/Ross_X_Dawson)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/using-strings-to-drill-down-into-objects/116921 "2007-10-11T19:02:33Z")

</div>

Folks, I’m writing a reporting application where I’m passing in an array of method calls to populate a table e.g. # lambda function to drill down object hierarchy drill\_down = lambda do |obj, method\_name| …

---

## [Including net in import statements](https://www.ruby-forum.com/t/including-net-in-import-statements/116943)

<div class="topic-metadata">

**Author:** [@rjst](https://www.ruby-forum.com/u/rjst)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/including-net-in-import-statements/116943 "2007-10-11T18:09:40Z")

</div>

Hi, Shouldn't "net" be included in the list of top level package names that import can use ? import net.sf.XPTO fails thanks, Ricardo To unsubscribe from this list please visit: http://xircles.codehaus.org/manage…

---

## [Dynamically create hash](https://www.ruby-forum.com/t/dynamically-create-hash/116937)

<div class="topic-metadata">

**Author:** [@mawi](https://www.ruby-forum.com/u/mawi)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/dynamically-create-hash/116937 "2007-10-11T18:00:50Z")

</div>

Hi, i would like to dynamically create hashes, so that I can create them by looping over the names. Something like: for i in 1…10 “hash#{i}” = Hash.new “hash#{i}” = \[:key =\> “val”\] end So the hashes created would…

---

## [What does print call internally?](https://www.ruby-forum.com/t/what-does-print-call-internally/116905)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 13\
**Last updated:** [October 11, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/what-does-print-call-internally/116905 "2007-10-11T17:13:15Z")

</div>

irb(main):001:0\> puts nil nil =\> nil irb(main):002:0\> print nil nil=\> nil irb(main):003:0\> class NilClass irb(main):004:1\> def inspect irb(main):005:2\> “foo” irb(main):006:2\> end irb(main):007:1\> end =\> foo ir…

---

## [Collaborative filtering](https://www.ruby-forum.com/t/collaborative-filtering/116952)

<div class="topic-metadata">

**Author:** [@n1c](https://www.ruby-forum.com/u/n1c)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/collaborative-filtering/116952 "2007-10-11T16:36:57Z")

</div>

Anyone implemented collaborative filtering with Ruby? Only solutions I’ve found are Java, Python, etc. Would be very nice if we didn’t have to reverse engineer one of those. In fact I don’t have the time to do that, s…

---

## [Active dutch spoken usergroup](https://www.ruby-forum.com/t/active-dutch-spoken-usergroup/116950)

<div class="topic-metadata">

**Author:** [@wimpunk](https://www.ruby-forum.com/u/wimpunk)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/active-dutch-spoken-usergroup/116950 "2007-10-11T15:35:44Z")

</div>

Hi, I was wondering if there’s any Dutch spoken ruby user group. I found a few groups but mostly there hasn’t been much activity lately. Kind regards, wimpunk.

---

## [XMLsimple & probem](https://www.ruby-forum.com/t/xmlsimple-probem/116929)

<div class="topic-metadata">

**Author:** [@envex](https://www.ruby-forum.com/u/envex)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/xmlsimple-probem/116929 "2007-10-11T14:55:25Z")

</div>

Hello, I have problem using XMLsimple.xml\_in with ‘&’ character : & Illegal character ‘&’ in raw string “&” The problem is solved when I replace ‘&’ by ‘&amp’ but when I this ###############################…

---

## [Itinerary for a Traveling Salesman (#142)](https://www.ruby-forum.com/t/itinerary-for-a-traveling-salesman-142/229146)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 2:12pm UTC](https://www.ruby-forum.com/t/itinerary-for-a-traveling-salesman-142/229146 "2007-10-11T14:12:55Z")

</div>

This time, we tried to put the focus on how you solved the quiz, instead of the solution itself. A great aspect of genetic algorithms is that you really don’t need to know much about the problem domain in order to f…

---

## [How to install/configure Mysql in windows](https://www.ruby-forum.com/t/how-to-install-configure-mysql-in-windows/116916)

<div class="topic-metadata">

**Author:** [@Andres\_MSHidalgo](https://www.ruby-forum.com/u/Andres_MSHidalgo)\
**Replies:** 2\
**Last updated:** [October 11, 2007, 10:27am UTC](https://www.ruby-forum.com/t/how-to-install-configure-mysql-in-windows/116916 "2007-10-11T10:27:17Z")

</div>

What is the process to download/install/configure mysql in windows? Thanks Andres

---

## [Reading values from an excel spreadsheet](https://www.ruby-forum.com/t/reading-values-from-an-excel-spreadsheet/116910)

<div class="topic-metadata">

**Author:** [@krishnakishore](https://www.ruby-forum.com/u/krishnakishore)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 5:32am UTC](https://www.ruby-forum.com/t/reading-values-from-an-excel-spreadsheet/116910 "2007-10-11T05:32:07Z")

</div>

does anybody know how to open a spreadsheet and read the values in the cells and store them into an array using ruby?

---

## [|how do you know when to put a variable between pipes?|](https://www.ruby-forum.com/t/how-do-you-know-when-to-put-a-variable-between-pipes/116914)

<div class="topic-metadata">

**Author:** [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Replies:** 5\
**Last updated:** [October 11, 2007, 4:54am UTC](https://www.ruby-forum.com/t/how-do-you-know-when-to-put-a-variable-between-pipes/116914 "2007-10-11T04:54:19Z")

</div>

Hi i am at about page fifty in the pickaxe book, and i have a question. I see a lot of examples of a block that starts with | SomeVar| and I dont really understand how you know when you can do this or what the value …

---

## [Object to class](https://www.ruby-forum.com/t/object-to-class/116836)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 10\
**Last updated:** [October 11, 2007, 4:10am UTC](https://www.ruby-forum.com/t/object-to-class/116836 "2007-10-11T04:10:54Z")

</div>

is it possible to convert from a ruby object to Ruby class… any idea…

---

## [Ruby and RoR book recommendations](https://www.ruby-forum.com/t/ruby-and-ror-book-recommendations/116706)

<div class="topic-metadata">

**Author:** [@Michael\_Schidlowsky](https://www.ruby-forum.com/u/Michael_Schidlowsky)\
**Replies:** 9\
**Last updated:** [October 11, 2007, 1:10am UTC](https://www.ruby-forum.com/t/ruby-and-ror-book-recommendations/116706 "2007-10-11T01:10:24Z")

</div>

Hello all, What books would you recommend for a course on Ruby and Ruby on Rails? I am currently evaluating books for a course I’m teaching next semester and am trying to get a good sample before I make any decisions…

---

## [Attributes-4.0.0](https://www.ruby-forum.com/t/attributes-4-0-0/116898)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/attributes-4-0-0/116898 "2007-10-10T23:41:16Z")

</div>

NAME attributes.rb INSTALL gem install attributes URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby SYNOPSIS attributes.rb provides a set of attr\_\* like method with several user …

---

## [Reading files](https://www.ruby-forum.com/t/reading-files/116821)

<div class="topic-metadata">

**Author:** [@smc\_smc](https://www.ruby-forum.com/u/smc_smc)\
**Replies:** 5\
**Last updated:** [October 10, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/reading-files/116821 "2007-10-10T23:31:53Z")

</div>

this is just a very basic example but how would you make it so that a user may put their name (or some other info) into a file and then the program reads it and sets it as a variable? so like: def say\_hi(who) resul…

---

## [YAML to Struct](https://www.ruby-forum.com/t/yaml-to-struct/116820)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 5\
**Last updated:** [October 10, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/yaml-to-struct/116820 "2007-10-10T22:01:23Z")

</div>

Is it possible to take YAML and turn it into a Struct? I want to take something that looks like this: key\_1: Value 1 key\_2: Value 2 And turn it into an object with accessors…and I’m assuming a Struct would be my be…

---

## [YAML file problem](https://www.ruby-forum.com/t/yaml-file-problem/116879)

<div class="topic-metadata">

**Author:** [@jiorry](https://www.ruby-forum.com/u/jiorry)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/yaml-file-problem/116879 "2007-10-10T21:49:51Z")

</div>

I hava a yaml file as application config file. I use YAML::Store to reset yaml key value, but it is not work. please help me! y = YAML::Store.new( “#{RAILS\_ROOT}/config\_app/config.yml”, :Indent =\> 2 ) y.transaction d…

---

## [Need help for my Presentation on ROR](https://www.ruby-forum.com/t/need-help-for-my-presentation-on-ror/116873)

<div class="topic-metadata">

**Author:** [@indraneel](https://www.ruby-forum.com/u/indraneel)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/need-help-for-my-presentation-on-ror/116873 "2007-10-10T21:43:29Z")

</div>

Hi, I need some documents, white papers etc for my presentation in my organization(My organization got Ruby fever!).My topic is lengthy one. Ruby on Rails ability to build small ,medium and large scale web/stand a…

---

## [RubyForge migration hiccups](https://www.ruby-forum.com/t/rubyforge-migration-hiccups/116876)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/rubyforge-migration-hiccups/116876 "2007-10-10T21:27:33Z")

</div>

Hi all - If you’re having trouble committing to a RubyForge svn/cvs repo this morning, it may be because the DNS change may not have propagated everywhere yet, and I renamed the repo directories on the old machine to…

---

## [Retain VALUE from C extension](https://www.ruby-forum.com/t/retain-value-from-c-extension/116871)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/retain-value-from-c-extension/116871 "2007-10-10T21:02:51Z")

</div>

How do I tell ruby to increment it’s garbage collector if I want to keep hold of a VALUE in a C extension. example: VALUE message; static VALUE store\_message(VALUE self, VALUE msg) { // tell ruby to retain… // rb\_r…

---

## [The Open-Closed-from-a-certain-angle Principle](https://www.ruby-forum.com/t/the-open-closed-from-a-certain-angle-principle/116735)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 16\
**Last updated:** [October 10, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/the-open-closed-from-a-certain-angle-principle/116735 "2007-10-10T20:21:41Z")

</div>

Let me start off by saying that I’m SURE this is either a bad idea, impossible to implement, or both. I just can’t enumerate the reasons why, and I thought this would be a good group to shoot it down. Since it’s so …

---

## [Using define\_method isn't the same as defining a method](https://www.ruby-forum.com/t/using-define-method-isnt-the-same-as-defining-a-method/116766)

<div class="topic-metadata">

**Author:** [@Yossef\_M](https://www.ruby-forum.com/u/Yossef_M)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/using-define-method-isnt-the-same-as-defining-a-method/116766 "2007-10-10T19:41:05Z")

</div>

I apologize if this has been brought up before. A cursory search through the archives didn’t come up with anything that addressed this same subject. I know that creating a Proc (at least a lambda-style Proc) will do …

---

## [Re: Inter-Process Messaging](https://www.ruby-forum.com/t/re-inter-process-messaging/116872)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/re-inter-process-messaging/116872 "2007-10-10T17:31:58Z")

</div>

polling to check if a message is waiting in the shared memory? Check http://sysvipc.rubyforge.org/ It offers support for IPC message queues (and also shared memory and semaphores if needed). No need for polling. Yo…

---

## [Meta variable substitution](https://www.ruby-forum.com/t/meta-variable-substitution/116870)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/meta-variable-substitution/116870 "2007-10-10T17:14:57Z")

</div>

Hi, I’m creating a meta script that can generate both a shell script and a Makefile. I want the script to be human readable, so I don’t want to substitute all the variables, so $(top\_srcdir) = “/my/obsenely/huge/dire…

---

## [Simple socket server not working?](https://www.ruby-forum.com/t/simple-socket-server-not-working/116835)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 7\
**Last updated:** [October 10, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/simple-socket-server-not-working/116835 "2007-10-10T16:41:28Z")

</div>

Any idea why this code… require ‘socket’ server = TCPServer.new(‘127.0.0.1’, 5056) socket = server.accept socket.puts(‘it works’) socket.flush doesn’t work on my Unix server? If I run it in the background, I can …

---

## [Ruby and (digitalmars) D in combination via RubyInline?](https://www.ruby-forum.com/t/ruby-and-digitalmars-d-in-combination-via-rubyinline/116704)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/ruby-and-digitalmars-d-in-combination-via-rubyinline/116704 "2007-10-10T15:14:51Z")

</div>

Hi, has anybody tried to embed some D \[1\] code in Ruby via RubyInline \[2\]? Or other approaches to combine D and Ruby? As RubyInline supports compiler plugins, this might be possible to do. And it might be a little bi…

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

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