# Ruby

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

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

---

## [Array#select doesnt return Enumerator?](https://www.ruby-forum.com/t/array-select-doesnt-return-enumerator/178472)

<div class="topic-metadata">

**Author:** [@koji\_Lin](https://www.ruby-forum.com/u/koji_Lin)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 9:26am UTC](https://www.ruby-forum.com/t/array-select-doesnt-return-enumerator/178472 "2009-11-05T09:26:35Z")

</div>

Hi, I have tried jruby1.4, and something works in ruby1.8.7 doesn’t works in jruby1.4. My code is like below. array = \[‘a’,‘b’,‘c’\] array.select.with\_index{|x, i| i \>= 1} got C:/Program Files/jruby-1.4.0/lib/ruby…

---

## [Problems with table name quoting in ActiveRecord-JDBC-Adapter \> 0.9.0](https://www.ruby-forum.com/t/problems-with-table-name-quoting-in-activerecord-jdbc-adapter-0-9-0/178422)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [November 5, 2009, 9:25am UTC](https://www.ruby-forum.com/t/problems-with-table-name-quoting-in-activerecord-jdbc-adapter-0-9-0/178422 "2009-11-05T09:25:25Z")

</div>

Hello, I’m running a Rails 2.2.2 application on an Oracle database. To access tables in a different schema without public synonyms we have defined our model classes like this: class SKey \< ActiveRecord::Base set\_tab…

---

## [\[Bug #2331\](Closed) Kernel#system $B$NBh0l0z?t$,=q$-49$($i$l$k(B](https://www.ruby-forum.com/t/bug-2331-closed-kernel-system-b-nbh0l0z-t-q-49-i-l-k-b/178478)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 8:26am UTC](https://www.ruby-forum.com/t/bug-2331-closed-kernel-system-b-nbh0l0z-t-q-49-i-l-k-b/178478 "2009-11-05T08:26:18Z")

</div>

e$B%A%1%C%He(B #2331 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$BC4Ev\<Te(B Usaku NAKAMURAe$B$K%;%C%He(B e$B$3$N2\]Bj$Oe(B r25656 e$B$NJQ99$G2r7h$5$l$^$7$?!#e(B Ki…

---

## [How would you accomplish this?](https://www.ruby-forum.com/t/how-would-you-accomplish-this/178424)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 6\
**Last updated:** [November 5, 2009, 6:38am UTC](https://www.ruby-forum.com/t/how-would-you-accomplish-this/178424 "2009-11-05T06:38:01Z")

</div>

Given an array of arrays for example \[\[“A”, “B”\], \[“A”, “B”, “D”, “C”\], \[“B”, “D”\], \[“B”, “C”, “F”, “E”\], \[“C”, “F”\], \[“C”, “E”\], \[“G”\]\] what would be a nice way of “merging” the items that seem to already be contain…

---

## [Ruby 1.9.1 Regexp Encoding Warnings](https://www.ruby-forum.com/t/ruby-1-9-1-regexp-encoding-warnings/178431)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 5:51am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-regexp-encoding-warnings/178431 "2009-11-05T05:51:46Z")

</div>

In the Mail gem I am doing Regexp’s on various strings that arrive, which can be basically anything (user defined). So I am dup’ing the string, and forcing the encoding to binary before I do the regexp… but I am getti…

---

## [Help with HTML parsing](https://www.ruby-forum.com/t/help-with-html-parsing/156719)

<div class="topic-metadata">

**Author:** [@vivnet](https://www.ruby-forum.com/u/vivnet)\
**Replies:** 12\
**Last updated:** [November 5, 2009, 5:29am UTC](https://www.ruby-forum.com/t/help-with-html-parsing/156719 "2009-11-05T05:29:17Z")

</div>

Hello, I’m new to Watir\\Ruby and need to resolve something that involves HTML parsing - you could also call it screen scraping. I haven’t used either library before, but I wanted to know if it is better to use Hpricot…

---

## [Redirection Windows shell out to variable](https://www.ruby-forum.com/t/redirection-windows-shell-out-to-variable/178469)

<div class="topic-metadata">

**Author:** [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 3:40am UTC](https://www.ruby-forum.com/t/redirection-windows-shell-out-to-variable/178469 "2009-11-05T03:40:04Z")

</div>

i want to execute Windows shell commands in my script so that the result came back in a variable and the new window of a Windows command line (MS-DOS-session) didn’t open. i write: a=‘dir’ system(a) and i see out …

---

## [Re: \[ANN\] IronRuby 0.9.2 Released](https://www.ruby-forum.com/t/re-ann-ironruby-0-9-2-released/178408)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 1:57am UTC](https://www.ruby-forum.com/t/re-ann-ironruby-0-9-2-released/178408 "2009-11-05T01:57:38Z")

</div>

Please file a bug with us and i’ll investigate to see if MRI acts identically.

---

## [November Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/november-phoenix-ruby-user-group-meeting/178405)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [November 5, 2009, 12:53am UTC](https://www.ruby-forum.com/t/november-phoenix-ruby-user-group-meeting/178405 "2009-11-05T00:53:50Z")

</div>

November Phoenix Ruby U. Group Meeting When: Monday, November 9, 2009 6:30pm door open. Laptop power and WiFi available. 7:00pm Showtime 8:15pm Migrate to Havana Cafe \*\*\* SEE NOTE BELOW! \*\*\* Topic: Game developmen…

---

## [Calling Java from JRuby problem](https://www.ruby-forum.com/t/calling-java-from-jruby-problem/151764)

<div class="topic-metadata">

**Author:** [@fla](https://www.ruby-forum.com/u/fla)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/calling-java-from-jruby-problem/151764 "2009-11-04T22:30:26Z")

</div>

Hello, I was playing to load my own Java code in JRuby, but my little example does not work and I do not understand why. public class Test02 { public void output() { System.out.print("From Java"); } } To creat…

---

## [Super w/ implicit arguments in Ruby 1.9](https://www.ruby-forum.com/t/super-w-implicit-arguments-in-ruby-1-9/178433)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/super-w-implicit-arguments-in-ruby-1-9/178433 "2009-11-04T22:21:39Z")

</div>

Hi– Debugging a library for 1.9.1 compatibility. I get this error: Error: test\_02\_002(TC\_Inheritor\_02): RuntimeError: implicit argument passing of super from method defined by define\_method() is not supported. Spec…

---

## [Binding#eval \_\_LINE\_\_ and \_\_FILE\_\_ in Ruby 1.9.1](https://www.ruby-forum.com/t/binding-eval-line-and-file-in-ruby-1-9-1/178450)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/binding-eval-line-and-file-in-ruby-1-9-1/178450 "2009-11-04T21:39:31Z")

</div>

Ok. One last question in today’s debugging for 1.9 session. Using Bindging#eval, LINE and FILE always appear the same: binding.eval(‘FILE’) #=\> “(eval)” binding.eval(‘LINE’) #=\> 1 Do we not want the LINE and FILE of …

---

## [Further problems with ActionMailer](https://www.ruby-forum.com/t/further-problems-with-actionmailer/178449)

<div class="topic-metadata">

**Author:** [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/further-problems-with-actionmailer/178449 "2009-11-04T21:33:40Z")

</div>

I just posted this issuehttp://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2993 . I’ve got 0.9.2 in place and the UTC issue has gone away but now I’m getting this new error. James Thompson Plain Programs …

---

## [StringIO and reopen](https://www.ruby-forum.com/t/stringio-and-reopen/178396)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 10\
**Last updated:** [November 4, 2009, 7:30pm UTC](https://www.ruby-forum.com/t/stringio-and-reopen/178396 "2009-11-04T19:30:09Z")

</div>

I’ve noticed (via my friend Taylor Carpenter) that IO#reopen doesn’t work for a StringIO object. Should it? I haven’t dug into the source yet, but my guess is that it would be easy to implement… Hal F.

---

## [\[Feature #2328\] malloc\_limit $B$NHnBg2=$rKI$.$?$$(B](https://www.ruby-forum.com/t/feature-2328-malloc-limit-b-nhnbg2-rki-b/178442)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/feature-2328-malloc-limit-b-nhnbg2-rki-b/178442 "2009-11-04T18:01:11Z")

</div>

e$B%A%1%C%He(B #2328 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B$9$\_$^$;$s!“$=$N$”$H1sF#$5$s$KDI;n$r$7$F$$$?$@$$$?$N$G$9$,!J$“$j$,$H$&$4$6$$$^$9!Ke(B e$B?M9)E\*$J%F%9%H$N7k2L$O:F8=$;$:!”$^$?e(B make test-all e$B$G$O$\`$7…

---

## [\[ANN\] JRuby 1.4.0 Released](https://www.ruby-forum.com/t/ann-jruby-1-4-0-released/178336)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 4\
**Last updated:** [November 4, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/ann-jruby-1-4-0-released/178336 "2009-11-04T17:23:09Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.4.0 Homepage: http://www.jruby.org/ Download: Downloads — JRuby.org After three very helpful release candidates we have a final 1.4.0 release. This r…

---

## [\[Feature #2328\] malloc\_limit $B$NHnBg2=$rKI$.$?$$(B](https://www.ruby-forum.com/t/feature-2328-malloc-limit-b-nhnbg2-rki-b/178423)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 1\
**Last updated:** [November 4, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/feature-2328-malloc-limit-b-nhnbg2-rki-b/178423 "2009-11-04T17:06:10Z")

</div>

e$B%A%1%C%He(B #2328 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B%U%!%$%ke(B test.rb e$BDI2Ce(B e$B%U%!%$%ke(B log.txt e$BDI2Ce(B e$B;d$O;W$$$D$-$^$;$s!#%Y%s%A%^!\<%/e(B(e$B$3$s$J%1!\<%9$G$3$s$J$K2~A1e(B e$B$H$+!“$3$s$J…

---

## [\[Bug #2335\] Windows $B4D6-2\<$N(B Dir.glob $B$G(B Segmentation Fault $B$,H/@8$9$k(B](https://www.ruby-forum.com/t/bug-2335-windows-b4d6-2-n-b-dir-glob-b-g-b-segmentation-fault-b-h-8-9-k-b/178434)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/bug-2335-windows-b4d6-2-n-b-dir-glob-b-g-b-segmentation-fault-b-h-8-9-k-b/178434 "2009-11-04T16:46:50Z")

</div>

Bug #2335: Windows e$B4D6-2\<$Ne(B Dir.glob e$B$Ge(B Segmentation Fault e$B$,H/@8$9$ke(B http://redmine.ruby-lang.org/issues/show/2335 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(…

---

## [Script/generate error](https://www.ruby-forum.com/t/script-generate-error/178426)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/script-generate-error/178426 "2009-11-04T16:26:20Z")

</div>

I’ve created a new jruby on rails applicazion. Jruby version is 1.4.0. I’ve installed all requested gems. If I run the application works without problems. If I run script/generate to see all available generators I’ve…

---

## [Fsockopen in ROR](https://www.ruby-forum.com/t/fsockopen-in-ror/177955)

<div class="topic-metadata">

**Author:** [@simo](https://www.ruby-forum.com/u/simo)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/fsockopen-in-ror/177955 "2009-11-04T16:18:13Z")

</div>

Hi, PHP has ‘fsockopen’-function to create a socket connection. With what function I can create this connection in ROR? Thanks im Advance

---

## [Exception running dev\_appserver.rb](https://www.ruby-forum.com/t/exception-running-dev-appserver-rb/178429)

<div class="topic-metadata">

**Author:** [@joshmoore](https://www.ruby-forum.com/u/joshmoore)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/exception-running-dev-appserver-rb/178429 "2009-11-04T15:40:06Z")

</div>

Hi, I have been working off this tutorial http://docs.google.com/View?id=d656rh6\_36f7j9qzc3 trying to setup a Rails application, with datamapper that will run an GAE. I have followed all the steps (I believe correct…

---

## [Infinite recursive call to C function](https://www.ruby-forum.com/t/infinite-recursive-call-to-c-function/178191)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 16\
**Last updated:** [November 4, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/infinite-recursive-call-to-c-function/178191 "2009-11-04T15:35:25Z")

</div>

e$B1sF#$G$9!#e(B \[ruby-core:24794\] e$B$H;w$?$h$&$JLdBj$rC5$7$F$\_$^$7$?$,!"$+$J$j$"$j$=$&$G$9!#e(B $ ./ruby -e ’ class Symbol include Enumerable alias to\_enum zip end :each.zip(:each) { } ’ Segmentation fault $…

---

## [Why do I keep getting "nil"?](https://www.ruby-forum.com/t/why-do-i-keep-getting-nil/178411)

<div class="topic-metadata">

**Author:** [@rickbocas](https://www.ruby-forum.com/u/rickbocas)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/why-do-i-keep-getting-nil/178411 "2009-11-04T14:55:36Z")

</div>

I had a homework assignment where I had to create a number guessing game using custom methods. I got it to work…but after some lines it’ll put “nil” on the next line and continue with the program. ex. after an input P…

---

## [Ruby 101 Series](https://www.ruby-forum.com/t/ruby-101-series/178428)

<div class="topic-metadata">

**Author:** [@gt2997](https://www.ruby-forum.com/u/gt2997)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/ruby-101-series/178428 "2009-11-04T14:36:52Z")

</div>

Hi, I’ve been writing a series of articles on Ruby in Chinese. They are posted in my blog. Below are the links to the first three: Ruby 101: Classes and Objects - Ruby 101：类和对象 - Allen Lee - 博客园 Ruby 101: Reusabilit…

---

## [Rote is back! 0.3.6 now available](https://www.ruby-forum.com/t/rote-is-back-0-3-6-now-available/178427)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 2:17pm UTC](https://www.ruby-forum.com/t/rote-is-back-0-3-6-now-available/178427 "2009-11-04T14:17:33Z")

</div>

Rote 0.3.6 is now available on Rubyforge (http://rote.rubyforge.org). Rote is a Rake-based textual templating / documentation system. This release fixes a critical bug that caused Rote to fail entirely when used with…

---

## [Ruby script with flag](https://www.ruby-forum.com/t/ruby-script-with-flag/178315)

<div class="topic-metadata">

**Author:** [@jillyh0](https://www.ruby-forum.com/u/jillyh0)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 11:23am UTC](https://www.ruby-forum.com/t/ruby-script-with-flag/178315 "2009-11-04T11:23:04Z")

</div>

Hi, I am trying to write a ruby script which accepts a flag. That is, I would like to execute the script by doing: ./assignment2.rb --verbose OR ./assignment2.rb How would I got about making the script accept a flag…

---

## [\[Bug #2331\] Kernel#system $B$NBh0l0z?t$,=q$-49$($i$l$k(B](https://www.ruby-forum.com/t/bug-2331-kernel-system-b-nbh0l0z-t-q-49-i-l-k-b/178415)

<div class="topic-metadata">

**Author:** [@Kimura\_Yoshihiro](https://www.ruby-forum.com/u/Kimura_Yoshihiro)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 9:12am UTC](https://www.ruby-forum.com/t/bug-2331-kernel-system-b-nbh0l0z-t-q-49-i-l-k-b/178415 "2009-11-04T09:12:31Z")

</div>

Bug #2331: Kernel#system e$B$NBh0l0z?t$,=q$-49$($i$l$ke(B http://redmine.ruby-lang.org/issues/show/2331 e$B5/I\<\<Te(B: Kimura Yoshihiro e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2009-06-12 patc…

---

## [JRuby 1.4.0 Released](https://www.ruby-forum.com/t/jruby-1-4-0-released/178385)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 7:51am UTC](https://www.ruby-forum.com/t/jruby-1-4-0-released/178385 "2009-11-04T07:51:45Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.4.0 Homepage: http://www.jruby.org/ Download: Downloads — JRuby.org After three very helpful release candidates we have a final 1.4.0 release. This r…

---

## [Xml file formatting from entire file in single string](https://www.ruby-forum.com/t/xml-file-formatting-from-entire-file-in-single-string/178401)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 6:00am UTC](https://www.ruby-forum.com/t/xml-file-formatting-from-entire-file-in-single-string/178401 "2009-11-04T06:00:31Z")

</div>

Hi Anyone have or can point me to a snippet that will convert an entire xml file in the form of a continuous string into a well formatted file? Thanks David

---

## [\[ANN\] IronRuby 0.9.2 Released](https://www.ruby-forum.com/t/ann-ironruby-0-9-2-released/178335)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 4\
**Last updated:** [November 4, 2009, 5:25am UTC](https://www.ruby-forum.com/t/ann-ironruby-0-9-2-released/178335 "2009-11-04T05:25:59Z")

</div>

The IronRuby team is pleased to announce version 0.9.2! http://ironruby.net/download Direct download link: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33693#DownloadId=90621 As IronRuby approa…

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

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