# Ruby

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

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

---

## [Input/Output to IRB using Pipes](https://www.ruby-forum.com/t/input-output-to-irb-using-pipes/190263)

<div class="topic-metadata">

**Author:** [@Narayanan\_K](https://www.ruby-forum.com/u/Narayanan_K)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/input-output-to-irb-using-pipes/190263 "2010-06-17T16:27:03Z")

</div>

Hi, I have a situation where I need to create a pipe into which I load ruby/irb commands. Then I have to direct input from this pipe to IRB (Interactive Ruby) . Also I will have an output pipe to which the irb resul…

---

## [\[Bug #3433\] Error that occurs by BasicSocket#sendmsg](https://www.ruby-forum.com/t/bug-3433-error-that-occurs-by-basicsocket-sendmsg/190277)

<div class="topic-metadata">

**Author:** [@Masaya\_T](https://www.ruby-forum.com/u/Masaya_T)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/bug-3433-error-that-occurs-by-basicsocket-sendmsg/190277 "2010-06-17T16:27:02Z")

</div>

Bug #3433: Error that occurs by BasicSocket#sendmsg http://redmine.ruby-lang.org/issues/show/3433 e$B5/I\<\<Te(B: Masaya T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ruby -v: ruby 1.9.2dev (20…

---

## [Metaprograming](https://www.ruby-forum.com/t/metaprograming/189948)

<div class="topic-metadata">

**Author:** [@the-lar](https://www.ruby-forum.com/u/the-lar)\
**Replies:** 10\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/metaprograming/189948 "2010-06-17T16:27:01Z")

</div>

i would like to know which methods are called by the object created by class with in class. If Suppose if particular method is not there it invokes method\_missing.But i want it invoke directly my class .so i would lik…

---

## [Nokogiri error on snow leopard](https://www.ruby-forum.com/t/nokogiri-error-on-snow-leopard/190072)

<div class="topic-metadata">

**Author:** [@marotte](https://www.ruby-forum.com/u/marotte)\
**Replies:** 7\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/nokogiri-error-on-snow-leopard/190072 "2010-06-17T16:27:01Z")

</div>

hi, below is the setup i have: Mac OS X Snow Leopard running ruby 1.8.7 installed using hivelogic procedure installed libxml2 and libxslt from source installed nokogiri 1.4.2 using sudo gems EMercados-MacBook-Pro:~…

---

## [Spec Help!](https://www.ruby-forum.com/t/spec-help/190140)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/spec-help/190140 "2010-06-17T16:26:59Z")

</div>

Hi, Do I have to install IronRuby in C:\\IronRuby? I have it installed somewhere else inside the C:\\DevTools\\IronRuby and having trouble running spec. When I do this: igem install rspec I get the following: WARNING…

---

## [RegEx Tutorial?](https://www.ruby-forum.com/t/regex-tutorial/190257)

<div class="topic-metadata">

**Author:** [@Siddarth\_Chandrasek](https://www.ruby-forum.com/u/Siddarth_Chandrasek)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/regex-tutorial/190257 "2010-06-17T16:26:59Z")

</div>

I looked through the archives, but couldn’t find a comprehensive tutorial on regular expressions – could someone please point me to one? Specifically, I’m looking to extract all the words from a string that are capit…

---

## [Threads & mutex question (Rubyist book example)](https://www.ruby-forum.com/t/threads-mutex-question-rubyist-book-example/189722)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/threads-mutex-question-rubyist-book-example/189722 "2010-06-17T16:26:23Z")

</div>

Hi, I am concerned about the lack of mutual exlusion in code listing 14.2 “Chat server using TCPServer and threads” on page 430 in “The Well-Grounded Rubyist” book. That code goes something like this: chatters = \[\] …

---

## [Difference in error messages for ruby -c command for ruby and jruby](https://www.ruby-forum.com/t/difference-in-error-messages-for-ruby-c-command-for-ruby-and-jruby/190193)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/difference-in-error-messages-for-ruby-c-command-for-ruby-and-jruby/190193 "2010-06-17T16:26:22Z")

</div>

Î» rvm use jruby info: Using jruby 1.5.1 Î» ruby -c status.rb SyntaxError in status.rb:16: syntax error, unexpected end-of-file Î» rvm use 1.8.7 info: Using ruby 1.8.7 p174 Î» ruby -c status.rb status.rb:15: synta…

---

## [Looking for some documentation](https://www.ruby-forum.com/t/looking-for-some-documentation/190256)

<div class="topic-metadata">

**Author:** [@Shef](https://www.ruby-forum.com/u/Shef)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/looking-for-some-documentation/190256 "2010-06-17T16:26:22Z")

</div>

Hey Guys! Anyone know where I can find some documentation for using HTTP verbs in ruby? (GET, POST, PUT, DELETE). I’d tried digging through the documentation for curb & httparty, but they were a tad to terse or the ex…

---

## [Unexpected behavior in inject](https://www.ruby-forum.com/t/unexpected-behavior-in-inject/190161)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/unexpected-behavior-in-inject/190161 "2010-06-17T16:22:49Z")

</div>

I ran across something that puzzled me today, and I thought I’d ask here and see what you guys/girls think. I’m by no means a ruby guru, so if this is obvious to everyone but me, I’ll take the learning experience. H…

---

## [Split doesn't work](https://www.ruby-forum.com/t/split-doesnt-work/190100)

<div class="topic-metadata">

**Author:** [@jenlindner](https://www.ruby-forum.com/u/jenlindner)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/split-doesnt-work/190100 "2010-06-17T16:22:49Z")

</div>

I have code: \<% @terms.each do |term| %\>\> \<%regex = Regexp.new(/#{term}/)%\> \<%matchdata = regex.match(@def\_str)%\> \<%if matchdata%\> \<% @def = @def.split(/#{term}/) %\> \<% @def.shift %\> \<%end%\> \<%end%\> I want to b…

---

## [Is mandelbrot supposed to be exceedingly fast?](https://www.ruby-forum.com/t/is-mandelbrot-supposed-to-be-exceedingly-fast/190097)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/is-mandelbrot-supposed-to-be-exceedingly-fast/190097 "2010-06-17T16:22:47Z")

</div>

Hi. After watching this http://rubyconf2009.confreaks.com/20-nov-2009-13-15-jruby-everywhere-charles-nutter-and-thomas-enebo.html around minute 28 I thought that jruby should be able to rock on a mandelbrot program. …

---

## [Mathn and Time.at(0.0)](https://www.ruby-forum.com/t/mathn-and-time-at-0-0/190309)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/mathn-and-time-at-0-0/190309 "2010-06-17T16:22:46Z")

</div>

mathn e$B$N1F6A2\<$G$O!"e(BTime.at(0.0) e$B$,\<:GT$9$k$3$H$K5$$,$D$$$F$7$^$$$^$7$?!#e(B -e:1:in at': can't convert Float to Rational (Float#to\_r gives Fixnum) (TypeError) from -e:1:in’ e$B860x$O!"e(Brb\_convert\_type(v, T…

---

## [Rack 1.2.1, a modular Ruby webserver interface](https://www.ruby-forum.com/t/rack-1-2-1-a-modular-ruby-webserver-interface/190303)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/rack-1-2-1-a-modular-ruby-webserver-interface/190303 "2010-06-17T16:22:45Z")

</div>

Hello, Today we are proud to announce the release of Rack 1.2.1. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrappi…

---

## [Require fails when requiring scripts with utf-8 filenames](https://www.ruby-forum.com/t/require-fails-when-requiring-scripts-with-utf-8-filenames/190075)

<div class="topic-metadata">

**Author:** [@winsmith](https://www.ruby-forum.com/u/winsmith)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/require-fails-when-requiring-scripts-with-utf-8-filenames/190075 "2010-06-17T16:22:45Z")

</div>

Hi, I have a small problem with requiring files with utf-8 character in the filename. I have a small script which does nothing but require another file that has some norwegian utf-8 characters in its filename. shoul…

---

## [Rack 1.2, a modular Ruby webserver interface](https://www.ruby-forum.com/t/rack-1-2-a-modular-ruby-webserver-interface/190294)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/rack-1-2-a-modular-ruby-webserver-interface/190294 "2010-06-17T16:22:43Z")

</div>

Hello, Today we are proud to announce the release of Rack 1.2. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping…

---

## [Compare two objects](https://www.ruby-forum.com/t/compare-two-objects/190128)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/compare-two-objects/190128 "2010-06-17T16:22:43Z")

</div>

Hi, I have an array of events comming from a database and I have a new object (so without an id). I would like to check if my new object already exists in the database. I tried exists? and include? but obviously id d…

---

## [Check Fixnum](https://www.ruby-forum.com/t/check-fixnum/190113)

<div class="topic-metadata">

**Author:** [@stanislavua](https://www.ruby-forum.com/u/stanislavua)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/check-fixnum/190113 "2010-06-17T16:22:42Z")

</div>

Hi I have Fixnum. I want to check does this value integer or float, i. e. has .xx in the trail or not. How can I check this? Thanks in advance

---

## [\[Bug #3445\] 1.9.2-preview3 $B$G(B Object#extend $B$9$k$H(B public\_methods(false) $B$+$i%a%=%C](https://www.ruby-forum.com/t/bug-3445-1-9-2-preview3-b-g-b-object-extend-b-9-k-h-b-public-methods-false-b-i-a-c/190296)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/bug-3445-1-9-2-preview3-b-g-b-object-extend-b-9-k-h-b-public-methods-false-b-i-a-c/190296 "2010-06-17T16:22:42Z")

</div>

e$B%A%1%C%He(B #3445 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$BC4Ev\<Te(B Yusuke E.e$B$K%;%C%He(B e$B1sF#$G$9!#e(B e$B85!9$OFC0\[%/%i%9$N%a%=%C%I$O0z?t$,e(B false e$B$G$bNs5s$5$l$F$$$?$N$G$9$,!"e(B #2993 e$B$N$?$a$K…

---

## [Execute ruby file from a ruby file](https://www.ruby-forum.com/t/execute-ruby-file-from-a-ruby-file/190116)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/execute-ruby-file-from-a-ruby-file/190116 "2010-06-17T16:22:41Z")

</div>

Hi, I can’t find out how can I execute my ruby script from another ruby file. This is how I would do it in command line ruby jobs/eventParser.rb “5454353” Greg

---

## [WIN332Ole , pass by reference](https://www.ruby-forum.com/t/win332ole-pass-by-reference/190150)

<div class="topic-metadata">

**Author:** [@george\_thomas](https://www.ruby-forum.com/u/george_thomas)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/win332ole-pass-by-reference/190150 "2010-06-17T16:22:41Z")

</div>

Hi, I am trying to call a method in an ATL (C++ based) dll created by myself through WIN32OLE of Ruby The signature of the method in the idl file is something as follows \[id(37), helpstring(“method GetCustomArea”)\] H…

---

## [Regular expressions in Ruby](https://www.ruby-forum.com/t/regular-expressions-in-ruby/190088)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/regular-expressions-in-ruby/190088 "2010-06-17T16:22:40Z")

</div>

I’m new to Ruby, and just want to ask about how to read the following statement from the “Agile Web D. With Rails, 3rd edition” book: %r{.(gif|jpg|png)$}i I knew that %r is a way to write a regular expression. But, w…

---

## [REVISED DEADLINE for Scheme and Functional Programming Workshop](https://www.ruby-forum.com/t/revised-deadline-for-scheme-and-functional-programming-workshop/190279)

<div class="topic-metadata">

**Author:** [@mrcfab3](https://www.ruby-forum.com/u/mrcfab3)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/revised-deadline-for-scheme-and-functional-programming-workshop/190279 "2010-06-17T16:22:37Z")

</div>

Please note that the deadline for submitting papers to the Scheme workshop has been extended to Wednesday the 16th of June. The workshop website at http://www.iro.umontreal.ca/~sfp2010 gives more details on the submis…

---

## [\[Feature:trunk\] unused variable warning](https://www.ruby-forum.com/t/feature-trunk-unused-variable-warning/190184)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/feature-trunk-unused-variable-warning/190184 "2010-06-17T16:22:36Z")

</div>

e$B$J$+$@$G$9!#e(B Ruby で変数宣言がほしい、とな？ - kなんとかの日記 e$B$K$"$k!"L$;HMQe(B e$BJQ?t$KBP$9$k7Y9p$r\<BAu$7$F$\_$^$7$?!#e(B diff --git i/parse.y w/parse.y index ebe9fef…8dbbacf 100644 — i/parse.y +++ w/parse.y @@ -99,6 +99,7…

---

## [java.lang.OutOfMemoryError: GC overhead limit exceeded (Nat](https://www.ruby-forum.com/t/java-lang-outofmemoryerror-gc-overhead-limit-exceeded-nat/190134)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/java-lang-outofmemoryerror-gc-overhead-limit-exceeded-nat/190134 "2010-06-17T16:22:36Z")

</div>

Dear JRuby geniuses, I’ve run a script which I need to parse a lot of data through to a webapp. I got this error with my ruby script, running through jruby, firing into an apache webapp: \[output\] java.lang.OutOfMem…

---

## [VitalQIP and SOAP](https://www.ruby-forum.com/t/vitalqip-and-soap/190271)

<div class="topic-metadata">

**Author:** [@J-H\_Johansen](https://www.ruby-forum.com/u/J-H_Johansen)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/vitalqip-and-soap/190271 "2010-06-17T16:22:36Z")

</div>

Hi, Has anyone on the list has been working with VitalQIP and the SOAP interface ? So far I’ve downloaded the Savon gem for SOAP interaction and I’ve managed to get the method list from the WSDL. My problem now is t…

---

## [Module boundaries and classes within them (Was: Re: Placement of require() and missing symbols)](https://www.ruby-forum.com/t/module-boundaries-and-classes-within-them-was-re-placement-of-require-and-missing-symbols/190273)

<div class="topic-metadata">

**Author:** [@Eric\_MSP\_Veith](https://www.ruby-forum.com/u/Eric_MSP_Veith)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/module-boundaries-and-classes-within-them-was-re-placement-of-require-and-missing-symbols/190273 "2010-06-17T16:22:35Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kirk, On Tuesday 15 June 2010, Kirk H. removed\_email\_address@domain.invalid wrote: The best practice is to put it where it makes sense to put it, bearing in mind you mi…

---

## [\[Bug #3370\] test failure of drb](https://www.ruby-forum.com/t/bug-3370-test-failure-of-drb/189396)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 7\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/bug-3370-test-failure-of-drb/189396 "2010-06-17T16:22:34Z")

</div>

Bug #3370: test failure of drb http://redmine.ruby-lang.org/issues/show/3370 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Masatoshi Seki, e$B%+%F%4%je(B: lib, Target ver…

---

## [The Ruby Hoedown 2010 -- The FREE Regional Ruby Conference -- Sept 3-4, 2010, Nashville, TN](https://www.ruby-forum.com/t/the-ruby-hoedown-2010-the-free-regional-ruby-conference-sept-3-4-2010-nashville-tn/190269)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/the-ruby-hoedown-2010-the-free-regional-ruby-conference-sept-3-4-2010-nashville-tn/190269 "2010-06-17T16:22:34Z")

</div>

Hello all, I just opened registration and the CFP for the Ruby Hoedown 2010, presented by Intridea! In previous years we’ve hosted great speakers like Bruce Tate, Chad F., Marcel Molina, Jr., David Black, Chris Wans…

---

## [Win32ole excel excelconst disable macros](https://www.ruby-forum.com/t/win32ole-excel-excelconst-disable-macros/189966)

<div class="topic-metadata">

**Author:** [@zak](https://www.ruby-forum.com/u/zak)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/win32ole-excel-excelconst-disable-macros/189966 "2010-06-17T16:22:31Z")

</div>

Hi! I use book = self.excel.Workbooks.Open(file,ExcelConst::XlUpdateLinksNever) to never update links in excel files when opend with ruby. is there an excelconst to disable macros? i can’t find anything. Thanks, u…

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

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