# Ruby

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

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

---

## [Pick the value from the table](https://www.ruby-forum.com/t/pick-the-value-from-the-table/188732)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 3\
**Last updated:** [May 17, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/pick-the-value-from-the-table/188732 "2010-05-17T14:40:46Z")

</div>

Hello Friends, Help me to pick value from the tables.i m confused because of the button name and id is same for the all button. i attached the snap short of the table.have a look. Commodities …

---

## [About JRuby and OSGi](https://www.ruby-forum.com/t/about-jruby-and-osgi/188395)

<div class="topic-metadata">

**Author:** [@Krum\_B](https://www.ruby-forum.com/u/Krum_B)\
**Replies:** 6\
**Last updated:** [May 17, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/about-jruby-and-osgi/188395 "2010-05-17T13:51:01Z")

</div>

Hi dear JRuby folks, I was wondering whether i could place here some questions of mine about integrating JRuby with OSGi. Basically, i am interested in whether there have been any attempts to develop OSGi bundles, th…

---

## [Real life use of each\_cons? (... follow up)](https://www.ruby-forum.com/t/real-life-use-of-each-cons-follow-up/188722)

<div class="topic-metadata">

**Author:** [@jakub](https://www.ruby-forum.com/u/jakub)\
**Replies:** 1\
**Last updated:** [May 17, 2010, 12:20pm UTC](https://www.ruby-forum.com/t/real-life-use-of-each-cons-follow-up/188722 "2010-05-17T12:20:52Z")

</div>

Hi there! (following up the discussion from last year) This method actually made my life a lot easier when fitting some data to a table. I had tens of pictures and wanted to show them in rows - three columns each. d…

---

## [\[Feature #3300\] onig\_number\_of\_captures $B$KAjEv$9$k%a%=%C%I(B Regexp#ncapture](https://www.ruby-forum.com/t/feature-3300-onig-number-of-captures-b-kajev-9-k-a-c-i-b-regexp-ncapture/188721)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [May 17, 2010, 9:43am UTC](https://www.ruby-forum.com/t/feature-3300-onig-number-of-captures-b-kajev-9-k-a-c-i-b-regexp-ncapture/188721 "2010-05-17T09:43:59Z")

</div>

e$B%A%1%C%He(B #3300 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) \[ruby-dev:41223\] e$B$+$i$N%9%l%C%I!#e(B \[ruby-dev:41294\] e$B$X$N%3%a%s%H$H!“$”$H$OL\>A0$,2\]Bj$G$9$+$Me(B http://redmine.ruby-lang.org/issues/show/3300

---

## [Citrus ~ Parsing Expressions for Ruby](https://www.ruby-forum.com/t/citrus-parsing-expressions-for-ruby/188566)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 4\
**Last updated:** [May 17, 2010, 9:35am UTC](https://www.ruby-forum.com/t/citrus-parsing-expressions-for-ruby/188566 "2010-05-17T09:35:13Z")

</div>

Hi all, Just released this gem today, and thought others might get some good use out of it. It’s like Treetop, but takes a completely different approach. http://rubygems.org/gems/citrus The README is below. Enjoy. …

---

## [Problem with SOAP and Commision Junction web services](https://www.ruby-forum.com/t/problem-with-soap-and-commision-junction-web-services/71323)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 5\
**Last updated:** [May 17, 2010, 8:46am UTC](https://www.ruby-forum.com/t/problem-with-soap-and-commision-junction-web-services/71323 "2010-05-17T08:46:06Z")

</div>

I’m new to Ruby and Web Services. I’m trying to use Commision Junction’s Web services. I’ve run a couple example web services with Ruby, so I’m confidents that my env is setup properly. I’ve also connected to the CJ w…

---

## [Antlr3 1.7.2 ( improved ANTLR v3 language recognition for Ruby )](https://www.ruby-forum.com/t/antlr3-1-7-2-improved-antlr-v3-language-recognition-for-ruby/188715)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 0\
**Last updated:** [May 17, 2010, 2:42am UTC](https://www.ruby-forum.com/t/antlr3-1-7-2-improved-antlr-v3-language-recognition-for-ruby/188715 "2010-05-17T02:42:42Z")

</div>

There have been a hand full of releases since I have posted an announcement here. Since then, I have implemented a simple ERB-based template output mode, in lieu of the StringTemplate-based template mode provided by …

---

## [Array conversion](https://www.ruby-forum.com/t/array-conversion/188703)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 4\
**Last updated:** [May 17, 2010, 1:30am UTC](https://www.ruby-forum.com/t/array-conversion/188703 "2010-05-17T01:30:45Z")

</div>

Hi, I have a array of 32 bits digests such as this one: array = \[1717922406, 543519338, 543585641, 1701343776, 1718969704, 544368245, 1751457906, 1713399157\] And I would like to convert it into another array of 128 b…

---

## [Buscar todos los .pdf que hayan en un directorio dado](https://www.ruby-forum.com/t/buscar-todos-los-pdf-que-hayan-en-un-directorio-dado/188710)

<div class="topic-metadata">

**Author:** [@deadlykyo](https://www.ruby-forum.com/u/deadlykyo)\
**Replies:** 1\
**Last updated:** [May 17, 2010, 1:18am UTC](https://www.ruby-forum.com/t/buscar-todos-los-pdf-que-hayan-en-un-directorio-dado/188710 "2010-05-17T01:18:26Z")

</div>

Hello all, please I need help with this, I need to search for .pdf all who are in a given directory. I explain: I’m doing a project in Ruby on which the user must enter any directory in Windows (ex C: /) and I have in…

---

## [Caller at toplevel](https://www.ruby-forum.com/t/caller-at-toplevel/188705)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 0\
**Last updated:** [May 17, 2010, 12:12am UTC](https://www.ruby-forum.com/t/caller-at-toplevel/188705 "2010-05-17T00:12:51Z")

</div>

e$B$$$^$$$G$9!#e(B e$B$k$j$^$N%P%0Js9p$r=hM}$7$F$$$F5$$E$$$?$N$G$9$,!"%H%C%W%l%Y%k$Ge(B caller e$B$r8F$V$H!"e(B1.8e$B7O$G$Oe(B \[\] e$B$,JV$C$F$$$?$N$G$9$,!"e(B1.9e$B7O$G$Oe(B nil e$B$,JV$j$^$9!#e(B http://redmine.ru…

---

## [Rubygems doesn't find the repository](https://www.ruby-forum.com/t/rubygems-doesnt-find-the-repository/188698)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 6\
**Last updated:** [May 16, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/rubygems-doesnt-find-the-repository/188698 "2010-05-16T23:30:42Z")

</div>

Hi everyone, I can’t install any gem through jruby’s rubygems. See the problem below: root@K2:/usr/local/jruby/bin# ./gem install rails JRuby limited openssl loaded. gem install jruby-openssl for full support. http:…

---

## [\[ANN\] jruby maven plugins released](https://www.ruby-forum.com/t/ann-jruby-maven-plugins-released/188701)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 16, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/ann-jruby-maven-plugins-released/188701 "2010-05-16T23:22:31Z")

</div>

hello, just another step forward . . . . maven archetypes for rails2 and rails3 (inspired by email from Reto SchÃ¼ttel): christian's blog: mavenize an existing rails application added rspec-maven-plugin (by Bob …

---

## [Jgem or gem](https://www.ruby-forum.com/t/jgem-or-gem/188697)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 1\
**Last updated:** [May 16, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/jgem-or-gem/188697 "2010-05-16T21:33:06Z")

</div>

Jruby binaries comes with two “rubygems” : jgem and gem. which one do I use? root@K2:/usr/local/jruby/bin# diff jgem gem 18c18,21 \< args = ARGV.clone We need to preserve the original ARGV to use for passing gem opti…

---

## [Working on JRuby in Eclipse](https://www.ruby-forum.com/t/working-on-jruby-in-eclipse/188693)

<div class="topic-metadata">

**Author:** [@Reto\_SchSSS\_ttel](https://www.ruby-forum.com/u/Reto_SchSSS_ttel)\
**Replies:** 3\
**Last updated:** [May 16, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/working-on-jruby-in-eclipse/188693 "2010-05-16T21:23:44Z")

</div>

Hi, I’m trying to debug a problem in JRuby and I was trying to import JRuby into my Eclipse workspace. But I failed completely. What I tried Importing it using the ‘Import Maven Project’ functionality of eclipse =\>…

---

## [User defined if condition](https://www.ruby-forum.com/t/user-defined-if-condition/188691)

<div class="topic-metadata">

**Author:** [@site-master](https://www.ruby-forum.com/u/site-master)\
**Replies:** 3\
**Last updated:** [May 16, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/user-defined-if-condition/188691 "2010-05-16T18:23:57Z")

</div>

hi iv just started to learn ruby 2 days ago and have no programing exp so sorry if this is a stupid question what i want to do is have some thing happen depending on the exact word or number the user imputs hears an e…

---

## [Comparing Arrays](https://www.ruby-forum.com/t/comparing-arrays/186722)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 8\
**Last updated:** [May 16, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/comparing-arrays/186722 "2010-05-16T17:24:56Z")

</div>

Hello everyone, another easy question from a beginner: How do you create a method to compare two arrays so that if they share at least 1 common element it returns true? For example: a = %w(m w f) b = %w(m w) c = %w…

---

## [Accessing elements of a ruby array with javascript](https://www.ruby-forum.com/t/accessing-elements-of-a-ruby-array-with-javascript/188673)

<div class="topic-metadata">

**Author:** [@bfouts](https://www.ruby-forum.com/u/bfouts)\
**Replies:** 3\
**Last updated:** [May 16, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/accessing-elements-of-a-ruby-array-with-javascript/188673 "2010-05-16T13:30:47Z")

</div>

So I’m very new to both ruby and javascript, but the basic problem is. I have a ruby array @events\_this\_month, and i’m running a javascript loop that basically needs the information from this array. The problem is I c…

---

## [Problem with JPA - entity type not found](https://www.ruby-forum.com/t/problem-with-jpa-entity-type-not-found/188682)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 2\
**Last updated:** [May 16, 2010, 12:56pm UTC](https://www.ruby-forum.com/t/problem-with-jpa-entity-type-not-found/188682 "2010-05-16T12:56:50Z")

</div>

Hi, I’m trying to use JPA from JRuby. The persistence.xml is found and a connection to the database is established. The problem: As soon as I try to execute createQuery I get : Exception Description: Error compiling…

---

## [Ironruby.rack patch](https://www.ruby-forum.com/t/ironruby-rack-patch/184937)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 3\
**Last updated:** [May 16, 2010, 11:33am UTC](https://www.ruby-forum.com/t/ironruby-rack-patch/184937 "2010-05-16T11:33:06Z")

</div>

HI I needed IronRuby.Rack today so I patched it to work without GetExecutionContext the patch is attached Met vriendelijke groeten - Best regards - Salutations Ivan Porto C. Web: http://whiterabbitconsulting.eu - h…

---

## [Using Java annotations for JRuby classes?](https://www.ruby-forum.com/t/using-java-annotations-for-jruby-classes/188661)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 2\
**Last updated:** [May 16, 2010, 9:36am UTC](https://www.ruby-forum.com/t/using-java-annotations-for-jruby-classes/188661 "2010-05-16T09:36:38Z")

</div>

Im looking for some docs on how to add annotations to a JRuby class in order to use JPA ? Thanks Roger To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [\[Bug #3296\](Closed) windows $B$G(B iconv.dll $B$N;HMQ$9$k(B MSVC runtime DLL $B$N%P!\<%8%g%s$,!](https://www.ruby-forum.com/t/bug-3296-closed-windows-b-g-b-iconv-dll-b-n-hmq-9-k-b-msvc-runtime-dll-b-n-p-8-g-s/188676)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [May 16, 2010, 7:46am UTC](https://www.ruby-forum.com/t/bug-3296-closed-windows-b-g-b-iconv-dll-b-n-hmq-9-k-b-msvc-runtime-dll-b-n-p-8-g-s/188676 "2010-05-16T07:46:37Z")

</div>

e$B%A%1%C%He(B #3296 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B This issue was solved with changeset r27805. Masaya, thank you for reporting this issue. Your contribu…

---

## [Test-all $BCf$K%"%\\!\<%H(B](https://www.ruby-forum.com/t/test-all-bcf-k-h-b/188650)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 1\
**Last updated:** [May 16, 2010, 7:44am UTC](https://www.ruby-forum.com/t/test-all-bcf-k-h-b/188650 "2010-05-16T07:44:16Z")

</div>

e$B$-$7$b$H$G$9e(B e$B\<j85$Ne(B AMD64 FreeBSD8 e$B$G!“e(Btrunk e$B$N%j%S%8%g%se(B 27716 e$B0J9\_$Ge(B test-all e$BCf$Ke(B e$B%”%!\<%H$7$^$9!#e(B e$B0J2\<$Oe(B HEAD e$B$G$N7k2L$G$9!#e(B $ make test-all ./miniruby -I…/l…

---

## [Sqlite3-ruby 1.3.0.beta.2 Released](https://www.ruby-forum.com/t/sqlite3-ruby-1-3-0-beta-2-released/188675)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 16, 2010, 3:12am UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-3-0-beta-2-released/188675 "2010-05-16T03:12:03Z")

</div>

sqlite3-ruby version 1.3.0.beta.2 has been released! Special thanks goes to Aaron P. for the improved Ruby 1.9 support, backward compatibility and newer C backend! http://github.com/luislavena/sqlite3-ruby http://rub…

---

## [Chomp like Perl operator in Ruby](https://www.ruby-forum.com/t/chomp-like-perl-operator-in-ruby/188669)

<div class="topic-metadata">

**Author:** [@sobrino](https://www.ruby-forum.com/u/sobrino)\
**Replies:** 4\
**Last updated:** [May 16, 2010, 2:48am UTC](https://www.ruby-forum.com/t/chomp-like-perl-operator-in-ruby/188669 "2010-05-16T02:48:39Z")

</div>

Is there a chomp like Perl operator in Ruby using which I can literally remove new line characters as show below in my Perl script: use strict; use warnings; my $str1 = “Hello\\n”; my $str2 = “World”; print $str1.$s…

---

## [Hash method in ruby](https://www.ruby-forum.com/t/hash-method-in-ruby/188646)

<div class="topic-metadata">

**Author:** [@tarunyadavcts](https://www.ruby-forum.com/u/tarunyadavcts)\
**Replies:** 7\
**Last updated:** [May 15, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/hash-method-in-ruby/188646 "2010-05-15T22:55:45Z")

</div>

Hello group, I have been working in java and ruby is new to me. While trying some hands on, I could not understand the Hashing done in ruby. I created a class A and called hash function on the class. 1\> A.hash 2\> A.…

---

## [Get browser name and version](https://www.ruby-forum.com/t/get-browser-name-and-version/187883)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 4\
**Last updated:** [May 15, 2010, 10:43pm UTC](https://www.ruby-forum.com/t/get-browser-name-and-version/187883 "2010-05-15T22:43:27Z")

</div>

Hello I want get the browser name and version using ruby. I have tried system command and wmi gem but to no avail. Thanks in advance. MC

---

## [Propogate variable up to included module](https://www.ruby-forum.com/t/propogate-variable-up-to-included-module/188617)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 5\
**Last updated:** [May 15, 2010, 10:17pm UTC](https://www.ruby-forum.com/t/propogate-variable-up-to-included-module/188617 "2010-05-15T22:17:15Z")

</div>

Hey folks, I have a module which I’m using to contain a lot of strings that my objects print out. I want to use a module because it seems better to me to put the data in a separate location than my object implementati…

---

## [Converting hexadecimal string to character](https://www.ruby-forum.com/t/converting-hexadecimal-string-to-character/188653)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 4\
**Last updated:** [May 15, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/converting-hexadecimal-string-to-character/188653 "2010-05-15T20:22:22Z")

</div>

If I have a string that represents some character in hex, what is the easiest way to convert it to that character? For example, if I have the string “41” how do I convert it to “\\x41” (or “A”)? I’ve been toying around…

---

## [Wx Ruby - MenuBar. What's wrong with my code?](https://www.ruby-forum.com/t/wx-ruby-menubar-whats-wrong-with-my-code/197197)

<div class="topic-metadata">

**Author:** [@iroupa](https://www.ruby-forum.com/u/iroupa)\
**Replies:** 4\
**Last updated:** [May 15, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/wx-ruby-menubar-whats-wrong-with-my-code/197197 "2010-05-15T19:42:19Z")

</div>

Hi all, I have created a basic frame and I’m trying to create a MenuBar inside it but although I have followed the API Documentation instructions I always get this error. This is my code require ‘wx’ include Wx cl…

---

## [Static variable referenced as a method?](https://www.ruby-forum.com/t/static-variable-referenced-as-a-method/188656)

<div class="topic-metadata">

**Author:** [@Tommy\_C](https://www.ruby-forum.com/u/Tommy_C)\
**Replies:** 2\
**Last updated:** [May 15, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/static-variable-referenced-as-a-method/188656 "2010-05-15T19:10:23Z")

</div>

In jruby, I’m trying to reference a static variable using DefaultGeographicCRS.WGS84 but JRuby is trying to call it as a method rather than a variable?: undefined method \`WGS84’ for Java::OrgGeotoolsReferencingCrs::D…

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

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