# Ruby

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

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

---

## [JRuby on Rails on Google App Engine](https://www.ruby-forum.com/t/jruby-on-rails-on-google-app-engine/183394)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 5:14pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-on-google-app-engine/183394 "2010-04-13T17:14:26Z")

</div>

All, Was hoping to find out the current state of running Rails apps. under JRuby using the Java support for Google App Engine. Please advise, Wes G.

---

## [IronRuby 1.0 has been released](https://www.ruby-forum.com/t/ironruby-1-0-has-been-released/186856)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 1\
**Last updated:** [April 13, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/ironruby-1-0-has-been-released/186856 "2010-04-13T14:56:50Z")

</div>

I don’t know why the project admins haven’t posted a notice here since this happened yesterday, so I’ll lend them a hand. IronRuby 1.0 is out! All the details are here… http://ironruby.codeplex.com/releases/view/2590…

---

## [My application doesn't work well](https://www.ruby-forum.com/t/my-application-doesnt-work-well/186818)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 9\
**Last updated:** [April 13, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/my-application-doesnt-work-well/186818 "2010-04-13T14:56:15Z")

</div>

Hi everybody, My application isn’t working well. Let me try to explain what’s wrong. When I run my program appears something like: ruby pedrapapeltesoura.rb Digite pedra, papel ou tesoura: pedra 1 tesoura pedra a…

---

## [Avoiding coercion of a Java constant](https://www.ruby-forum.com/t/avoiding-coercion-of-a-java-constant/186484)

<div class="topic-metadata">

**Author:** [@Christopher\_Bayliss](https://www.ruby-forum.com/u/Christopher_Bayliss)\
**Replies:** 11\
**Last updated:** [April 13, 2010, 1:26pm UTC](https://www.ruby-forum.com/t/avoiding-coercion-of-a-java-constant/186484 "2010-04-13T13:26:05Z")

</div>

Hi, Does JRuby allow you to pass a Java object without coercion? I’m trying to call some code java code which uses == to decide which static final Integer it was passed. So while the integer I pass in is the right v…

---

## [Gems installed to $HOME not recognized](https://www.ruby-forum.com/t/gems-installed-to-home-not-recognized/186205)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 1:09pm UTC](https://www.ruby-forum.com/t/gems-installed-to-home-not-recognized/186205 "2010-04-13T13:09:42Z")

</div>

I’m using Ruby 1.9, Ubuntu (I don’t have the following problem with my Ruby 1.8). For some reason, Ruby 1.9 doesn’t see gems I install to $HOME. It only sees gems I install as root. In other words, if I do the follow…

---

## [Querying records. HELP!](https://www.ruby-forum.com/t/querying-records-help/186852)

<div class="topic-metadata">

**Author:** [@vinjenace](https://www.ruby-forum.com/u/vinjenace)\
**Replies:** 1\
**Last updated:** [April 13, 2010, 12:56pm UTC](https://www.ruby-forum.com/t/querying-records-help/186852 "2010-04-13T12:56:23Z")

</div>

I’m new to this language so i don’t know much of it. I’m trying to query records to show it in the list view in the web. This is the line of sql that I’m trying to produce: SELECT source FROM table WHERE source LIKE ‘…

---

## [Newbie](https://www.ruby-forum.com/t/newbie/186853)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 0\
**Last updated:** [April 13, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/newbie/186853 "2010-04-13T12:51:19Z")

</div>

I am very new to development and even more in the dark when it comes to Ruby, but I am still having fun. :wink: I also apologise for the long snippets of code in this post. I am trying to test a database migration u…

---

## [Help required with dm-geokit](https://www.ruby-forum.com/t/help-required-with-dm-geokit/186846)

<div class="topic-metadata">

**Author:** [@hasham2](https://www.ruby-forum.com/u/hasham2)\
**Replies:** 0\
**Last updated:** [April 13, 2010, 10:36am UTC](https://www.ruby-forum.com/t/help-required-with-dm-geokit/186846 "2010-04-13T10:36:06Z")

</div>

I have been using dm-geokit (GitHub - mkingme/dm-geokit: Geokit for DataMapper) plugin with Datamapper (0.10.2). However it is causing issue when I am using dm-validations plugin. There is a auto-validation that is alw…

---

## [Using popen & grep](https://www.ruby-forum.com/t/using-popen-grep/186708)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 8:35am UTC](https://www.ruby-forum.com/t/using-popen-grep/186708 "2010-04-13T08:35:45Z")

</div>

I’m relatively new to ruby and to practice I’ve put together the code below - it’s supposed take two arguments then apply it to a grep command and display the output. Currently, nothing is outputted to the console. An…

---

## [\[Bug #3126\] irb/completion$B$G(BTypeError](https://www.ruby-forum.com/t/bug-3126-irb-completion-b-g-btypeerror/186675)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 7:07am UTC](https://www.ruby-forum.com/t/bug-3126-irb-completion-b-g-btypeerror/186675 "2010-04-13T07:07:22Z")

</div>

Bug #3126: irb/completione$B$Ge(BTypeError http://redmine.ruby-lang.org/issues/show/3126 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Keiju Ishitsuka, e$B%+%F%4%je(B: li…

---

## [Paddle 1.0.0 Released](https://www.ruby-forum.com/t/paddle-1-0-0-released/186835)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [April 13, 2010, 5:57am UTC](https://www.ruby-forum.com/t/paddle-1-0-0-released/186835 "2010-04-13T05:57:07Z")

</div>

ZOMG. RDOC ON YOUR INTERNET PAD! FROM THE README! paddle http://tenderlovemaking.com http://github.com/tenderlove/paddle DESCRIPTION: Paddle is an RDoc plugin that emits documentation suitable for use as an epub …

---

## [Pagination problem](https://www.ruby-forum.com/t/pagination-problem/186824)

<div class="topic-metadata">

**Author:** [@vinjenace](https://www.ruby-forum.com/u/vinjenace)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 4:26am UTC](https://www.ruby-forum.com/t/pagination-problem/186824 "2010-04-13T04:26:35Z")

</div>

I have a filter function on my page so I can see the only records that I want to but my problem is, in my pagination I only alot 100 record a page and everytime I click the 2 or next it always brings me the 2nd page o…

---

## [\[Feature #3036\](Closed) String#encode(to, from, opt) $B$N(B opt\[:replace\] $B$K(B Hash](https://www.ruby-forum.com/t/feature-3036-closed-string-encode-to-from-opt-b-n-b-opt-replace-b-k-b-hash/186829)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [April 13, 2010, 3:27am UTC](https://www.ruby-forum.com/t/feature-3036-closed-string-encode-to-from-opt-b-n-b-opt-replace-b-k-b-hash/186829 "2010-04-13T03:27:54Z")

</div>

e$B%A%1%C%He(B #3036 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r27326. Yui, thank you …

---

## [Vtd-xml 2.8](https://www.ruby-forum.com/t/vtd-xml-2-8/186830)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 13, 2010, 3:06am UTC](https://www.ruby-forum.com/t/vtd-xml-2-8/186830 "2010-04-13T03:06:14Z")

</div>

VTD-XML 2.8 has been released. Please visit VTD-XML: The Future of XML Processing - Browse Files at SourceForge.net to download the latest version. a… Expansion of Core VTD-XML API a… VTDGen adds support for capturin…

---

## [How to open dbf file with ruby?](https://www.ruby-forum.com/t/how-to-open-dbf-file-with-ruby/186723)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 7\
**Last updated:** [April 13, 2010, 2:09am UTC](https://www.ruby-forum.com/t/how-to-open-dbf-file-with-ruby/186723 "2010-04-13T02:09:27Z")

</div>

there is a dbf file , can i open it with ruby?

---

## [Non empty string complained to be 'nil' in equality check](https://www.ruby-forum.com/t/non-empty-string-complained-to-be-nil-in-equality-check/186792)

<div class="topic-metadata">

**Author:** [@old\_as\_a\_fossil](https://www.ruby-forum.com/u/old_as_a_fossil)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 2:01am UTC](https://www.ruby-forum.com/t/non-empty-string-complained-to-be-nil-in-equality-check/186792 "2010-04-13T02:01:37Z")

</div>

I have the below code response = Net::HTTP.start(url.host, url.port) do |http| http.request(request) end exp\_code = 450 if(response.code.to\_i != exp\_code) raise StandardError, “Expected #{exp\_code} Received #{res…

---

## [Thread to handle an execute command and wait for output](https://www.ruby-forum.com/t/thread-to-handle-an-execute-command-and-wait-for-output/186819)

<div class="topic-metadata">

**Author:** [@woow](https://www.ruby-forum.com/u/woow)\
**Replies:** 0\
**Last updated:** [April 12, 2010, 11:21pm UTC](https://www.ruby-forum.com/t/thread-to-handle-an-execute-command-and-wait-for-output/186819 "2010-04-12T23:21:07Z")

</div>

Hi, I am struggling to do following, I want to execute a client on command line and wait for a output…(myClient) execute another command which will make the above client output something… (grabtest /VERSION) …

---

## [Error: www deprecation notice](https://www.ruby-forum.com/t/error-www-deprecation-notice/186816)

<div class="topic-metadata">

**Author:** [@Y\_N](https://www.ruby-forum.com/u/Y_N)\
**Replies:** 1\
**Last updated:** [April 12, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/error-www-deprecation-notice/186816 "2010-04-12T22:33:59Z")

</div>

Hi, I get the following deprecation error saying that !!! DEPRECATION NOTICE !!! The WWW constant is deprecated, please switch to the new top-level Mechanize constant. WWW will be removed in Mechanize version 2.0 Y…

---

## [Net/ssh & send\_data](https://www.ruby-forum.com/t/net-ssh-send-data/184634)

<div class="topic-metadata">

**Author:** [@Dawa\_Ometto](https://www.ruby-forum.com/u/Dawa_Ometto)\
**Replies:** 3\
**Last updated:** [April 12, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/net-ssh-send-data/184634 "2010-04-12T22:15:31Z")

</div>

Hi, I would like to use the net/ssh gem to connect to an ssh server, execute a command, and send data to the command’s standard input. So far I’ve managed to do this using the on\_data callback: ch.exec “mycommand” do…

---

## [Fwd: Automated image combining to improve page load speeds](https://www.ruby-forum.com/t/fwd-automated-image-combining-to-improve-page-load-speeds/186812)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 2\
**Last updated:** [April 12, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/fwd-automated-image-combining-to-improve-page-load-speeds/186812 "2010-04-12T20:33:58Z")

</div>

We’re working with a slow embedded browser and trying to eek as much performance out of it as we can. We recently combined all CSS and JavaScript files using the excellent Jammit asset packaging tool, a Ruby wrapper …

---

## [Attr\_accessor, but for a boolean](https://www.ruby-forum.com/t/attr-accessor-but-for-a-boolean/186714)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 12\
**Last updated:** [April 12, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/attr-accessor-but-for-a-boolean/186714 "2010-04-12T20:32:13Z")

</div>

Let’s say I have this code: class Mambo attr\_accesstor :safe end Now, ‘safe’, in my case, is a boolean. Problem is, the getter will be named ‘safe’, whereas I want it to be ‘safe?’. In other words, how do I make t…

---

## [Nuances of alias\_method](https://www.ruby-forum.com/t/nuances-of-alias-method/186810)

<div class="topic-metadata">

**Author:** [@rjlyders](https://www.ruby-forum.com/u/rjlyders)\
**Replies:** 1\
**Last updated:** [April 12, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/nuances-of-alias-method/186810 "2010-04-12T19:41:52Z")

</div>

I am stumbling around some of the nuances of Ruby classes, especially in regard to alias\_method. Specifically, can someone explain to me why this doesn’t work: class A def A.foo “Hello” end end A.send(:alias\_meth…

---

## [\[ANN\] activerecord-jdbc-adapter 0.9.4 released](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-9-4-released/186376)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 3\
**Last updated:** [April 12, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-9-4-released/186376 "2010-04-12T18:28:06Z")

</div>

Hi all, I pushed out a (somewhat) rushed 0.9.4 release this afternoon which should resolve the issues you’ve been seeing with Rails 3 beta 2. Please give it a try (gem install activerecord-jdbc-adapter) and let me kn…

---

## [Derby, Tomcat and Warbler](https://www.ruby-forum.com/t/derby-tomcat-and-warbler/186805)

<div class="topic-metadata">

**Author:** [@azraelnewtype](https://www.ruby-forum.com/u/azraelnewtype)\
**Replies:** 1\
**Last updated:** [April 12, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/derby-tomcat-and-warbler/186805 "2010-04-12T18:25:45Z")

</div>

I’m using Derby as an embedded database with Rails 3 and JRuby 1.5. When I warble up my app and deploy it under Tomcat, my database doesn’t carry over and doesn’t get created. What is the best way to deploy a Derby d…

---

## [Multiple PeopleSoft Technofunctional requirements](https://www.ruby-forum.com/t/multiple-peoplesoft-technofunctional-requirements/186799)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 1\
**Last updated:** [April 12, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/multiple-peoplesoft-technofunctional-requirements/186799 "2010-04-12T16:21:01Z")

</div>

Hi All, Below are two very urgent needs with a client located in Boston, MA The client is looking for two PeopleSoft consultants. Please gothrough the complete requirement and send matching profiles with rate and con…

---

## [\[Bug:trunk\] Matrix#compare\_by\_row\_vectors does not receive array of Vector](https://www.ruby-forum.com/t/bug-trunk-matrix-compare-by-row-vectors-does-not-receive-array-of-vector/182244)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [April 12, 2010, 3:48pm UTC](https://www.ruby-forum.com/t/bug-trunk-matrix-compare-by-row-vectors-does-not-receive-array-of-vector/182244 "2010-04-12T15:48:14Z")

</div>

e$B1sF#$G$9!#e(B Matrix#compare\_by\_row\_vectors e$B$,!"$=$NL\>A0$KH?$7$F!"e(BVector e$B$NG\[Ns$re(B e$BM?$($F$b@5$7$/Hf3S$7$F$/$l$^$;$s!#e(B require “matrix” m = Matrix\[\[1, 2\], \[3, 4\]\] a = \[Vector\[1, 2\], Vector\[3, 4\]\] …

---

## [\[Bug:trunk\] three bugs of Matrix::Scalar](https://www.ruby-forum.com/t/bug-trunk-three-bugs-of-matrix-scalar/182245)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 18\
**Last updated:** [April 12, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/bug-trunk-three-bugs-of-matrix-scalar/182245 "2010-04-12T15:33:35Z")

</div>

e$BO"Ej$9$\_$^$;$s!#e(B \[ruby-dev:40149\] e$B$HA4$/F1$8FbMF$G$9$,!"e(Bsubject e$B$Ke(B \[Bug:trunk\] e$B$re(B e$B$D$1K:$l$?$N$G:FAw$7$^$9!#e(B ===== e$B1sF#$G$9!#e(B Matrix::Scalar e$B$NDj5A$Ke(B 3 e$B$D$\*$+$7$$$H$3$m$…

---

## [Text Fighting (Gladitorial) Sim](https://www.ruby-forum.com/t/text-fighting-gladitorial-sim/186688)

<div class="topic-metadata">

**Author:** [@wizofozz](https://www.ruby-forum.com/u/wizofozz)\
**Replies:** 4\
**Last updated:** [April 12, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/text-fighting-gladitorial-sim/186688 "2010-04-12T14:43:56Z")

</div>

I am attempting to create a gladitorial fighting sim. It will be able to pit two players (computer controlled) and based on stats, weapons, armor and some randomness will attack, deal damage, dodge and counter attack. …

---

## [Google Wave: A new type of "Ruby Quiz"?](https://www.ruby-forum.com/t/google-wave-a-new-type-of-ruby-quiz/179051)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 20\
**Last updated:** [April 12, 2010, 5:44am UTC](https://www.ruby-forum.com/t/google-wave-a-new-type-of-ruby-quiz/179051 "2010-04-12T05:44:02Z")

</div>

Google Wave is, according to Google, “the new email”. It combines email, their idea of working together on same documents, and versioning control. It has lots of potential. I playfully created a simple class for playi…

---

## [Distinct Sets (#225)](https://www.ruby-forum.com/t/distinct-sets-225/179285)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 20\
**Last updated:** [April 12, 2010, 4:22am UTC](https://www.ruby-forum.com/t/distinct-sets-225/179285 "2010-04-12T04:22:06Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

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

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