# Ruby

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

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

---

## [Re: access to java class objects](https://www.ruby-forum.com/t/re-access-to-java-class-objects/185279)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 6\
**Last updated:** [March 17, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/re-access-to-java-class-objects/185279 "2010-03-17T22:23:50Z")

</div>

Hi Jan, I would just do this: Clazz = javax.swing.JLabel Is this what you would like to do? Cheers Michael On Mi 17/03/10 12:20 , Jan H. removed\_email\_address@domain.invalid wrote: =\> Class does not work as expe…

---

## [Uninstalling the rubygems application](https://www.ruby-forum.com/t/uninstalling-the-rubygems-application/185287)

<div class="topic-metadata">

**Author:** [@Jake\_Winston](https://www.ruby-forum.com/u/Jake_Winston)\
**Replies:** 1\
**Last updated:** [March 17, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/uninstalling-the-rubygems-application/185287 "2010-03-17T21:40:30Z")

</div>

I have installed the rubygem application (version 1.3.6) on a Debian system by downloading the rubygems tar.gz archive and running the setup.rb command. What is the best way to uninstall this application?

---

## [Gems and custom\_require problem for ruby(1.9.2dev)/rubygems(1.3.6) installed in $HOME](https://www.ruby-forum.com/t/gems-and-custom-require-problem-for-ruby-1-9-2dev-rubygems-1-3-6-installed-in-home/185292)

<div class="topic-metadata">

**Author:** [@Nikolai\_L](https://www.ruby-forum.com/u/Nikolai_L)\
**Replies:** 2\
**Last updated:** [March 17, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/gems-and-custom-require-problem-for-ruby-1-9-2dev-rubygems-1-3-6-installed-in-home/185292 "2010-03-17T17:59:18Z")

</div>

I installed ruby 1.9.2dev (2010-03-17 trunk 26961) \[i686-linux\] in my $HOME dir using configure --prefix=$HOME && make install also i set PATH=$HOME/bin:$PATH Then, I tried to run rake test on edge rails version, hav…

---

## [\[Feature #2969\](Closed) String#to\_f $B$,(B -h.hhh$B!^(Bpd $B$r2r\<a$G$-$k$h$&$K(B](https://www.ruby-forum.com/t/feature-2969-closed-string-to-f-b-b-h-hhh-b-bpd-b-r2r-a-g-k-h-k-b/185297)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/feature-2969-closed-string-to-f-b-b-h-hhh-b-bpd-b-r2r-a-g-k-h-k-b/185297 "2010-03-17T17:27:41Z")

</div>

e$B%A%1%C%He(B #2969 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) 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 This issue was solved with changeset r26965. Yui, thank you for …

---

## [Need to step through text in Variable](https://www.ruby-forum.com/t/need-to-step-through-text-in-variable/185250)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 4\
**Last updated:** [March 17, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/need-to-step-through-text-in-variable/185250 "2010-03-17T16:38:36Z")

</div>

My script starts out by connecting to another machine via SSH and reading the hosts file into a variable: z = ssh -l username -i /home/username/.ssh/id\_rsa 10.1.1.1 cat /etc/hosts Normally if the hosts file was on my …

---

## [Re: access to java class objects](https://www.ruby-forum.com/t/re-access-to-java-class-objects/185284)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 1\
**Last updated:** [March 17, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/re-access-to-java-class-objects/185284 "2010-03-17T16:01:04Z")

</div>

You’re right. What about this?: cls = javax.swing.JLabel cls.new.getClass =\> #Java::JavaLang::Class:0x1791f022 cls.new.getClass.get\_package =\> #Java::JavaLang::Package:0x2bf87baf But I suppose you won’t like t…

---

## [\[Feature #2571\] $BJ8;zNs$N%O%\_%s%05wN%(B](https://www.ruby-forum.com/t/feature-2571-bj8-zns-n-o-s-05wn-b/181201)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 13\
**Last updated:** [March 17, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/feature-2571-bj8-zns-n-o-s-05wn-b/181201 "2010-03-17T15:31:12Z")

</div>

Feature #2571: e$BJ8;zNs$N%O%\_%s%05wN%e(B http://redmine.ruby-lang.org/issues/show/2571 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.2 e$BJ8;zNs$N%O%%…

---

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

<div class="topic-metadata">

**Author:** [@sempti](https://www.ruby-forum.com/u/sempti)\
**Replies:** 3\
**Last updated:** [March 17, 2010, 10:50am UTC](https://www.ruby-forum.com/t/hash/185273 "2010-03-17T10:50:31Z")

</div>

I have a hash, that stores values like this grid\[\[0,1\] =\> “Some value here”, \[7,8\] =\> "Some other value here, \[3,4\] =\> Some text here\]\] This gets looped through and displayed as a table. My problem is that the values…

---

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

<div class="topic-metadata">

**Author:** [@pcalcado](https://www.ruby-forum.com/u/pcalcado)\
**Replies:** 6\
**Last updated:** [March 17, 2010, 6:15am UTC](https://www.ruby-forum.com/t/array-each/185234 "2010-03-17T06:15:33Z")

</div>

I want to take an array of strings and convert each member to an integer. array.to\_i obviously doesn’t work. I tried array.each { |x| x = x.to\_i } and that doesn’t work either. aray.each\_index { |x| array\[x\] = array\[…

---

## [Ncurses alternative character set?](https://www.ruby-forum.com/t/ncurses-alternative-character-set/185084)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 1\
**Last updated:** [March 17, 2010, 4:53am UTC](https://www.ruby-forum.com/t/ncurses-alternative-character-set/185084 "2010-03-17T04:53:23Z")

</div>

I’m exploring the ncurses library for Ruby 1.8, and am unclear how to access the alternative character set (e.g. ACS\_LTEE) from within Ruby. For example: require 'ncurses' Ncurses.initscr Ncurses.addstr Ncurses.ACS\_LT…

---

## [Code Review: UnusedVars](https://www.ruby-forum.com/t/code-review-unusedvars/185262)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 12:50am UTC](https://www.ruby-forum.com/t/code-review-unusedvars/185262 "2010-03-17T00:50:18Z")

</div>

tfpt review “/shelveset:UnusedVars;REDMOND\\tomat” Comment : Removes unused local variables. Tomas

---

## [Code Review: ReleaseBacktraceFix](https://www.ruby-forum.com/t/code-review-releasebacktracefix/185263)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 12:50am UTC](https://www.ruby-forum.com/t/code-review-releasebacktracefix/185263 "2010-03-17T00:50:18Z")

</div>

tfpt review “/shelveset:ReleaseBacktraceFix;REDMOND\\tomat” Comment : Fixes unit test that was failing in release mode. Tomas

---

## [Re: rubygem](https://www.ruby-forum.com/t/re-rubygem/197257)

<div class="topic-metadata">

**Author:** [@Andrew\_Choi](https://www.ruby-forum.com/u/Andrew_Choi)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/re-rubygem/197257 "2010-03-16T23:19:01Z")

</div>

unsubscribe

---

## [Re: rubygem](https://www.ruby-forum.com/t/re-rubygem/197194)

<div class="topic-metadata">

**Author:** [@Andrew\_Choi](https://www.ruby-forum.com/u/Andrew_Choi)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/re-rubygem/197194 "2010-03-16T23:17:16Z")

</div>

unsubscribe

---

## [Rubygem](https://www.ruby-forum.com/t/rubygem/185254)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 1\
**Last updated:** [March 16, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/rubygem/185254 "2010-03-16T23:11:24Z")

</div>

Hi, After I installed ruby 1.9.1, I run gem -v, it prints out gem 1.3.1 even though I haven’t installed rubygem yet. Is this correct? What should I do if I need different version of gem? Thanks

---

## [\[Bug #2388\] test-all $BCf$K(B popen $B$G(B ruby.exe $B$,Mn$A$k(B](https://www.ruby-forum.com/t/bug-2388-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/185253)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/bug-2388-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/185253 "2010-03-16T22:19:55Z")

</div>

e$B%A%1%C%He(B #2388 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$BB\<ED$5$se(B e$B%o%J%Y$H?=$7$^$9!#e(B e$B$9$$^$;$s!“$3$Ne(B SEGV e$B$O:#$G$b:F8=$9$k$G$7$g$&$+!)e(B e$B;d\<+?H$b0lEY:F8=$7$?$h$&$@$C$?$N$G$9$,!”$=$N8e@5\>o$…

---

## [Re: Need to step through text in Variable](https://www.ruby-forum.com/t/re-need-to-step-through-text-in-variable/185252)

<div class="topic-metadata">

**Author:** [@Andrew\_Choi](https://www.ruby-forum.com/u/Andrew_Choi)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/re-need-to-step-through-text-in-variable/185252 "2010-03-16T22:12:53Z")

</div>

unsubscribe

---

## [WSDL Interface to EPO (European Patent Office)](https://www.ruby-forum.com/t/wsdl-interface-to-epo-european-patent-office/185107)

<div class="topic-metadata">

**Author:** [@worldfox](https://www.ruby-forum.com/u/worldfox)\
**Replies:** 2\
**Last updated:** [March 16, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/wsdl-interface-to-epo-european-patent-office/185107 "2010-03-16T21:28:32Z")

</div>

Hi, I am trying to do patent searches accessing the webservice at the European patent office (www.ops.epo.org/patents/patent-information/free/open-patent-services.html). Here is the code I wrote: #step 1: SOAP meth…

---

## [$KCODE, -KU and CLR strings](https://www.ruby-forum.com/t/kcode-ku-and-clr-strings/185197)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 2\
**Last updated:** [March 16, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/kcode-ku-and-clr-strings/185197 "2010-03-16T21:28:24Z")

</div>

Hi everyone, please consider this snippet: $KCODE = “U” puts “æ—¥æœ¬èªž”.to\_clr\_string.length When I run it by launching ir.exe without any option I get 9 as an output (each character in that string is actually made…

---

## [\[ANN\] Iyyov : Down-to-earth job control and monitoring](https://www.ruby-forum.com/t/ann-iyyov-down-to-earth-job-control-and-monitoring/185141)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 4\
**Last updated:** [March 16, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/ann-iyyov-down-to-earth-job-control-and-monitoring/185141 "2010-03-16T19:12:36Z")

</div>

Description Down-to-earth job control and monitoring. Blog post: Iyyov http://rdoc.info/projects/dekellum/iyyov http://rubygems.org/gems/iyyov Features \* Runs on JRuby (no fork or native code extensions) \* Pow…

---

## [Gecode/r troubles with constraints definition in a CSP](https://www.ruby-forum.com/t/gecode-r-troubles-with-constraints-definition-in-a-csp/185243)

<div class="topic-metadata">

**Author:** [@save83bg](https://www.ruby-forum.com/u/save83bg)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/gecode-r-troubles-with-constraints-definition-in-a-csp/185243 "2010-03-16T19:02:59Z")

</div>

Hi, i’m trying the Gecoder-with-gecode library, to solve some CSP problems. The problem is: given a int\_matrix (with domain 0…1), sched = int\_var\_matrix(3, 15,0..1) place 0 and 1’s in order to respect the followin…

---

## [Null object returned by Ruby.getClass method](https://www.ruby-forum.com/t/null-object-returned-by-ruby-getclass-method/185242)

<div class="topic-metadata">

**Author:** [@Ahmed\_Ragab\_Nabhan](https://www.ruby-forum.com/u/Ahmed_Ragab_Nabhan)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/null-object-returned-by-ruby-getclass-method/185242 "2010-03-16T17:42:28Z")

</div>

Hi JRuby users, I have used the simple utility jrubyc that compiles a .rb file into .java. When I try to run the resulting .class file, I got got an exception: A very simple jruby file is used to declare a class. The…

---

## [Singlethread vs threadsafe Context](https://www.ruby-forum.com/t/singlethread-vs-threadsafe-context/185177)

<div class="topic-metadata">

**Author:** [@ngambek2003](https://www.ruby-forum.com/u/ngambek2003)\
**Replies:** 2\
**Last updated:** [March 16, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/singlethread-vs-threadsafe-context/185177 "2010-03-16T15:58:05Z")

</div>

What is really the difference between “singlethread” and “threadsafe” Context Instance Type? Does this affect the thread safety of the ScriptEngine’s eval() method or invokeFunction() or both? Unrelated question. Doe…

---

## [Enumerable#interleave](https://www.ruby-forum.com/t/enumerable-interleave/185093)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 10\
**Last updated:** [March 16, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/enumerable-interleave/185093 "2010-03-16T15:11:27Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B Enumerable#interleave e$B$H$$$&%a%=%C%I$rDI2C$7$F$O$I$&$+$H;W$$e(B e$B$^$9!#e(BClojuree$B$J$I$G8+$i$l$k%a%=%C%I$G$9!#;EMM$Oe(B /\* call-seq: enum.interleave(arg, ...) …

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/185230)

<div class="topic-metadata">

**Author:** [@upabibi](https://www.ruby-forum.com/u/upabibi)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 1:41pm UTC](https://www.ruby-forum.com/t/nomethoderror/185230 "2010-03-16T13:41:30Z")

</div>

First, what I wanna do is: Have a page where I must write a name and choose a option on a select… The “nome” is a string of the Class Perfil and “acesso” is a string of the Class TipoAcesso. TipoAcesso belongs\_to Per…

---

## [JRuby on AIX 5.3 fully supported?](https://www.ruby-forum.com/t/jruby-on-aix-5-3-fully-supported/184926)

<div class="topic-metadata">

**Author:** [@slauki](https://www.ruby-forum.com/u/slauki)\
**Replies:** 8\
**Last updated:** [March 16, 2010, 11:37am UTC](https://www.ruby-forum.com/t/jruby-on-aix-5-3-fully-supported/184926 "2010-03-16T11:37:11Z")

</div>

Hello, For some scripting project (mostly DB-access via JDBC,calling Oracle SQL+PL/SQL) on AIX 5.3 I am trying to decide between Jython 2.5 and JRuby 1.4. My personal preference would probably be JRuby, but I have a …

---

## [Default arguments & define\_method: MRI - JRuby difference](https://www.ruby-forum.com/t/default-arguments-define-method-mri-jruby-difference/185207)

<div class="topic-metadata">

**Author:** [@Gergely\_N](https://www.ruby-forum.com/u/Gergely_N)\
**Replies:** 5\
**Last updated:** [March 16, 2010, 10:59am UTC](https://www.ruby-forum.com/t/default-arguments-define-method-mri-jruby-difference/185207 "2010-03-16T10:59:44Z")

</div>

Hi guys, I’ve run into a case where MRI and JRuby works differently, and I’m wondering which is right (my guess is MRI ;-( It happens when subclassing and dynamically overriding a method with default arguments. Tryi…

---

## [Nomap\_table in emoji.trans](https://www.ruby-forum.com/t/nomap-table-in-emoji-trans/185198)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [March 16, 2010, 9:26am UTC](https://www.ruby-forum.com/t/nomap-table-in-emoji-trans/185198 "2010-03-16T09:26:41Z")

</div>

enc/trans/emoji.trans e$B$K!"e(B nomap\_table = \[ \["{00-7f}", :nomap\], \["{c2-df}{80-bf}", :nomap0\], \[“e0{a0-bf}{80-bf}”, :nomap0\], \["{e1-ec}{80-bf}{80-bf}", :nomap0\], \[“ed{80-9f}{80-bf}”, :nomap0\], \["{ee-ef}{80-bf}…

---

## [\[Bug #2972\](Rejected) Windows $B$G$N(B gets(nil)](https://www.ruby-forum.com/t/bug-2972-rejected-windows-b-g-n-b-gets-nil/185215)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 8:08am UTC](https://www.ruby-forum.com/t/bug-2972-rejected-windows-b-g-n-b-gets-nil/185215 "2010-03-16T08:08:50Z")

</div>

e$B%A%1%C%He(B #2972 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B e$B%P%$%J%j%U%!%$%k$rFI$\`$J$ie(B ‘ARGF.binmode; p gets(nil).size’ e$B$H%P%$%J%j%b!\<%I$K$7$F$/$@$5$$…

---

## [\[Bug #2972\] Windows $B$G$N(B gets(nil)](https://www.ruby-forum.com/t/bug-2972-windows-b-g-n-b-gets-nil/185213)

<div class="topic-metadata">

**Author:** [@Takaya\_KUBOTA](https://www.ruby-forum.com/u/Takaya_KUBOTA)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 7:58am UTC](https://www.ruby-forum.com/t/bug-2972-windows-b-g-n-b-gets-nil/185213 "2010-03-16T07:58:53Z")

</div>

Bug #2972: Windows e$B$G$Ne(B gets(nil) http://redmine.ruby-lang.org/issues/show/2972 e$B5/I\<\<Te(B: Takaya KUBOTA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2010-01-10 patchlevel 249) \[i386-min…

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

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