# Ruby

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

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

---

## [REXML get specific element](https://www.ruby-forum.com/t/rexml-get-specific-element/163194)

<div class="topic-metadata">

**Author:** [@pierre](https://www.ruby-forum.com/u/pierre)\
**Replies:** 14\
**Last updated:** [March 19, 2009, 7:40am UTC](https://www.ruby-forum.com/t/rexml-get-specific-element/163194 "2009-03-19T07:40:31Z")

</div>

All, I’m trying for the first time to play with XML and Ruby. Since I have only the core library at the moment, my choice went directly for REXML. So, here is my problem. I’m willing to get a specific element in my …

---

## [Script names in jruby stack traces](https://www.ruby-forum.com/t/script-names-in-jruby-stack-traces/163297)

<div class="topic-metadata">

**Author:** [@Lothar\_Werzinger](https://www.ruby-forum.com/u/Lothar_Werzinger)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 7:19am UTC](https://www.ruby-forum.com/t/script-names-in-jruby-stack-traces/163297 "2009-03-19T07:19:26Z")

</div>

I am incorporating scripting into our application. In order to mark errors for the user we parse the exception stacktrace and jython provides information about which line(s) in which script(s) participate in the call…

---

## [Free RAM problem](https://www.ruby-forum.com/t/free-ram-problem/163117)

<div class="topic-metadata">

**Author:** [@edouard](https://www.ruby-forum.com/u/edouard)\
**Replies:** 13\
**Last updated:** [March 19, 2009, 6:24am UTC](https://www.ruby-forum.com/t/free-ram-problem/163117 "2009-03-19T06:24:40Z")

</div>

Hi, I am doing some text processing. I clean every variable after each loop and use the GC.start ObjectSpace.garbage\_collect after each loop too. So I have three variables whose cumulative size always remain inferi…

---

## [How to use plugin as a gem? Have Sloution?](https://www.ruby-forum.com/t/how-to-use-plugin-as-a-gem-have-sloution/163309)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 6:00am UTC](https://www.ruby-forum.com/t/how-to-use-plugin-as-a-gem-have-sloution/163309 "2009-03-19T06:00:25Z")

</div>

I use following command for installing thinking-sphinx plugin but I got empty folder. F:\\RubyProjects\\SphinxTest\>ruby script/plugin install git://github.com/freelancing-god/thinking-sphinx.git Then I download thinki…

---

## [How to output two data elements from simple XML](https://www.ruby-forum.com/t/how-to-output-two-data-elements-from-simple-xml/163272)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 6\
**Last updated:** [March 19, 2009, 5:50am UTC](https://www.ruby-forum.com/t/how-to-output-two-data-elements-from-simple-xml/163272 "2009-03-19T05:50:58Z")

</div>

Hi I don’t understand how to output the exact data that I need from my xml document. I only need to get 2 data elements per xml segment, however I am getting the whole xml segment. Will you show me how to do this? -…

---

## [Code Review: PythonInterop2](https://www.ruby-forum.com/t/code-review-pythoninterop2/163301)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 2:15am UTC](https://www.ruby-forum.com/t/code-review-pythoninterop2/163301 "2009-03-19T02:15:12Z")

</div>

tfpt review “/shelveset:PythonInterop2;REDMOND\\tomat” Comment : Python & outer DLR (simple fixes): Renames onBindingError parameter to errorSuggestion to match the base method. Fixes restriction combination in Lan…

---

## [Problem with generic method resolution](https://www.ruby-forum.com/t/problem-with-generic-method-resolution/162440)

<div class="topic-metadata">

**Author:** [@stefan8107](https://www.ruby-forum.com/u/stefan8107)\
**Replies:** 4\
**Last updated:** [March 19, 2009, 2:07am UTC](https://www.ruby-forum.com/t/problem-with-generic-method-resolution/162440 "2009-03-19T02:07:00Z")

</div>

Hi, I have found out the following problem: require ‘System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ =\> true include System =\> Object include System::Linq::Expressions E…

---

## [Db:create with JRuby 1.2 and Rails 2.3.2](https://www.ruby-forum.com/t/db-create-with-jruby-1-2-and-rails-2-3-2/163076)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 1:32am UTC](https://www.ruby-forum.com/t/db-create-with-jruby-1-2-and-rails-2-3-2/163076 "2009-03-19T01:32:31Z")

</div>

I created a template app using the following combinations: 1). JRuby 1.2.0 and Rails 2.2.2 2). JRuby 1.2.0 and Rails 2.3.2 3). JRuby 1.1.6 and Rails 2.2.2 4). JRuby 1.1.6 and Rails 2.3.2 For this template app, db:cr…

---

## [Problem](https://www.ruby-forum.com/t/problem/163247)

<div class="topic-metadata">

**Author:** [@confundido](https://www.ruby-forum.com/u/confundido)\
**Replies:** 14\
**Last updated:** [March 19, 2009, 1:24am UTC](https://www.ruby-forum.com/t/problem/163247 "2009-03-19T01:24:55Z")

</div>

Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationExcepti…

---

## [Problem installing mysql gem](https://www.ruby-forum.com/t/problem-installing-mysql-gem/163296)

<div class="topic-metadata">

**Author:** [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/problem-installing-mysql-gem/163296 "2009-03-18T23:32:56Z")

</div>

For some reason I can’t get mysql gem installed. I have the libmysqlclient and mysql-server and mysql-client installed, but it doesn’t work. I am running ubuntu 8.10. Am I missing a required package I don’t know about…

---

## [MacRuby Help](https://www.ruby-forum.com/t/macruby-help/163257)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/macruby-help/163257 "2009-03-18T20:42:31Z")

</div>

I’m new to MacRuby and I was hoping to find anyone that could answer a question regarding it. I’m able to make all sorts of function calls within OS X but I can’t seem to access the constants that are in the documenta…

---

## [Does IO.read block?](https://www.ruby-forum.com/t/does-io-read-block/162937)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 15\
**Last updated:** [March 18, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/does-io-read-block/162937 "2009-03-18T20:25:23Z")

</div>

Hi All, I have a setup where I am writing to a pipe in one process and reading in another. I am closing the end I’m not using etc, but I have a new problem. Having recently read that I was just getting lucky when it …

---

## [Code Review: version03](https://www.ruby-forum.com/t/code-review-version03/163267)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/code-review-version03/163267 "2009-03-18T20:17:45Z")

</div>

tfpt review “/shelveset:version03;REDMOND\\jdeville” Comment : Updates IronRuby version to 0.3 (to be more accurate) and fixes a broken test in File.expand\_path

---

## [Local online documentation for ruby-1.9.1](https://www.ruby-forum.com/t/local-online-documentation-for-ruby-1-9-1/162757)

<div class="topic-metadata">

**Author:** [@mdiam](https://www.ruby-forum.com/u/mdiam)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/local-online-documentation-for-ruby-1-9-1/162757 "2009-03-18T20:16:00Z")

</div>

Bonjour à tous, I use a local copy of html ruby-1.8 documentation (core and stdlib). But I’m unable to find the same archive for the 1.9 version. Is there such a documentation available? More generaly, is there an…

---

## [Is it safe to override #hash and #eql? to enable hash key equality?](https://www.ruby-forum.com/t/is-it-safe-to-override-hash-and-eql-to-enable-hash-key-equality/163262)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 7:30pm UTC](https://www.ruby-forum.com/t/is-it-safe-to-override-hash-and-eql-to-enable-hash-key-equality/163262 "2009-03-18T19:30:45Z")

</div>

Hi, I would like to use object instances as hash keys where two objects containing the same datum both have the same key value. This does not work by default (as expected given that these are two different instances…

---

## [Status of rubygems unit tests](https://www.ruby-forum.com/t/status-of-rubygems-unit-tests/163084)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 7\
**Last updated:** [March 18, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/status-of-rubygems-unit-tests/163084 "2009-03-18T19:05:28Z")

</div>

I have been working on making the rubygem unit tests (from git://github.com/vvs/rubygems.git) pass with IronRuby. When I started, the results looked like this. 707 tests, 1170 assertions, 9 failures, 352 errors, 1 sk…

---

## [Introducing the Ruby 1.9 or Bust Project](https://www.ruby-forum.com/t/introducing-the-ruby-1-9-or-bust-project/163252)

<div class="topic-metadata">

**Author:** [@redct](https://www.ruby-forum.com/u/redct)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/introducing-the-ruby-1-9-or-bust-project/163252 "2009-03-18T17:52:43Z")

</div>

The other day I was talking with some friends about Ruby 1.9. We where talking about the transition and the catch 22 of not moving over because most of the gems are not ported yet and not having time to update our ge…

---

## [Reia -- a Ruby fork?](https://www.ruby-forum.com/t/reia-a-ruby-fork/163139)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 8\
**Last updated:** [March 18, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/reia-a-ruby-fork/163139 "2009-03-18T16:47:58Z")

</div>

Has anyone played around with Reia? GitHub - tarcieri/reia: Ruby-like hybrid OOP/functional programming language for BEAM, the Erlang VM The syntax looks so close to Ruby’s in most cases, it looks more like a Ruby for…

---

## [Interpolating $1, etc., from within a gsub block](https://www.ruby-forum.com/t/interpolating-1-etc-from-within-a-gsub-block/163154)

<div class="topic-metadata">

**Author:** [@Lloyd\_Z](https://www.ruby-forum.com/u/Lloyd_Z)\
**Replies:** 4\
**Last updated:** [March 18, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/interpolating-1-etc-from-within-a-gsub-block/163154 "2009-03-18T16:43:14Z")

</div>

I’m trying to use the block form of gsub in order to do substitution involving an interpolation stored within a variable, but I can’t figure out how to get it to work. Here’s a simplified case of what I’m trying to d…

---

## [Using Fixnum, Strings etc. in Modules](https://www.ruby-forum.com/t/using-fixnum-strings-etc-in-modules/163232)

<div class="topic-metadata">

**Author:** [@bramski](https://www.ruby-forum.com/u/bramski)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/using-fixnum-strings-etc-in-modules/163232 "2009-03-18T16:32:01Z")

</div>

I’m stuck on why this occurs. (using jRuby 1.1.5 & Ruby 1.8.6) I’m trying to use modules to scope certain class overrides, so say the String class is changed in ModuleA i don’t want it to affect ModuleB. But when i tr…

---

## [Derived-class initialization](https://www.ruby-forum.com/t/derived-class-initialization/163240)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/derived-class-initialization/163240 "2009-03-18T15:50:23Z")

</div>

Hello all, I’m having some trouble with extending an existing Ruby class in order to add functionality. Here’s some example code: class Graph … … def subgraph(\*args) graph = self.new … … return graph end end …

---

## [Convert from DateTIme to Time](https://www.ruby-forum.com/t/convert-from-datetime-to-time/163178)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 5\
**Last updated:** [March 18, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/convert-from-datetime-to-time/163178 "2009-03-18T15:27:42Z")

</div>

Hello :slight\_smile: How can I convert from DateTIme to Time? Thank you!

---

## [Wsdl](https://www.ruby-forum.com/t/wsdl/163088)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/wsdl/163088 "2009-03-18T12:08:06Z")

</div>

wsdl in ruby. Example program using wsdl in ruby.

---

## [Regexp html scraping](https://www.ruby-forum.com/t/regexp-html-scraping/163195)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 11:13am UTC](https://www.ruby-forum.com/t/regexp-html-scraping/163195 "2009-03-18T11:13:10Z")

</div>

Hi, I’ve to extract the full html from a website url using regular expressions or ‘net-http’. Can anybody help me with the code to extract the full html content of a website. I need to use only regexp or ‘net:http’ T…

---

## [What does it take?](https://www.ruby-forum.com/t/what-does-it-take/163152)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 9:14am UTC](https://www.ruby-forum.com/t/what-does-it-take/163152 "2009-03-18T09:14:00Z")

</div>

I guess I’m asking this question for all of the people that are new to programming and Ruby who would like to know this :slight\_smile: What does it take to get a job(entry level)after putting in hard work and dedicatio…

---

## [\[Bug #1300\] Failure: test\_open(TestSyslog)](https://www.ruby-forum.com/t/bug-1300-failure-test-open-testsyslog/163202)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 8:47am UTC](https://www.ruby-forum.com/t/bug-1300-failure-test-open-testsyslog/163202 "2009-03-18T08:47:38Z")

</div>

Bug #1300: Failure: test\_open(TestSyslog) http://redmine.ruby-lang.org/issues/show/1300 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: test, Target version: 1.9.2 ruby …

---

## [Git Push](https://www.ruby-forum.com/t/git-push/163197)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 8:42am UTC](https://www.ruby-forum.com/t/git-push/163197 "2009-03-18T08:42:56Z")

</div>

Today’s git push includes the last set of changes to make things easier for everyone developing from Git. It reintroduces MERLIN\_ROOT, but MERLIN\_ROOT now comes with benefits. We recommend you start your developing by…

---

## [Directory within directorry?](https://www.ruby-forum.com/t/directory-within-directorry/163196)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 7:40am UTC](https://www.ruby-forum.com/t/directory-within-directorry/163196 "2009-03-18T07:40:54Z")

</div>

Hi All, I want to create a directory, i used command: Dir.mkdir("#{RAILS\_ROOT}/public/public1/public2/public3") but its not working. don’t know the reason. So i tried for: Dir.mkdir("#{RAILS\_ROOT}/public/public1") …

---

## [Local state variables unique to different objects](https://www.ruby-forum.com/t/local-state-variables-unique-to-different-objects/163191)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 6:14am UTC](https://www.ruby-forum.com/t/local-state-variables-unique-to-different-objects/163191 "2009-03-18T06:14:53Z")

</div>

Is there a way to get local state variables to be unique for different objects? See my example bank account: class Acc @@balance = 100 def withdraw( amount ) if @@balance \>= amount @@balance = @@balance - amount e…

---

## [To\_time doesn't do anything?](https://www.ruby-forum.com/t/to-time-doesnt-do-anything/163171)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 4:08am UTC](https://www.ruby-forum.com/t/to-time-doesnt-do-anything/163171 "2009-03-18T04:08:45Z")

</div>

Hello everyone! I have a date: creation\_date which is a DateTime object. I want to convert it in Time. So I used the function to\_time but there is no effect. My object remains a DateTime object. (rdb:1) creation\_dat…

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

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