# Ruby

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

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

---

## [Problem installing on Cygwin, no C compiler](https://www.ruby-forum.com/t/problem-installing-on-cygwin-no-c-compiler/113522)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 3\
**Last updated:** [September 1, 2007, 5:56am UTC](https://www.ruby-forum.com/t/problem-installing-on-cygwin-no-c-compiler/113522 "2007-09-01T05:56:07Z")

</div>

Can anyone help me? I tried installing Ruby on Cygwin with the following commands: Ruby : tar xvf ruby-1.8.6.tar.gz cd ruby-1.8.6 ./configure make make install The ./configure command produced the following error…

---

## [Shouldn't it be self \>\> class, or am I dyslexic?](https://www.ruby-forum.com/t/shouldnt-it-be-self-class-or-am-i-dyslexic/113519)

<div class="topic-metadata">

**Author:** [@nbits](https://www.ruby-forum.com/u/nbits)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 3:14am UTC](https://www.ruby-forum.com/t/shouldnt-it-be-self-class-or-am-i-dyslexic/113519 "2007-09-01T03:14:51Z")

</div>

The semantics of class X … class \<\< self def instance\_method\_for\_class\_object\_named\_X … end end end is that an instance method is added (appended) to the current object X == self by the class definition that e…

---

## [Overriding Kernel#raise](https://www.ruby-forum.com/t/overriding-kernel-raise/113493)

<div class="topic-metadata">

**Author:** [@sjml](https://www.ruby-forum.com/u/sjml)\
**Replies:** 4\
**Last updated:** [September 1, 2007, 1:21am UTC](https://www.ruby-forum.com/t/overriding-kernel-raise/113493 "2007-09-01T01:21:50Z")

</div>

I’m writing a C++ program that has a Ruby interpreter embedded in it. I’d like to keep all Ruby-related exceptions contained within the Ruby runtime so that I don’t have to protect all my calls. Since native objects c…

---

## [REXML Element exists question](https://www.ruby-forum.com/t/rexml-element-exists-question/113363)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [August 31, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/rexml-element-exists-question/113363 "2007-08-31T21:39:52Z")

</div>

An xml file is generated and i am currently parsing through it in a rails app. The problem with this XML file is sometimes the elelment doesnt have a value it sometimes doesnt include the tags in the file. So for exa…

---

## [Optimize small bignum space](https://www.ruby-forum.com/t/optimize-small-bignum-space/246512)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/optimize-small-bignum-space/246512 "2007-08-31T20:04:25Z")

</div>

e$B;W$$N)$C$F!"\>.$5$$e(B Bignum e$B$re(B RBignum e$B$K5M$a$k$h$&$K$7$F$\_$^e(B e$B$7$?!#$I$&$G$7$g$&$+!#e(B 3 word e$B;H$($k$N$G!“e(B32bit e$B$Ge(B 296 e$B$"$?$j$^$GF~$j$^$9!#e(B (64bit e$B$J$ie(B 2192 e$B$”$?$j$^$Ge(…

---

## [ENVnot changing env](https://www.ruby-forum.com/t/envnot-changing-env/111759)

<div class="topic-metadata">

**Author:** [@TDR](https://www.ruby-forum.com/u/TDR)\
**Replies:** 4\
**Last updated:** [August 31, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/envnot-changing-env/111759 "2007-08-31T18:13:10Z")

</div>

Ruby 1.8.6 on solaris 9. I am a newbie. I need to set LD\_LIBRARY\_PATH within my script as follows: ENV\[‘LD\_LIBRARY\_PATH’\] = ‘/usr/local/mysql/lib/mysql:/usr/local/ easysoft/unixODBC/lib:/usr /local/easysoft/lib’ bu…

---

## [Installing 1.8.4](https://www.ruby-forum.com/t/installing-1-8-4/113412)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 3\
**Last updated:** [August 31, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/installing-1-8-4/113412 "2007-08-31T17:25:05Z")

</div>

Hi, I’m using some libraries which only work properly in ruby 1.8.4. I currently have 1.8.5. What’s the fastest/least painful way to install 1.8.5? I tried sudo apt-get install ruby=1.8.5 but this doesn’t work. As…

---

## [Special super call for module class-level inclusion](https://www.ruby-forum.com/t/special-super-call-for-module-class-level-inclusion/113206)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/special-super-call-for-module-class-level-inclusion/113206 "2007-08-31T17:20:04Z")

</div>

Since I’ve come upon the issue again, I reckon, it’s as good time as any to put this in the air. The issue, again, is that module class methods are not “inherited” (for lack of a better word). In the past I’ve argued …

---

## [Weird problem with DATA and \_\_END\_\_](https://www.ruby-forum.com/t/weird-problem-with-data-and-end/113475)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 4\
**Last updated:** [August 31, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/weird-problem-with-data-and-end/113475 "2007-08-31T16:49:00Z")

</div>

File: test1.rb: require 'test2' puts "test1.rb = " + DATA.readlines.to\_s \_\_END\_\_ This is the data in test1.rb. File: test2.rb: puts "test2.rb = " + DATA.readlines.to\_s \_\_END\_\_ This is the d…

---

## [How to create wsdl object in ruby?](https://www.ruby-forum.com/t/how-to-create-wsdl-object-in-ruby/113482)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/how-to-create-wsdl-object-in-ruby/113482 "2007-08-31T16:16:57Z")

</div>

Hi, Question as in subject. Any help will be helpful Thanks in advance. MT

---

## [IO.popen and gets](https://www.ruby-forum.com/t/io-popen-and-gets/113485)

<div class="topic-metadata">

**Author:** [@unbewusst](https://www.ruby-forum.com/u/unbewusst)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/io-popen-and-gets/113485 "2007-08-31T16:11:56Z")

</div>

in order to get the answer of rsync when doing a backup with ruby, i make use of IO.pope like that : f = IO.popen("#{RSYNC} -a#{verboseStr} #{progressStr} --eahfs “#{i.path}” “#{@usbkey.stringValue.to\_s}”", “r”) whil…

---

## [Preventing "collapse" of HTML tags during XML parse](https://www.ruby-forum.com/t/preventing-collapse-of-html-tags-during-xml-parse/113420)

<div class="topic-metadata">

**Author:** [@rhalff](https://www.ruby-forum.com/u/rhalff)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/preventing-collapse-of-html-tags-during-xml-parse/113420 "2007-08-31T15:48:48Z")

</div>

I’m trying to avoid having turn into But this is exactly what happens to me in both XmlSimple and REXML: irb(main):028:0\> print XmlSimple.xml\_out(XmlSimple.xml\_in("\<textarea id=“foo”\>\</tex tarea\>")) The pr…

---

## [Ruby Nat Traversal](https://www.ruby-forum.com/t/ruby-nat-traversal/113473)

<div class="topic-metadata">

**Author:** [@perevillega](https://www.ruby-forum.com/u/perevillega)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 1:19pm UTC](https://www.ruby-forum.com/t/ruby-nat-traversal/113473 "2007-08-31T13:19:30Z")

</div>

Hi there, I’m playing a little with DRb and I found it can’t join other computers which are behind a firewall or a NAT network. I discovered DRbFire at this forum, but after some days trying to make it work I’m not ab…

---

## [How does ruby handle scope and closure in this case?](https://www.ruby-forum.com/t/how-does-ruby-handle-scope-and-closure-in-this-case/113341)

<div class="topic-metadata">

**Author:** [@grocery\_stocker](https://www.ruby-forum.com/u/grocery_stocker)\
**Replies:** 5\
**Last updated:** [August 31, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/how-does-ruby-handle-scope-and-closure-in-this-case/113341 "2007-08-31T12:55:21Z")

</div>

How come when I do something like #!/usr/bin/ruby -w def n\_times(thing) return thing end pi = n\_times(23); puts pi the variable ‘thing’ doesn’t go out of scope. But when I do something like #!/usr/bin/ruby def …

---

## [Rake + FileUtils == warining](https://www.ruby-forum.com/t/rake-fileutils-warining/113281)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 5\
**Last updated:** [August 31, 2007, 9:24am UTC](https://www.ruby-forum.com/t/rake-fileutils-warining/113281 "2007-08-31T09:24:43Z")

</div>

When I require both rake and FileUtils, i.e. require ‘rake’ # for String#ext require ‘FileUtils’ I get the following warnings: c:/ruby186/lib/ruby/1.8/FileUtils.rb:93: warning: already initialized constant OPT\_TAB…

---

## [Any way to evaluate blocks using an arbitrary Binding?](https://www.ruby-forum.com/t/any-way-to-evaluate-blocks-using-an-arbitrary-binding/113432)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [August 31, 2007, 9:08am UTC](https://www.ruby-forum.com/t/any-way-to-evaluate-blocks-using-an-arbitrary-binding/113432 "2007-08-31T09:08:42Z")

</div>

Using Kernel.eval, I can evaluate a Ruby string under an arbitrary variable Binding object. However, while I can obtain from a Proc the Binding it uses when it is evaluated, there does not seem to be any way of evalua…

---

## [How to make an array of hashes to a single array with all th](https://www.ruby-forum.com/t/how-to-make-an-array-of-hashes-to-a-single-array-with-all-th/113323)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 12\
**Last updated:** [August 31, 2007, 8:01am UTC](https://www.ruby-forum.com/t/how-to-make-an-array-of-hashes-to-a-single-array-with-all-th/113323 "2007-08-31T08:01:33Z")

</div>

Take a look at this, puts myvalue.inspect shows this here: \[{:url=\>“http://www.ruby-lang.org/”}, {:url=\>“http://www.ruby-lang.org/en/20020101.html”}, {:url=\>“http://en.wikipedia.org/wiki/Ruby\_programming\_language”}, …

---

## [Read/select not blocking on SSL socket?](https://www.ruby-forum.com/t/read-select-not-blocking-on-ssl-socket/113416)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 31, 2007, 4:33am UTC](https://www.ruby-forum.com/t/read-select-not-blocking-on-ssl-socket/113416 "2007-08-31T04:33:22Z")

</div>

I’m working on an SSL client/server application using persistent TLSv1 connections. I’m having some issues with my server and what I think should be a blocking read or select. I’m basically doing this where @io is an …

---

## [IDE's With Indentation Guides Like SciTE?](https://www.ruby-forum.com/t/ides-with-indentation-guides-like-scite/113145)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 17\
**Last updated:** [August 31, 2007, 1:11am UTC](https://www.ruby-forum.com/t/ides-with-indentation-guides-like-scite/113145 "2007-08-31T01:11:06Z")

</div>

I’ve used SciTE for quite some time now and have become addicted to the indentation guides: I.e. http://people.mosaix.net/chris/images/scite-lines.png Are there any other Ruby IDE’s that offer this feature other tha…

---

## [Collecting remote system information](https://www.ruby-forum.com/t/collecting-remote-system-information/113354)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 5\
**Last updated:** [August 31, 2007, 12:21am UTC](https://www.ruby-forum.com/t/collecting-remote-system-information/113354 "2007-08-31T00:21:02Z")

</div>

I am relatively new to coding and to ruby. I have seen programs like IBM Director installs an agent on a client machine and gather all kinds of information remotely; eg. amount of ram, processor type and speed, machin…

---

## [\[ANN\] Ruby-VPI 19.0.0](https://www.ruby-forum.com/t/ann-ruby-vpi-19-0-0/113149)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-19-0-0/113149 "2007-08-30T23:25:56Z")

</div>

Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI and a platform for unit testing, rapid prototyping, and systems integration of Verilog modules through Ruby. It lets you create complex Verilog test benches e…

---

## [How do I format outputted text?](https://www.ruby-forum.com/t/how-do-i-format-outputted-text/113343)

<div class="topic-metadata">

**Author:** [@dkam](https://www.ruby-forum.com/u/dkam)\
**Replies:** 9\
**Last updated:** [August 30, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/how-do-i-format-outputted-text/113343 "2007-08-30T22:37:19Z")

</div>

How can I control the format (font size, color and location) for text that I am out-putting to the screen. For example: puts (“Ruby is great!”) How can I make this appear in larger font on my screen when I run my pr…

---

## [Add a method to a class at runtime?](https://www.ruby-forum.com/t/add-a-method-to-a-class-at-runtime/113409)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 4\
**Last updated:** [August 30, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/add-a-method-to-a-class-at-runtime/113409 "2007-08-30T22:35:43Z")

</div>

module SomeModule def happy? puts ‘yes’ end end I can do this: some\_object.extend(SomeModule) some\_object.happy? # -\> ‘yes’ But I really need to give the class the method (not just instances) because I have a co…

---

## [Changes to eval.c and gc.c for Ruby on HP-UX IA64](https://www.ruby-forum.com/t/changes-to-eval-c-and-gc-c-for-ruby-on-hp-ux-ia64/113404)

<div class="topic-metadata">

**Author:** [@vouters](https://www.ruby-forum.com/u/vouters)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/changes-to-eval-c-and-gc-c-for-ruby-on-hp-ux-ia64/113404 "2007-08-30T20:13:50Z")

</div>

Please find attached the modifications to be brought to eval.c and gc.c, the exports, build and installation procedure on HP-UX B.11.23 Itanium Processor Family. Please forward to eval.c and gc.c maintainer for inclus…

---

## [ID3 Tags (#136)](https://www.ruby-forum.com/t/id3-tags-136/113406)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/id3-tags-136/113406 "2007-08-30T20:00:38Z")

</div>

This quiz was another idea I got out of the Erlang book. The author uses a similar example to show how smooth processing binary data in Erlang can be. I’m happy to say that I found the submitted Ruby solutions to b…

---

## [Heel 0.3.1 Released](https://www.ruby-forum.com/t/heel-0-3-1-released/113403)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/heel-0-3-1-released/113403 "2007-08-30T19:46:37Z")

</div>

heel version 0.3.1 has been released. http://copiousfreetime.rubyforge.org/heel/ Heel is a mongrel based web server to quickly and easily serve up the contents of a directory as webpages. Beyond just serving up webp…

---

## [Need help randomly selecting unique values from an array](https://www.ruby-forum.com/t/need-help-randomly-selecting-unique-values-from-an-array/113396)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/need-help-randomly-selecting-unique-values-from-an-array/113396 "2007-08-30T19:31:34Z")

</div>

Hi there, I have a simple array that I have to pick one or more unique values from and am kind of stumped as to how to do this. Here’s the what the array looks like: foo = \[2, 7, 10, 14\] # (or could equal a diff’…

---

## [Launchy 0.3.0 Released](https://www.ruby-forum.com/t/launchy-0-3-0-released/113353)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/launchy-0-3-0-released/113353 "2007-08-30T17:45:48Z")

</div>

launchy version 0.3.0 has been released. http://copiousfreetime.rubyforge.org/launchy/ Launchy is helper class for launching cross-platform applications in a fire and forget manner. There are application concepts (br…

---

## [Problem with yaml](https://www.ruby-forum.com/t/problem-with-yaml/113197)

<div class="topic-metadata">

**Author:** [@unbewusst](https://www.ruby-forum.com/u/unbewusst)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/problem-with-yaml/113197 "2007-08-30T15:41:32Z")

</div>

i’m using a yaml file to save my preferences in a RubyCocoa application, however i get : /usr/lib/ruby/1.8/yaml.rb:347:in allocate': allocator undefined for Data (TypeError) from /usr/lib/ruby/1.8/yaml.rb:347:inobject\_…

---

## [Instance variable as formal argument](https://www.ruby-forum.com/t/instance-variable-as-formal-argument/113381)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/instance-variable-as-formal-argument/113381 "2007-08-30T15:12:27Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B2\>0z?t$K%$%s%9%?%s%9JQ?t$r=q$$$?$i!"%$%s%?%W%j%?$KFs2s$bGO\</$K$5$l$ke(B e$B$s$G$9$,;EMM$G$7$g$&$+!#e(B $ ./ruby -ve ‘def initialize(@foo); end;’ ruby 1.9.0 (2007-08-30 patchlevel 0) \[i686-li…

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

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