# Ruby

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

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

---

## [Ruby on WRT54G(L)](https://www.ruby-forum.com/t/ruby-on-wrt54g-l/100401)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 5\
**Last updated:** [July 28, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/ruby-on-wrt54g-l/100401 "2006-07-28T22:40:07Z")

</div>

Hi Has anyone installed Ruby on a WRT54GL router? If not, I will be attempting to do so this weekend. If anyone is interested, I’d be happy to share my results.

---

## [Slow regular expressions :(](https://www.ruby-forum.com/t/slow-regular-expressions/100203)

<div class="topic-metadata">

**Author:** [@rhaus](https://www.ruby-forum.com/u/rhaus)\
**Replies:** 28\
**Last updated:** [July 28, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/slow-regular-expressions/100203 "2006-07-28T22:36:39Z")

</div>

I am disappointed to learn that Ruby obviously implements yet another regular expression library that does not avoid very slow matching failures. Just try this program: str1 = "foo " \* 70 + "foo "; str2 = "foo " \* 7…

---

## [Ruby-talk lag?](https://www.ruby-forum.com/t/ruby-talk-lag/100391)

<div class="topic-metadata">

**Author:** [@Charles\_O\_Nutter](https://www.ruby-forum.com/u/Charles_O_Nutter)\
**Replies:** 8\
**Last updated:** [July 28, 2006, 10:23pm UTC](https://www.ruby-forum.com/t/ruby-talk-lag/100391 "2006-07-28T22:23:27Z")

</div>

Has anyone been seeing high lag in getting ruby-talk mail? Today it’s taking several hours for mail to make it through the system, and I’ve heard from others they sometimes wait a half-day to see ruby-talk mail come …

---

## [Re: Posting remote forms / Getting content off the web](https://www.ruby-forum.com/t/re-posting-remote-forms-getting-content-off-the-web/100432)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 9:59pm UTC](https://www.ruby-forum.com/t/re-posting-remote-forms-getting-content-off-the-web/100432 "2006-07-28T21:59:19Z")

</div>

Casey, I am always glad if I can be of help :slight\_smile: Best regards, Axel

---

## [Re: does ":" have an anolog in another language?](https://www.ruby-forum.com/t/re-does-have-an-anolog-in-another-language/100431)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/re-does-have-an-anolog-in-another-language/100431 "2006-07-28T21:55:41Z")

</div>

Sorry if anyone’s beat me to this, I find it hard to keep up with such a busy list… : is used to denote a symbol. The idea of a symbol has a rather broad interpretation, but I think that technically any identifier yo…

---

## [Re: Posting remote forms / Getting content off the web](https://www.ruby-forum.com/t/re-posting-remote-forms-getting-content-off-the-web/100307)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 28, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/re-posting-remote-forms-getting-content-off-the-web/100307 "2006-07-28T21:35:56Z")

</div>

Dear Casey, \_http://mechanize.rubyforge.org/\_ (http://mechanize.rubyforge.org/) should do what you want. Best regards, Axel

---

## [SQL Server DBI insert silently fails](https://www.ruby-forum.com/t/sql-server-dbi-insert-silently-fails/100367)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 2\
**Last updated:** [July 28, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/sql-server-dbi-insert-silently-fails/100367 "2006-07-28T21:32:21Z")

</div>

Hi all I am having problems when trying to insert records using dbi-0.1.0 on Windows XP. I am using the ADO driver to connect to SQL Server, like so: connectString = “DBI:ADO:provider=SQLOLEDB.1;Data Source=10.0.0.1;…

---

## [Symbols are your friends](https://www.ruby-forum.com/t/symbols-are-your-friends/100147)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 8\
**Last updated:** [July 28, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/symbols-are-your-friends/100147 "2006-07-28T20:46:16Z")

</div>

Yes, it’s time for another Symbol trick! class Symbol def ===(obj) obj.respond\_to? “to\_#{self}” end end case “foo” when :int then “integer” when :str then “string” when :ary then “array” end #=\> “string” Geni…

---

## [XML2RB, day 2](https://www.ruby-forum.com/t/xml2rb-day-2/100412)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/xml2rb-day-2/100412 "2006-07-28T20:45:57Z")

</div>

I’ve added day two to this XML2RB experiment: http://www.erikveen.dds.nl/xml2rb/index.html gegroet, Erik V. - http://www.erikveen.dds.nl/ “I’m walking this road. I’ve never here before. I don’t know where it ends.” …

---

## [Mongoose 0.2.5 - The "Two Steps Forward, One Step Back"](https://www.ruby-forum.com/t/mongoose-0-2-5-the-two-steps-forward-one-step-back/99800)

<div class="topic-metadata">

**Author:** [@Jamey\_C](https://www.ruby-forum.com/u/Jamey_C)\
**Replies:** 19\
**Last updated:** [July 28, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/mongoose-0-2-5-the-two-steps-forward-one-step-back/99800 "2006-07-28T20:33:04Z")

</div>

You can download it from: http://rubyforge.org/projects/mongoose/ What’s New Well, there’s a lot of new stuff in this release, and some old stuff put back in, as well. John L. pointed out that the use of #instance\_e…

---

## [Howto ? :: Person is a customer](https://www.ruby-forum.com/t/howto-person-is-a-customer/100298)

<div class="topic-metadata">

**Author:** [@Squeak\_S](https://www.ruby-forum.com/u/Squeak_S)\
**Replies:** 3\
**Last updated:** [July 28, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/howto-person-is-a-customer/100298 "2006-07-28T19:57:58Z")

</div>

Hi, Beginner question probably but I do not know how to do it correctly. I will read informations from a file and create an object. During my load I do not know if it is a employe or a customer so I create a person o…

---

## [$b%f%9%h(b2](https://www.ruby-forum.com/t/b-f-9-h-b2/99992)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 9\
**Last updated:** [July 28, 2006, 7:14pm UTC](https://www.ruby-forum.com/t/b-f-9-h-b2/99992 "2006-07-28T19:14:20Z")

</div>

e$B$b$7$+$9$k$H%9%Q%\`$+$b!#e(B |parsedate e$B$N%Q%?!\<%s$r$"$kDxEY4K$a$k$N$OL5M}$H$$$&Dx$G$O$J$$e(B |e$B$H;W$$$^$9$,!#e(B e$B!VL5M}$G$O$J$$!W!"!VIT2DG=$G$O$J$$!W$H$$$&E@$K$OF10U$7$^$9$,!“e(B e$B$I$NDxEY4K$a$k$Y$-$+L@…

---

## [Re: converting some autogenerated ruby code to C](https://www.ruby-forum.com/t/re-converting-some-autogenerated-ruby-code-to-c/100244)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [July 28, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/re-converting-some-autogenerated-ruby-code-to-c/100244 "2006-07-28T18:57:00Z")

</div>

few methods with giant expressions in each. I would like to try improving the performance by generating and compiling C code instead. My preference would be to convert my small subset of ruby code to C code (easily…

---

## [OT: Perl parser](https://www.ruby-forum.com/t/ot-perl-parser/100392)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/ot-perl-parser/100392 "2006-07-28T18:46:36Z")

</div>

Since it came up earlier and was the subject of some discussion, I figured I’d add to the confusion^Wcommon body of knowledge regarding Perl’s compiler/interpreter status: Perl does not compile to bytecode and does no…

---

## [Double quotes embedded in a string](https://www.ruby-forum.com/t/double-quotes-embedded-in-a-string/100380)

<div class="topic-metadata">

**Author:** [@dale](https://www.ruby-forum.com/u/dale)\
**Replies:** 1\
**Last updated:** [July 28, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/double-quotes-embedded-in-a-string/100380 "2006-07-28T18:10:45Z")

</div>

Here is something that I am struggling with – I would like to execute a command string with an IO.popen call that contains embedded double quote characters. When I build the initial command string everything seems to …

---

## [Re: state of unicode support](https://www.ruby-forum.com/t/re-state-of-unicode-support/100369)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [July 28, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/re-state-of-unicode-support/100369 "2006-07-28T17:29:39Z")

</div>

What’s the current state of Unicode support in Ruby? My recollection is of Unicode support somewhat lacking. Good grief, this was just covered ad nauseum recently. Search the archives. Dan This communication is…

---

## [Ruby LDAP --- Hooray!](https://www.ruby-forum.com/t/ruby-ldap-hooray/100357)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 7\
**Last updated:** [July 28, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/ruby-ldap-hooray/100357 "2006-07-28T17:02:49Z")

</div>

After unsuccessfully trying to compile a Ruby LDAP implementation a year or so ago I found another project on Rubyforge (http://rubyforge.org/projects/net-ldap/) that easily accomplished the task in my Windows One-Cli…

---

## [Creating hashes with duplicate keys](https://www.ruby-forum.com/t/creating-hashes-with-duplicate-keys/100308)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 6\
**Last updated:** [July 28, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/creating-hashes-with-duplicate-keys/100308 "2006-07-28T16:35:51Z")

</div>

I want to simplify this hash creation: g = { 1 =\> “test”, 2 =\> “test”, } I have a particularly complicated hash that I’m generating. It can have very large values. Right now, I duplicate values with something like t…

---

## [Catching all that goes to $stderr](https://www.ruby-forum.com/t/catching-all-that-goes-to-stderr/100315)

<div class="topic-metadata">

**Author:** [@elgato](https://www.ruby-forum.com/u/elgato)\
**Replies:** 1\
**Last updated:** [July 28, 2006, 4:22pm UTC](https://www.ruby-forum.com/t/catching-all-that-goes-to-stderr/100315 "2006-07-28T16:22:22Z")

</div>

Hello, how can I catch all output going to $stderr (e.g. to send some warning emails time to time in case of daemon etc.)? Thanks, P.

---

## [FeedTools](https://www.ruby-forum.com/t/feedtools/100238)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 6\
**Last updated:** [July 28, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/feedtools/100238 "2006-07-28T16:01:58Z")

</div>

Can someone verify for me that feedtools is incorrectly parsing http://torrentspy.com/rss.asp ? In my tests, feedtools can only find 1 entry for that rss. Other sites seem to work, so far. TIA

---

## [OT: Wish I were coding in Ruby](https://www.ruby-forum.com/t/ot-wish-i-were-coding-in-ruby/100250)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 7\
**Last updated:** [July 28, 2006, 2:38pm UTC](https://www.ruby-forum.com/t/ot-wish-i-were-coding-in-ruby/100250 "2006-07-28T14:38:43Z")

</div>

instead of wearing my other hat. As network admin I am forced to (finally) migrate my company from a Windows NT 4.0/Exchange 5.5 domain to a Windows/Exchange 2003 server AD. My CFO didn’t like the idea that we will fi…

---

## [Wrapped method causing infinite recursion in rcov](https://www.ruby-forum.com/t/wrapped-method-causing-infinite-recursion-in-rcov/100181)

<div class="topic-metadata">

**Author:** [@Pedro\_CSSSSrte-Real](https://www.ruby-forum.com/u/Pedro_CSSSSrte-Real)\
**Replies:** 8\
**Last updated:** [July 28, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/wrapped-method-causing-infinite-recursion-in-rcov/100181 "2006-07-28T13:07:11Z")

</div>

I added this to my rails test helper to check for valid HTML automatically: Wrap around get to check the markup on :success requests. alias\_method :old\_get, :get def get(\*args) old\_get(\*args) if @response.success? …

---

## [Locate](https://www.ruby-forum.com/t/locate/100299)

<div class="topic-metadata">

**Author:** [@J-C\_Hendrickx](https://www.ruby-forum.com/u/J-C_Hendrickx)\
**Replies:** 3\
**Last updated:** [July 28, 2006, 11:27am UTC](https://www.ruby-forum.com/t/locate/100299 "2006-07-28T11:27:43Z")

</div>

Hello, I am a beginner in ruby. I wonder how to place a word at x y in a terminal (puts ?) like (in old basic) locate(x,y). Thanks for any tips. J-C H. Jean-Claude Hendrickx à Bruxelles removed\_email\_addre…

---

## [Blocks question](https://www.ruby-forum.com/t/blocks-question/100135)

<div class="topic-metadata">

**Author:** [@turnip](https://www.ruby-forum.com/u/turnip)\
**Replies:** 4\
**Last updated:** [July 28, 2006, 11:00am UTC](https://www.ruby-forum.com/t/blocks-question/100135 "2006-07-28T11:00:08Z")

</div>

Hi, I have written a script which sets up a new website on a server. Obviously this involves a number of steps so I have written a method which looks like so: def step(msg) print msg + "… " yield puts “done” end …

---

## [RFuzz Web Destroyer 0.6 -- Doc'ed Out](https://www.ruby-forum.com/t/rfuzz-web-destroyer-0-6-doced-out/100312)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 11:00am UTC](https://www.ruby-forum.com/t/rfuzz-web-destroyer-0-6-doced-out/100312 "2006-07-28T11:00:05Z")

</div>

Hi folks, A quick announcement that RFuzz 0.6 is out and has a nearly complete little website, full RDoc documentation, rubyforge project page, and RubyGems for quick install. WHAT IS RFUZZ? “RFuzz is a Ruby library…

---

## [Re: Creating hashes with duplicate keys](https://www.ruby-forum.com/t/re-creating-hashes-with-duplicate-keys/100311)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 10:59am UTC](https://www.ruby-forum.com/t/re-creating-hashes-with-duplicate-keys/100311 "2006-07-28T10:59:22Z")

</div>

Try this: class Array def keys\_and\_values(hash\_value) new\_hash={} for k in self new\_hash.update({k,hash\_value}) end return new\_hash end end same\_value=‘identical’ my\_array=\[‘a’,‘b’,‘c’,‘d’\] hash=my\_array.k…

---

## [Posting remote forms / Getting content off the web](https://www.ruby-forum.com/t/posting-remote-forms-getting-content-off-the-web/100303)

<div class="topic-metadata">

**Author:** [@ap0s7le](https://www.ruby-forum.com/u/ap0s7le)\
**Replies:** 1\
**Last updated:** [July 28, 2006, 10:32am UTC](https://www.ruby-forum.com/t/posting-remote-forms-getting-content-off-the-web/100303 "2006-07-28T10:32:04Z")

</div>

Hello, I learned of Rails, and then Ruby and thought I’d much rather work with the language itself first and not the framework. So here I am in need of expanding a cron I have that currently updates a few of my sites…

---

## [Re: Newbie question: Working with iso-8859-1 files in Ruby](https://www.ruby-forum.com/t/re-newbie-question-working-with-iso-8859-1-files-in-ruby/100305)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 28, 2006, 10:28am UTC](https://www.ruby-forum.com/t/re-newbie-question-working-with-iso-8859-1-files-in-ruby/100305 "2006-07-28T10:28:52Z")

</div>

Dear Peter, there have been lengthy discussions about Unicode and Ruby on this list. I remember responding to an upcase/downcase question here: \_http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/183176\_ (h…

---

## [Equivalent of perl's \\Q in regexps?](https://www.ruby-forum.com/t/equivalent-of-perls-q-in-regexps/100275)

<div class="topic-metadata">

**Author:** [@saikun](https://www.ruby-forum.com/u/saikun)\
**Replies:** 4\
**Last updated:** [July 28, 2006, 6:20am UTC](https://www.ruby-forum.com/t/equivalent-of-perls-q-in-regexps/100275 "2006-07-28T06:20:21Z")

</div>

marker = ‘\*\*\*’ code = \<\<-EOT var x = 1 //\*\*\* hello function foo() {} EOT p code.to\_a.grep(/\*\*\*/) # -\> \["//\*\*\* hello\\n"\] that’s what I want but using marker #p code.to\_a.grep(/#{marker}/) # -\> inv…

---

## [August Phoenix Ruby Users Group Meeting](https://www.ruby-forum.com/t/august-phoenix-ruby-users-group-meeting/100290)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [July 28, 2006, 6:11am UTC](https://www.ruby-forum.com/t/august-phoenix-ruby-users-group-meeting/100290 "2006-07-28T06:11:10Z")

</div>

The Phoenix Ruby U. Group will hold its August meeting on Monday, August 16, 2006, at 6:15pm. The meeting will be held at at facilities graciously provided by Cyclone Commerce. Please see the group wiki at: http://r…

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

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