# Ruby

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

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

---

## [Launching Rails (jruby script/server) hangs](https://www.ruby-forum.com/t/launching-rails-jruby-script-server-hangs/148493)

<div class="topic-metadata">

**Author:** [@mandrade](https://www.ruby-forum.com/u/mandrade)\
**Replies:** 5\
**Last updated:** [September 14, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/launching-rails-jruby-script-server-hangs/148493 "2008-09-14T19:32:24Z")

</div>

I was following the tutorial for getting JRuby on Rails running in 120 seconds (http://blog.emptyway.com/2008/04/08/120-seconds-guide-to-jruby-on-rails/ ) and I just got hung up on the last step. The guide calls for …

---

## [Unit testing offline with mechanize](https://www.ruby-forum.com/t/unit-testing-offline-with-mechanize/148473)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 3\
**Last updated:** [September 14, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/unit-testing-offline-with-mechanize/148473 "2008-09-14T18:33:21Z")

</div>

Although mechanize is designed to navigate around web pages online, is there a way to load up webpages saved to the harddrive for the purposes of quick unit testing. Constantly accessing online sources slows down the …

---

## [Getting current date](https://www.ruby-forum.com/t/getting-current-date/148365)

<div class="topic-metadata">

**Author:** [@laredotornado](https://www.ruby-forum.com/u/laredotornado)\
**Replies:** 10\
**Last updated:** [September 14, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/getting-current-date/148365 "2008-09-14T17:37:55Z")

</div>

Hi, How do I get the current date in the form “YYYY-MM-DD”. Thanks, - Davegro

---

## [Unit testing advice](https://www.ruby-forum.com/t/unit-testing-advice/144782)

<div class="topic-metadata">

**Author:** [@Shadowfirebird](https://www.ruby-forum.com/u/Shadowfirebird)\
**Replies:** 57\
**Last updated:** [September 14, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/unit-testing-advice/144782 "2008-09-14T16:34:34Z")

</div>

Forgive me if this is a stupid question. (Actually, I know it’s a stupid question – they’re the only ones worth asking…) How do you unit test a method who’s job is to interface with the outside world? For example, …

---

## [Rails is broken with current trunk](https://www.ruby-forum.com/t/rails-is-broken-with-current-trunk/148530)

<div class="topic-metadata">

**Author:** [@rjst](https://www.ruby-forum.com/u/rjst)\
**Replies:** 1\
**Last updated:** [September 14, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/rails-is-broken-with-current-trunk/148530 "2008-09-14T14:36:14Z")

</div>

Hi, One of the commits between 7691 and 7694 appears to have broken rails (tested with rails 2.1). Reverting to 7690 fixed it. Sorry for not having the time to investigate it further, but since it doesn’t even boot, …

---

## [How to emit Russian (Cyrillic) or Chinese characters?](https://www.ruby-forum.com/t/how-to-emit-russian-cyrillic-or-chinese-characters/148518)

<div class="topic-metadata">

**Author:** [@Siegfried\_Heintze](https://www.ruby-forum.com/u/Siegfried_Heintze)\
**Replies:** 1\
**Last updated:** [September 14, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/how-to-emit-russian-cyrillic-or-chinese-characters/148518 "2008-09-14T14:21:36Z")

</div>

Can someone point me to an example of a little program that emits non-ascii Unicode characters (Russian or Chinese perhaps)? The unicode Russian/Cyrillic alphabet starts at 0x410. Is this possible to do in a console …

---

## [How can i find lingering file descriptors?](https://www.ruby-forum.com/t/how-can-i-find-lingering-file-descriptors/148477)

<div class="topic-metadata">

**Author:** [@Brad\_V](https://www.ruby-forum.com/u/Brad_V)\
**Replies:** 6\
**Last updated:** [September 14, 2008, 10:32am UTC](https://www.ruby-forum.com/t/how-can-i-find-lingering-file-descriptors/148477 "2008-09-14T10:32:36Z")

</div>

Hello, I seem to have an issue with file descriptors that aren’t being closed when I attempt to put some parallelization into one of my scripts. I am trying to make use of the forkoff gem, but I guess that I am not …

---

## [\[Bug #560\] wrong definition of Vector#eql?](https://www.ruby-forum.com/t/bug-560-wrong-definition-of-vector-eql/148524)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 0\
**Last updated:** [September 14, 2008, 9:19am UTC](https://www.ruby-forum.com/t/bug-560-wrong-definition-of-vector-eql/148524 "2008-09-14T09:19:26Z")

</div>

Bug #560: wrong definition of Vector#eql? http://redmine.ruby-lang.org/issues/show/560 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., e$B%+%F%4%je(B: lib Matrix#eql?e$B$H0\[…

---

## [\[Bug #560\](Closed) wrong definition of Vector#eql?](https://www.ruby-forum.com/t/bug-560-closed-wrong-definition-of-vector-eql/148525)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 0\
**Last updated:** [September 14, 2008, 9:17am UTC](https://www.ruby-forum.com/t/bug-560-closed-wrong-definition-of-vector-eql/148525 "2008-09-14T09:17:41Z")

</div>

e$B%A%1%C%He(B #560 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.) 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 r19338. http://redmine.ruby-lang.org/issues/sho…

---

## [Submit multiple forms using Mechanize](https://www.ruby-forum.com/t/submit-multiple-forms-using-mechanize/148458)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 1\
**Last updated:** [September 14, 2008, 8:58am UTC](https://www.ruby-forum.com/t/submit-multiple-forms-using-mechanize/148458 "2008-09-14T08:58:28Z")

</div>

Hi all, I wonder if I can submit a form containing multiple queries(or batch queries) using Mechanize. Thanks, Li

---

## [A new database access framework for any Ruby (Iron or J)](https://www.ruby-forum.com/t/a-new-database-access-framework-for-any-ruby-iron-or-j/148522)

<div class="topic-metadata">

**Author:** [@tudbc](https://www.ruby-forum.com/u/tudbc)\
**Replies:** 0\
**Last updated:** [September 14, 2008, 8:33am UTC](https://www.ruby-forum.com/t/a-new-database-access-framework-for-any-ruby-iron-or-j/148522 "2008-09-14T08:33:36Z")

</div>

I would like to introduce my new exciting research in TUDBC (Truly Unified Database Connectivity) to you, which brings both high performance and high productivity to database access. Currently, it supports Several p…

---

## [C2c jobs usa](https://www.ruby-forum.com/t/c2c-jobs-usa/148521)

<div class="topic-metadata">

**Author:** [@aathi](https://www.ruby-forum.com/u/aathi)\
**Replies:** 0\
**Last updated:** [September 14, 2008, 7:48am UTC](https://www.ruby-forum.com/t/c2c-jobs-usa/148521 "2008-09-14T07:48:45Z")

</div>

Free AJAX Online cource google AJAX API ActiveScaffold : Ruby on Rails plugin http://friendfinder.com/go/g959922

---

## [Gems not working](https://www.ruby-forum.com/t/gems-not-working/138999)

<div class="topic-metadata">

**Author:** [@jim-harris](https://www.ruby-forum.com/u/jim-harris)\
**Replies:** 16\
**Last updated:** [September 14, 2008, 6:53am UTC](https://www.ruby-forum.com/t/gems-not-working/138999 "2008-09-14T06:53:39Z")

</div>

I am currently not able to install any gems. I was using Gem 1.1.1 but kept receiving the following errors: ERROR: While executing gem … (Gem::RemoteSourceException) Error fetching remote gem cache: Errno::EPIPE: Bro…

---

## [Finding parent-class hierarchy recursively](https://www.ruby-forum.com/t/finding-parent-class-hierarchy-recursively/148470)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [September 14, 2008, 3:20am UTC](https://www.ruby-forum.com/t/finding-parent-class-hierarchy-recursively/148470 "2008-09-14T03:20:52Z")

</div>

Hi, I wrote a method to display a class’ “parentage” based on an idea in “Ruby Cookbook”, sec. 10.1: def parents(obj) ( (obj.superclass ? parents(obj.superclass) : \[\]) \<\< obj). reverse end I displayed Class’ parent…

---

## [Why this website address doesn't change](https://www.ruby-forum.com/t/why-this-website-address-doesnt-change/148504)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [September 14, 2008, 12:30am UTC](https://www.ruby-forum.com/t/why-this-website-address-doesnt-change/148504 "2008-09-14T00:30:38Z")

</div>

Hi all, I browse a website(Word of the Day - twee | Dictionary.com) and jump from one link to another link. I notice that the address is still the same even I jump to a new page. Which more is that I can not see the…

---

## [Prawn 0.2 - Fast, Nimble Ruby PDF Generation](https://www.ruby-forum.com/t/prawn-0-2-fast-nimble-ruby-pdf-generation/148509)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/prawn-0-2-fast-nimble-ruby-pdf-generation/148509 "2008-09-13T21:17:23Z")

</div>

Prawn : Fast, Nimble Ruby PDF Generator Release Version 0.1.0 = Description: Prawn is a new pure Ruby PDF generation library, with the long term goal of providing a suitable replacement for PDF::Writer. It is being …

---

## [Forkoff-0.0.4](https://www.ruby-forum.com/t/forkoff-0-0-4/148502)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/forkoff-0-0-4/148502 "2008-09-13T19:53:06Z")

</div>

NAME forkoff SYNOPSIS brain-dead simple parallel processing for ruby URI http://rubyforge.org/projects/codeforpeople INSTALL gem install forkoff DESCRIPTION forkoff works for any enumerable object, iterating a c…

---

## [Rexml alternatives](https://www.ruby-forum.com/t/rexml-alternatives/148487)

<div class="topic-metadata">

**Author:** [@rbjl](https://www.ruby-forum.com/u/rbjl)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rexml-alternatives/148487 "2008-09-13T18:26:18Z")

</div>

Hello, I really like coding ruby or ruby on rails apps, but rexml often leads to frustration. If I use xpath in watir-tests rexml takes plenty of time evaluating and execution time jumps from seconds to minutes. S…

---

## [CGI::Session / mod\_ruby problem](https://www.ruby-forum.com/t/cgi-session-mod-ruby-problem/148292)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/cgi-session-mod-ruby-problem/148292 "2008-09-13T18:25:49Z")

</div>

Hi everybody, I am making an AJAX call to login.rhtml, in login.rhtml a new session is created, and then I use javascript to reload the page to /interface/index.rhtml where i attempt to continue the session created i…

---

## [Win32ole encript document excel](https://www.ruby-forum.com/t/win32ole-encript-document-excel/148464)

<div class="topic-metadata">

**Author:** [@ivmafo](https://www.ruby-forum.com/u/ivmafo)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/win32ole-encript-document-excel/148464 "2008-09-13T17:27:19Z")

</div>

does anybody how to protect a excel document made with ruby and then put a password /??

---

## [Drake: Distributed Rake](https://www.ruby-forum.com/t/drake-distributed-rake/148096)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 33\
**Last updated:** [September 13, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/drake-distributed-rake/148096 "2008-09-13T16:46:58Z")

</div>

= DRAKE – Distributed Rake A branch of Rake supporting parallel task execution. == Synopsis Run up to three tasks in parallel: % drake -j3 or equivalently, % drake --threads 3 == Installation % gem install drake …

---

## [Is my method defined?](https://www.ruby-forum.com/t/is-my-method-defined/148483)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 9\
**Last updated:** [September 13, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/is-my-method-defined/148483 "2008-09-13T12:55:24Z")

</div>

I have a method by the name methodA. I want to access this method like this a = ‘methodA’ eval(a) But how do I know if the variable a actually holds the name of a defined method? An exception is raised if I try to r…

---

## [Shoes and standalone appl](https://www.ruby-forum.com/t/shoes-and-standalone-appl/148437)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/shoes-and-standalone-appl/148437 "2008-09-13T12:54:14Z")

</div>

1 - Can a shoes application be packaged as a stand-alone application for distribution?2 - Is there plan to add drag&drop capability to shoes? 3 - Is there a shoes forum similar to this ruby forum? Thank you Ruby S.

---

## [GNU iconv dependency](https://www.ruby-forum.com/t/gnu-iconv-dependency/147664)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 27\
**Last updated:** [September 13, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/gnu-iconv-dependency/147664 "2008-09-13T12:53:38Z")

</div>

e$B$3$s$K$A$O!#e(B test/iconv/test\_option.rbe$B$NCf!"$H$$$&$h$j$be(Btest/iconv/test\_option.rb e$B$=$N$b$N$G9T$C$F$$$k%F%9%H$G$9$,!"e(BGNU iconve$B$rA0Ds$H$7$?FbMF$H$J$C$F$$e(B e$B$^$9!#e(B e$B6qBNE\*$K$O!"%(%s%3!\<%G%…

---

## [Regular expressions on strings with multiple newlines](https://www.ruby-forum.com/t/regular-expressions-on-strings-with-multiple-newlines/148476)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 10:01am UTC](https://www.ruby-forum.com/t/regular-expressions-on-strings-with-multiple-newlines/148476 "2008-09-13T10:01:57Z")

</div>

im banging my head against a wall with this. Im sure theres an easy way to solve this. Say i have this string “xxx cfghyrfhyuijhcdf xxxx” and i want all letters between the x\`s i would write something like this /x\*…

---

## [Milenko Kindl comes to Lousiana](https://www.ruby-forum.com/t/milenko-kindl-comes-to-lousiana/148478)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 9:50am UTC](https://www.ruby-forum.com/t/milenko-kindl-comes-to-lousiana/148478 "2008-09-13T09:50:23Z")

</div>

Milenko Kindl LAKE CHARLES, La. - Storm surge driven by Hurricane Ike breached levees in coastal Louisiana Friday and flooded hundreds of homes in areas along the Gulf of Mexico still recovering from Gustav. ADVERTIS…

---

## [How to use this Combinatorial testing technique](https://www.ruby-forum.com/t/how-to-use-this-combinatorial-testing-technique/148276)

<div class="topic-metadata">

**Author:** [@surya](https://www.ruby-forum.com/u/surya)\
**Replies:** 12\
**Last updated:** [September 13, 2008, 8:15am UTC](https://www.ruby-forum.com/t/how-to-use-this-combinatorial-testing-technique/148276 "2008-09-13T08:15:04Z")

</div>

Hi Friends, I have been in to testing for 3 yrs. In my project there are 6000 test cases present and some of them ought to be non-value adding to the testing effort. Around 80% of the total test cases were automated a…

---

## [Radio\_button with onclick option](https://www.ruby-forum.com/t/radio-button-with-onclick-option/148472)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 6:32am UTC](https://www.ruby-forum.com/t/radio-button-with-onclick-option/148472 "2008-09-13T06:32:19Z")

</div>

Hi i want to know to how to call contoller function when onclick occures for radio button i have used the syntax below but it is throwing error plz reply if there is any solution \<%= radio\_button\_tag "student", "re…

---

## [Advanced conditionals](https://www.ruby-forum.com/t/advanced-conditionals/148289)

<div class="topic-metadata">

**Author:** [@Alain\_mSL](https://www.ruby-forum.com/u/Alain_mSL)\
**Replies:** 13\
**Last updated:** [September 13, 2008, 6:20am UTC](https://www.ruby-forum.com/t/advanced-conditionals/148289 "2008-09-13T06:20:30Z")

</div>

Hi there, is there a way to include conditionals in something like: g.labels = Hash\[\*invoice.collect {|v| \[v\[“Scandate”\].to\_s, “1”\]}.flatten\] In this example I don’t want to include entries to the hash where v\[“Scan…

---

## [Insider information, fackbook labs open today, we the first to register!](https://www.ruby-forum.com/t/insider-information-fackbook-labs-open-today-we-the-first-to-register/148471)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 4:50am UTC](https://www.ruby-forum.com/t/insider-information-fackbook-labs-open-today-we-the-first-to-register/148471 "2008-09-13T04:50:55Z")

</div>

Insider information, fackbook labs open today, we the first to register! www.fackbooklabs.com

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

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