# Ruby

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

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

---

## [Jruby and ubuntu and libgcj](https://www.ruby-forum.com/t/jruby-and-ubuntu-and-libgcj/145553)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 6\
**Last updated:** [August 12, 2008, 11:13am UTC](https://www.ruby-forum.com/t/jruby-and-ubuntu-and-libgcj/145553 "2008-08-12T11:13:06Z")

</div>

Dear all, I have problems using jruby (1.1.3) on ubuntu 8.04, libgcj 4.2.3: axel@alecrim:~$ jruby -v Exception in thread “main” java.lang.NoClassDefFoundError: org.jruby.Main at gnu.java.lang.MainThread.run(libgcj.…

---

## [\[Ruby 1.8 - Bug #421\] (Open) test](https://www.ruby-forum.com/t/ruby-1-8-bug-421-open-test/145630)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 9:25am UTC](https://www.ruby-forum.com/t/ruby-1-8-bug-421-open-test/145630 "2008-08-12T09:25:25Z")

</div>

e$B%A%1%C%He(B #421 e$B$,Js9p$5$l$^$7$?!#e(B (by Yuki S.) Bug #421: test http://redmine.ruby-lang.org/issues/show/421 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: e$B%+%F%4%je(B…

---

## [\[Ruby 1.9 - Bug #408\] (Rejected) Array#\[\]= $BMWAG?t$,8:$k$H$-(B](https://www.ruby-forum.com/t/ruby-1-9-bug-408-rejected-array-bmwag-t-8-k-h-b/145629)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 9:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-408-rejected-array-bmwag-t-8-k-h-b/145629 "2008-08-12T09:17:14Z")

</div>

e$B%A%1%C%He(B #408 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B e$B$J$k$\[$I!#$o$+$j$^$7$?!#e(B http://redmine.ruby-lang.org/issues/show/408

---

## [\[Ruby 1.9 - Bug #203\] (Closed) net/http sends wrong content-length](https://www.ruby-forum.com/t/ruby-1-9-bug-203-closed-net-http-sends-wrong-content-length/145624)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 8:37am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-203-closed-net-http-sends-wrong-content-length/145624 "2008-08-12T08:37:26Z")

</div>

e$B%A%1%C%He(B #203 e$B$,99?7$5$l$^$7$?!#e(B (by Minero A.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B Applied in changeset r18518. http://redmine.ruby-lang.org/issues/s…

---

## [Gem snmp has some problem](https://www.ruby-forum.com/t/gem-snmp-has-some-problem/145613)

<div class="topic-metadata">

**Author:** [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 5:25am UTC](https://www.ruby-forum.com/t/gem-snmp-has-some-problem/145613 "2008-08-12T05:25:08Z")

</div>

When I got some information from a device using SNMP::Manager#walk, it reported this error after got some data. /var/lib/gems/1.8/gems/snmp-1.0.2/lib/snmp/manager.rb:239:in \`get\_next’: host xxxx not responding (SNMP::…

---

## [Calling double rb\_genrand\_real(void); failing](https://www.ruby-forum.com/t/calling-double-rb-genrand-real-void-failing/145591)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 3\
**Last updated:** [August 12, 2008, 1:29am UTC](https://www.ruby-forum.com/t/calling-double-rb-genrand-real-void-failing/145591 "2008-08-12T01:29:11Z")

</div>

hi, there is a function prototype: double rb\_genrand\_real(void); in intern.h which is included by ruby.h i’d like to call this function from C directly rather that calling the rand method in order avoid unnecessary…

---

## [Code Review: alpha-3](https://www.ruby-forum.com/t/code-review-alpha-3/145604)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 12:21am UTC](https://www.ruby-forum.com/t/code-review-alpha-3/145604 "2008-08-12T00:21:38Z")

</div>

DLR: FYI - we made some changes to fix a bug in how we store keys of loaded assemblies in the case where the assemblies are not signed. tfpt review “/shelveset:alpha-3;REDMOND\\jflam” Comment : Enables removal of SIG…

---

## [Gem native extension installer failure on winxp pro 64 system](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [August 12, 2008, 12:15am UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444 "2008-08-12T00:15:11Z")

</div>

Here is the shell error: C:\\ …\> gem update Updating installed gems Updating fxruby Successfulyy installed fxruby-1.6.16-x86-mswin32-60 Updating haml Successfully installed haml-2.0.2 Updating hpricot Building Nat…

---

## [Gmail imap](https://www.ruby-forum.com/t/gmail-imap/145575)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [August 12, 2008, 12:13am UTC](https://www.ruby-forum.com/t/gmail-imap/145575 "2008-08-12T00:13:26Z")

</div>

how do i extract the message body using imap. i am hunting it and cannot seem to figure it out. probably i am not sure what the specific envelope attribute it should be. i tried envelope.body but it does not like it. …

---

## [An introduction, in about 50 lines of Ruby](https://www.ruby-forum.com/t/an-introduction-in-about-50-lines-of-ruby/145180)

<div class="topic-metadata">

**Author:** [@lex](https://www.ruby-forum.com/u/lex)\
**Replies:** 46\
**Last updated:** [August 11, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/an-introduction-in-about-50-lines-of-ruby/145180 "2008-08-11T23:27:47Z")

</div>

Hi, I’m Lex. I’ve been Rubying for a few months now and can’t get enough. I’m new to the list, so I’ll tell a little bit about myself. I’m 23 years old and a high school dropout. I’m a self-taught programmer starting…

---

## [How to map this association](https://www.ruby-forum.com/t/how-to-map-this-association/145572)

<div class="topic-metadata">

**Author:** [@ybother](https://www.ruby-forum.com/u/ybother)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/how-to-map-this-association/145572 "2008-08-11T23:00:59Z")

</div>

Hi, This is the scenario A user can create videos and collect videos. I was coding the creation side of the videos so I was using a belongs\_to and a has\_many. Then when I came to the part of collecting the videos, I …

---

## [Code Review: IntConv](https://www.ruby-forum.com/t/code-review-intconv/145578)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/code-review-intconv/145578 "2008-08-11T19:57:52Z")

</div>

tfpt review “/shelveset:IntConv;REDMOND\\tomat” Recactors integer protocol conversions. Tomas

---

## [How easy is using ActiveRecord in a non RoR application?](https://www.ruby-forum.com/t/how-easy-is-using-activerecord-in-a-non-ror-application/145580)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 5\
**Last updated:** [August 11, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/how-easy-is-using-activerecord-in-a-non-ror-application/145580 "2008-08-11T19:45:35Z")

</div>

Hi, I plan to use ActiveRecord in a non RubyOnRails application (just pure Ruby app). How easy is it? is just loading the library?

---

## [HelpEngine](https://www.ruby-forum.com/t/helpengine/145583)

<div class="topic-metadata">

**Author:** [@andypflueger](https://www.ruby-forum.com/u/andypflueger)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/helpengine/145583 "2008-08-11T19:36:47Z")

</div>

Hello! Is anybody out there using the HelpEngine vendor plugin that’s mentioned at http://agilewebdevelopment.com/plugins/helpengine? I am running into problems after I follow the README of the plugin for installing …

---

## [Segmentation fault on Windows](https://www.ruby-forum.com/t/segmentation-fault-on-windows/145543)

<div class="topic-metadata">

**Author:** [@jyon](https://www.ruby-forum.com/u/jyon)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/segmentation-fault-on-windows/145543 "2008-08-11T19:21:11Z")

</div>

Hi, When I try to run the following program I get a segmentation fault: require ‘rubygems’ require ‘json’ require ‘net/http’ def testrsv() base\_url = “http://10.221.112.10:8080/reserve-online/reservations?status=e…

---

## [Bindings and Context](https://www.ruby-forum.com/t/bindings-and-context/145563)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 5\
**Last updated:** [August 11, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/bindings-and-context/145563 "2008-08-11T19:00:27Z")

</div>

Hi, I’m still really confused about Ruby Closures. At first I thought closures are just blocks who “remember” the context that they were defined in (so that they can refer to local variables and methods) And then I …

---

## [Using XPath to retrieve an XML element which contains a given text](https://www.ruby-forum.com/t/using-xpath-to-retrieve-an-xml-element-which-contains-a-given-text/145499)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 4\
**Last updated:** [August 11, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/using-xpath-to-retrieve-an-xml-element-which-contains-a-given-text/145499 "2008-08-11T17:14:20Z")

</div>

This code returns the first dataformat element. And yet the second dataformat is the one containing SPPT. What am I doing wrong? require “rexml/document” include REXML string = \<\<EOF CFMT SPPT …

---

## [\[Ruby 1.9 - Bug #408\] Array#\[\]= $BMWAG?t$,8:$k$H$-(B](https://www.ruby-forum.com/t/ruby-1-9-bug-408-array-bmwag-t-8-k-h-b/145561)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-408-array-bmwag-t-8-k-h-b/145561 "2008-08-11T16:37:20Z")

</div>

e$B%A%1%C%He(B #408 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.) e$B$7$+$7!"e(B a = %w"A B C D E"; a\[-2, 2\] = 4; p a e$B$Oe(B1.8e$B$G$be(B\[“A”, “B”, “C”, 4\]e$B$K$J$j$^$9$+$i!"e(B a = %w"A B C D E"; a\[-2, 2\] = nil; p a e…

---

## [Gmailer problems](https://www.ruby-forum.com/t/gmailer-problems/145557)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/gmailer-problems/145557 "2008-08-11T16:36:09Z")

</div>

Hello I keep getting errors from the gmailer these days. Is there a workaround or solution? appreciate any help. irb(main):017:0\> gm=GMailer.connect(name,pwd) =\> #\<GMailer::Connection:0x2d0d96c @proxy\_user=nil, @pwd=…

---

## [Hpricot and path of an elememt](https://www.ruby-forum.com/t/hpricot-and-path-of-an-elememt/145496)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/hpricot-and-path-of-an-elememt/145496 "2008-08-11T15:01:24Z")

</div>

Hi all, I use hpricot to load a page. Then I try to find the path for an element “font”() in the page. Here is the tutorial (http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics): doc.at(“#header”).xpath #=\>…

---

## [Beta testing website](https://www.ruby-forum.com/t/beta-testing-website/145551)

<div class="topic-metadata">

**Author:** [@mike222](https://www.ruby-forum.com/u/mike222)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/beta-testing-website/145551 "2008-08-11T14:21:47Z")

</div>

Hi All, This is a bit off-topic but may be of interest to some people. I have just found a website that looks interesting. It lets companies register their products for beta testing, and testers specify what sort of …

---

## [\[Ruby 1.9 - Bug #408\] (Open) Array#\[\]= $BMWAG?t$,8:$k$H$-(B](https://www.ruby-forum.com/t/ruby-1-9-bug-408-open-array-bmwag-t-8-k-h-b/145546)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 1:40pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-408-open-array-bmwag-t-8-k-h-b/145546 "2008-08-11T13:40:08Z")

</div>

e$B%A%1%C%He(B #408 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$B%9%F!\<%?%9e(B Closede$B$+$ie(BOpene$B$KJQ99e(B e$B2\>$K$=$&$J$ie(B\[-2,2\]=nile$B$Ge(Bnile$B$,e(Be$B$R$H$D$@$1e(Be$B;D$k0UL#$,J,$+$j$^$;$s!#e(B e$B$3$N5sF…

---

## [\[Ruby 1.9 - Bug #408\] (Closed) Array#\[\]= $BMWAG?t$,8:$k$H$-(B](https://www.ruby-forum.com/t/ruby-1-9-bug-408-closed-array-bmwag-t-8-k-h-b/145541)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-408-closed-array-bmwag-t-8-k-h-b/145541 "2008-08-11T12:15:41Z")

</div>

e$B%A%1%C%He(B #408 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B$3$l$Oe(B1.9e$B$G$N;EMMJQ99$G$9!#e(B 1.9e$B$G$Oe(Bnile$B$OMWAG$N:o=|$H$$$&FCJL$JLr3d$r\<:$$$^$7$?!#e(B …

---

## [Expanding variables in a string](https://www.ruby-forum.com/t/expanding-variables-in-a-string/145520)

<div class="topic-metadata">

**Author:** [@athind](https://www.ruby-forum.com/u/athind)\
**Replies:** 6\
**Last updated:** [August 11, 2008, 11:54am UTC](https://www.ruby-forum.com/t/expanding-variables-in-a-string/145520 "2008-08-11T11:54:01Z")

</div>

Hello, If I have a string containing variables, how can I expand them? I retrieve this string from a db so I cannot expand it at the time of assignment. Eg: myaction = ‘perl #{ENV\[‘HOME\_SCRIPTS’\]}/myscript.pl -#{par…

---

## [Rbgccxml dependency on hpricot question](https://www.ruby-forum.com/t/rbgccxml-dependency-on-hpricot-question/145538)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 11:34am UTC](https://www.ruby-forum.com/t/rbgccxml-dependency-on-hpricot-question/145538 "2008-08-11T11:34:06Z")

</div>

Dear all, I am having problems installing the rbgccxml gem on ubuntu 8.04, I get a runtime error saying that hpricot version=0.6 is required. Now I had hpricot installed, as a gem, but it is version 0.6.161 . Is the…

---

## [Navigation through folders](https://www.ruby-forum.com/t/navigation-through-folders/145519)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 5\
**Last updated:** [August 11, 2008, 9:47am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519 "2008-08-11T09:47:34Z")

</div>

Hi, I want to know is there any plugin for folder navigation… plz reply if anybody know’s solution For eg: in window xp os if you click on folders all folder list it will display with “+” sign if yu click on “+” sig…

---

## [Segfault - How do i find whats causing it?](https://www.ruby-forum.com/t/segfault-how-do-i-find-whats-causing-it/145512)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 3\
**Last updated:** [August 11, 2008, 7:27am UTC](https://www.ruby-forum.com/t/segfault-how-do-i-find-whats-causing-it/145512 "2008-08-11T07:27:42Z")

</div>

In my last couple of commits i’m getting a segfault, but i can’t work out what ruby function is causing it. Any suggestions on how I can work out what the issue is? Here is the trace from mongrel: \*\*\* glibc detected…

---

## [Basic question about Ruby's class hierarchy](https://www.ruby-forum.com/t/basic-question-about-rubys-class-hierarchy/145516)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 6:15am UTC](https://www.ruby-forum.com/t/basic-question-about-rubys-class-hierarchy/145516 "2008-08-11T06:15:52Z")

</div>

Hi, I thought I understood this, but apparently not. What is this object exactly? o = class \<\< String; self; end From my understanding: p o and p String should output the same thing. but it doesn’t p o #Class:S…

---

## [Chinese antique furniture](https://www.ruby-forum.com/t/chinese-antique-furniture/145517)

<div class="topic-metadata">

**Author:** [@karenwang](https://www.ruby-forum.com/u/karenwang)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 5:57am UTC](https://www.ruby-forum.com/t/chinese-antique-furniture/145517 "2008-08-11T05:57:46Z")

</div>

Dear Sir or Madam, Beijing Ming dragon is a company engaged in Chinese Antique furniture and arts.It locates in the suburb of Beijing where has convenient traffic. The company has been established five years.Although …

---

## [7th batch - Free Ruby Programming Course](https://www.ruby-forum.com/t/7th-batch-free-ruby-programming-course/145507)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 3:04am UTC](https://www.ruby-forum.com/t/7th-batch-free-ruby-programming-course/145507 "2008-08-11T03:04:07Z")

</div>

The 7th batch of the Free Online Ruby P.ming Course begins on \*Saturday, 6th Sept. 2008. Enrollments have started and the course syllabus, registration details etc are available here - Satish

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

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