# Ruby

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

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

---

## [Re: Regular expression to parse out "host" part of URL strin](https://www.ruby-forum.com/t/re-regular-expression-to-parse-out-host-part-of-url-strin/93986)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [April 22, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/re-regular-expression-to-parse-out-host-part-of-url-strin/93986 "2006-04-22T18:21:19Z")

</div>

I have that :). I’m trying to handle the case when I get a “URL” without the http:// Wes Instead of beating yourself up trying to come up with a regex, just stick the ‘http://’ in front of it yourself. unless path…

---

## [Rake 4.5.0](https://www.ruby-forum.com/t/rake-4-5-0/94140)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 22, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/rake-4-5-0/94140 "2006-04-22T17:44:22Z")

</div>

A N N O U N C I N G Reap, v4.5.0 The Bountiful Ruby Project Management Assistant http://reap.rubyforge.org REAP THE REWARDS! ABSTRACT -------------\> …

---

## [Re: nuby: %w to understand quotes](https://www.ruby-forum.com/t/re-nuby-w-to-understand-quotes/94134)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [April 22, 2006, 4:14pm UTC](https://www.ruby-forum.com/t/re-nuby-w-to-understand-quotes/94134 "2006-04-22T16:14:39Z")

</div>

Jake and Matz wrote: %w{this\\ is a\\ test} cool. escaping the space. many thanks, jake/matz. otoh, i am also ending up w lots of escapes like for longer strings %w{ sample short\\ sample there\\ is\\ quite\\ a\\ number\\ …

---

## [Nuby: %w to understand quotes](https://www.ruby-forum.com/t/nuby-w-to-understand-quotes/94133)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [April 22, 2006, 8:07am UTC](https://www.ruby-forum.com/t/nuby-w-to-understand-quotes/94133 "2006-04-22T08:07:06Z")

</div>

Hi All, irb(main):007:0\> %w{this is a test} =\> \[“this”, “is”, “a”, “test”\] fine. irb(main):008:0\> %w{“this is” “a test”} =\> \["“this”, “is”", ““a”, “test””\] i want \[“this is”,“a test”\] Is there a ruby notation lik…

---

## [Re: Error Compiling Ruby 1.8.4 on AIX 5.2](https://www.ruby-forum.com/t/re-error-compiling-ruby-1-8-4-on-aix-5-2/58405)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [April 22, 2006, 7:45am UTC](https://www.ruby-forum.com/t/re-error-compiling-ruby-1-8-4-on-aix-5-2/58405 "2006-04-22T07:45:44Z")

</div>

Christopher Gibbons I recently wrote this up too, but in not as much detail. I did however, include the errors that I hit along the way, and the changes that I had to make to overcome those errors, so if you hit anot…

---

## [Austin, TX Ruby?](https://www.ruby-forum.com/t/austin-tx-ruby/58423)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 3\
**Last updated:** [April 22, 2006, 7:09am UTC](https://www.ruby-forum.com/t/austin-tx-ruby/58423 "2006-04-22T07:09:09Z")

</div>

Any user’s group in Austin TX that meets? After recently discovering this language, I rushed to “Ruby’s” on the drag to find out more, but the Rubyists there were bewildered with my questions (though they were able …

---

## [Ot: spam (was RE: Text Munger (#76))](https://www.ruby-forum.com/t/ot-spam-was-re-text-munger-76/58499)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 22, 2006, 6:44am UTC](https://www.ruby-forum.com/t/ot-spam-was-re-text-munger-76/58499 "2006-04-22T06:44:47Z")

</div>

Adam S. \[mailto:removed\_email\_address@domain.invalid\] wrote: I know everyone here is Nice™, so I’m sure this is not the intent… but between this quiz and the Markov chain one, it seems we are building a set of utili…

---

## [Annoucing DPP's Ruby Playground](https://www.ruby-forum.com/t/annoucing-dpps-ruby-playground/58494)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 5\
**Last updated:** [April 22, 2006, 6:01am UTC](https://www.ruby-forum.com/t/annoucing-dpps-ruby-playground/58494 "2006-04-22T06:01:29Z")

</div>

Folks, I’ve just put up a wiki for tips, tricks, code snippets, and rants related to Ruby. “Dude, there are a ton of Ruby information sources, what makes yours different?” Glad you asked… I’ve been a hard-core Ja…

---

## [Synchronized object](https://www.ruby-forum.com/t/synchronized-object/58429)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 9\
**Last updated:** [April 22, 2006, 4:57am UTC](https://www.ruby-forum.com/t/synchronized-object/58429 "2006-04-22T04:57:24Z")

</div>

Dear ruby-talk, is there a nice, concise way to lock each and every method against all other methods of an object? To elaborate: I want to make sure that only one method of a specific object (not class) can run at a …

---

## [Problem with String.my\_custom\_func! "Can't change the value](https://www.ruby-forum.com/t/problem-with-string-my-custom-func-cant-change-the-value/58483)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 1\
**Last updated:** [April 22, 2006, 1:14am UTC](https://www.ruby-forum.com/t/problem-with-string-my-custom-func-cant-change-the-value/58483 "2006-04-22T01:14:44Z")

</div>

Hi all - I’m extending the String class to include a tidy\_up\_html() method that runs the string using tidy. Works great. However, I’d like to also have a tidy\_up\_html!() method and do it in place. The problem is th…

---

## [Testing a filter](https://www.ruby-forum.com/t/testing-a-filter/58471)

<div class="topic-metadata">

**Author:** [@Greg\_Brown](https://www.ruby-forum.com/u/Greg_Brown)\
**Replies:** 3\
**Last updated:** [April 21, 2006, 11:39pm UTC](https://www.ruby-forum.com/t/testing-a-filter/58471 "2006-04-21T23:39:12Z")

</div>

I’m now filtering ruby-forum.com out from the RubyTalk traffic, so I’m just testing to see if it worked. Feel free to ignore.

---

## [OFFTOPIC: console text viewer](https://www.ruby-forum.com/t/offtopic-console-text-viewer/58190)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 5\
**Last updated:** [April 21, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/offtopic-console-text-viewer/58190 "2006-04-21T23:23:48Z")

</div>

Hi, I need TXT file viewer, like cat or type, that works with Win9x, XP and has a linux version too. Has anyone idea? regards, Daniel

---

## [Ruby, Constants, and the real world](https://www.ruby-forum.com/t/ruby-constants-and-the-real-world/58447)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 1\
**Last updated:** [April 21, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/ruby-constants-and-the-real-world/58447 "2006-04-21T21:51:13Z")

</div>

For as much flack as Ruby takes for having constants which can be changed, I was amused to find this aritcle: http://www.newscientist.com/article/dn9033-another-fundamental-constant-accused-of-changing.html posted at …

---

## [BBEdit, Ruby and Intel Macs](https://www.ruby-forum.com/t/bbedit-ruby-and-intel-macs/58381)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [April 21, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/bbedit-ruby-and-intel-macs/58381 "2006-04-21T21:23:32Z")

</div>

Can anyone verify (as in “yes” or “no”) that the Ruby language module for BBEdit located here: http://www.rubygarden.com/ruby/ruby?action=browse&diff=1&id=BbEdit does not work on Mac Intel machines? I copied the plugi…

---

## [RubyScript2Exe in Cygwin and gets/readline: unexpected EOFEr](https://www.ruby-forum.com/t/rubyscript2exe-in-cygwin-and-gets-readline-unexpected-eofer/58458)

<div class="topic-metadata">

**Author:** [@SSSSSren\_Nils\_Schuc](https://www.ruby-forum.com/u/SSSSSren_Nils_Schuc)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-in-cygwin-and-gets-readline-unexpected-eofer/58458 "2006-04-21T21:01:55Z")

</div>

Hi, I’m planning on distributing software using the very helpful RubyScript2Exe tool. However, I’ve found that, when used on Windows with Cygwin, it has some unexpected behaviour with the IO#gets / IO#readline method…

---

## [Very Strange Error(s)](https://www.ruby-forum.com/t/very-strange-error-s/58141)

<div class="topic-metadata">

**Author:** [@bobh](https://www.ruby-forum.com/u/bobh)\
**Replies:** 11\
**Last updated:** [April 21, 2006, 8:21pm UTC](https://www.ruby-forum.com/t/very-strange-error-s/58141 "2006-04-21T20:21:48Z")

</div>

Hi, I’ve been encountering strange behaviour with Ruby recently. I’m wondering if anybody has seen anything like this before or if anyone has any ideas. Here’s what’s happening: something that should be a String tu…

---

## [Simple example of failed attempts to use a user agent header](https://www.ruby-forum.com/t/simple-example-of-failed-attempts-to-use-a-user-agent-header/94121)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/simple-example-of-failed-attempts-to-use-a-user-agent-header/94121 "2006-04-21T20:15:38Z")

</div>

When I try to use the User-Agent header in a hash, I get: $ ./tryua01.rb /usr/lib/ruby/1.8/net/protocol.rb:83:in initialize': can't convert URI::HTTP into String (TypeError) from /usr/lib/ruby/1.8/net/protocol…

---

## [Problems trying to feed a user agent header to Net::HTTP.get](https://www.ruby-forum.com/t/problems-trying-to-feed-a-user-agent-header-to-net-http-get/58444)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [April 21, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/problems-trying-to-feed-a-user-agent-header-to-net-http-get/58444 "2006-04-21T19:47:56Z")

</div>

Say, I thought I had this working at one point, but I don’t now seem to be able to feed a user agent header to the get\_response, nor the get method now. Presumably I was mistaken to believe I ever had it. Can someon…

---

## [How to figure out what class a method is in for a \*class met](https://www.ruby-forum.com/t/how-to-figure-out-what-class-a-method-is-in-for-a-class-met/94108)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 6\
**Last updated:** [April 21, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-figure-out-what-class-a-method-is-in-for-a-class-met/94108 "2006-04-21T18:46:12Z")

</div>

Hi all - Given the following bit of code, I’d like it to spit out “Cat” followed by “Dog”, but what I get now is “Object” twice. class Animal def self.what\_am\_i self.class end end class Cat \< Animal end class…

---

## [XML parser with file names and line numbers](https://www.ruby-forum.com/t/xml-parser-with-file-names-and-line-numbers/58374)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 8\
**Last updated:** [April 21, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/xml-parser-with-file-names-and-line-numbers/58374 "2006-04-21T17:59:55Z")

</div>

Howdy, Is there a Ruby XML parser that includes the file name and line number for elements? Thanks, David

---

## [Ruby Users of Minnesota Meeting - April 25th, 7:30PM](https://www.ruby-forum.com/t/ruby-users-of-minnesota-meeting-april-25th-7-30pm/58436)

<div class="topic-metadata">

**Author:** [@Charles\_O\_Nutter](https://www.ruby-forum.com/u/Charles_O_Nutter)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/ruby-users-of-minnesota-meeting-april-25th-7-30pm/58436 "2006-04-21T17:28:35Z")

</div>

We will have our next meeting on April 25th at 7:30PM. http://ruby.mn - RUM homepage The Agenda: Announcements An Introduction to Capistrano (formerly Switchtower) presented by Jonathan Dahl; this should open the do…

---

## [Access the varibles](https://www.ruby-forum.com/t/access-the-varibles/58398)

<div class="topic-metadata">

**Author:** [@marni](https://www.ruby-forum.com/u/marni)\
**Replies:** 1\
**Last updated:** [April 21, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/access-the-varibles/58398 "2006-04-21T17:03:53Z")

</div>

Hello ruby and rails! I have problem to accees the perticuutr varible from conatool.rb to modelpage i.e .rb file in model folder Can any one suggest me Marni!

---

## [Threading example in FAQ 4.2 is slightly broken?](https://www.ruby-forum.com/t/threading-example-in-faq-4-2-is-slightly-broken/58410)

<div class="topic-metadata">

**Author:** [@nctodc](https://www.ruby-forum.com/u/nctodc)\
**Replies:** 8\
**Last updated:** [April 21, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/threading-example-in-faq-4-2-is-slightly-broken/58410 "2006-04-21T16:36:19Z")

</div>

Hi all, I just ran the example at the end of FAQ 4.2 http://www.rubycentral.com/faq/rubyfaq-4.html#ss4.2 The FAQ text says this produces: onetwo: : 00 onetwo: : 11 onetwo: : 33 This confused me, so I ran the cod…

---

## [Re: Segmentation Fault](https://www.ruby-forum.com/t/re-segmentation-fault/58425)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/re-segmentation-fault/58425 "2006-04-21T16:17:45Z")

</div>

From: Daniel B. removed\_email\_address@domain.invalid C:\\downloads\>ruby ruby-oci8-0.1.14-mswin32.rb information. favor Park H. Excellent, thanks! Dan

---

## [Re: CHM of documentation (core/stdlib)?](https://www.ruby-forum.com/t/re-chm-of-documentation-core-stdlib/58424)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/re-chm-of-documentation-core-stdlib/58424 "2006-04-21T15:53:06Z")

</div>

I wish there were also a CHM of the 1.84 reference, including the core language and standard libraries. Jamal

---

## [Re: ruby-ldap on Windows (built)](https://www.ruby-forum.com/t/re-ruby-ldap-on-windows-built/94113)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 21, 2006, 2:35pm UTC](https://www.ruby-forum.com/t/re-ruby-ldap-on-windows-built/94113 "2006-04-21T14:35:06Z")

</div>

Ian M. wrote last Friday, April 21, 2006 3:47 AM: I worked with Chris S. to fix the issues on Windows and am pleased to say that the result is the release of version 0.9.5, the first version known to work on Windows…

---

## [Retrieving Rubyforge login info on Mac Os X](https://www.ruby-forum.com/t/retrieving-rubyforge-login-info-on-mac-os-x/58413)

<div class="topic-metadata">

**Author:** [@Stefano\_T](https://www.ruby-forum.com/u/Stefano_T)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 12:25pm UTC](https://www.ruby-forum.com/t/retrieving-rubyforge-login-info-on-mac-os-x/58413 "2006-04-21T12:25:42Z")

</div>

Hi all, On osx, I’m developing a small library hosted on rubyforge \[1\]. A rakefile task takes care of automatizing the release process. The code snippet shown here allows the login information (username and password…

---

## [Zero is true, but it isn't](https://www.ruby-forum.com/t/zero-is-true-but-it-isnt/58264)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 11\
**Last updated:** [April 21, 2006, 11:48am UTC](https://www.ruby-forum.com/t/zero-is-true-but-it-isnt/58264 "2006-04-21T11:48:31Z")

</div>

I was wondering today, so I tried this: puts “It’s true” if 0 Which prints “It’s true”, meaning 0 is not false. (This should surprise C/C++/etc. people). So that means puts “It’s equal” if 0 == true but 0 != true. …

---

## [Vim 7 ruby omni-complete 0.4](https://www.ruby-forum.com/t/vim-7-ruby-omni-complete-0-4/58283)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 5\
**Last updated:** [April 21, 2006, 9:03am UTC](https://www.ruby-forum.com/t/vim-7-ruby-omni-complete-0-4/58283 "2006-04-21T09:03:32Z")

</div>

Once again after some work and outside contribution we have another release If you missed the original announcement, rubycomplete provides a vim7 omni-completion function (code completion) for vim. It is based on com…

---

## [Gateway still down?](https://www.ruby-forum.com/t/gateway-still-down/93976)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 2\
**Last updated:** [April 21, 2006, 8:23am UTC](https://www.ruby-forum.com/t/gateway-still-down/93976 "2006-04-21T08:23:01Z")

</div>

The news:comp.lang.org \<-\> ruby-talk gateway doesn’t seem to be working. Is someone working on it? \[This message sent via ruby-talk; I’ll send another from comp.lang.ruby\] Regards,

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

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