# Ruby

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

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

---

## [Re: Ruby and capturing ^C](https://www.ruby-forum.com/t/re-ruby-and-capturing-c/91161)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/re-ruby-and-capturing-c/91161 "2007-04-05T21:05:30Z")

</div>

Umm, I guess my searching was just plain bad. Thanks for being kind to me though. Mucho gracias. Phy ----- Original Message ---- From: Logan C. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_a…

---

## [Why is local variable created in one branch of if statement](https://www.ruby-forum.com/t/why-is-local-variable-created-in-one-branch-of-if-statement/91226)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/why-is-local-variable-created-in-one-branch-of-if-statement/91226 "2007-04-05T20:54:28Z")

</div>

I find it hard to understand why this code prints nil instead of saying “unknown method or local variable foo”: cat hmm.rb def hmm if false foo = ‘quack’ else p foo end end hmm ruby hmm.rb nil Thoughts? …

---

## [Micrrowave Numbers (#118)](https://www.ruby-forum.com/t/micrrowave-numbers-118/91189)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/micrrowave-numbers-118/91189 "2007-04-05T20:32:22Z")

</div>

The solutions this time around are fantastic. Really. I mean Ryan Leavengood is back. Enough said. No matter which solution I select I’ll be doing you a disservice, so you are all honor-bound to read through the …

---

## [Capture information with a split and maybe a match?](https://www.ruby-forum.com/t/capture-information-with-a-split-and-maybe-a-match/81965)

<div class="topic-metadata">

**Author:** [@anon1m0us](https://www.ruby-forum.com/u/anon1m0us)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/capture-information-with-a-split-and-maybe-a-match/81965 "2007-04-05T20:21:21Z")

</div>

Hi; Here is my line of code that I need help in: result\_of\_na\_citrix=net group na-citrix /dom.split(" ") This gets all the users in in it’s own index split on a space. However, there is a bunch of garbage (stuff that…

---

## [:s.respond\_to?(:dup) && :s.dup raises](https://www.ruby-forum.com/t/s-respond-to-dup-s-dup-raises/91224)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/s-respond-to-dup-s-dup-raises/91224 "2007-04-05T19:55:37Z")

</div>

Hi all ! Symbol lies about it’s ability to respond\_to? to #dup: irb(main):001:0\> :s.respond\_to?(:dup) =\> true irb(main):002:0\> :s.dup TypeError: can’t dup Symbol from (irb):2:in \`dup’ from (irb):2 Fixnum does the…

---

## [Dir.glob time of evaluation](https://www.ruby-forum.com/t/dir-glob-time-of-evaluation/91195)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/dir-glob-time-of-evaluation/91195 "2007-04-05T19:55:19Z")

</div>

if i do : Dir.glob(".xhtml"){|f| fo=f.gsub(/(.).xhtml$/,’\\1\_orig.xhtml’) if mv "#{f}" "#{fo}" File.open("#{f}",‘w’).puts # c is true when we want to clean up orig files rm -f "#{fo}" if c end } i got an error…

---

## [False or true == true .... WTF?](https://www.ruby-forum.com/t/false-or-true-true-wtf/91221)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 4\
**Last updated:** [April 5, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/false-or-true-true-wtf/91221 "2007-04-05T19:47:18Z")

</div>

I have the following code: templated = nreturns \> 0 or nparams \> 0 puts "nreturns = #{nreturns}, nparams = #{nparams}, templated = #{templated}" has\_returns = nreturns \> 0 has\_params = nparams \> 0 templated2 = (nreturns…

---

## [Installing ruby on a windows XP computer](https://www.ruby-forum.com/t/installing-ruby-on-a-windows-xp-computer/91222)

<div class="topic-metadata">

**Author:** [@Erik\_Steuten](https://www.ruby-forum.com/u/Erik_Steuten)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/installing-ruby-on-a-windows-xp-computer/91222 "2007-04-05T19:39:17Z")

</div>

Dear Ruby U. I have been installing Ruby on my windows XP laptop. I just started working in Chris P.'s book. I get into trouble using the command ‘gets’ . The dos-window (as I call it) doesn’t seem to want to disapp…

---

## [Redefining initialize while staying -w clean](https://www.ruby-forum.com/t/redefining-initialize-while-staying-w-clean/91207)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 10\
**Last updated:** [April 5, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/redefining-initialize-while-staying-w-clean/91207 "2007-04-05T18:52:13Z")

</div>

Hi all, Is it possible to redefine initialize and stay -w clean? In win32-file- stat, I’ve redefined initialize to suit my needs for MS Windows. If I do “undef\_method(:initialize)” and run with -w, I’ll get: “warning…

---

## [Eruby Mechanize problem when submitting multiple forms](https://www.ruby-forum.com/t/eruby-mechanize-problem-when-submitting-multiple-forms/91214)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/eruby-mechanize-problem-when-submitting-multiple-forms/91214 "2007-04-05T18:06:09Z")

</div>

Hi All, I am using eruby and Mechanize to submit forms on a website. The first form has a “Accept Agreement” checkbox, when user checks this checkbox and submits this form, another form shows up which is the actual i…

---

## [How does WxRuby work?](https://www.ruby-forum.com/t/how-does-wxruby-work/91131)

<div class="topic-metadata">

**Author:** [@chuckychuck](https://www.ruby-forum.com/u/chuckychuck)\
**Replies:** 5\
**Last updated:** [April 5, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/how-does-wxruby-work/91131 "2007-04-05T17:27:05Z")

</div>

Hi ! I have a question about the WxRuby toolkit, i never used a gui toolkit before ( mainly coded php apps and maths algorithms with caml so far ), but i guess it works like that : \_ for a compiled program ( for exam…

---

## [Asynchronous command call](https://www.ruby-forum.com/t/asynchronous-command-call/91165)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/asynchronous-command-call/91165 "2007-04-05T17:01:00Z")

</div>

I am trying to use a ruby script to start a apache tomcat server like this: dir = “C:\\program\\apache-tomcat-5.5.20\\bin” #{dir}\\\\shutdown.bat rescue nil #{dir}\\\\startup.bat This works, except that the program never e…

---

## [Why SVN?](https://www.ruby-forum.com/t/why-svn/88576)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 90\
**Last updated:** [April 5, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/why-svn/88576 "2007-04-05T16:57:59Z")

</div>

Should I be using SVN rather than Darcs or Git? Subversion has apparently become the version control system of choice for Ruby developers --especially now that Ruby itself uses it. I suspect that might have a lot to d…

---

## [Fast XML parser, other than libxml](https://www.ruby-forum.com/t/fast-xml-parser-other-than-libxml/91054)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 19\
**Last updated:** [April 5, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/fast-xml-parser-other-than-libxml/91054 "2007-04-05T16:41:56Z")

</div>

Hello all, I am looking for a fast XML parser, other than libxml (REXML is not fast enough, and Hpricot won’t do this time - I need ‘real’ XPaths etc). Some time ago I read about xaggly, nut now the site seems to be d…

---

## [Amazon SQS REST Ruby lib](https://www.ruby-forum.com/t/amazon-sqs-rest-ruby-lib/91199)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/amazon-sqs-rest-ruby-lib/91199 "2007-04-05T16:19:55Z")

</div>

Hi, we’ve just packaged our Amazon SQS (Fully Managed Message Queuing – Amazon Simple Queue Service – Amazon Web Services) Ruby lib in its own gem “openwferu-sqs”. It interacts with SQS via the REST API, so that messa…

---

## [Reading an rdf file with ActiveRDF](https://www.ruby-forum.com/t/reading-an-rdf-file-with-activerdf/91140)

<div class="topic-metadata">

**Author:** [@j2f](https://www.ruby-forum.com/u/j2f)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/reading-an-rdf-file-with-activerdf/91140 "2007-04-05T15:53:41Z")

</div>

I posted this same problem on the ActiveRDF mailing list. However, after hours of restless waiting, no response has been posted. Thus, I decided to post the same problem here in the hope of finding a solution to my pr…

---

## [Fwd: Another "Golf Game" LCD solution](https://www.ruby-forum.com/t/fwd-another-golf-game-lcd-solution/229118)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/fwd-another-golf-game-lcd-solution/229118 "2007-04-05T15:45:51Z")

</div>

Begin forwarded message:

---

## [Avoiding scope pitfall](https://www.ruby-forum.com/t/avoiding-scope-pitfall/91185)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 1:35pm UTC](https://www.ruby-forum.com/t/avoiding-scope-pitfall/91185 "2007-04-05T13:35:27Z")

</div>

Here’s a simple snippet of code of a ruby scope pitfall (bug?) that I keep stumbling upon. Here a “global” function is invoked in two different contexts and returns different behavior due to self being set differently…

---

## [Ruby-services -- unable to start fastri service](https://www.ruby-forum.com/t/ruby-services-unable-to-start-fastri-service/84998)

<div class="topic-metadata">

**Author:** [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/ruby-services-unable-to-start-fastri-service/84998 "2007-04-05T12:32:06Z")

</div>

I have just done a complete new installation of ruby-services. I have all the required gems. I have installed the fastri service as well as the gem service. However, I cannot start the fastri service. This is the res…

---

## [NameError: uninitialized constant WSDL::XMLSchema::SimpleRes](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-wsdl-simpleres/91179)

<div class="topic-metadata">

**Author:** [@Mehdi\_AICHOUCH](https://www.ruby-forum.com/u/Mehdi_AICHOUCH)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-wsdl-simpleres/91179 "2007-04-05T12:03:02Z")

</div>

I can not resolve this errorI added a new element to XMLSchema simpleContent restriction definition for WSDL in the file “SimpleRestriction.rb” and the file minInclusive.rb NameError: uninitialized constant WSDL::XML…

---

## [Nil? and non-existent objects](https://www.ruby-forum.com/t/nil-and-non-existent-objects/91116)

<div class="topic-metadata">

**Author:** [@zerohalo](https://www.ruby-forum.com/u/zerohalo)\
**Replies:** 11\
**Last updated:** [April 5, 2007, 11:22am UTC](https://www.ruby-forum.com/t/nil-and-non-existent-objects/91116 "2007-04-05T11:22:41Z")

</div>

Why is it that the nil? method can sometimes be called on an object that doesn’t exist, and other times will return an error. Under what circumstances can you call the nil? method on a non-existent object? Consider: …

---

## [Superclass of NameError](https://www.ruby-forum.com/t/superclass-of-nameerror/91168)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 10:25am UTC](https://www.ruby-forum.com/t/superclass-of-nameerror/91168 "2007-04-05T10:25:19Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B$$$^$4$m5$IU$$$?$N$G$9$,!"e(B1.9e$B$G$Oe(BNameErrore$B$,e(BScriptErrore$B$N%5%Ve(B e$B%/%i%9$K$J$C$F$$$^$9!#e(B e$BD4$Y$F$\_$k$H5nG/$Ne(B2e$B7n$N$3$H$G!"e(B\[ruby-dev:…

---

## [Ruby and capturing ^C](https://www.ruby-forum.com/t/ruby-and-capturing-c/91160)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 8:12am UTC](https://www.ruby-forum.com/t/ruby-and-capturing-c/91160 "2007-04-05T08:12:06Z")

</div>

Hello! Is there any way to capture or “trap” ^C within Ruby? Something similar to shell “trapping” is what I am after so that I can do clean up in the event ^C is pressed. TIA! Phy

---

## [POST/GET from sql database](https://www.ruby-forum.com/t/post-get-from-sql-database/91124)

<div class="topic-metadata">

**Author:** [@Josh\_Redding](https://www.ruby-forum.com/u/Josh_Redding)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 7:30am UTC](https://www.ruby-forum.com/t/post-get-from-sql-database/91124 "2007-04-05T07:30:00Z")

</div>

I’ve been googling for hours now…and can’t seem to find much on the subject. I’m new to Ruby…slowly picking it up as I go along. I wanted to write something I could put to use right now…a simple ruby-embedded html pa…

---

## [Eruby & Mechanize error](https://www.ruby-forum.com/t/eruby-mechanize-error/91158)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 7:00am UTC](https://www.ruby-forum.com/t/eruby-mechanize-error/91158 "2007-04-05T07:00:59Z")

</div>

Hi, I am working on a web tool that takes user input and submits this information to a list of websites like google, yahoo, hotmail etc. It automates form (e.g login form) submission for these websites using Mechaniz…

---

## [Ruby-HL7 0.1.23](https://www.ruby-forum.com/t/ruby-hl7-0-1-23/89219)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 8\
**Last updated:** [April 5, 2007, 4:51am UTC](https://www.ruby-forum.com/t/ruby-hl7-0-1-23/89219 "2007-04-05T04:51:42Z")

</div>

I’ve finally wrapped up some tasks and released Ruby-HL7. This is the first public release. What is it? Ruby-HL7 is a library for parsing and generating HL7 2.x messages. HL7 3.0 message support is planned for a fut…

---

## [Correction of RubyKaigi dates](https://www.ruby-forum.com/t/correction-of-rubykaigi-dates/91147)

<div class="topic-metadata">

**Author:** [@KAKUTANI\_Shintaro](https://www.ruby-forum.com/u/KAKUTANI_Shintaro)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 4:27am UTC](https://www.ruby-forum.com/t/correction-of-rubykaigi-dates/91147 "2007-04-05T04:27:40Z")

</div>

Hi, The previously announced dates for RubyKaigi2007 were incorrect: CORRECT DATES: Saturday, June 9, 2007 - Sunday, June 10, 2007 INCORRECT: June 10-11, 2007 The RubyKaigi2007 Staff apologizes for any inconvenie…

---

## [IO.popen doesn't fail for non-existent command](https://www.ruby-forum.com/t/io-popen-doesnt-fail-for-non-existent-command/90959)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 4:03am UTC](https://www.ruby-forum.com/t/io-popen-doesnt-fail-for-non-existent-command/90959 "2007-04-05T04:03:38Z")

</div>

e$B$J$+$@$G$9!#e(B http://bts.vinelinux.org/guest.cgi?project=VineLinux&action=view\_report&id=481 e$B!Ve(B481: ri e$B$Ge(B command not found: pagere$B!W$K4XO"$7$?OC$G$9$,!“e(B IO.popene$B$KB8:\_$7$J$$%3%^%s%I$r;XDj$7$…

---

## [Test::Unit Reports](https://www.ruby-forum.com/t/test-unit-reports/90867)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 32\
**Last updated:** [April 5, 2007, 3:27am UTC](https://www.ruby-forum.com/t/test-unit-reports/90867 "2007-04-05T03:27:34Z")

</div>

Hi, Does anyone know what happened to these? The below link is not valid. http://rubyforge.org/projects/test-report/ Have these been superseded or is there some other HTML reports I can use with Test::Unit. aidy

---

## [Parsing data using dhaka (http://dhaka.rubyforge.org/)](https://www.ruby-forum.com/t/parsing-data-using-dhaka-http-dhaka-rubyforge-org/91104)

<div class="topic-metadata">

**Author:** [@emmanuel](https://www.ruby-forum.com/u/emmanuel)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 2:08am UTC](https://www.ruby-forum.com/t/parsing-data-using-dhaka-http-dhaka-rubyforge-org/91104 "2007-04-05T02:08:28Z")

</div>

Hello! I requested help from Mushfeq, the author of dhaka, but he seems to be busy Is anyone familiar with dhaka? (http://dhaka.rubyforge.org/) My problem is: I succesfully built my lexer, my grammar and a parser for …

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

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