# Ruby

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

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

---

## [Using Amazon's WSDL services](https://www.ruby-forum.com/t/using-amazons-wsdl-services/49075)

<div class="topic-metadata">

**Author:** [@minter](https://www.ruby-forum.com/u/minter)\
**Replies:** 4\
**Last updated:** [February 4, 2006, 10:37am UTC](https://www.ruby-forum.com/t/using-amazons-wsdl-services/49075 "2006-02-04T10:37:07Z")

</div>

I’m trying to create a simple test script to hit Amazon’s web services via their WSDL listing (specifically the Wishlist Lookup). I’m going on the examples in the Pickaxe. Here’s my sample script: #!/usr/bin/env r…

---

## [Proposal For New Ruby Mailing List Subjects](https://www.ruby-forum.com/t/proposal-for-new-ruby-mailing-list-subjects/100850)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 6\
**Last updated:** [February 4, 2006, 9:51am UTC](https://www.ruby-forum.com/t/proposal-for-new-ruby-mailing-list-subjects/100850 "2006-02-04T09:51:46Z")

</div>

Hey, I’ve been watching some of the perma-threads on ruby-talk and I really think we need to establish some new mailing lists to handle the various constant subjects that come up. I’m sure this list is nowhere near …

---

## [Re: Editor on Mac OS X](https://www.ruby-forum.com/t/re-editor-on-mac-os-x/100890)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [February 4, 2006, 4:52am UTC](https://www.ruby-forum.com/t/re-editor-on-mac-os-x/100890 "2006-02-04T04:52:52Z")

</div>

I will certainly do it, however a little bit later (hopefully over weekends or early on Monday). I found vim configuration references (including folding) on Ruby Garden Wiki and tailored it in my .vimrc file. It works…

---

## [Re: Editor on Mac OS X](https://www.ruby-forum.com/t/re-editor-on-mac-os-x/100844)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [February 4, 2006, 4:35am UTC](https://www.ruby-forum.com/t/re-editor-on-mac-os-x/100844 "2006-02-04T04:35:43Z")

</div>

gvim works great on Mac. It has decent support for ruby, I love class/method folding, helps a lot. Gennady.

---

## [What happened to :SortKeys option to #to\_yaml?](https://www.ruby-forum.com/t/what-happened-to-sortkeys-option-to-to-yaml/53396)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 3\
**Last updated:** [February 3, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/what-happened-to-sortkeys-option-to-to-yaml/53396 "2006-02-03T23:21:45Z")

</div>

I think this used to produce sorted output in 1.8.2: irb(main):002:0\> h = {} =\> {} irb(main):003:0\> 10.times {|i| h\[i\] = i} =\> 10 irb(main):004:0\> puts h.to\_yaml(:SortKeys =\> true) 5: 5 0: 0 6: 6 1: 1 7: 7 2: 2 …

---

## [Regexp question for doing "and" searches](https://www.ruby-forum.com/t/regexp-question-for-doing-and-searches/100809)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 4\
**Last updated:** [February 3, 2006, 11:18pm UTC](https://www.ruby-forum.com/t/regexp-question-for-doing-and-searches/100809 "2006-02-03T23:18:43Z")

</div>

Just can’t quite figure this one out. Given a search phrase like “one two three”, I want to search a list of text strings for onex that contain ALL of those words, but not necessarily in that order. The hard part for…

---

## [Parsing Ruby with Ruby](https://www.ruby-forum.com/t/parsing-ruby-with-ruby/100294)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 6\
**Last updated:** [February 3, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/parsing-ruby-with-ruby/100294 "2006-02-03T22:54:20Z")

</div>

Guys, I’d like to write a code analysis tool that could read Ruby or Rails projects (so both standard .rb files and also erb files) and do some simple code analysis and metrics, like what methods are called (and how …

---

## [ANN: WSS4R was released](https://www.ruby-forum.com/t/ann-wss4r-was-released/99767)

<div class="topic-metadata">

**Author:** [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Replies:** 20\
**Last updated:** [February 3, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/ann-wss4r-was-released/99767 "2006-02-03T21:28:17Z")

</div>

Hi everyone, I released WSS4R: http://www.rubyforge.org/projects/wss4r. WSS4R is a subset of a web service security standards implementation. It’s based on soap4r and tested with Microsoft .NET WSE 2.0 and Sun Java…

---

## [DocDiff 0.3.3](https://www.ruby-forum.com/t/docdiff-0-3-3/100772)

<div class="topic-metadata">

**Author:** [@Hisashi\_MORITA](https://www.ruby-forum.com/u/Hisashi_MORITA)\
**Replies:** 0\
**Last updated:** [February 3, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/docdiff-0-3-3/100772 "2006-02-03T21:15:58Z")

</div>

DocDiff 0.3.3 DocDiff 0.3.3 was released in 2006-02-03 JST. This is basically a maintainance release. Summary DocDiff compares two files and shows the difference. It can compare files word by word, char by char, or…

---

## [Golfing (was Re: Chomping and stomping)](https://www.ruby-forum.com/t/golfing-was-re-chomping-and-stomping/100473)

<div class="topic-metadata">

**Author:** [@lukfugl](https://www.ruby-forum.com/u/lukfugl)\
**Replies:** 9\
**Last updated:** [February 3, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/golfing-was-re-chomping-and-stomping/100473 "2006-02-03T21:15:57Z")

</div>

On 2/2/06, William J. removed\_email\_address@domain.invalid wrote: code before they post are always willing to indulge in that pastime. Let me clarify. I don’t mind you golfing on the list/newsgroup. I don’t mind yo…

---

## [Re: Indentation vs. "end"s](https://www.ruby-forum.com/t/re-indentation-vs-end-s/100641)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 2\
**Last updated:** [February 3, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/re-indentation-vs-end-s/100641 "2006-02-03T21:15:56Z")

</div>

if (cond) {meth this; func that} #(2) how about: (puts ‘this’; puts ‘that’) if true cheers Simon

---

## [YAML::quick\_emit api change](https://www.ruby-forum.com/t/yaml-quick-emit-api-change/100683)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [February 3, 2006, 8:48pm UTC](https://www.ruby-forum.com/t/yaml-quick-emit-api-change/100683 "2006-02-03T20:48:15Z")

</div>

i had a method like this in my OrderedHash class def yaml\_inline= bool unless defined? @\_\_yaml\_inline\_meth @\_\_yaml\_inline\_meth = lambda {|opts| YAML::quick\_emit(id, opts) {|emitter| e…

---

## [Two ActiveLDAP questions](https://www.ruby-forum.com/t/two-activeldap-questions/100696)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 3, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/two-activeldap-questions/100696 "2006-02-03T18:55:38Z")

</div>

Two questions about ActiveLDAP: Question #1: When I create an ActiveLDAP::Base object, the dn attribute used in the mapping does not get an accessor method. For example: #!/usr/local/bin/ruby require ‘activeldap’ …

---

## [Memoize to a file](https://www.ruby-forum.com/t/memoize-to-a-file/53309)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 13\
**Last updated:** [February 3, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/memoize-to-a-file/53309 "2006-02-03T18:46:32Z")

</div>

Hello all, Using Memoize gem 1.2.0, memoizing TO a file appears to be working for me but subsequently reading that file (say, by rerunning the same script) appears NOT to be working (the fib(n) calls are being run a…

---

## [Hie Rubyists!](https://www.ruby-forum.com/t/hie-rubyists/100643)

<div class="topic-metadata">

**Author:** [@Shubhra](https://www.ruby-forum.com/u/Shubhra)\
**Replies:** 9\
**Last updated:** [February 3, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/hie-rubyists/100643 "2006-02-03T18:43:31Z")

</div>

Hello ppl! Its great to c all of u rolling here… I hv just joined in and obv wanted a lil help… I hv done quite a bit with Ruby and now moving to RoR… Can any of u provide me with a good tutorial or an ebook for Ruby…

---

## [Allow additional parameters to Enumerable#inject](https://www.ruby-forum.com/t/allow-additional-parameters-to-enumerable-inject/53389)

<div class="topic-metadata">

**Author:** [@Levin\_A](https://www.ruby-forum.com/u/Levin_A)\
**Replies:** 4\
**Last updated:** [February 3, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/allow-additional-parameters-to-enumerable-inject/53389 "2006-02-03T18:10:18Z")

</div>

Hi, I wanted to count consecutive elements in an array: \[1,1,1,2,2,2,2,3,4,4,4,4\].count\_streams #=\> \[3,4,1,4\] module Enumerable def count\_streams last\_seen = nil self.inject(\[\]) { |a, elem| if last\_seen == elem th…

---

## [Re: Port a Library (#64)](https://www.ruby-forum.com/t/re-port-a-library-64/100695)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 3, 2006, 5:00pm UTC](https://www.ruby-forum.com/t/re-port-a-library-64/100695 "2006-02-03T17:00:56Z")

</div>

\-----Original Message----- From: James Edward G. II \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, February 02, 2006 6:16 PM To: ruby-talk ML Subject: Re: \[SUMMARY\] Port a Library (#64) libraries …

---

## [Word Chains (#65)](https://www.ruby-forum.com/t/word-chains-65/100645)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 6\
**Last updated:** [February 3, 2006, 3:48pm UTC](https://www.ruby-forum.com/t/word-chains-65/100645 "2006-02-03T15:48:21Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Problem with regexp?](https://www.ruby-forum.com/t/problem-with-regexp/100644)

<div class="topic-metadata">

**Author:** [@Wmute](https://www.ruby-forum.com/u/Wmute)\
**Replies:** 3\
**Last updated:** [February 3, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/problem-with-regexp/100644 "2006-02-03T15:24:06Z")

</div>

Hello, I am trying to replace some old Perl scripts with Ruby, however i get stuck with this line if line =~/($time)/ && line =~/(xxx)/ \<\< $time is a global variable containing the current day/month, but it wont…

---

## [Nil or NameError](https://www.ruby-forum.com/t/nil-or-nameerror/100642)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 2\
**Last updated:** [February 3, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/nil-or-nameerror/100642 "2006-02-03T15:11:56Z")

</div>

Hello, (1…2).each { if 1 == 2 then a = 5 else puts a end } nil nil (1…2).each { if 1 == 2 then b = 5 else puts a end } NameError: undefined local variable or method \`a’ for main:Object from (irb):8 from (irb):8 O…

---

## [Displaying source code of an rhtml file](https://www.ruby-forum.com/t/displaying-source-code-of-an-rhtml-file/53386)

<div class="topic-metadata">

**Author:** [@dohmer](https://www.ruby-forum.com/u/dohmer)\
**Replies:** 2\
**Last updated:** [February 3, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/displaying-source-code-of-an-rhtml-file/53386 "2006-02-03T14:50:46Z")

</div>

Hi I’m creating some embedded ruby web pages under Linux and Apache 2.0 and after showing what it can do I like to display the source code. I was wondering if there is an easier way to do this than what I am doing at…

---

## [Meaningful RUBY\_VERSION#\<=\>](https://www.ruby-forum.com/t/meaningful-ruby-version/100470)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 3, 2006, 2:05pm UTC](https://www.ruby-forum.com/t/meaningful-ruby-version/100470 "2006-02-03T14:05:28Z")

</div>

i’m sure something much more elegant could be made, but this summarizes desired behaviour. harp:~ \> cat a.rb class RubyVersion \< ::String include Comparable def \<=\> other components \<=\> RubyVersion::new(other).com…

---

## [About rant on Dave Thomas site, titled 'imitation...'](https://www.ruby-forum.com/t/about-rant-on-dave-thomas-site-titled-imitation/53064)

<div class="topic-metadata">

**Author:** [@simonh](https://www.ruby-forum.com/u/simonh)\
**Replies:** 37\
**Last updated:** [February 3, 2006, 11:49am UTC](https://www.ruby-forum.com/t/about-rant-on-dave-thomas-site-titled-imitation/53064 "2006-02-03T11:49:55Z")

</div>

Couldn’t post a reply on Daves site so thought i’d post one here. Here is post: http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Random/Imitation.rdoc I think this is happening a lot. 37signals has been ripped off acco…

---

## [Seeking the Ruby way](https://www.ruby-forum.com/t/seeking-the-ruby-way/53376)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 9\
**Last updated:** [February 3, 2006, 11:25am UTC](https://www.ruby-forum.com/t/seeking-the-ruby-way/53376 "2006-02-03T11:25:47Z")

</div>

I’m just getting my feet wet with Ruby and would like some advice on how you “old-timers” would write the following script using Ruby idioms. The intent of the script is to parse a CSV file that contains 2 fields per …

---

## [SVG Plugin](https://www.ruby-forum.com/t/svg-plugin/100639)

<div class="topic-metadata">

**Author:** [@sapzz](https://www.ruby-forum.com/u/sapzz)\
**Replies:** 0\
**Last updated:** [February 3, 2006, 11:19am UTC](https://www.ruby-forum.com/t/svg-plugin/100639 "2006-02-03T11:19:39Z")

</div>

Hi, I want to Use Adobe SVD Draw 0.9 in my Ruby application. How to implemtn it in my application. Can I distribute the SVG plugin or make it work as a collabrative tool

---

## [WIN32OLE extension using in/out SAFEARRAYs (Matlab interface](https://www.ruby-forum.com/t/win32ole-extension-using-in-out-safearrays-matlab-interface/53342)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 1\
**Last updated:** [February 3, 2006, 9:07am UTC](https://www.ruby-forum.com/t/win32ole-extension-using-in-out-safearrays-matlab-interface/53342 "2006-02-03T09:07:10Z")

</div>

I am having trouble calling a COM object (Matlab) using the excellent WIN32OLE Ruby extension. Several other calls have worked fine, but this call involves some in/out SAFEARRAYs. Here is the method signature. GetF…

---

## [Faster Prime class then Ruby 1.9](https://www.ruby-forum.com/t/faster-prime-class-then-ruby-1-9/225899)

<div class="topic-metadata">

**Author:** [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Replies:** 0\
**Last updated:** [February 3, 2006, 8:21am UTC](https://www.ruby-forum.com/t/faster-prime-class-then-ruby-1-9/225899 "2006-02-03T08:21:57Z")

</div>

Hi all, I have been playing with my implementation or the Prime class since the my previous thread where Antonio C. provided the new and improved Ruby 1.9 version of mathn.rb. Once I understood the new version, I f…

---

## [Singleton Method Questions](https://www.ruby-forum.com/t/singleton-method-questions/100498)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 3, 2006, 8:18am UTC](https://www.ruby-forum.com/t/singleton-method-questions/100498 "2006-02-03T08:18:54Z")

</div>

I’ve been thinking about singleton methods some more. The current implementation tucks away singleton methods in a class object. Method lookup is subsequently altered to consult the singleton class of the receiver …

---

## [Interfacing white board with ruby on rails](https://www.ruby-forum.com/t/interfacing-white-board-with-ruby-on-rails/99989)

<div class="topic-metadata">

**Author:** [@sapzz](https://www.ruby-forum.com/u/sapzz)\
**Replies:** 3\
**Last updated:** [February 3, 2006, 7:54am UTC](https://www.ruby-forum.com/t/interfacing-white-board-with-ruby-on-rails/99989 "2006-02-03T07:54:48Z")

</div>

Hi guys, I am building a network application where I want to integrate White board in my Ruby application. Can you point me to a white board which whoes apis are availabe (I dont mind paying if the deal is good enoug…

---

## [Basic Rails Database Foreign Key question](https://www.ruby-forum.com/t/basic-rails-database-foreign-key-question/100511)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 3, 2006, 7:39am UTC](https://www.ruby-forum.com/t/basic-rails-database-foreign-key-question/100511 "2006-02-03T07:39:43Z")

</div>

Hi, I’m still waiting on my Agile Rails book to arrive - in the meantime … As an exercise I’m making a Help Desk application. If I have a Problems table with two foreign keys to a People table, how do I set up my mod…

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

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