# Ruby

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

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

---

## [Irb in Firefox tab](https://www.ruby-forum.com/t/irb-in-firefox-tab/86409)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 1:45am UTC](https://www.ruby-forum.com/t/irb-in-firefox-tab/86409 "2007-02-22T01:45:16Z")

</div>

Hi, I want to embed IRB in a Firefox tab. I know that its feasible as \_why has done so already, but the code was said to be too flawed to release it to the wild public. My question now is, as to how to realize it? I…

---

## [Please illuminate how stupid I am re: initialization blocks](https://www.ruby-forum.com/t/please-illuminate-how-stupid-i-am-re-initialization-blocks/86391)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 5\
**Last updated:** [February 21, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/please-illuminate-how-stupid-i-am-re-initialization-blocks/86391 "2007-02-21T23:42:01Z")

</div>

I seem to use blocks much differently from other people and that frightens me a little. (Maybe I’m being really dumb and nobody wants to say anything.) Before I get into what I do, let me define how normal people cal…

---

## [Need help with a general concept](https://www.ruby-forum.com/t/need-help-with-a-general-concept/86249)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [February 21, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/need-help-with-a-general-concept/86249 "2007-02-21T21:59:25Z")

</div>

I’m trying to make an application with the following properties: It uses FXRuby It’s a multiplayer turn based card game Played over a network, or the internet Players may play cards during other players turns Player…

---

## [ActiveMerchant 1.0.0 Release](https://www.ruby-forum.com/t/activemerchant-1-0-0-release/86376)

<div class="topic-metadata">

**Author:** [@cody\_f](https://www.ruby-forum.com/u/cody_f)\
**Replies:** 5\
**Last updated:** [February 21, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/activemerchant-1-0-0-release/86376 "2007-02-21T21:20:11Z")

</div>

This is just a quick announcement to let you know that we have released ActiveMerchant 1.0.0 and created a new homepage for the project at http://activemerchant.org. The homepage has links to all relevant information…

---

## [Interval relationships (Was: Re: Range#overlap?)](https://www.ruby-forum.com/t/interval-relationships-was-re-range-overlap/86358)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 2\
**Last updated:** [February 21, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/interval-relationships-was-re-range-overlap/86358 "2007-02-21T20:06:44Z")

</div>

On 2/21/07, Pierre-Charles D. removed\_email\_address@domain.invalid wrote: FWIW, people working with temporal logics and event algebras define 13 possible relationships between two intervals (see Fig. 4 page 10 of \[1\]…

---

## [Xmlrpc (working on mac, not on linux, why?)](https://www.ruby-forum.com/t/xmlrpc-working-on-mac-not-on-linux-why/86374)

<div class="topic-metadata">

**Author:** [@zaq](https://www.ruby-forum.com/u/zaq)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/xmlrpc-working-on-mac-not-on-linux-why/86374 "2007-02-21T20:00:57Z")

</div>

I’m guessing I missed some install, but I can’t find out what because the error. OSX ruby 1.8.2 (2004-12-25) \[powerpc-darwin8.0\] RHEL4 ruby 1.8.3 (2005-09-21) \[i386-linux\] ERROR LoadError: no such file to load – …

---

## [Is net/https part of ruby's stdlib?](https://www.ruby-forum.com/t/is-net-https-part-of-rubys-stdlib/86350)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 3\
**Last updated:** [February 21, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/is-net-https-part-of-rubys-stdlib/86350 "2007-02-21T19:41:35Z")

</div>

Is net/https part of Ruby’s standard library? Can I safely assume that it is installed when developing a gem for distribution? It seems to be installed on FC4 with the ruby-libs package, but it looks like you have to…

---

## [Weird thing with gsub!](https://www.ruby-forum.com/t/weird-thing-with-gsub/86365)

<div class="topic-metadata">

**Author:** [@niceview](https://www.ruby-forum.com/u/niceview)\
**Replies:** 1\
**Last updated:** [February 21, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/weird-thing-with-gsub/86365 "2007-02-21T19:18:31Z")

</div>

I’d like to show you some example. – def t1(str) str = str.gsub(/1/, “!”) end def t2(str) str.gsub!(/1/, “!”) end a = “123” p t1(a) # =\> “!23” p a # =\> “123” a = “123” p t2(a) # =\> “!23” p a …

---

## [Interpolation of escaped characters in strings](https://www.ruby-forum.com/t/interpolation-of-escaped-characters-in-strings/86215)

<div class="topic-metadata">

**Author:** [@Eyal\_O](https://www.ruby-forum.com/u/Eyal_O)\
**Replies:** 8\
**Last updated:** [February 21, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/interpolation-of-escaped-characters-in-strings/86215 "2007-02-21T19:02:26Z")

</div>

Hi, I’ve searched through the newsgroup, found some related stuff (about ‘string interpolation at will’) but couldn’t quite figure it out completely My question: I read a string from file, using ‘readlines’, containi…

---

## [MasterView rails-optimized (x)html friendly template engine](https://www.ruby-forum.com/t/masterview-rails-optimized-x-html-friendly-template-engine/86356)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/masterview-rails-optimized-x-html-friendly-template-engine/86356 "2007-02-21T18:27:20Z")

</div>

MasterView is a rails-optimized (x)html friendly template engine plugin that provides another option to the existing rails view templates (rhtml and rxml). The main idea is to provide a template engine that would prov…

---

## [Send\_data from remote http adress](https://www.ruby-forum.com/t/send-data-from-remote-http-adress/86348)

<div class="topic-metadata">

**Author:** [@webdevotion](https://www.ruby-forum.com/u/webdevotion)\
**Replies:** 1\
**Last updated:** [February 21, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/send-data-from-remote-http-adress/86348 "2007-02-21T18:01:17Z")

</div>

Hello, My first post here. I’m quite new to Ruby. I’m making a Flash application that loads external files from other servers onto the user’s hard disk. That’s why I need a way to connect to the remote locations ove…

---

## [Form posts twice - once as post and again as get. Help!](https://www.ruby-forum.com/t/form-posts-twice-once-as-post-and-again-as-get-help/86349)

<div class="topic-metadata">

**Author:** [@bakki](https://www.ruby-forum.com/u/bakki)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/form-posts-twice-once-as-post-and-again-as-get-help/86349 "2007-02-21T17:21:20Z")

</div>

Hi all, I am posting this here #1 out of desperation and #2 on chance that this might be an ERB issue and ofcourse most importantly because many rails gurus hang out here :slight\_smile: I am having a very strange pro…

---

## [Mechanize failure](https://www.ruby-forum.com/t/mechanize-failure/86329)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 7\
**Last updated:** [February 21, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/mechanize-failure/86329 "2007-02-21T15:43:45Z")

</div>

Hi all, Does anybody recognise this? $ gem check -t mechanize ERROR: While executing gem … (NameError) method \`use\_ssl?’ not defined in Net::HTTP This is on a Debian system, so I’ve probably forgotten an apt-get i…

---

## [Checking what a method has returned](https://www.ruby-forum.com/t/checking-what-a-method-has-returned/86270)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 7\
**Last updated:** [February 21, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/checking-what-a-method-has-returned/86270 "2007-02-21T15:24:43Z")

</div>

Hi, Im looking for a way of checking whether a method has returned true or false. for example i have an want to start off by checking if an image is already stored locally by calling " def checkCache". If the image i…

---

## [Digest.rb including wrong files on MacOSX](https://www.ruby-forum.com/t/digest-rb-including-wrong-files-on-macosx/86278)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 2\
**Last updated:** [February 21, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/digest-rb-including-wrong-files-on-macosx/86278 "2007-02-21T15:00:41Z")

</div>

I have been trying to install a Rails app called devalot (http://software.pmade.com/devalot) on my Mac (10.4 Tiger). I built Ruby 1.8.5 from source on this box, and have been using it daily for weeks for Rails develo…

---

## [Rubygem problems (maybe just on MacOS 10.4)](https://www.ruby-forum.com/t/rubygem-problems-maybe-just-on-macos-10-4/86314)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 11:57am UTC](https://www.ruby-forum.com/t/rubygem-problems-maybe-just-on-macos-10-4/86314 "2007-02-21T11:57:00Z")

</div>

It looks like there is a problem (I don’t know if it is Mac specific - although I do not think so) with gem and proxies: meisterbrau:~ riva$ gem update --http-proxy http://my.proxy.com:8080 ERROR: While executing gem…

---

## [Templates in Ruport class](https://www.ruby-forum.com/t/templates-in-ruport-class/86155)

<div class="topic-metadata">

**Author:** [@pfocchken](https://www.ruby-forum.com/u/pfocchken)\
**Replies:** 4\
**Last updated:** [February 21, 2007, 11:26am UTC](https://www.ruby-forum.com/t/templates-in-ruport-class/86155 "2007-02-21T11:26:51Z")

</div>

Hello, all. How can I use a templates in the ruport. Does the ruport class support templates? Thank you.

---

## [scRUBYt! 0.2.3 - Hpricot and Mechanize on steroids](https://www.ruby-forum.com/t/scrubyt-0-2-3-hpricot-and-mechanize-on-steroids/86308)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 3\
**Last updated:** [February 21, 2007, 11:19am UTC](https://www.ruby-forum.com/t/scrubyt-0-2-3-hpricot-and-mechanize-on-steroids/86308 "2007-02-21T11:19:17Z")

</div>

Hello, I am pleased to announce that the new release of scRUBYt!, 0.2.3 is available for download. scRUBYt! is a very easy to learn and use, yet powerful Web scraping framework based on Hpricot and mechanize. It’s pu…

---

## [\[libxml\] NoMethodError for XML::Node::Set](https://www.ruby-forum.com/t/libxml-nomethoderror-for-xml-set/86306)

<div class="topic-metadata">

**Author:** [@bastien-vaucher](https://www.ruby-forum.com/u/bastien-vaucher)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 10:36am UTC](https://www.ruby-forum.com/t/libxml-nomethoderror-for-xml-set/86306 "2007-02-21T10:36:13Z")

</div>

I just began using libxml and I wanted to find the “body” tag in a xhtml file, so i tried this : doc = XML::Document.file(@file) root = doc.root nodeset = @root.find(“body”) node = nodeset.first but when I execute …

---

## [Validates\_associated trouble](https://www.ruby-forum.com/t/validates-associated-trouble/86285)

<div class="topic-metadata">

**Author:** [@alfredogz](https://www.ruby-forum.com/u/alfredogz)\
**Replies:** 1\
**Last updated:** [February 21, 2007, 10:34am UTC](https://www.ruby-forum.com/t/validates-associated-trouble/86285 "2007-02-21T10:34:10Z")

</div>

Hello, I need to modelate a genealogical tree with: animal,Dam(Mother) and Sire(Father) the Dam and Sire are Animals then i modelate this: class Animal \< ActiveRecord::Base belongs\_to :sire belongs\_to :dam validat…

---

## [Dealing with xpath using libxml](https://www.ruby-forum.com/t/dealing-with-xpath-using-libxml/86305)

<div class="topic-metadata">

**Author:** [@bastien-vaucher](https://www.ruby-forum.com/u/bastien-vaucher)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 10:32am UTC](https://www.ruby-forum.com/t/dealing-with-xpath-using-libxml/86305 "2007-02-21T10:32:41Z")

</div>

Hi, I m trying to generate a xslt file from xhtml using libxml and when I m parsing the xhtml file and look at xpaths i get something ugly like : //\[2\]/\*\[1\] I tried to do the same with REXML and i obtained : /html/b…

---

## [Irb completion fails on Intel Mac with ruby-1.8.5](https://www.ruby-forum.com/t/irb-completion-fails-on-intel-mac-with-ruby-1-8-5/86150)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 3\
**Last updated:** [February 21, 2007, 10:17am UTC](https://www.ruby-forum.com/t/irb-completion-fails-on-intel-mac-with-ruby-1-8-5/86150 "2007-02-21T10:17:08Z")

</div>

Building ruby-1.8.5-p12 on OS X 10.4 gave me an irb that supported command completion, but did not have support for vi\_editing\_mode. % irb irb(main):001:0\> Readline.vi\_editing\_mode NotImplementedError: the vi\_editin…

---

## [Checking server load from ruby?](https://www.ruby-forum.com/t/checking-server-load-from-ruby/86168)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 21, 2007, 4:52am UTC](https://www.ruby-forum.com/t/checking-server-load-from-ruby/86168 "2007-02-21T04:52:45Z")

</div>

hi - are there any ruby library functions for checking server load and general system status? or should i just use something like uptime ? tx! /dc David "DC" Collier mailto:removed\_email\_address@domain.invalid …

---

## [Attributes for Soap elements](https://www.ruby-forum.com/t/attributes-for-soap-elements/86281)

<div class="topic-metadata">

**Author:** [@Roy\_Britten](https://www.ruby-forum.com/u/Roy_Britten)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 4:01am UTC](https://www.ruby-forum.com/t/attributes-for-soap-elements/86281 "2007-02-21T04:01:42Z")

</div>

Hi, I’m accessing a web service that is largely using attributes rather than elements for the request. How can I create a request containing attributes? I create the SOAP driver with require ‘soap/wsdlDriver’ drive…

---

## [Exit a block](https://www.ruby-forum.com/t/exit-a-block/86207)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 6\
**Last updated:** [February 21, 2007, 3:42am UTC](https://www.ruby-forum.com/t/exit-a-block/86207 "2007-02-21T03:42:54Z")

</div>

I need to step through a byte array untill I find a certain value, then I need to check that the next item in the array is a certain value, it is the first index that I require. So two questions: How would you do i…

---

## [Pattern matching](https://www.ruby-forum.com/t/pattern-matching/85935)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 4\
**Last updated:** [February 21, 2007, 3:07am UTC](https://www.ruby-forum.com/t/pattern-matching/85935 "2007-02-21T03:07:35Z")

</div>

Hi! I recently got engaged in a thread on comp.lang.functional about ML and Lisp. I posted some simple but efficient OCaml code that is difficult to translate into Lisp: let rec ( +: ) f g = match f, g with | Q n,Q …

---

## [Tab and arrow-keys in gets](https://www.ruby-forum.com/t/tab-and-arrow-keys-in-gets/86260)

<div class="topic-metadata">

**Author:** [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Replies:** 1\
**Last updated:** [February 21, 2007, 2:13am UTC](https://www.ruby-forum.com/t/tab-and-arrow-keys-in-gets/86260 "2007-02-21T02:13:32Z")

</div>

Hi! I’m making a simple Ruby shell. It’s all basing on an endless while-loop and $stdin.gets. But here (on my Linux box) I cannot use the arrow key. It just shows: “^\[\[A”. And it would be great too have a tab-feature…

---

## [Ruby logo gem with reflection](https://www.ruby-forum.com/t/ruby-logo-gem-with-reflection/86263)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 12:53am UTC](https://www.ruby-forum.com/t/ruby-logo-gem-with-reflection/86263 "2007-02-21T00:53:47Z")

</div>

The logo banner on the Ruby home page has a nice reflective gem. I’m not sure about the copyrights/trademarks for that particular banner on the Ruby home page, and the Ruby Logo kit did not come with a reflective vers…

---

## [Re: Hpricot problems](https://www.ruby-forum.com/t/re-hpricot-problems/86258)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 12:12am UTC](https://www.ruby-forum.com/t/re-hpricot-problems/86258 "2007-02-21T00:12:23Z")

</div>

Any pointers? I had issues with hpricot until I upgraded to ruby-1.8.5-mswin32. Afterwards, no problems. donald

---

## [Registration Now Open For Gotham Ruby Conference](https://www.ruby-forum.com/t/registration-now-open-for-gotham-ruby-conference/86257)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [February 21, 2007, 12:07am UTC](https://www.ruby-forum.com/t/registration-now-open-for-gotham-ruby-conference/86257 "2007-02-21T00:07:23Z")

</div>

You may now register for GoRuCo: http://goruco.eventwax.com/gotham-ruby-conference/register The cost is $100 per ticket. Seating is quite limited, so be sure to grab your tickets as soon as you can! == Event Details…

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

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