# Ruby

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

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

---

## [Containers](https://www.ruby-forum.com/t/containers/158355)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 12:28pm UTC](https://www.ruby-forum.com/t/containers/158355 "2009-01-22T12:28:43Z")

</div>

Hai I have a problem in containers. what is the differnce between containers and class.Is there any sepereate syntax for containers.can you please reply to me.

---

## [Containers](https://www.ruby-forum.com/t/containers/158352)

<div class="topic-metadata">

**Author:** [@basha](https://www.ruby-forum.com/u/basha)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/containers/158352 "2009-01-22T12:10:16Z")

</div>

Hai I have a problem in containers. what is the differnce between containers and class.Is there any sepereate syntax for containers.can you please reply to me.

---

## [Mechanize & field name for search passed as string](https://www.ruby-forum.com/t/mechanize-field-name-for-search-passed-as-string/158260)

<div class="topic-metadata">

**Author:** [@edouard](https://www.ruby-forum.com/u/edouard)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 11:15am UTC](https://www.ruby-forum.com/t/mechanize-field-name-for-search-passed-as-string/158260 "2009-01-22T11:15:10Z")

</div>

Hi, I am writing a method to perform a similar to the below mentionned google search but i want it to accept the field’s name for the search entry as a string. In the following example from the Mechanize docs I would…

---

## [Class doesn't know about calling program's libraries?](https://www.ruby-forum.com/t/class-doesnt-know-about-calling-programs-libraries/158300)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [January 22, 2009, 11:11am UTC](https://www.ruby-forum.com/t/class-doesnt-know-about-calling-programs-libraries/158300 "2009-01-22T11:11:38Z")

</div>

I’m still in my first 24 hours of seriously using classes, so am still pretty ignorant. I’ve read a lot, but that only goes so far. I have a main program which loads some libraries, then calls my main method, which ca…

---

## [How to change ruby's global variable through onclick event?](https://www.ruby-forum.com/t/how-to-change-rubys-global-variable-through-onclick-event/158335)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 11:04am UTC](https://www.ruby-forum.com/t/how-to-change-rubys-global-variable-through-onclick-event/158335 "2009-01-22T11:04:00Z")

</div>

Hello all, I have problem that how to change ruby’s global variable through onclick event.? my code is like in myvideo.html.erb file. \<a id=‘more\_videos\_link’ class=‘ActionLink’ href="#" onclick=“something that chang…

---

## [Class design question](https://www.ruby-forum.com/t/class-design-question/158295)

<div class="topic-metadata">

**Author:** [@JesSSSSs\_Gabriel\_y\_S](https://www.ruby-forum.com/u/JesSSSSs_Gabriel_y_S)\
**Replies:** 7\
**Last updated:** [January 22, 2009, 10:41am UTC](https://www.ruby-forum.com/t/class-design-question/158295 "2009-01-22T10:41:03Z")

</div>

Hi, I have a question about what would be the best way to implement this functionality. I have a deck class which represents a deck of something (for example cards), with the functionality you would expect: cut, shuf…

---

## [Escaping backquote in filenames](https://www.ruby-forum.com/t/escaping-backquote-in-filenames/158339)

<div class="topic-metadata">

**Author:** [@juba](https://www.ruby-forum.com/u/juba)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 10:25am UTC](https://www.ruby-forum.com/t/escaping-backquote-in-filenames/158339 "2009-01-22T10:25:48Z")

</div>

Hi, I would like to execute call system on a filename with a backquote (\`), but I don’t know how to escape it. -\> ls “\[Shawn Lee\]/10. Shawn Lee\`s Ping Pong Orchestra - Bollywood.mp3” -rw-r–r-- 1 hobs medias 3,0M 2009…

---

## [\[Bug #1031\] -U $B%\*%W%7%g%s$N@bL@$,(B --help $B$K$J$$(B](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158333)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 10:17am UTC](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158333 "2009-01-22T10:17:36Z")

</div>

e$B%A%1%C%He(B #1031 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$B%+%F%4%je(B DOCe$B$K%;%C%He(B e$BC4Ev\<Te(B Yukihiro M.e$B$K%;%C%He(B Reproducible Version trunke$B$K%;%C%He(B e$B=D$Oe(B24e$B9T$J$N$GJ8LL$rD4@0$9$l$Pe…

---

## [Ruby/tk slow threads?](https://www.ruby-forum.com/t/ruby-tk-slow-threads/158029)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 6:03am UTC](https://www.ruby-forum.com/t/ruby-tk-slow-threads/158029 "2009-01-22T06:03:27Z")

</div>

My code opens up a text window with an entry field. The text area gets populated with the first spurt of text from the MUD, but then doesn’t update! Is my entry field not actually sending text to the server, or are th…

---

## [\[Bug #1031\] -U $B%\*%W%7%g%s$N@bL@$,(B --help $B$K$J$$(B](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158275)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 5:56am UTC](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158275 "2009-01-22T05:56:51Z")

</div>

e$B%A%1%C%He(B #1031 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) ruby --help e$B$N7k2L$Oe(B1e$B2hLL$K\<}$^$k$Y$-$G$“$k$H$$$&MW5a$,$”$C$?$N$H!"e(B e$B4pK\\E\*$KM\>7W$J\>pJs$OI=$K$O=P$5$J$$$H$$$&J}?K$H!“e(B e$BN\>J}$NM}M3$+$iF…

---

## [Help with FasterCSV monkey patch](https://www.ruby-forum.com/t/help-with-fastercsv-monkey-patch/158310)

<div class="topic-metadata">

**Author:** [@alfredmart](https://www.ruby-forum.com/u/alfredmart)\
**Replies:** 3\
**Last updated:** [January 22, 2009, 1:36am UTC](https://www.ruby-forum.com/t/help-with-fastercsv-monkey-patch/158310 "2009-01-22T01:36:27Z")

</div>

Hello, I’ve been trying to monkey patch FCSV to allow escaped colsep characters within a field: FCSV.parse “here\\, it is, other fields” #need: \[\[“here\\, it is”, “other fields”\]\] ^ So what I tried was modifying the…

---

## [1.8.6 OCI binary extension question](https://www.ruby-forum.com/t/1-8-6-oci-binary-extension-question/158002)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 9\
**Last updated:** [January 22, 2009, 12:10am UTC](https://www.ruby-forum.com/t/1-8-6-oci-binary-extension-question/158002 "2009-01-22T00:10:29Z")

</div>

I’m trying to build a new release of RMagick that is compatible with the Ruby 1.8.6 One-Click Installer. In the past I have used MS Visual Studio 2005 Express Edition. However, new releases of ImageMagick for Windows …

---

## [Sigprocmask?](https://www.ruby-forum.com/t/sigprocmask/158309)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/sigprocmask/158309 "2009-01-21T22:27:50Z")

</div>

Does Ruby provide access to the POSIX function sigprocmask()? I’m not sure how to safely handle signals when fork()ing without it. Suggestions are welcome. James Edward G. II

---

## [\[Feature #1032\](Closed) ERB::DefMethod#def\_erb\_method $B$K%\*%W%7%g%s$rDI2C!#(B](https://www.ruby-forum.com/t/feature-1032-closed-erb-defmethod-def-erb-method-b-k-w-7-g-s-rdi2c-b/158306)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/feature-1032-closed-erb-defmethod-def-erb-method-b-k-w-7-g-s-rdi2c-b/158306 "2009-01-21T21:27:43Z")

</div>

e$B%A%1%C%He(B #1032 e$B$,99?7$5$l$^$7$?!#e(B (by Masatoshi Seki) 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 r21723. http://redmine.ruby-lang.org/is…

---

## [ParseTree 3.0.3 Released](https://www.ruby-forum.com/t/parsetree-3-0-3-released/158241)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 9\
**Last updated:** [January 21, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/parsetree-3-0-3-released/158241 "2009-01-21T20:45:57Z")

</div>

ParseTree version 3.0.3 has been released! http://rubyforge.org/projects/parsetree/ http://www.zenspider.com/ZSS/Products/ParseTree/ removed\_email\_address@domain.invalid ParseTree is a C extension (using RubyInline) t…

---

## [Wilson 1.0.0 Released](https://www.ruby-forum.com/t/wilson-1-0-0-released/158245)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [January 21, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/wilson-1-0-0-released/158245 "2009-01-21T20:15:10Z")

</div>

wilson version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Wilson is a pure ruby x86 assembler. No, really. Worst Idea Evar. Why “wilson”? I wanted to name it “metal”, but there is an existing p…

---

## [Flog 2.0.0 Released](https://www.ruby-forum.com/t/flog-2-0-0-released/158243)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [January 21, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/flog-2-0-0-released/158243 "2009-01-21T20:14:34Z")

</div>

flog version 2.0.0 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is i…

---

## [Help using JAR classes from NetBeans/JRuby/Rails](https://www.ruby-forum.com/t/help-using-jar-classes-from-netbeans-jruby-rails/158268)

<div class="topic-metadata">

**Author:** [@mohamed\_l](https://www.ruby-forum.com/u/mohamed_l)\
**Replies:** 6\
**Last updated:** [January 21, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/help-using-jar-classes-from-netbeans-jruby-rails/158268 "2009-01-21T19:50:51Z")

</div>

Hello and sorry for possible repost, I am newbie using latest Netbeans, JRuby/Rails… under Netbeans, in a new Ruby Application, this code works: require ‘java’ Dir\[“jars/\*.jar”\].each { |jar| require jar }; import ‘i…

---

## [10 numbers in between 2 numbers](https://www.ruby-forum.com/t/10-numbers-in-between-2-numbers/158174)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 10\
**Last updated:** [January 21, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/10-numbers-in-between-2-numbers/158174 "2009-01-21T19:34:54Z")

</div>

How can I get an array of 10 numbers in between two numbers? (1…500).to\_a How can I turn the above into an array of ten numbers in between 1 and 500 (including 1 and 500)?

---

## [Invoking private methods via JRuby](https://www.ruby-forum.com/t/invoking-private-methods-via-jruby/158290)

<div class="topic-metadata">

**Author:** [@emory](https://www.ruby-forum.com/u/emory)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/invoking-private-methods-via-jruby/158290 "2009-01-21T19:31:54Z")

</div>

Hi! I’m playing around with the possibility to testing Java classes via JRuby using RSpec. The only problem I’ve encountered so far is that I’m not able to invoke private methods on Java classes (using Object#send), …

---

## [Multiple GEM repositories](https://www.ruby-forum.com/t/multiple-gem-repositories/143460)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 13\
**Last updated:** [January 21, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/multiple-gem-repositories/143460 "2009-01-21T19:14:31Z")

</div>

I have a Ruby script which runs fine on my own machine that I’d like to setup a Cronjob for to run on my web space provider’s server. The latter has been setup so that a number of “system” gems are pre-installed for a…

---

## [Installing weft-qda / sqlite-ruby on linpus](https://www.ruby-forum.com/t/installing-weft-qda-sqlite-ruby-on-linpus/158043)

<div class="topic-metadata">

**Author:** [@sebastian](https://www.ruby-forum.com/u/sebastian)\
**Replies:** 2\
**Last updated:** [January 21, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/installing-weft-qda-sqlite-ruby-on-linpus/158043 "2009-01-21T17:28:15Z")

</div>

Hello everyone, This is my first post here, and I’m not even sure it’s in the right place, but here goes… I have an Acer Aspire One laptop, running Linpus, and I want to install weft-qda on it (Weft QDA - a free, ope…

---

## [AddrInfo.list\_ipaddr](https://www.ruby-forum.com/t/addrinfo-list-ipaddr/157570)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [January 21, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/addrinfo-list-ipaddr/157570 "2009-01-21T14:15:12Z")

</div>

e$BDs0F$J$s$G$9$,!"%\[%9%H$,;}$C$F$$$ke(B IP e$B%"%I%l%9$N%j%9%H$rJV$9e(B e$B%a%=%C%I$rMQ0U$9$k$N$O$I$&$G$7$g$&$+!#e(B % ./ruby -rsocket -rpp -e ‘pp AddrInfo.list\_ipaddr’ \[#\<AddrInfo: 127.0.0.1\>, #\<AddrInfo: 150.82.17…

---

## [Install oniguruma "No definition for oregexp\_initialize "](https://www.ruby-forum.com/t/install-oniguruma-no-definition-for-oregexp-initialize/158259)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/install-oniguruma-no-definition-for-oregexp-initialize/158259 "2009-01-21T14:01:06Z")

</div>

when I run “gem install oniguruma”. get the message "No definition for oregexp\_initialize " how to initialize oregexp?

---

## [\[Bug #1031\](Rejected) -U $B%\*%W%7%g%s$N@bL@$,(B --help $B$K$J$$(B](https://www.ruby-forum.com/t/bug-1031-rejected-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158270)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/bug-1031-rejected-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158270 "2009-01-21T12:55:40Z")

</div>

e$B%A%1%C%He(B #1031 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B mane$B$rFI$a$P$$$$$H;W$$$^$9$M!#e(B http://redmine.ruby-lang.org/issues/show/1031

---

## [Threads After Fork](https://www.ruby-forum.com/t/threads-after-fork/158215)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [January 21, 2009, 12:44pm UTC](https://www.ruby-forum.com/t/threads-after-fork/158215 "2009-01-21T12:44:27Z")

</div>

Am I understanding this example right: #!/usr/bin/env ruby -wKU printer = Thread.new do 10.times do sleep 1 puts “Thread running in #{Process.pid}…” end end fork do p \[Process.pid, printer.status\] printer.join …

---

## [Ruby namespace question](https://www.ruby-forum.com/t/ruby-namespace-question/158248)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 7\
**Last updated:** [January 21, 2009, 11:48am UTC](https://www.ruby-forum.com/t/ruby-namespace-question/158248 "2009-01-21T11:48:46Z")

</div>

I require two ruby files which include two classes with the same name. how can I specify which class I use?

---

## [\[Feature #1032\] ERB::DefMethod#def\_erb\_method $B$K%\*%W%7%g%s$rDI2C!#(B](https://www.ruby-forum.com/t/feature-1032-erb-defmethod-def-erb-method-b-k-w-7-g-s-rdi2c-b/158269)

<div class="topic-metadata">

**Author:** [@babie\_tanaka](https://www.ruby-forum.com/u/babie_tanaka)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 11:25am UTC](https://www.ruby-forum.com/t/feature-1032-erb-defmethod-def-erb-method-b-k-w-7-g-s-rdi2c-b/158269 "2009-01-21T11:25:08Z")

</div>

Feature #1032: ERB::DefMethod#def\_erb\_method e$B$K%\*%W%7%g%s$rDI2C!#e(B http://redmine.ruby-lang.org/issues/show/1032 e$B5/I\<\<Te(B: babie tanaka e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low Target version: Ruby 1.8.8 d…

---

## [\[Bug #1031\] -U $B%\*%W%7%g%s$N@bL@$,(B --help $B$K$J$$(B](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158267)

<div class="topic-metadata">

**Author:** [@Sakuro\_OZAWA](https://www.ruby-forum.com/u/Sakuro_OZAWA)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 11:02am UTC](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/158267 "2009-01-21T11:02:50Z")

</div>

Bug #1031: -U e$B%\*%W%7%g%s$N@bL@$,e(B --help e$B$K$J$$e(B http://redmine.ruby-lang.org/issues/show/1031 e$B5/I\<\<Te(B: Sakuro OZAWA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal irbe$B$N$\[$&$Ke(B -U Sa…

---

## [Suggestions and Resources?](https://www.ruby-forum.com/t/suggestions-and-resources/158258)

<div class="topic-metadata">

**Author:** [@xarver](https://www.ruby-forum.com/u/xarver)\
**Replies:** 6\
**Last updated:** [January 21, 2009, 11:00am UTC](https://www.ruby-forum.com/t/suggestions-and-resources/158258 "2009-01-21T11:00:34Z")

</div>

Hi I’m 11 years old and love computers, and want to go into programming. I’ve tried C, C++, and other languages but their all too hard for me. I came across Ruby, and thought I’d give it a shot. Anyone that can recomm…

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

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