# Ruby

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

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

---

## [Double characters in string](https://www.ruby-forum.com/t/double-characters-in-string/152569)

<div class="topic-metadata">

**Author:** [@wouss](https://www.ruby-forum.com/u/wouss)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 9:46am UTC](https://www.ruby-forum.com/t/double-characters-in-string/152569 "2008-11-05T09:46:52Z")

</div>

Hi, I’m looking for a way to put a ‘X’ between all double characters in a string. So if this would be the string: ‘hello, I just said hello’ would be changed into ‘helXlo, I just said helXlo’. I tried: text = text.s…

---

## [Query if project uses svn or git on Rubyforge](https://www.ruby-forum.com/t/query-if-project-uses-svn-or-git-on-rubyforge/152571)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 8:52am UTC](https://www.ruby-forum.com/t/query-if-project-uses-svn-or-git-on-rubyforge/152571 "2008-11-05T08:52:57Z")

</div>

I need to check to see if a rubyforge project is using git or svn, given the name of the project. A simple hack appears to suffice: require ‘open-uri’ page = open(“http://rubyforge.org/projects/#{project\_name}/”).read …

---

## [Zero times repeat of tainted arrays](https://www.ruby-forum.com/t/zero-times-repeat-of-tainted-arrays/152565)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 7:45am UTC](https://www.ruby-forum.com/t/zero-times-repeat-of-tainted-arrays/152565 "2008-11-05T07:45:04Z")

</div>

Yuguie$B$G$9!#e(B \[ruby-dev:26900\]e$B$N5DO@$K$h$j\<!$NJ8;zNs$O1x@w$5$l$F$$$k$H8@$&$3$H$K$J$C$?e(B e$B$h$&$G$9!#e(B “x”.taint \* 0 e$B0lJ}!"e(B1.8e$B!“e(Btrunk, 1.9.1e$B$H$b!”\<!$NG\[Ns$O1x@w$5$l$F$$$^$;$s!#e(B \[:x\].tai…

---

## [Extra room for RubyConf 08](https://www.ruby-forum.com/t/extra-room-for-rubyconf-08/152551)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 3:43am UTC](https://www.ruby-forum.com/t/extra-room-for-rubyconf-08/152551 "2008-11-05T03:43:01Z")

</div>

If anyone still needs a room for RubyConf, there’s an extra spot open with the JRubyists at Happy Camper Studios. David K. To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [Ruby2ruby 1.2.1 Released](https://www.ruby-forum.com/t/ruby2ruby-1-2-1-released/152547)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 12:57am UTC](https://www.ruby-forum.com/t/ruby2ruby-1-2-1-released/152547 "2008-11-05T00:57:27Z")

</div>

ruby2ruby version 1.2.1 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [Ruby\_parser 2.0.1 Released](https://www.ruby-forum.com/t/ruby-parser-2-0-1-released/152546)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 12:44am UTC](https://www.ruby-forum.com/t/ruby-parser-2-0-1-released/152546 "2008-11-05T00:44:34Z")

</div>

ruby\_parser version 2.0.1 has been released! http://rubyforge.org/projects/parsetree/ http://parsetree.rubyforge.org/ ruby\_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a…

---

## [JRuby 1.1.5 Released](https://www.ruby-forum.com/t/jruby-1-1-5-released/152434)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 5\
**Last updated:** [November 5, 2008, 12:16am UTC](https://www.ruby-forum.com/t/jruby-1-1-5-released/152434 "2008-11-05T00:16:28Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.5! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.5 is the fifth point release of JRuby 1.1. The fixes in this …

---

## [Code Review: RandomRubyFixes08](https://www.ruby-forum.com/t/code-review-randomrubyfixes08/152541)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 12:12am UTC](https://www.ruby-forum.com/t/code-review-randomrubyfixes08/152541 "2008-11-05T00:12:22Z")

</div>

tfpt review “/shelveset:RandomRubyFixes08;REDMOND\\curth” Comments: Fixes for “gem install” Fixes to YAML serialization, String.squeeze Minor refactoring in YAML to remove duplicate code Support for C# interop on cla…

---

## [Sun One Webserver Servlet Container Performance](https://www.ruby-forum.com/t/sun-one-webserver-servlet-container-performance/152454)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 3\
**Last updated:** [November 5, 2008, 12:08am UTC](https://www.ruby-forum.com/t/sun-one-webserver-servlet-container-performance/152454 "2008-11-05T00:08:51Z")

</div>

Hello, After doing some research it appears that the Sun One webserer contains a Servlet container for deploying web apps (WARs). Has anyone used this? Curious to hear about benefits or disadvantages of using this a…

---

## [Using XPath: find last text node of each paragraph under the root node](https://www.ruby-forum.com/t/using-xpath-find-last-text-node-of-each-paragraph-under-the-root-node/152362)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 4\
**Last updated:** [November 5, 2008, 12:05am UTC](https://www.ruby-forum.com/t/using-xpath-find-last-text-node-of-each-paragraph-under-the-root-node/152362 "2008-11-05T00:05:55Z")

</div>

I want to trim trailing whitespace at the end of all XHTML paragraphs. I am using the REXML library. Say I have the following in a valid XHTML file: hello world a Hi there The End I want to end up with this: he…

---

## [Newbie question on RDoc--top-level functions](https://www.ruby-forum.com/t/newbie-question-on-rdoc-top-level-functions/152530)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 2\
**Last updated:** [November 5, 2008, 12:04am UTC](https://www.ruby-forum.com/t/newbie-question-on-rdoc-top-level-functions/152530 "2008-11-05T00:04:45Z")

</div>

How do I get a top-level function (one not defined inside a class) to show up in RDoc output. I have a number of such functions, and they don’t appear to be showing up anywhere. Thanks, Ken

---

## [SVN r169 is out](https://www.ruby-forum.com/t/svn-r169-is-out/152509)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 4\
**Last updated:** [November 4, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/svn-r169-is-out/152509 "2008-11-04T23:16:41Z")

</div>

rake compile is still busted due to command line overflow. Will fix this sometime after RubyConf :slight\_smile: Thanks, -John

---

## [Nokogiri 1.0.3 Released](https://www.ruby-forum.com/t/nokogiri-1-0-3-released/152537)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/nokogiri-1-0-3-released/152537 "2008-11-04T23:14:56Z")

</div>

nokogiri version 1.0.3 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master Nokogiri (é‹¸) is an HTML, XML, SAX, and Reader pa…

---

## [Rspec problem with jruby](https://www.ruby-forum.com/t/rspec-problem-with-jruby/152017)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 30\
**Last updated:** [November 4, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/rspec-problem-with-jruby/152017 "2008-11-04T22:33:11Z")

</div>

I’m not sure if this falls to rspec or jruby, but if resolving it has anything to do with not being able to run focused specs from NetBeans, then I’d LOVE to resolve it. http://rubyforge.org/pipermail/rspec-users/2008…

---

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

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/passing-a-block-to-a-block/152488 "2008-11-04T21:09:02Z")

</div>

I notice that if you pass a block to a block, you can’t use ‘yield’ to yield to that block: $ cat yield\_in\_block.rb foo = lambda { |e| puts e } blk = lambda { |e| yield e } blk.call(123, &foo) $ ruby yield\_in\_block…

---

## [Code Review: RandomRubyFixes07](https://www.ruby-forum.com/t/code-review-randomrubyfixes07/152522)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/code-review-randomrubyfixes07/152522 "2008-11-04T20:31:22Z")

</div>

tfpt review “/shelveset:RandomRubyFixes07;REDMOND\\curth” Comment : Random fixes which are blocking various scenarios.

---

## [Help me understand ObjectProxyCache and excessive memory usage](https://www.ruby-forum.com/t/help-me-understand-objectproxycache-and-excessive-memory-usage/152518)

<div class="topic-metadata">

**Author:** [@Rich\_Liebling](https://www.ruby-forum.com/u/Rich_Liebling)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/help-me-understand-objectproxycache-and-excessive-memory-usage/152518 "2008-11-04T19:58:20Z")

</div>

Hi, I’m hoping someone can help me understand why my jruby process is consuming so much heap memory. I apologize for not being able to provide code for a simple test case, but so far my attempts to recreate in a s…

---

## [Jruby-complete-1.1.5.jar](https://www.ruby-forum.com/t/jruby-complete-1-1-5-jar/152517)

<div class="topic-metadata">

**Author:** [@tudbc](https://www.ruby-forum.com/u/tudbc)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/jruby-complete-1-1-5-jar/152517 "2008-11-04T19:48:20Z")

</div>

If you are eager to deploy jruby-complete-1.1.5.jar before the official jar shows up at http://repository.codehaus.org/org/jruby/jruby-complete/ You may download an interim copy from http://www.tudbc.org/otherfiles I…

---

## [No documentation for libsvn-ruby...?](https://www.ruby-forum.com/t/no-documentation-for-libsvn-ruby/152449)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/no-documentation-for-libsvn-ruby/152449 "2008-11-04T19:45:58Z")

</div>

I noticed I have libsvn-ruby on my Ubuntu server, but I apparently get no ruby specific documentation with this at all. Nor does there appear to be any on the Web…??? Am I missing smoething?

---

## [Wrapping ruby into one directory](https://www.ruby-forum.com/t/wrapping-ruby-into-one-directory/152428)

<div class="topic-metadata">

**Author:** [@Cary\_F](https://www.ruby-forum.com/u/Cary_F)\
**Replies:** 5\
**Last updated:** [November 4, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/wrapping-ruby-into-one-directory/152428 "2008-11-04T19:38:56Z")

</div>

Hello – We’re looking at using ruby on a product and I had a question about how to package up the ruby interpreter into one stand-alone directory. We’d like to have a full ruby interpreter which is not installed on t…

---

## [Process exitstatus code is not 0](https://www.ruby-forum.com/t/process-exitstatus-code-is-not-0/152496)

<div class="topic-metadata">

**Author:** [@xli](https://www.ruby-forum.com/u/xli)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/process-exitstatus-code-is-not-0/152496 "2008-11-04T19:30:42Z")

</div>

Hi, got the following different between jruby1.1.5 and cruby1.8.6 on Mac 10.5.5 : xli:~$ jruby -J-Djruby.fork.enabled=true -S irb WARNING: fork is highly unlikely to be safe or stable on the JVM. Have fun! irb(main)…

---

## [First ever full day Ruby and Ruby On Rails event in India](https://www.ruby-forum.com/t/first-ever-full-day-ruby-and-ruby-on-rails-event-in-india/196837)

<div class="topic-metadata">

**Author:** [@sur](https://www.ruby-forum.com/u/sur)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/first-ever-full-day-ruby-and-ruby-on-rails-event-in-india/196837 "2008-11-04T17:54:37Z")

</div>

Hi Everyone, If you are in India, and you like to code in Ruby and enjoy Ruby On Rails… join in RubyFunDay to have real fun with Ruby… http://rubyonrails.in/events/3 regards, Sur

---

## [Using maven to build a jar/war/ear with jruby source?](https://www.ruby-forum.com/t/using-maven-to-build-a-jar-war-ear-with-jruby-source/152503)

<div class="topic-metadata">

**Author:** [@Peter\_Burkholder](https://www.ruby-forum.com/u/Peter_Burkholder)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/using-maven-to-build-a-jar-war-ear-with-jruby-source/152503 "2008-11-04T17:42:06Z")

</div>

Hi, I have the same question that Michael C. posed in September: personally. As far as using Maven to compile the scripts, we don’t have a mojo for this sort of thing, so you’re best off using something like the ex…

---

## [R statistical package with Ruby](https://www.ruby-forum.com/t/r-statistical-package-with-ruby/152444)

<div class="topic-metadata">

**Author:** [@Vandana](https://www.ruby-forum.com/u/Vandana)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/r-statistical-package-with-ruby/152444 "2008-11-04T17:15:41Z")

</div>

Hello, I want to invoke R statiscal package from within ruby. Is there a way to do this? Has anybody done this already? How do I return output from R back into ruby? Thanks,

---

## [Net-ssh : popen3](https://www.ruby-forum.com/t/net-ssh-popen3/152498)

<div class="topic-metadata">

**Author:** [@Philip\_MSSS\_ller](https://www.ruby-forum.com/u/Philip_MSSS_ller)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/net-ssh-popen3/152498 "2008-11-04T16:48:37Z")

</div>

Hi everybody, I want to start and interact with a process on another machine. After reading example 20.10 in “The Ruby Cookbook” and doing some internet research I decided to use net/ssh and popen3. Sadly, it does n…

---

## [Ruby for Philosophers](https://www.ruby-forum.com/t/ruby-for-philosophers/152320)

<div class="topic-metadata">

**Author:** [@sebyte](https://www.ruby-forum.com/u/sebyte)\
**Replies:** 13\
**Last updated:** [November 4, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/ruby-for-philosophers/152320 "2008-11-04T16:46:15Z")

</div>

Hi there, Maybe I’m helpless; don’t know. I use and like to read a lot, to write a lot, but, honestly, my favorite time goes by just thinking. So, I’ve been thinking a lot during all my entire life, and specially the …

---

## [Public preview of new, commercial ruby ide](https://www.ruby-forum.com/t/public-preview-of-new-commercial-ruby-ide/152493)

<div class="topic-metadata">

**Author:** [@Sean\_Mehan](https://www.ruby-forum.com/u/Sean_Mehan)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/public-preview-of-new-commercial-ruby-ide/152493 "2008-11-04T15:55:33Z")

</div>

FYI. Jetbrains make IDEA, which is what we use for Java. They have announced a public preview of RubyMine, an extension of IDEA for Ruby. No opinions on it yet. The former method of using IDEA with the ruby plugin wa…

---

## [How to print an array with floating point numbers?](https://www.ruby-forum.com/t/how-to-print-an-array-with-floating-point-numbers/152470)

<div class="topic-metadata">

**Author:** [@thiel](https://www.ruby-forum.com/u/thiel)\
**Replies:** 4\
**Last updated:** [November 4, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/how-to-print-an-array-with-floating-point-numbers/152470 "2008-11-04T15:00:20Z")

</div>

Hi, I tried to print an array with a floating point numbers e.g. x\[0,0\] = 55.123 with the format: printf("%0.04f\\n", x\[0,0\]) But it failed and I got the message: \`printf’: can’t convert Array into Float (TypeError) …

---

## [Conditional overriding of operators](https://www.ruby-forum.com/t/conditional-overriding-of-operators/152467)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 7\
**Last updated:** [November 4, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/conditional-overriding-of-operators/152467 "2008-11-04T14:52:41Z")

</div>

Hello! I am trying to replace .+ operator of Numeric class if and only if argument (summand) is my own class. To be more specific: I am writing geometry module in Ruby and need to implement vector-number multiplicati…

---

## [Iterator objects and lazy evaluation](https://www.ruby-forum.com/t/iterator-objects-and-lazy-evaluation/152287)

<div class="topic-metadata">

**Author:** [@Yuh-Ruey\_C](https://www.ruby-forum.com/u/Yuh-Ruey_C)\
**Replies:** 13\
**Last updated:** [November 4, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/iterator-objects-and-lazy-evaluation/152287 "2008-11-04T14:25:27Z")

</div>

Two questions: Are there equivalents for iteration/enumeration functions like map that return iterator/enumeration objects (in a Python sense)? An example: def read\_files(files) files.each {|file| # blah } end …

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

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