# Ruby

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

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

---

## [Embedding struct RArray](https://www.ruby-forum.com/t/embedding-struct-rarray/149936)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 4\
**Last updated:** [October 7, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/embedding-struct-rarray/149936 "2008-10-07T15:59:22Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yuguiã§ã™ã€‚ 3è¦ç´ ä»¥ä¸‹ã®é…åˆ—ã‚’RVALUEã«åŸ‹ã‚è¾¼ã‚€ãƒ‘ãƒƒãƒã‚’æ›¸ãã¾ã—ãŸã€‚object, struct, string, hashã¨åˆã‚ã›ã¦ã€ã“ã‚Œã§ä¸€é€šã‚Šã®ã‚ªãƒ–ã‚¸ã‚§…

---

## [\`require': no such file to load -- win32/sound](https://www.ruby-forum.com/t/require-no-such-file-to-load-win32-sound/150341)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-win32-sound/150341 "2008-10-07T15:53:24Z")

</div>

I am trying out the following X10 intergratuion with Bamboo (http:// urlant.com//yvwjlo) and when i installed the one click windows install of Ruby and run the ruby script, i get the following error: C:\\ruby\\bin\>ruby…

---

## [TestClass1 \< TestClass0 \< Test::Unit::TestCase](https://www.ruby-forum.com/t/testclass1-testclass0-test-testcase/150324)

<div class="topic-metadata">

**Author:** [@emilsverige](https://www.ruby-forum.com/u/emilsverige)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 11:37am UTC](https://www.ruby-forum.com/t/testclass1-testclass0-test-testcase/150324 "2008-10-07T11:37:28Z")

</div>

Hi, I have a test class, TestClass0, with a few test methods. I specify some hard coded values in the setup method: test\_class0.rb require ‘test/unit’ class TestClass0 \< Test::Unit::TestCase def setup @server\_url …

---

## [Zena CMS first public release!](https://www.ruby-forum.com/t/zena-cms-first-public-release/150227)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 12\
**Last updated:** [October 7, 2008, 9:37am UTC](https://www.ruby-forum.com/t/zena-cms-first-public-release/150227 "2008-10-07T09:37:44Z")

</div>

After 3 years of work in my cave, I am happy to go out in the sunlight to announce the first public beta release of zena ! In a few words: Zena is a CMS based on ruby on rails with a very advanced xhtml based templat…

---

## [Inject two more values to an HashWithIndifferntAccess](https://www.ruby-forum.com/t/inject-two-more-values-to-an-hashwithindifferntaccess/150317)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 9:17am UTC](https://www.ruby-forum.com/t/inject-two-more-values-to-an-hashwithindifferntaccess/150317 "2008-10-07T09:17:19Z")

</div>

Hi I have @search\_sd\_ticket=ServiceDeskTicket.record\_paginate(params\[:sd\_ticket\],params\[:page\]) Here class of params\[:sd\_ticket\] is HashWithIndifferntAccess for example {“number”=\>“2”, “primary\_assignee\_id”=\>"", “…

---

## [Ruby lacks atfork : The evil that lives in fork](https://www.ruby-forum.com/t/ruby-lacks-atfork-the-evil-that-lives-in-fork/150213)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 11\
**Last updated:** [October 7, 2008, 5:10am UTC](https://www.ruby-forum.com/t/ruby-lacks-atfork-the-evil-that-lives-in-fork/150213 "2008-10-07T05:10:29Z")

</div>

Consider this simple usage of Thread and Process… I use a mutex to block access to the $state variable when it is in an “inconsistent” state. ====================================================================== req…

---

## [Where is xmlscan/scanner as used in xsd4r](https://www.ruby-forum.com/t/where-is-xmlscan-scanner-as-used-in-xsd4r/150300)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 2:22am UTC](https://www.ruby-forum.com/t/where-is-xmlscan-scanner-as-used-in-xsd4r/150300 "2008-10-07T02:22:31Z")

</div>

‘xmlscanner.rb’ (which is part of the in built xsd code) has the following require(s) require ‘xsd/xmlparser’ require ‘xmlscan/scanner’ Where is xmlscan/scanner? Also, can anyone suggest the best (and/or fastest) sc…

---

## [Code Review: MoreDefaultProtocols](https://www.ruby-forum.com/t/code-review-moredefaultprotocols/150295)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [October 7, 2008, 1:43am UTC](https://www.ruby-forum.com/t/code-review-moredefaultprotocols/150295 "2008-10-07T01:43:53Z")

</div>

tfpt review “/shelveset:MoreDefaultProtocols;REDMOND\\tomat” Introduces more default protocol conversions. Tomas

---

## [Expand\_Path - Errors when path contains line number](https://www.ruby-forum.com/t/expand-path-errors-when-path-contains-line-number/150290)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 12:58am UTC](https://www.ruby-forum.com/t/expand-path-errors-when-path-contains-line-number/150290 "2008-10-07T00:58:50Z")

</div>

Hi, When using FileOps.ExpandPath() (otherwise known as File.expand\_path), I think the method should accept a path which includes additional information - such as the line number : …/…/path/folder/file.rb:93 Should …

---

## [Code Review: Autoload6](https://www.ruby-forum.com/t/code-review-autoload6/150283)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 12:12am UTC](https://www.ruby-forum.com/t/code-review-autoload6/150283 "2008-10-07T00:12:30Z")

</div>

tfpt review “/shelveset:Autoload6;REDMOND\\tomat” Comment : Implements Kernel#autoload, Module#autoload and adds more specs for them. Fixes incorrect evaluation order in post-test loop (begin … end while cond). Add…

---

## [Caller(0)\[1\] returns :0 if not debugging](https://www.ruby-forum.com/t/caller-0-1-returns-0-if-not-debugging/150289)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 0\
**Last updated:** [October 6, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/caller-0-1-returns-0-if-not-debugging/150289 "2008-10-06T23:38:27Z")

</div>

Hi, As promised, I’m trying to track down and reproduce various bugs I have hit. The first one I have is that my code is calling caller(0)\[1\] which expects the path to the calling method. However, if i’m using runni…

---

## [Problems with RubyGems](https://www.ruby-forum.com/t/problems-with-rubygems/150138)

<div class="topic-metadata">

**Author:** [@forsakensoul](https://www.ruby-forum.com/u/forsakensoul)\
**Replies:** 3\
**Last updated:** [October 6, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/problems-with-rubygems/150138 "2008-10-06T23:14:25Z")

</div>

Hey, I’ve just bought a new asus eee pc 901 and I’m running linux on it. I’m still on the default linux which is a modified xandros linux. I compiled ruby and rubygems using the tutorial from: http://blog.fiveruns.co…

---

## [Erb reference anywhere online?](https://www.ruby-forum.com/t/erb-reference-anywhere-online/149426)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 7\
**Last updated:** [October 6, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/erb-reference-anywhere-online/149426 "2008-10-06T22:40:18Z")

</div>

I have “Ruby for Rails” coming in in a few days, but in the meantime, is there a good online ref for erb? I haven’t been able to find one. Thanks, Ken

---

## [Extending a class changes from 1.8.4 to 1.8.6](https://www.ruby-forum.com/t/extending-a-class-changes-from-1-8-4-to-1-8-6/150277)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/extending-a-class-changes-from-1-8-4-to-1-8-6/150277 "2008-10-06T21:25:10Z")

</div>

require ‘date’ class MyDateTime \< DateTime end under ruby 1.8.4: MyDateTime.now.class -\> MyDateTime under ruby 1.8.6 MyDateTime.now.class -\> DateTime I feel like I missed the boat on something obvious here. I goog…

---

## [Unary operator](https://www.ruby-forum.com/t/unary-operator/150203)

<div class="topic-metadata">

**Author:** [@stephan.zimmer](https://www.ruby-forum.com/u/stephan.zimmer)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/unary-operator/150203 "2008-10-06T21:01:06Z")

</div>

Hi all, here is a novice’s question: I am wondering how to equip a class with a unary operator. Defining a method “-” like this class Something … def - # some code end … end I have to call “-” by writing somethi…

---

## [Instanciating a java.util.Set](https://www.ruby-forum.com/t/instanciating-a-java-util-set/150264)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/instanciating-a-java-util-set/150264 "2008-10-06T20:04:35Z")

</div>

Hi, I’m using a Java library from Jruby, and I need to pass a java.util.Set as an argument to a method. But how can construct such a set? I’m not even sure which implementation of this interface I should choose. I …

---

## [\[ANN\] Mack Framework 0.8.0 & User Guide](https://www.ruby-forum.com/t/ann-mack-framework-0-8-0-user-guide/150274)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [October 6, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/ann-mack-framework-0-8-0-user-guide/150274 "2008-10-06T19:15:07Z")

</div>

The Mack Web Application Framework has just reached version 0.8.0. The release includes substantial feature improvements to the router, Configatron support, a new asset management system, better error handling, report…

---

## [Work at home and get 200 $ in week](https://www.ruby-forum.com/t/work-at-home-and-get-200-in-week/150267)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 6, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/work-at-home-and-get-200-in-week/150267 "2008-10-06T18:40:55Z")

</div>

yes just log in here and get the easy way to work http://www.arabwelt.com/vb

---

## [Annoymous class extending a module doesn't return expected kind\_of](https://www.ruby-forum.com/t/annoymous-class-extending-a-module-doesnt-return-expected-kind-of/150212)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 7\
**Last updated:** [October 6, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/annoymous-class-extending-a-module-doesnt-return-expected-kind-of/150212 "2008-10-06T18:15:04Z")

</div>

Hi guys, I’ve been bashing my head again this problem for the last few days where the object I expected wasn’t passed around, tonight I decided to break it down and focus on a much small part. Turns out, I was looki…

---

## [Timeout question](https://www.ruby-forum.com/t/timeout-question/150184)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 9\
**Last updated:** [October 6, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/timeout-question/150184 "2008-10-06T16:06:25Z")

</div>

Hi all, I iterate an array. During jumping from one element to the next one I need to get user input from the console. 1) If not input after 5 seconds I have to jump to the next element. 2)If there is an input within…

---

## [How to stream or write data into a tar.gz file as if the data were from files?](https://www.ruby-forum.com/t/how-to-stream-or-write-data-into-a-tar-gz-file-as-if-the-data-were-from-files/148641)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 12\
**Last updated:** [October 6, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/how-to-stream-or-write-data-into-a-tar-gz-file-as-if-the-data-were-from-files/148641 "2008-10-06T16:05:43Z")

</div>

I have a gazillion little files in memory (each is really just a chunk of data, but it represents what needs to be a single file) and I need to throw them all into a .tar.gz archive. In this case, it must be in .tar.…

---

## [Calling a Defined Method at bottom of script](https://www.ruby-forum.com/t/calling-a-defined-method-at-bottom-of-script/150097)

<div class="topic-metadata">

**Author:** [@smithy](https://www.ruby-forum.com/u/smithy)\
**Replies:** 5\
**Last updated:** [October 6, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/calling-a-defined-method-at-bottom-of-script/150097 "2008-10-06T13:19:44Z")

</div>

It seems that I have to place all the methods I have created at the top of my script in order to be able to call them later on in the script. Is there a way for me to put all my methods at the bottom of the script and…

---

## [Open file for reading as non block](https://www.ruby-forum.com/t/open-file-for-reading-as-non-block/150204)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [October 6, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/open-file-for-reading-as-non-block/150204 "2008-10-06T13:17:23Z")

</div>

how do i open the file for reading as non blocking mode. as you can see the first 2 attempts do not work. irb(main):058:0\> File.open(fi,File::NONBLOCK + File::RDONLY){|f| c=f.read} IOError: not opened for reading fr…

---

## [JRuby deprioritizing support for 1.8.7 behavior](https://www.ruby-forum.com/t/jruby-deprioritizing-support-for-1-8-7-behavior/150116)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 1\
**Last updated:** [October 6, 2008, 11:45am UTC](https://www.ruby-forum.com/t/jruby-deprioritizing-support-for-1-8-7-behavior/150116 "2008-10-06T11:45:44Z")

</div>

Just FYI, we’ve pretty much made the decision that JRuby will not make 1.8.7 API support a priority in the near term. We will continue to support 1.8.6 behavior and have started filling out 1.9 behavior, but we have s…

---

## [\[ANN\] Ruby Linear Algebra Library 1.0.0](https://www.ruby-forum.com/t/ann-ruby-linear-algebra-library-1-0-0/150215)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 10:38am UTC](https://www.ruby-forum.com/t/ann-ruby-linear-algebra-library-1-0-0/150215 "2008-10-06T10:38:44Z")

</div>

= Linalg - Ruby Linear Algebra Library A Fortran-based linear algebra package. http://linalg.rubyforge.org/ http://rubyforge.org/frs/?group\_id=273 Statically-linked binaries (no dependencies required) are available f…

---

## [RubyGems 1.3.0](https://www.ruby-forum.com/t/rubygems-1-3-0/149628)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 14\
**Last updated:** [October 6, 2008, 8:00am UTC](https://www.ruby-forum.com/t/rubygems-1-3-0/149628 "2008-10-06T08:00:34Z")

</div>

Note! Some versions of RubyGems have a bug that will prevent automatic updates. If RubyGems says it has nothing to update, run: $ gem install rubygems-update $ update\_rubygems = Announce: RubyGems Release 1.3.0 Re…

---

## [Green paper on IronRuby](https://www.ruby-forum.com/t/green-paper-on-ironruby/146600)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 21\
**Last updated:** [October 6, 2008, 7:41am UTC](https://www.ruby-forum.com/t/green-paper-on-ironruby/146600 "2008-10-06T07:41:13Z")

</div>

Manning just published my green paper on ironruby.

---

## [Developing command line utilities](https://www.ruby-forum.com/t/developing-command-line-utilities/150199)

<div class="topic-metadata">

**Author:** [@chrisjo](https://www.ruby-forum.com/u/chrisjo)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 6:17am UTC](https://www.ruby-forum.com/t/developing-command-line-utilities/150199 "2008-10-06T06:17:34Z")

</div>

I’m writing a command line utility who’s interface will share alot in common with rake. I remember reading at some point that Capistrano was built on top of rake(?) Is building on top of rake a possible solution, and …

---

## [How to use st\_table by oneself?](https://www.ruby-forum.com/t/how-to-use-st-table-by-oneself/150168)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 3:25am UTC](https://www.ruby-forum.com/t/how-to-use-st-table-by-oneself/150168 "2008-10-06T03:25:14Z")

</div>

http://www.ruby-doc.org/doxygen/1.8.4/st\_8c.html Is there some tutorials or examples about it?thanks

---

## [Stream closed (IOError)](https://www.ruby-forum.com/t/stream-closed-ioerror/150169)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 16\
**Last updated:** [October 6, 2008, 3:24am UTC](https://www.ruby-forum.com/t/stream-closed-ioerror/150169 "2008-10-06T03:24:25Z")

</div>

This code: puts "closed?: %s" % @socket.closed?.to\_s begin @socket.close rescue Exception =\> e return rescue IOError =\> e return rescue Errno =\> e return end out…

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

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