# Ruby

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

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

---

## [Can't install xmpp4r-simple](https://www.ruby-forum.com/t/cant-install-xmpp4r-simple/144002)

<div class="topic-metadata">

**Author:** [@Yin\_AnPing](https://www.ruby-forum.com/u/Yin_AnPing)\
**Replies:** 6\
**Last updated:** [July 25, 2008, 12:46am UTC](https://www.ruby-forum.com/t/cant-install-xmpp4r-simple/144002 "2008-07-25T00:46:09Z")

</div>

Hi, guys I’m already install the xmpp4r gem, but can’t install xmpp4r-simple gem, version 0.3.2. What’s wrong ? D:\\ruby-workspace\\learning\>jruby -S gem install xmpp4r-simple Building native extensions. This could t…

---

## [ParseTree 2.1.1 Released](https://www.ruby-forum.com/t/parsetree-2-1-1-released/123982)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 12:23am UTC](https://www.ruby-forum.com/t/parsetree-2-1-1-released/123982 "2008-07-25T00:23:50Z")

</div>

(oops) ParseTree version 2.1.1 has been released! http://www.zenspider.com/ZSS/Products/ParseTree/ ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method …

---

## [Using (word|other) in str.include?](https://www.ruby-forum.com/t/using-word-other-in-str-include/143928)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/using-word-other-in-str-include/143928 "2008-07-24T23:46:11Z")

</div>

Using ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] I’m going over an old script I wrote and I have an if statement that basically goes like this: do something if mystring.include?(“something (word1|word2): so…

---

## [Installing a Java Extension](https://www.ruby-forum.com/t/installing-a-java-extension/143992)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 4\
**Last updated:** [July 24, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/installing-a-java-extension/143992 "2008-07-24T23:14:49Z")

</div>

Is there a default place to install java extensiions to? I’m looking to put the java extension for rcov into the Rcov gem install… It’s almost done and I’ve gotten to a point in the install where I need to put the ja…

---

## [Word document in html html format](https://www.ruby-forum.com/t/word-document-in-html-html-format/143959)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/word-document-in-html-html-format/143959 "2008-07-24T23:08:19Z")

</div>

i am uploading one word document now i want that word document to view as a html format in my browser pls help me out on this issue

---

## [Jruby script under Cygwin](https://www.ruby-forum.com/t/jruby-script-under-cygwin/144053)

<div class="topic-metadata">

**Author:** [@Avi\_Schwartz](https://www.ruby-forum.com/u/Avi_Schwartz)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/jruby-script-under-cygwin/144053 "2008-07-24T22:34:14Z")

</div>

Hi, In case someone else runs into this problem (I gave up on the archive search facility to try to find if someone else ran into this): I found a problem with the way the jruby script handles the classpath separator…

---

## [Multiple constructors?](https://www.ruby-forum.com/t/multiple-constructors/143910)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 5\
**Last updated:** [July 24, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/multiple-constructors/143910 "2008-07-24T22:24:50Z")

</div>

Hi, Is it possible to use multiple constructors in Ruby? class SQLServerConnection def initialize(server\_name, db) end def initialize(server\_name, db, user\_name, password) end end Thank You Aidy

---

## [Records and Arrays (#170)](https://www.ruby-forum.com/t/records-and-arrays-170/144047)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/records-and-arrays-170/144047 "2008-07-24T22:08:58Z")

</div>

It is worthwhile to note that, for most real situations, this week’s quiz problem isn’t necessary. From a human perspective, we naturally organize things in aggregate, as structured records. Whether it be object-orien…

---

## [XSLT for ruby](https://www.ruby-forum.com/t/xslt-for-ruby/144031)

<div class="topic-metadata">

**Author:** [@adad](https://www.ruby-forum.com/u/adad)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/xslt-for-ruby/144031 "2008-07-24T21:53:05Z")

</div>

Hi, What is the best xslt software for ruby? I need to do regex manipulations within the xsl file. I tried libxslt and found out that it supports xslt version 1.0 only, which is very helpful while doing regex calcula…

---

## [NoMethodError: private method \`to\_date'](https://www.ruby-forum.com/t/nomethoderror-private-method-to-date/196601)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 11\
**Last updated:** [July 24, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/nomethoderror-private-method-to-date/196601 "2008-07-24T21:51:34Z")

</div>

Loading development environment. Time.now.to\_date Time.now.to\_date NoMethodError: private method \`to\_date’ called for Mon Feb 25 12:04:10 +0530 2008:Time from (irb):1 earlier it use to work fine… can any one …

---

## [Strange "unable to load language: ruby" behavior](https://www.ruby-forum.com/t/strange-unable-to-load-language-ruby-behavior/144045)

<div class="topic-metadata">

**Author:** [@Lincoln\_Ritter](https://www.ruby-forum.com/u/Lincoln_Ritter)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/strange-unable-to-load-language-ruby-behavior/144045 "2008-07-24T21:33:00Z")

</div>

Greetings! First off, I am new to JRuby so please forgive my ignorance. I am trying to use JRuby to embed ruby into the distributed processing framework, Hadoop. However, I’m running into some problems loading the r…

---

## [Jruby-complete-1.1.3.jar available?](https://www.ruby-forum.com/t/jruby-complete-1-1-3-jar-available/143710)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/jruby-complete-1-1-3-jar-available/143710 "2008-07-24T21:07:02Z")

</div>

Hi, Since JRuby 1.1.3 is now out, is there a jruby-complete-1.1.3.jar available? Tom To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [Canonical method to check for jruby](https://www.ruby-forum.com/t/canonical-method-to-check-for-jruby/144028)

<div class="topic-metadata">

**Author:** [@Matthew\_McKnight](https://www.ruby-forum.com/u/Matthew_McKnight)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/canonical-method-to-check-for-jruby/144028 "2008-07-24T20:28:19Z")

</div>

I have: if RUBY\_PLATFORM =~ /java/ #do jruby specific thing here else #do mri specific thing here end in my code in a couple of places, so that it can run on mongrel or Glassfish. I was wondering if that’s the be…

---

## [Converting java accessors to ruby accessors](https://www.ruby-forum.com/t/converting-java-accessors-to-ruby-accessors/144023)

<div class="topic-metadata">

**Author:** [@wet](https://www.ruby-forum.com/u/wet)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/converting-java-accessors-to-ruby-accessors/144023 "2008-07-24T19:14:58Z")

</div>

Hi chaps,I was wondering if it is currently possible to automatically convert java style getters and setters into their ruby-esque equivalents? eg, if I have a class like class Hamster { private String colour; publ…

---

## [Output an array as XML](https://www.ruby-forum.com/t/output-an-array-as-xml/144022)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/output-an-array-as-xml/144022 "2008-07-24T18:55:35Z")

</div>

Hi, Im currently trying to build a sitemap.xml file with ruby code. at the moment i have an array containing urls so @urls = \[“http://www.google.com”, “http://yahoo.com”\] etc… What i want to do is to loop through the…

---

## [Resolv.rb issues with metasploit3.1 on OSX 10.5.4 ruby 1.8.6](https://www.ruby-forum.com/t/resolv-rb-issues-with-metasploit3-1-on-osx-10-5-4-ruby-1-8-6/144010)

<div class="topic-metadata">

**Author:** [@crisbert](https://www.ruby-forum.com/u/crisbert)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/resolv-rb-issues-with-metasploit3-1-on-osx-10-5-4-ruby-1-8-6/144010 "2008-07-24T16:52:25Z")

</div>

I don’t know whether this may be an issue related to the metasploit framework or to the ruby core directly… one of the latest metasploit plugins uses the resolv module: require ‘resolv’ once i run the plugin, I got t…

---

## [Rdoc 2.1.0 Released](https://www.ruby-forum.com/t/rdoc-2-1-0-released/143629)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 24\
**Last updated:** [July 24, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/rdoc-2-1-0-released/143629 "2008-07-24T16:41:26Z")

</div>

rdoc version 2.1.0 has been released! http://rubyforge.org/projects/rdoc/ RDoc is an application that produces documentation for one or more Ruby source files. RDoc includes the rdoc and ri tools for generating and …

---

## [\[bug\] cygwin: Windows style$B$N(Bload path$B$,L58z(B](https://www.ruby-forum.com/t/bug-cygwin-windows-style-b-n-bload-path-b-l58z-b/144009)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/bug-cygwin-windows-style-b-n-bload-path-b-l58z-b/144009 "2008-07-24T16:37:18Z")

</div>

e$B$J$+$@$G$9!#e(B http://pc11.2ch.net/test/read.cgi/tech/1215531152/86-90n e$B$G=P$Fe(B e$B$$$?OC$G$9$,!"e(Bopene$B$de(Bchdire$B$J$I$G$Oe(BWindows stylee$B$Ne(Bpathe$B$bM-8z$J$N$K!"e(B requiree$B$G$O;H$($^$;$s!#e(B …

---

## [Click this!](https://www.ruby-forum.com/t/click-this/144003)

<div class="topic-metadata">

**Author:** [@mayura](https://www.ruby-forum.com/u/mayura)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/click-this/144003 "2008-07-24T15:35:34Z")

</div>

CLICK THIS!!! U WILL FIND A WONDERFUL THING… FOR YOUR SOUL REALLY WANTED DONT MISS IT!!!

---

## [Checking response in Net::HTTP](https://www.ruby-forum.com/t/checking-response-in-net-http/143947)

<div class="topic-metadata">

**Author:** [@skaverat](https://www.ruby-forum.com/u/skaverat)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/checking-response-in-net-http/143947 "2008-07-24T15:31:51Z")

</div>

How can I check if a requested document has a specific status (i.e. 200) when using NET::HTTP?

---

## [How to use hpricot in views](https://www.ruby-forum.com/t/how-to-use-hpricot-in-views/143985)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-use-hpricot-in-views/143985 "2008-07-24T15:05:40Z")

</div>

how to parse xml file in html.erb \<% xml = Hpricot.parse(@chunk\_of\_xml\_data) data = (xml/:uid) %\> \<% data.each { |u| %\> \<%= u.innerHTML %\> \<% } %\>

---

## [Code Review: YamlFixes](https://www.ruby-forum.com/t/code-review-yamlfixes/143853)

<div class="topic-metadata">

**Author:** [@Oleg\_T](https://www.ruby-forum.com/u/Oleg_T)\
**Replies:** 5\
**Last updated:** [July 24, 2008, 8:56am UTC](https://www.ruby-forum.com/t/code-review-yamlfixes/143853 "2008-07-24T08:56:12Z")

</div>

tfpt review “/shelveset:YamlFixes;REDMOND\\olegtk” Comment : Removes obsolete YamlTest project from the solution. Fixes DateTime serialization and loading of timestamps. Fixes nil serialization. Implements YAML::add…

---

## [Scope Vs Extent](https://www.ruby-forum.com/t/scope-vs-extent/143943)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 5:50am UTC](https://www.ruby-forum.com/t/scope-vs-extent/143943 "2008-07-24T05:50:11Z")

</div>

Wikipedia definition: The scope of a variable describes where in a program’s text, the variable may be used, while the extent (or lifetime) describes when in a program’s execution a variable has a value. The scope of …

---

## [Multiple HTTP Sockets or Threads for file uploads](https://www.ruby-forum.com/t/multiple-http-sockets-or-threads-for-file-uploads/141109)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 7\
**Last updated:** [July 24, 2008, 4:45am UTC](https://www.ruby-forum.com/t/multiple-http-sockets-or-threads-for-file-uploads/141109 "2008-07-24T04:45:39Z")

</div>

Hi All, I have a client for whom I developed a small application using Ruby and Curl to upload files to his file server (to and from Windows boxes). He now wants that application to have multiple sockets in order to…

---

## [Calling c++ from Ruby](https://www.ruby-forum.com/t/calling-c-from-ruby/142713)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 4:30am UTC](https://www.ruby-forum.com/t/calling-c-from-ruby/142713 "2008-07-24T04:30:31Z")

</div>

Hi, I wrote this question on the newsgroup yesterday, but I didn’t see it actually get posted. Here it goes again. I’m trying to call a c++ function from Ruby and I’m getting some errors compiling the c++ part. Here…

---

## [JMS Consumer / Producer Example](https://www.ruby-forum.com/t/jms-consumer-producer-example/143951)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 3:57am UTC](https://www.ruby-forum.com/t/jms-consumer-producer-example/143951 "2008-07-24T03:57:21Z")

</div>

Hey all, Most people already noted this was pretty easy but took me some time to get all the pieces working so I put up the working code on my blog (and the Wiki) in case anyone needs this as it is quite a nice value…

---

## [Curb updates, including multi interface](https://www.ruby-forum.com/t/curb-updates-including-multi-interface/143949)

<div class="topic-metadata">

**Author:** [@toddf](https://www.ruby-forum.com/u/toddf)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 3:39am UTC](https://www.ruby-forum.com/t/curb-updates-including-multi-interface/143949 "2008-07-24T03:39:13Z")

</div>

Hi, I’ve been working on adding multi interface support to curb along with a few other features. The multi interface support is pretty much complete. It allows code such as the following: m = Curl::Multi.new b1 =…

---

## [Text tag configuration in rubytk](https://www.ruby-forum.com/t/text-tag-configuration-in-rubytk/143923)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/text-tag-configuration-in-rubytk/143923 "2008-07-23T23:40:36Z")

</div>

In the following code snippet I am trying to configure a tagged field in a text widget but cannot figure out the syntax for the command. The rubytk\_en site seems to be down permanently so I have to ask here. None of …

---

## [Http://www.aaa-pharmacyonline.com](https://www.ruby-forum.com/t/http-www-aaa-pharmacyonline-com/143929)

<div class="topic-metadata">

**Author:** [@gui530408](https://www.ruby-forum.com/u/gui530408)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/http-www-aaa-pharmacyonline-com/143929 "2008-07-23T23:02:04Z")

</div>

Serving over 225,000 customers, AAA PharmacyOnline is your trusted source for the lowest possible prices for all of your prescription needs. At AAA PharmacyOnline your health is our number one concern. Our trained te…

---

## [Netbeans/Jruby/Jogl question](https://www.ruby-forum.com/t/netbeans-jruby-jogl-question/143859)

<div class="topic-metadata">

**Author:** [@john\_casu](https://www.ruby-forum.com/u/john_casu)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/netbeans-jruby-jogl-question/143859 "2008-07-23T21:45:36Z")

</div>

I added the jogl (java opengl) plugin to netbeans, and tried to use it with jruby 1.1.3. The following is my code: require ‘java’ class GuiDisplay def initialize frame = javax.swing.JFrame.new("Window") label =…

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

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