# Ruby

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

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

---

## [REXML 3.1.6 has XPath problems](https://www.ruby-forum.com/t/rexml-3-1-6-has-xpath-problems/80707)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 3\
**Last updated:** [January 2, 2007, 11:21am UTC](https://www.ruby-forum.com/t/rexml-3-1-6-has-xpath-problems/80707 "2007-01-02T11:21:12Z")

</div>

Hi, I found some bugs of REXML 3.1.6 related XPath. The following code raises an exception: require ‘rexml/document’ source = \<\<-XML TEXT1 TEXT2 XML doc = REXML::Document.new(source) predicate = “…

---

## [The problem when i upgrade to 1-8-5](https://www.ruby-forum.com/t/the-problem-when-i-upgrade-to-1-8-5/80930)

<div class="topic-metadata">

**Author:** [@microtime](https://www.ruby-forum.com/u/microtime)\
**Replies:** 1\
**Last updated:** [January 2, 2007, 8:51am UTC](https://www.ruby-forum.com/t/the-problem-when-i-upgrade-to-1-8-5/80930 "2007-01-02T08:51:04Z")

</div>

the old stuffs are dead…should I reinstall rails and lighttpd and so on ???i just did not know that upgrade ruby wil make me lost these things. ji-wen-jideibook-g4:~/expenses jiwen$ script/server webrick ./script/…/c…

---

## [What should i start off with](https://www.ruby-forum.com/t/what-should-i-start-off-with/80926)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 9\
**Last updated:** [January 2, 2007, 6:16am UTC](https://www.ruby-forum.com/t/what-should-i-start-off-with/80926 "2007-01-02T06:16:59Z")

</div>

Hi, I thought I was going to learn using Ruby On Rails, but it seems like its the wrong tool for me. It seems like Ruby On Rails is for people who wants to create quick website-applications and genrally ‘website-stuff…

---

## [Multiple Versions of Ruby on same machine](https://www.ruby-forum.com/t/multiple-versions-of-ruby-on-same-machine/80908)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 6\
**Last updated:** [January 2, 2007, 6:06am UTC](https://www.ruby-forum.com/t/multiple-versions-of-ruby-on-same-machine/80908 "2007-01-02T06:06:58Z")

</div>

I’d like to include a complete version of Ruby, including all the necessary libs, in the source tree for our internal app. That will allow our unit tests/QA procedure/app deployment scripts to take responsibility for…

---

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

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 2, 2007, 5:06am UTC](https://www.ruby-forum.com/t/january-phoenix-ruby-users-group-meeting/80928 "2007-01-02T05:06:53Z")

</div>

What: The January Phoenix Ruby U. Group meeting When: Monday, January 8, at 6:15pm, Where: Axway (formerly known as Cyclone Commerce) Please see http://www.rubyaz.org/groups/prug/ for a map and directions Topi…

---

## [Setting \_\_FILE\_\_ impossible with rb\_eval\_string() - hack ide](https://www.ruby-forum.com/t/setting-file-impossible-with-rb-eval-string-hack-ide/80922)

<div class="topic-metadata">

**Author:** [@John-Mason\_PSShack](https://www.ruby-forum.com/u/John-Mason_PSShack)\
**Replies:** 0\
**Last updated:** [January 2, 2007, 3:40am UTC](https://www.ruby-forum.com/t/setting-file-impossible-with-rb-eval-string-hack-ide/80922 "2007-01-02T03:40:46Z")

</div>

In the following C code: int main(const int argc, const char \*\* argv){ ruby\_init(); ruby\_init\_loadpath(); ruby\_script(argv\[0\]); ruby\_sourcefile = rb\_source\_filename(argv\[0\]); rb\_eval\_string(“puts FILE”); /\* → ret…

---

## [OT: Python Worship](https://www.ruby-forum.com/t/ot-python-worship/80742)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 9\
**Last updated:** [January 2, 2007, 2:14am UTC](https://www.ruby-forum.com/t/ot-python-worship/80742 "2007-01-02T02:14:37Z")

</div>

Those Pythonistas never quit, do they? :slight\_smile: http://www.world-science.net/othernews/061130\_python.htm – M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P) http://borasky-research.blogspot.com/ …

---

## [Ruby Interpreter on OSX 10.4.7 within Eclipse](https://www.ruby-forum.com/t/ruby-interpreter-on-osx-10-4-7-within-eclipse/80879)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 2, 2007, 1:50am UTC](https://www.ruby-forum.com/t/ruby-interpreter-on-osx-10-4-7-within-eclipse/80879 "2007-01-02T01:50:32Z")

</div>

Learning R. and working in the Eclipse IDE - which I use for Java programming - what interpreter would you recommend using and where can I find it? Any help would be appreciated. Thanks.

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/225936)

<div class="topic-metadata">

**Author:** [@Alex\_Watt](https://www.ruby-forum.com/u/Alex_Watt)\
**Replies:** 0\
**Last updated:** [January 1, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/no-subject/225936 "2007-01-01T22:56:13Z")

</div>

Unfortunately, I’ve only done 1 extra credit thing (wildcard characters). I couldn’t think of a good way of doing the snaking text without adding many more lines, so I didn’t. class Array def positions(value) posi…

---

## [Yahoo API and Ruby](https://www.ruby-forum.com/t/yahoo-api-and-ruby/80915)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 1, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/yahoo-api-and-ruby/80915 "2007-01-01T22:52:12Z")

</div>

I’m working on a couple of large sites that aren’t sending the correct response codes for missing pages. I want to use the Yahoo API key to search Yahoo’s cache to see if it has any clues about what pages are sending…

---

## [OS-Specific "\\n" Interpolation?](https://www.ruby-forum.com/t/os-specific-n-interpolation/102639)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 0\
**Last updated:** [January 1, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/os-specific-n-interpolation/102639 "2007-01-01T20:41:59Z")

</div>

Coming from Perl and C I have come to expect “\\n” to be translated differently depending on OS–especially when doing sockets protocol programming. Ruby appears to be subject to this same OS/clib translation issue whi…

---

## [Project hosting with continuous integration](https://www.ruby-forum.com/t/project-hosting-with-continuous-integration/80907)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [January 1, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/project-hosting-with-continuous-integration/80907 "2007-01-01T20:12:05Z")

</div>

One of the things I’ve wanted lately is a better hosting and continuous integration environment for my projects. So I decided to start chipping away at the problem. You can see my early efforts at http://metaspot.net…

---

## [Change Graph. (or "Tracking ERB Substitutions?")](https://www.ruby-forum.com/t/change-graph-or-tracking-erb-substitutions/80898)

<div class="topic-metadata">

**Author:** [@jashmenn](https://www.ruby-forum.com/u/jashmenn)\
**Replies:** 2\
**Last updated:** [January 1, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/change-graph-or-tracking-erb-substitutions/80898 "2007-01-01T19:51:55Z")

</div>

Hey all, I have a complicated problem on my hands and I was wondering if you could help. Let me explain my situation: At work we are developing a rails system where the site is dynamic for internal use but the pages o…

---

## [OS-Specific "\\n" Interpolation?](https://www.ruby-forum.com/t/os-specific-n-interpolation/80902)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 1\
**Last updated:** [January 1, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/os-specific-n-interpolation/80902 "2007-01-01T19:45:52Z")

</div>

Coming from Perl and C I have come to expect “\\n” to be translated differently depending on OS–especially when doing sockets protocol programming. Ruby appears to be subject to this same OS/clib translation issue whi…

---

## [What is the meaning for klass](https://www.ruby-forum.com/t/what-is-the-meaning-for-klass/80904)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 1\
**Last updated:** [January 1, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/what-is-the-meaning-for-klass/80904 "2007-01-01T19:45:52Z")

</div>

Hi all, Just out of curiosity: what is the meaning of klass in Pickaxe 2? Thanks, Li

---

## [ERb Request](https://www.ruby-forum.com/t/erb-request/80851)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 8\
**Last updated:** [January 1, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/erb-request/80851 "2007-01-01T19:15:46Z")

</div>

Could someone point me to the ERb Homepage, or whom I need to email to make a feature request for ERb. Thanks, Matt PS. I’m wanting to request that there be a way to make comments in large chunks (like /\* \*/ in C o…

---

## [Does eql? do a deep comparison of objects?](https://www.ruby-forum.com/t/does-eql-do-a-deep-comparison-of-objects/80676)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [January 1, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/does-eql-do-a-deep-comparison-of-objects/80676 "2007-01-01T19:15:36Z")

</div>

If I have two objects A and B where each is of the same type but have arbitrarily complex object graphs, will the result of A eql? B be false if ANY part of the object graph differs, no matter how deep it is? In my sp…

---

## [Contest season (or something)](https://www.ruby-forum.com/t/contest-season-or-something/80660)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 14\
**Last updated:** [January 1, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/contest-season-or-something/80660 "2007-01-01T17:41:36Z")

</div>

It looks like there’s a cool programming contest scheduled for New Year’s Eve: http://opc.kurukshetra.org.in/opc/ a $1,000 first prize, a $500 second prize, and 5 x $100 third prizes. I’m not sure which timezone this…

---

## [Webrick-webdav(gem) served files are mounted only read-only](https://www.ruby-forum.com/t/webrick-webdav-gem-served-files-are-mounted-only-read-only/74281)

<div class="topic-metadata">

**Author:** [@crux](https://www.ruby-forum.com/u/crux)\
**Replies:** 4\
**Last updated:** [January 1, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/webrick-webdav-gem-served-files-are-mounted-only-read-only/74281 "2007-01-01T14:55:25Z")

</div>

while i easily get a webdav server up an running with gem install webrick-webdav and require ‘webrick’ require ‘webrick/httpservlet/webdavhandler’ server = WEBrick::HTTPServer.new(context.values) server.mount("/web…

---

## [Newbie: It works, how can I make it better?](https://www.ruby-forum.com/t/newbie-it-works-how-can-i-make-it-better/80744)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 13\
**Last updated:** [January 1, 2007, 9:36am UTC](https://www.ruby-forum.com/t/newbie-it-works-how-can-i-make-it-better/80744 "2007-01-01T09:36:59Z")

</div>

I wrote this little prog giving the user two choices. I would really appreciate any advice on how I can improve anything about this program (structure, layout, etc) Many thanks! Code: Name: 2choices-jb.rb Date: D…

---

## [Ruby Profiler and ruby-prof Issues break working code?](https://www.ruby-forum.com/t/ruby-profiler-and-ruby-prof-issues-break-working-code/80860)

<div class="topic-metadata">

**Author:** [@Tyler\_P](https://www.ruby-forum.com/u/Tyler_P)\
**Replies:** 4\
**Last updated:** [January 1, 2007, 6:10am UTC](https://www.ruby-forum.com/t/ruby-profiler-and-ruby-prof-issues-break-working-code/80860 "2007-01-01T06:10:47Z")

</div>

I wrote some Ruby code to solve a little puzzle ( #14 Longest Collatz Sequence - Project Euler) that functions correctly. It solves for the answer and gets it right, it’s just a little slower than I would like. So …

---

## [Stupid Ruby Tricks](https://www.ruby-forum.com/t/stupid-ruby-tricks/80845)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 4\
**Last updated:** [January 1, 2007, 4:22am UTC](https://www.ruby-forum.com/t/stupid-ruby-tricks/80845 "2007-01-01T04:22:40Z")

</div>

Hey guys, To try out this “post blog articles to the list, maybe insight some discussion” idea, I offer the community this. I maintain the “Stupid Ruby Tricks” wiki over at http://sn.oplo.ws and I recently compiled a …

---

## [Re: Open source credit card processing in ruby](https://www.ruby-forum.com/t/re-open-source-credit-card-processing-in-ruby/80885)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 0\
**Last updated:** [January 1, 2007, 4:14am UTC](https://www.ruby-forum.com/t/re-open-source-credit-card-processing-in-ruby/80885 "2007-01-01T04:14:39Z")

</div>

Here’s my take on the situation: Since anyone using an open-source library to send transactions to Vital can potentially modify the code, they are essentially becoming Vital developers. I have a feeling that Vital mig…

---

## [Passing a block around](https://www.ruby-forum.com/t/passing-a-block-around/80869)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 2\
**Last updated:** [December 31, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/passing-a-block-around/80869 "2006-12-31T22:05:41Z")

</div>

I want to pass a block to method foo then call method bar from foo and have bar yield to the block, I also want to be able to call bar directly with a block, how to do this neatly. e.g. I want to be able to do foo {…

---

## [, too late?](https://www.ruby-forum.com/t/too-late/80739)

<div class="topic-metadata">

**Author:** [@Alex\_Watt](https://www.ruby-forum.com/u/Alex_Watt)\
**Replies:** 2\
**Last updated:** [December 31, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/too-late/80739 "2006-12-31T16:46:50Z")

</div>

I’ve only just had time to finish it. If it’s not too late, here’s what I’ve done: Bishopt = \[ “BB------”, # 0 “B–B----”, # 1 “B----B–”, # 2 “B------B”, # 3 “-BB-----”, # 4 “–BB----”, # 5 “–B--B–”, # 6 “–B----…

---

## [Odd 'include' behaviour?](https://www.ruby-forum.com/t/odd-include-behaviour/80748)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 4\
**Last updated:** [December 31, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/odd-include-behaviour/80748 "2006-12-31T15:46:44Z")

</div>

Wondering if the following behaviour is a bug or a feature: ####### module Foo class Bar end def baz end end o = Foo::Bar.new p respond\_to?(:baz) # false p o.respond\_to?(:baz) # false include Foo o = Bar.new …

---

## [Help please - openssl and ruby](https://www.ruby-forum.com/t/help-please-openssl-and-ruby/80215)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [December 31, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/help-please-openssl-and-ruby/80215 "2006-12-31T15:29:35Z")

</div>

Hi, I’ve run into a problem using openssl and ruby, which I can’t solve. I have a public key, a text string, and a signature, and I want to check that the signature was created from the text string using the appropri…

---

## [What we have here is a retard pretending to be a computer sc](https://www.ruby-forum.com/t/what-we-have-here-is-a-retard-pretending-to-be-a-computer-sc/80591)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 13\
**Last updated:** [December 31, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/what-we-have-here-is-a-retard-pretending-to-be-a-computer-sc/80591 "2006-12-31T14:30:37Z")

</div>

http://www.iam.unibe.ch/~scg/Archive/Papers/Scha04bOOEncapsulation.pdf . this retard thinks Smalltalk and Ruby don’t have private public and what not. what a joke. This is almost as bad as James McGovern without the p…

---

## [Strong encapsulation, static typing and unit testing](https://www.ruby-forum.com/t/strong-encapsulation-static-typing-and-unit-testing/80689)

<div class="topic-metadata">

**Author:** [@npenkov](https://www.ruby-forum.com/u/npenkov)\
**Replies:** 6\
**Last updated:** [December 31, 2006, 10:30am UTC](https://www.ruby-forum.com/t/strong-encapsulation-static-typing-and-unit-testing/80689 "2006-12-31T10:30:07Z")

</div>

Hi Everyone, I’ve been following the discussion on strong encapsulation with interest… It’s a really interesting topic. Reading through the posts and some of the Ruby books and documentation, I’ve come across the ide…

---

## [\[ANN\] Ruby-VPI 14.0.0](https://www.ruby-forum.com/t/ann-ruby-vpi-14-0-0/80849)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 31, 2006, 5:28am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-14-0-0/80849 "2006-12-31T05:28:56Z")

</div>

Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. â€¢ http://ruby-vpi.rubyforge.org â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”…

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

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