# Ruby

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

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

---

## [Openwferu 0.9.11 released](https://www.ruby-forum.com/t/openwferu-0-9-11-released/106276)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 12:59am UTC](https://www.ruby-forum.com/t/openwferu-0-9-11-released/106276 "2007-06-08T00:59:51Z")

</div>

Hi, OpenWFEru 0.9.11, an open source workflow/BPM engine written in Ruby has just been released. It’s a library/server for defining and running business processes and their participants in Ruby. website : http://ope…

---

## [Raise problem in Thread](https://www.ruby-forum.com/t/raise-problem-in-thread/106240)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 7\
**Last updated:** [June 7, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/raise-problem-in-thread/106240 "2007-06-07T22:35:37Z")

</div>

Define following class: class MyThread \< Thread def initialize() super{ puts “started” sleep 1000 } end def test\_raise() raise StandardError.new() puts “hello” end end Open irb and run: irb(main):082:0\> thr…

---

## [BIG ERROR:class or module required for rescue clause (TypeEr](https://www.ruby-forum.com/t/big-error-class-or-module-required-for-rescue-clause-typeer/106220)

<div class="topic-metadata">

**Author:** [@w0rtex](https://www.ruby-forum.com/u/w0rtex)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/big-error-class-or-module-required-for-rescue-clause-typeer/106220 "2007-06-07T22:18:44Z")

</div>

require ‘socket’ require ‘timeout’ def ping( host, service = “echo”,timeout = 2) begin timeout( timeout ){ TCPSocket.open( host, service){} } rescue Errno::ECONNREFUSED true rescue false else true end end p …

---

## [Ruport-util 0.7.0 : csv2ods and other fun stuff](https://www.ruby-forum.com/t/ruport-util-0-7-0-csv2ods-and-other-fun-stuff/106230)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/ruport-util-0-7-0-csv2ods-and-other-fun-stuff/106230 "2007-06-07T22:12:34Z")

</div>

== What is it? ruport-util provides a home for marooned former parts of Ruby Reports, and newer fringe ideas. == Examples of new stuff csv2ods and Ruport::Formatter::ODS ruport-util now comes with a tool called csv2…

---

## [Converting to UCS-2 or UTF-16 for use by a C extension](https://www.ruby-forum.com/t/converting-to-ucs-2-or-utf-16-for-use-by-a-c-extension/106262)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/converting-to-ucs-2-or-utf-16-for-use-by-a-c-extension/106262 "2007-06-07T22:06:33Z")

</div>

I’m working on a C extension that embeds an ANTLR parser, and I need to convert a Ruby input string into UCS-2 or possibly UTF-16 encoding. I’ve got a working implementation but I suspect that it is flawed and just wa…

---

## [Scruffy Stacked Bar help](https://www.ruby-forum.com/t/scruffy-stacked-bar-help/106258)

<div class="topic-metadata">

**Author:** [@catalleres](https://www.ruby-forum.com/u/catalleres)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/scruffy-stacked-bar-help/106258 "2007-06-07T21:40:48Z")

</div>

I am trying to graph a stacked bar graph with four “fields” per bar, it works fine for up to three fields but when I try to add the fourth field I get this error: “/usr/local/lib/ruby/gems/1.8/gems/scruffy-0.2.2/lib/s…

---

## [Re: Mutually-Recursive Functions](https://www.ruby-forum.com/t/re-mutually-recursive-functions/106250)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/re-mutually-recursive-functions/106250 "2007-06-07T20:38:17Z")

</div>

From: bbiker \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, June 07, 2007 12:00 PM \[snip\] return alpha\_col\[0\] - 'A'\[0\] + 1 \[snip\] I thought I’d point out that ‘A’\[0\] is equivalent to ?A …and I p…

---

## [Re: Mutually-Recursive Functions](https://www.ruby-forum.com/t/re-mutually-recursive-functions/106243)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/re-mutually-recursive-functions/106243 "2007-06-07T20:18:15Z")

</div>

From: Gavin K. Sent: Thursday, June 07, 2007 12:10 PM accepts numeric column 1 through 256 if leastSD == 0 Not as efficient, but simpler: puts “%3d =\> %s” % \[ n, n2a\_col( n ).inspect \] } #=\> 0 =\> nil #=\> 1 …

---

## [KVO in Ruby](https://www.ruby-forum.com/t/kvo-in-ruby/106184)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 4\
**Last updated:** [June 7, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/kvo-in-ruby/106184 "2007-06-07T20:15:15Z")

</div>

Hey all! I’m still relatively new to Ruby, so forgive me if this seems like a naive (or even stupid) question, but… Is there a good method for implementing Key-Value Observing in Ruby? Basically, what I’d like to be …

---

## [Re: Mutually-Recursive Functions](https://www.ruby-forum.com/t/re-mutually-recursive-functions/106241)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/re-mutually-recursive-functions/106241 "2007-06-07T20:11:14Z")

</div>

From: bbiker \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, June 07, 2007 12:00 PM I am not exactly sure what the OP was trying to do … except that it has to do with Columns in Excel. It does seems to …

---

## [Mutually-Recursive Functions](https://www.ruby-forum.com/t/mutually-recursive-functions/106189)

<div class="topic-metadata">

**Author:** [@Revence\_K](https://www.ruby-forum.com/u/Revence_K)\
**Replies:** 14\
**Last updated:** [June 7, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/mutually-recursive-functions/106189 "2007-06-07T20:01:13Z")

</div>

Ruby doesn’t seem to do mutually-recursive functions. Or is it some particular idiom I know not about? I am using an array to implement them, and it stinks a bit. Any way to do it? Thanks. Revence

---

## [Builder gem - xml attributes ordering](https://www.ruby-forum.com/t/builder-gem-xml-attributes-ordering/106225)

<div class="topic-metadata">

**Author:** [@arunprabu](https://www.ruby-forum.com/u/arunprabu)\
**Replies:** 5\
**Last updated:** [June 7, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/builder-gem-xml-attributes-ordering/106225 "2007-06-07T19:51:11Z")

</div>

Hi, I am currently developing a xml service using Ruby on rails with builder gem. Builder is a great tool to create xml easily. But the only and important issue I am facing is - unable to set the order inwhich the at…

---

## [\#\<Object:0x2c1c8f0\> \<--- why is the displayed number == obje](https://www.ruby-forum.com/t/object-0x2c1c8f0-why-is-the-displayed-number-obje/106120)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 7\
**Last updated:** [June 7, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/object-0x2c1c8f0-why-is-the-displayed-number-obje/106120 "2007-06-07T19:26:04Z")

</div>

irb(main):001:0\> VERSION =\> “1.8.5” irb(main):002:0\> o=Object.new =\> #Object:0x2c1c8f0 irb(main):003:0\> ObjectSpace.\_id2ref 0x2c1c8f0 RangeError: 0x2c1c8f0 is not id value from (irb):3:in \`\_id2ref’ from (irb):3 i…

---

## [App works but test/unit fail w/ hash (undefined method 'each](https://www.ruby-forum.com/t/app-works-but-test-unit-fail-w-hash-undefined-method-each/106231)

<div class="topic-metadata">

**Author:** [@Toddnix](https://www.ruby-forum.com/u/Toddnix)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/app-works-but-test-unit-fail-w-hash-undefined-method-each/106231 "2007-06-07T19:12:02Z")

</div>

My app takes an account\_type from a reference table when creating user accounts and, when the obj is saved the model the numeric key for the account\_type is used for a lookup to get a user role which is then put into …

---

## [Error when substituting a backslash in a string](https://www.ruby-forum.com/t/error-when-substituting-a-backslash-in-a-string/106163)

<div class="topic-metadata">

**Author:** [@Federico\_ZagarzazSS](https://www.ruby-forum.com/u/Federico_ZagarzazSS)\
**Replies:** 7\
**Last updated:** [June 7, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/error-when-substituting-a-backslash-in-a-string/106163 "2007-06-07T19:04:39Z")

</div>

Hi, Why can’t I substitute a single backslash in a string? a = “\\6” p a # =\> “\\6” puts a # =\> \\6 p a.sub(’’, ‘’) Expected: “\\6” Got: j:4: unterminated string meets end of file j:4: parse error, unexpected $…

---

## [Best DRY solution for this task](https://www.ruby-forum.com/t/best-dry-solution-for-this-task/106136)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/best-dry-solution-for-this-task/106136 "2007-06-07T18:51:01Z")

</div>

Hi, I have a certain problem here and can’t find a proper DRY solution for this so I wondered if someone here has an idea and could help me. I’m reading a file byte for byte. This file is structured and I try to give…

---

## [Syntax suggestion](https://www.ruby-forum.com/t/syntax-suggestion/106183)

<div class="topic-metadata">

**Author:** [@jbc](https://www.ruby-forum.com/u/jbc)\
**Replies:** 6\
**Last updated:** [June 7, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/syntax-suggestion/106183 "2007-06-07T18:11:56Z")

</div>

(I posted this before on the google-group rather than the usenet group, but it seems not to have shown up. I don’t know why. If this is a duplicate for anyone, my apologies) def initialize(foo,bar,bat) @foo,@bar,@bat …

---

## [=== operator](https://www.ruby-forum.com/t/operator/106155)

<div class="topic-metadata">

**Author:** [@turnip](https://www.ruby-forum.com/u/turnip)\
**Replies:** 6\
**Last updated:** [June 7, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/operator/106155 "2007-06-07T18:01:54Z")

</div>

Hi, {} === Hash =\> false case {} when Hash then true end =\> true Hash === {} =\> true Why is the first statement false when the second is true? I understand case uses === to compare the objects? Perhaps …

---

## [Rails on a Mac, so strange (to me) behavior](https://www.ruby-forum.com/t/rails-on-a-mac-so-strange-to-me-behavior/106211)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 6\
**Last updated:** [June 7, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/rails-on-a-mac-so-strange-to-me-behavior/106211 "2007-06-07T17:31:28Z")

</div>

I have built Ruby from source, installed gems & rails on a MacBook pro. I installed the source for a working Rails application in a directory /rails\_apps. I cd to the application directory under rails apps and in th…

---

## [Ruby libcurl maintainer?](https://www.ruby-forum.com/t/ruby-libcurl-maintainer/74471)

<div class="topic-metadata">

**Author:** [@friedrich](https://www.ruby-forum.com/u/friedrich)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/ruby-libcurl-maintainer/74471 "2007-06-07T17:23:20Z")

</div>

I tried to contact Mr Hirotaka Matsuyuki,however his email address seems to be invalid. If someone knows the proper address would you mind to let me know? I’ve tried the libcurl bindings from him in both forms from h…

---

## [Re : What about a 'series' type?](https://www.ruby-forum.com/t/re-what-about-a-series-type/106215)

<div class="topic-metadata">

**Author:** [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/re-what-about-a-series-type/106215 "2007-06-07T17:19:47Z")

</div>

There is a complete lazy list implementation from Reginald Braithwaite website: http://raganwald.com/source/lazy\_lists.html It supports a lot of operations on this kind of “infinite” structures such as merge and cart…

---

## [Curb installation problem on WinXp. Please Help](https://www.ruby-forum.com/t/curb-installation-problem-on-winxp-please-help/106213)

<div class="topic-metadata">

**Author:** [@Md.elme\_focruzzaman](https://www.ruby-forum.com/u/Md.elme_focruzzaman)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/curb-installation-problem-on-winxp-please-help/106213 "2007-06-07T17:00:48Z")

</div>

Hello all, I am a new commer in the world of ruby. I have interest on web scraping. So I download curb and try to install it on my winxp pc. but it give me the following error: C:\>gem install curb Need to update 1 …

---

## [A 'series' class](https://www.ruby-forum.com/t/a-series-class/106207)

<div class="topic-metadata">

**Author:** [@Dennis\_Darland](https://www.ruby-forum.com/u/Dennis_Darland)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/a-series-class/106207 "2007-06-07T15:30:26Z")

</div>

I used a sort of ‘series’ class in Apfp - see also see Dennis Dennis J. Darland removed\_email\_address@domain.invalid

---

## [FizzBuzz (#126)](https://www.ruby-forum.com/t/fizzbuzz-126/106204)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/fizzbuzz-126/106204 "2007-06-07T14:48:20Z")

</div>

The discussion around this quiz touched on what the interviewer is actually looking for when they ask this question. Most people seem to agree that at least one goal is to establish that you are capable of writing s…

---

## [FizzBuzz (#126)](https://www.ruby-forum.com/t/fizzbuzz-126/105839)

<div class="topic-metadata">

**Author:** [@croese](https://www.ruby-forum.com/u/croese)\
**Replies:** 16\
**Last updated:** [June 7, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/fizzbuzz-126/105839 "2007-06-07T12:55:02Z")

</div>

Great quiz, really got me thinking about other ways to solve this simple problem, but I settled on this clear and easy method. Anyway, here we go: ====CODE BEGIN==== #!/usr/bin/ruby -w ########################### F…

---

## [Segv with callcc like](https://www.ruby-forum.com/t/segv-with-callcc-like/106191)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 11:27am UTC](https://www.ruby-forum.com/t/segv-with-callcc-like/106191 "2007-06-07T11:27:51Z")

</div>

e$B:XF#$H?=$7$^$9!#$3$s$P$s$O!#e(B e$B$U$H;W$$N)$C$F!"0JA0e(Bakre$B$5$s$,Ej$2$i$l$?e(Bcallcce$B$Ge(Bcoree$B$rEG$/%F%9%H$r8=\>u$Ne(B e$B\<BAu$G$b9T$C$F$$^$7$?!#7k2L!"e(B\[ruby-dev:24291\]e$B$N$$,8=:\_$G$be(Bcoree$B$rEG$/e(B …

---

## [FTP : Time problem (net/ftp)](https://www.ruby-forum.com/t/ftp-time-problem-net-ftp/106188)

<div class="topic-metadata">

**Author:** [@vineetraja](https://www.ruby-forum.com/u/vineetraja)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:47am UTC](https://www.ruby-forum.com/t/ftp-time-problem-net-ftp/106188 "2007-06-07T09:47:29Z")

</div>

Hi All I tried to get down with some ftp stuff and got stuck-up at this: Using net/ftp, When I try running ls or list methods I get the directory listings detailing everything including “modified time” BUT with missi…

---

## [Net::HTTP Cookies / Headers (almost there...)](https://www.ruby-forum.com/t/net-http-cookies-headers-almost-there/106179)

<div class="topic-metadata">

**Author:** [@yeago](https://www.ruby-forum.com/u/yeago)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 6:46am UTC](https://www.ruby-forum.com/t/net-http-cookies-headers-almost-there/106179 "2007-06-07T06:46:15Z")

</div>

I’m attempting to login and follow redirects, however, the below script doesn’t seem to do it. I arrive back at the main login page. Am I doing something obviously wrong? Am I passing bad headers or wrong cookies? See…

---

## [Code problems](https://www.ruby-forum.com/t/code-problems/105868)

<div class="topic-metadata">

**Author:** [@david\_karapetyan](https://www.ruby-forum.com/u/david_karapetyan)\
**Replies:** 17\
**Last updated:** [June 7, 2007, 6:01am UTC](https://www.ruby-forum.com/t/code-problems/105868 "2007-06-07T06:01:07Z")

</div>

why is the following code not valid def fibber a = 1 b = 1 lambda do yield(a) a,b = a+b,a end end

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 12:10am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229127 "2007-06-07T00:10:05Z")

</div>

Begin forwarded message:

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

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