# Ruby

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

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

---

## [Problem setting .NET member variables](https://www.ruby-forum.com/t/problem-setting-net-member-variables/184254)

<div class="topic-metadata">

**Author:** [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Replies:** 1\
**Last updated:** [March 1, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/problem-setting-net-member-variables/184254 "2010-03-01T17:19:20Z")

</div>

Hello, can anyone help me with this issue? I have the following code running in C#: ScriptRuntime runtime = Ruby.CreateRuntime(); ScriptEngine engine = Ruby.GetEngine(runtime); ScriptScope scope = runtime.CreateScope…

---

## [No such file to load Error](https://www.ruby-forum.com/t/no-such-file-to-load-error/184348)

<div class="topic-metadata">

**Author:** [@nabusman](https://www.ruby-forum.com/u/nabusman)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-error/184348 "2010-03-01T17:17:49Z")

</div>

When trying to run the following code I am getting an error which says “no such file to load â€” openâ€uri” require ‘rubygems’ require ‘mechanize’ require ‘nokogiri’ require ‘openâ€uri’ def scrapePage(url, file) …

---

## [Array#join using to\_a if defined](https://www.ruby-forum.com/t/array-join-using-to-a-if-defined/184314)

<div class="topic-metadata">

**Author:** [@benoitdinocourt](https://www.ruby-forum.com/u/benoitdinocourt)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/array-join-using-to-a-if-defined/184314 "2010-03-01T15:56:54Z")

</div>

Hi, I got recently an unexpected result using Array#join. In my thoughts, Array#join is sth like adding the separator between every element#to\_s. That is what seems to happen when there is no any #to\_a method define…

---

## [Gsub for string](https://www.ruby-forum.com/t/gsub-for-string/184354)

<div class="topic-metadata">

**Author:** [@Reinhart\_V](https://www.ruby-forum.com/u/Reinhart_V)\
**Replies:** 3\
**Last updated:** [March 1, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/gsub-for-string/184354 "2010-03-01T15:49:17Z")

</div>

Hi, I’m looking for a function that makes it possible to do the folowing: Replace all substrings --xxxx-- with -xxxx–1 in a string. The xxxx represents an unknown value (can be anything) Is there a way to set unknow…

---

## [SOAP::FaultError in Ruby wsdl](https://www.ruby-forum.com/t/soap-faulterror-in-ruby-wsdl/184364)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 1\
**Last updated:** [March 1, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/soap-faulterror-in-ruby-wsdl/184364 "2010-03-01T15:39:42Z")

</div>

Dear Friends , I am using ruby wsdl . Using wsdl2ruby I have generated client application . But the problem is that , I got the SOAP::FaultError if it is any error . But the default.rb file has class NardaFault at…

---

## [\[Bug #2776\] can't return from lambda with outer block](https://www.ruby-forum.com/t/bug-2776-cant-return-from-lambda-with-outer-block/183859)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 6\
**Last updated:** [March 1, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/bug-2776-cant-return-from-lambda-with-outer-block/183859 "2010-03-01T15:11:14Z")

</div>

Bug #2776: can’t return from lambda with outer block http://redmine.ruby-lang.org/issues/show/2776 e$B5/I\<\<Te(B: \_ wanabe e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$BC4Ev\<Te(B: Koichi Sasada, e$B%+%F%4%je(B: core, T…

---

## [Strings - foo\[0,0\] vs.. foo\[-1,0\]?](https://www.ruby-forum.com/t/strings-foo-0-0-vs-foo-1-0/181164)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 11:19am UTC](https://www.ruby-forum.com/t/strings-foo-0-0-vs-foo-1-0/181164 "2010-03-01T11:19:16Z")

</div>

Since some time I have used this to prepend something to a string: string = ‘bc’ string\[0,0\] = ‘a’ Resulting in: ‘abc’ Then I recently wanted to append something to a string. Of course there exists the \<\< method al…

---

## [Multiple invocations of one thor task from another thor task](https://www.ruby-forum.com/t/multiple-invocations-of-one-thor-task-from-another-thor-task/184349)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 11:03am UTC](https://www.ruby-forum.com/t/multiple-invocations-of-one-thor-task-from-another-thor-task/184349 "2010-03-01T11:03:55Z")

</div>

Hi, I am trying to invoke a thor task from another thor task multiple times with different params. Looks like the thor invocation-dependency system gets in the way so that only the first invocation is carried out. I …

---

## [Please Contribute](https://www.ruby-forum.com/t/please-contribute/184346)

<div class="topic-metadata">

**Author:** [@adarsh](https://www.ruby-forum.com/u/adarsh)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 11:00am UTC](https://www.ruby-forum.com/t/please-contribute/184346 "2010-03-01T11:00:08Z")

</div>

Dear all Please contribute in enhancing the functionality of my website - please visit - http://techie.bewhizkid.com I need your valuable comments, if any one wants to contribute please let me know. On 3/1/10, Rober…

---

## [MacRuby for simple Ruby](https://www.ruby-forum.com/t/macruby-for-simple-ruby/184291)

<div class="topic-metadata">

**Author:** [@Jean\_Guillaume\_Pyra](https://www.ruby-forum.com/u/Jean_Guillaume_Pyra)\
**Replies:** 2\
**Last updated:** [March 1, 2010, 9:24am UTC](https://www.ruby-forum.com/t/macruby-for-simple-ruby/184291 "2010-03-01T09:24:49Z")

</div>

Hi, If I download MacRuby, will I be able to program “usual” Ruby (without Cocoa and the Objective-C bridge), with gems, etc. or am I obliged to program a Caoca Mac application ? Is there an IDE inside, or just XCode…

---

## [Iterate over hash of nested hashes](https://www.ruby-forum.com/t/iterate-over-hash-of-nested-hashes/184098)

<div class="topic-metadata">

**Author:** [@glenn\_nz](https://www.ruby-forum.com/u/glenn_nz)\
**Replies:** 10\
**Last updated:** [March 1, 2010, 9:13am UTC](https://www.ruby-forum.com/t/iterate-over-hash-of-nested-hashes/184098 "2010-03-01T09:13:01Z")

</div>

Hi, I’d like to be able to take a hash whose values are either hashes or some other object. If the values are hashes, I’d like to iterate over them and keep this up until the values aren’t hashes. And I won’t know h…

---

## [Simple open source web admin for git repositories?](https://www.ruby-forum.com/t/simple-open-source-web-admin-for-git-repositories/184321)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 5:03am UTC](https://www.ruby-forum.com/t/simple-open-source-web-admin-for-git-repositories/184321 "2010-03-01T05:03:44Z")

</div>

Excuse this slightly off topic post, but I figure ruby-talk is a good community to ask, and if someone has done this they probably wrote it in Ruby :slight\_smile: Does anyone know of an open source tool that gives you…

---

## [Problem building ruby from source on FreeBSD 8.0](https://www.ruby-forum.com/t/problem-building-ruby-from-source-on-freebsd-8-0/184202)

<div class="topic-metadata">

**Author:** [@G\_Brandon\_H](https://www.ruby-forum.com/u/G_Brandon_H)\
**Replies:** 1\
**Last updated:** [March 1, 2010, 4:37am UTC](https://www.ruby-forum.com/t/problem-building-ruby-from-source-on-freebsd-8-0/184202 "2010-03-01T04:37:23Z")

</div>

Haldo! I am having a problem building ruby 1.9 on my FreeBSD box. make keeps telling me “executable host ruby is required, use --with-baseruby option” I haven’t put ruby on this system yet, so I don’t get why it doe…

---

## [FXRuby and Ruby 1.9](https://www.ruby-forum.com/t/fxruby-and-ruby-1-9/183665)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 1:32am UTC](https://www.ruby-forum.com/t/fxruby-and-ruby-1-9/183665 "2010-03-01T01:32:53Z")

</div>

Forgive the post to this forum. The FXRuby forum doesn’t seem to be very active. I’m running a script to open a file dialog window. The script works fine in Ruby 1.8. In 1.9 the dialog box still opens and works, bu…

---

## [Way to calculate number of "printing pages" from txt or htm](https://www.ruby-forum.com/t/way-to-calculate-number-of-printing-pages-from-txt-or-htm/184326)

<div class="topic-metadata">

**Author:** [@aneeley](https://www.ruby-forum.com/u/aneeley)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 12:51am UTC](https://www.ruby-forum.com/t/way-to-calculate-number-of-printing-pages-from-txt-or-htm/184326 "2010-03-01T00:51:01Z")

</div>

Hello Ruby friends! Could anyone suggest a way to calculate how many pages a txt or htm would take if I were to print them? Any help will be much appreciated. Regards, Adam

---

## ["JPath" library?](https://www.ruby-forum.com/t/jpath-library/184320)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 10:31pm UTC](https://www.ruby-forum.com/t/jpath-library/184320 "2010-02-28T22:31:39Z")

</div>

Is there a Ruby library which provides XPath-like queries for JSON? I was looking at this JavaScript library: http://bluelinecity.com/software/jpath/ …and I thought it’d be wonderful to have something similar in Rub…

---

## [Do you recommend deploying Rails applications as WARs?](https://www.ruby-forum.com/t/do-you-recommend-deploying-rails-applications-as-wars/184303)

<div class="topic-metadata">

**Author:** [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Replies:** 3\
**Last updated:** [February 28, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/do-you-recommend-deploying-rails-applications-as-wars/184303 "2010-02-28T21:11:28Z")

</div>

Hey, Does deploying Rails application via JRuby on Java web container has any disadvantages? IMHO, I think deploying Rails applications as WAR is best approach and the most comforting one. What do you think? Thanks…

---

## [MacRuby and MRI](https://www.ruby-forum.com/t/macruby-and-mri/184302)

<div class="topic-metadata">

**Author:** [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/macruby-and-mri/184302 "2010-02-28T21:07:23Z")

</div>

Hey, Does MacRuby has any advantage over Ruby MRI? Thanks.

---

## [Pg 0.9.0](https://www.ruby-forum.com/t/pg-0-9-0/184316)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/pg-0-9-0/184316 "2010-02-28T20:02:25Z")

</div>

Version 0.9.0 of ruby-pg has been released. This is the extension library to access a PostgreSQL database from Ruby. This library works with PostgreSQL 7.4 and later. == Project Page http://bitbucket.org/ged/ruby-pg…

---

## [Scope question](https://www.ruby-forum.com/t/scope-question/184276)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 7\
**Last updated:** [February 28, 2010, 7:47pm UTC](https://www.ruby-forum.com/t/scope-question/184276 "2010-02-28T19:47:38Z")

</div>

Consider the following Sinatra app: require ‘sinatra’ vara = “foo” VARB = “bar” helpers do def geta vara end def getb VARB end end get ‘/a’ do geta end get ‘/b’ do getb end When I run that and browse to /b,…

---

## [Final Call: Red Dirt RubyConf Proposals](https://www.ruby-forum.com/t/final-call-red-dirt-rubyconf-proposals/184307)

<div class="topic-metadata">

**Author:** [@James\_Edward\_GSII](https://www.ruby-forum.com/u/James_Edward_GSII)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/final-call-red-dirt-rubyconf-proposals/184307 "2010-02-28T17:20:53Z")

</div>

I just wanted to send a quick reminder that the Call for Proposals for the Red Dirt RubyConf ends tonight at 12:00 AM CST. We are on a tight schedule to get registration live, so we will not extend the call and we wil…

---

## [Speed of uniq](https://www.ruby-forum.com/t/speed-of-uniq/184299)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/speed-of-uniq/184299 "2010-02-28T15:30:51Z")

</div>

These are general questions about Ruby and not specific to uniq. (1) How can I tell if a method like uniq is “native” to Ruby. That is, it’s not been added as a C extension and/or is not a Ruby method. (2) A C++ prog…

---

## [Ruby-oci8 2.0.4](https://www.ruby-forum.com/t/ruby-oci8-2-0-4/184296)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 2:08pm UTC](https://www.ruby-forum.com/t/ruby-oci8-2-0-4/184296 "2010-02-28T14:08:19Z")

</div>

Ruby-oci8 2.0.4 is released. This is Oracle module using OCI8 API. http://rubyforge.org/projects/ruby-oci8/ This is a maintenance release. Few new features and many fixed issues. More than 50 % of issues are reported …

---

## [Array index question](https://www.ruby-forum.com/t/array-index-question/184140)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 11\
**Last updated:** [February 28, 2010, 7:55am UTC](https://www.ruby-forum.com/t/array-index-question/184140 "2010-02-28T07:55:47Z")

</div>

Question about an array. Say I have the following array… textlist = \[“Apple”, “Orange”, “Lemon”, “Grape”, “Orange”, “Melon”, “Orange”, “Banana”\] if I did textlist.index(“Orage”), I would get “1” returned. Can anyone …

---

## [Trollop 1.15 released](https://www.ruby-forum.com/t/trollop-1-15-released/176457)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 3\
**Last updated:** [February 28, 2010, 5:06am UTC](https://www.ruby-forum.com/t/trollop-1-15-released/176457 "2010-02-28T05:06:25Z")

</div>

Dear Rubyists, I have released Trollop 1.15. This release is dedicated to my fellow wrinkled, old-fashioned, out-moded throwbacks who still use the commandline instead of clicking on their webapp. Trollop is a comm…

---

## [Ruby pdf or html docs](https://www.ruby-forum.com/t/ruby-pdf-or-html-docs/184280)

<div class="topic-metadata">

**Author:** [@rantingrick](https://www.ruby-forum.com/u/rantingrick)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 4:11am UTC](https://www.ruby-forum.com/t/ruby-pdf-or-html-docs/184280 "2010-02-28T04:11:24Z")

</div>

Can someone please give me a link a Ruby language docs in PDF or html form WITHOUT me having to download the Ruby language itself? I Looked around at the Ruby site but i don’t see anything to download? What gives? Th…

---

## [\[Bug #6\] sprintf() of %f on Windows(MSVCRT)](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184258)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 2:50am UTC](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184258 "2010-02-28T02:50:37Z")

</div>

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B%U%!%$%ke(B force\_use\_missing.patch e$BDI2Ce(B e$B$3$s$J46$8$G$I$&$G$7$g$&$+!#e(B configure.in e$B$O?($C$?$3$H$,$J$$$N$G$3$l$GNI$$$N$+$h$/$o$+$i$J$$$N$G$9$…

---

## [Ruby pdf or html docs](https://www.ruby-forum.com/t/ruby-pdf-or-html-docs/197124)

<div class="topic-metadata">

**Author:** [@rantingrick](https://www.ruby-forum.com/u/rantingrick)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 2:25am UTC](https://www.ruby-forum.com/t/ruby-pdf-or-html-docs/197124 "2010-02-28T02:25:27Z")

</div>

Can someone please give me a link a Ruby language docs in PDF or html form WITHOUT me having to download the Ruby language itself? I Looked around at the Ruby site but i don’t see anything to download? What gives? Th…

---

## [Ruby pdf or html docs](https://www.ruby-forum.com/t/ruby-pdf-or-html-docs/197028)

<div class="topic-metadata">

**Author:** [@rantingrick](https://www.ruby-forum.com/u/rantingrick)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 2:21am UTC](https://www.ruby-forum.com/t/ruby-pdf-or-html-docs/197028 "2010-02-28T02:21:56Z")

</div>

Can someone please give me a link a Ruby language docs in PDF or html form WITHOUT me having to download the Ruby language itself? I Looked around at the Ruby site but i don’t see anything to download? What gives? Th…

---

## [NTLM authentication with httpclient](https://www.ruby-forum.com/t/ntlm-authentication-with-httpclient/121814)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 10\
**Last updated:** [February 28, 2010, 12:44am UTC](https://www.ruby-forum.com/t/ntlm-authentication-with-httpclient/121814 "2010-02-28T00:44:51Z")

</div>

I have rewritten my net/http script that I had questions on a couple of days ago using httpclient but am stuck on the NTLM authentication piece. This is what I have so far: #!c:/ruby/bin/ruby.exe CERT\_FILE = “c:/cert…

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

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