# Ruby

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

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

---

## [Possibly a stupid question: How do I read / write to a NAS filesystem](https://www.ruby-forum.com/t/possibly-a-stupid-question-how-do-i-read-write-to-a-nas-filesystem/161397)

<div class="topic-metadata">

**Author:** [@rickm](https://www.ruby-forum.com/u/rickm)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/possibly-a-stupid-question-how-do-i-read-write-to-a-nas-filesystem/161397 "2009-02-26T12:51:26Z")

</div>

I have a cheapo WD WorldBook NAS that I would like to access from a Ruby application. This may actually be more about how to properly mount the NAS so I can access it but I thought I would start here. I am running Ubu…

---

## [Block reading from socket and STDIN](https://www.ruby-forum.com/t/block-reading-from-socket-and-stdin/161417)

<div class="topic-metadata">

**Author:** [@massimiliano](https://www.ruby-forum.com/u/massimiliano)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 10:33am UTC](https://www.ruby-forum.com/t/block-reading-from-socket-and-stdin/161417 "2009-02-26T10:33:20Z")

</div>

Hi I am pretty new in ruby, may be this topic has already been discussed here. But I start running out of resources. I am on a Windows XP PC and I am using ruby186-26. I am writing a client/Multiplexing Server socket …

---

## [Debugging rubyspecs](https://www.ruby-forum.com/t/debugging-rubyspecs/160668)

<div class="topic-metadata">

**Author:** [@cephas](https://www.ruby-forum.com/u/cephas)\
**Replies:** 30\
**Last updated:** [February 26, 2009, 10:18am UTC](https://www.ruby-forum.com/t/debugging-rubyspecs/160668 "2009-02-26T10:18:17Z")

</div>

Anybody know how to run rubyspecs under the Visual Studio debugger? If I just set the rubyspec file as the command line argument in the debug properties in VS then it just asks me to install mspec as a gem. Pete

---

## [Re: Re: rake db:migrate script in Jruby](https://www.ruby-forum.com/t/re-re-rake-db-migrate-script-in-jruby/161387)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 9:53am UTC](https://www.ruby-forum.com/t/re-re-rake-db-migrate-script-in-jruby/161387 "2009-02-26T09:53:39Z")

</div>

We have multiple rails apps that share teh models directory (sym links). Our strategy was : Create on migration that build all the tables before we deployed. Once we deployed (which we now are) Migration is managed …

---

## [Compiling Ruby Scripts (Ruby 1.9.x)](https://www.ruby-forum.com/t/compiling-ruby-scripts-ruby-1-9-x/153696)

<div class="topic-metadata">

**Author:** [@sparkymat](https://www.ruby-forum.com/u/sparkymat)\
**Replies:** 5\
**Last updated:** [February 26, 2009, 7:55am UTC](https://www.ruby-forum.com/t/compiling-ruby-scripts-ruby-1-9-x/153696 "2009-02-26T07:55:55Z")

</div>

I was wondering if it is possible to compile Ruby code for Ruby 1.9.x . I understand that by compile, it just packages the interpreter/VM and all included libraries, into one huge executable. Does RubyScript2Exe suppo…

---

## [Need Basic RoR Doc](https://www.ruby-forum.com/t/need-basic-ror-doc/161393)

<div class="topic-metadata">

**Author:** [@sankarkumar](https://www.ruby-forum.com/u/sankarkumar)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 7:53am UTC](https://www.ruby-forum.com/t/need-basic-ror-doc/161393 "2009-02-26T07:53:51Z")

</div>

I’m C/UNIX programmer . Can you please somebody give some basic doc to get start small application … Framework also very new for me… Actually I need to know how DB operation is doing in RoR… & my task is to compare 3 …

---

## [JRuby 1.2.0RC1 Released](https://www.ruby-forum.com/t/jruby-1-2-0rc1-released/161289)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 8\
**Last updated:** [February 26, 2009, 6:33am UTC](https://www.ruby-forum.com/t/jruby-1-2-0rc1-released/161289 "2009-02-26T06:33:38Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.2.0RC1 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.2.0RC1 has fixed many many compatibility issues and continued …

---

## [\[Bug: 1.8\] generator causes abort](https://www.ruby-forum.com/t/bug-1-8-generator-causes-abort/161365)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 4:44am UTC](https://www.ruby-forum.com/t/bug-1-8-generator-causes-abort/161365 "2009-02-26T04:44:47Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bgenerator e$B$re(B 1.8 e$B%(%C%8$G;H$C$?$i$3$s$J46$8$G6/@)=\*N;$5$l$^$7$?!%e(B Linux … 2.6.18-6-amd64 #1 SMP Thu Dec 25 21:08:54 UTC 2008 x86\_64 GNU/Linux $ /tmp/ruby\_1\_8/bin/ruby -ve " …

---

## [\[Bug #1215\] irb doesn't finish evaluate on !false =\> false](https://www.ruby-forum.com/t/bug-1215-irb-doesnt-finish-evaluate-on-false-false/161382)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 2:39am UTC](https://www.ruby-forum.com/t/bug-1215-irb-doesnt-finish-evaluate-on-false-false/161382 "2009-02-26T02:39:25Z")

</div>

Bug #1215: irb doesn’t finish evaluate on !false =\> false http://redmine.ruby-lang.org/issues/show/1215 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib ruby -v: ruby 1.9.…

---

## [Rake db:migrate script in Jruby](https://www.ruby-forum.com/t/rake-db-migrate-script-in-jruby/161372)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 2:38am UTC](https://www.ruby-forum.com/t/rake-db-migrate-script-in-jruby/161372 "2009-02-26T02:38:15Z")

</div>

Hello, We are working on some deployment scripts for our JRuby/Rails application. We use warble to deploy wars into tomcat on our app servers. Since we wont have a local copy of Jruby on the app servers is there an…

---

## [Code Review: netinterop1](https://www.ruby-forum.com/t/code-review-netinterop1/161375)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 2:32am UTC](https://www.ruby-forum.com/t/code-review-netinterop1/161375 "2009-02-26T02:32:56Z")

</div>

tfpt review “/shelveset:netinterop1;REDMOND\\jdeville” Comment : Adds more netinterop tests related to methods. Adds these tests to snap. Reorganizes the ruby generictest folder Adds the command line tests to snap …

---

## [Gems 1.3.1 and sources](https://www.ruby-forum.com/t/gems-1-3-1-and-sources/160382)

<div class="topic-metadata">

**Author:** [@fengbald](https://www.ruby-forum.com/u/fengbald)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 2:07am UTC](https://www.ruby-forum.com/t/gems-1-3-1-and-sources/160382 "2009-02-26T02:07:46Z")

</div>

Hi folks, I tried to install Rails today so I got Ruby 1.8.7 and gem 1.3.1 as sources. Ruby get installed without problems and also gems worked fine with ruby setub.rb. When I now tried to install Rails via gem insta…

---

## [Rdoc exasperations - could use a little help](https://www.ruby-forum.com/t/rdoc-exasperations-could-use-a-little-help/161027)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 4\
**Last updated:** [February 26, 2009, 12:24am UTC](https://www.ruby-forum.com/t/rdoc-exasperations-could-use-a-little-help/161027 "2009-02-26T00:24:06Z")

</div>

I’ve recently restructured my current project per the recommendations in Pickaxe 3rd edition. I can no no longer get rdoc to do its thing. When all my code was in a single \*.rb file in project root, I had no problems.…

---

## [New blog for Ruby-based testers - www.agilerubytester.com](https://www.ruby-forum.com/t/new-blog-for-ruby-based-testers-www-agilerubytester-com/161376)

<div class="topic-metadata">

**Author:** [@bigjimmyk3](https://www.ruby-forum.com/u/bigjimmyk3)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 12:06am UTC](https://www.ruby-forum.com/t/new-blog-for-ruby-based-testers-www-agilerubytester-com/161376 "2009-02-26T00:06:30Z")

</div>

Hi, my name is Jim K… I’m a QA Engineer who works with Ruby and Watir (and RSpec) in the doing of my job (testing web applications). I’ve started a blog on my experiences and lessons learned. It is is at http://agi…

---

## [Queries save](https://www.ruby-forum.com/t/queries-save/161373)

<div class="topic-metadata">

**Author:** [@jobber](https://www.ruby-forum.com/u/jobber)\
**Replies:** 0\
**Last updated:** [February 25, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/queries-save/161373 "2009-02-25T23:51:17Z")

</div>

Hello i have result from a query like: TableA|TableB one | book two | lamps three |doors … now i want to save this like: a= “one book”, b= “two lamps”, c=… how can i implement this in ruby? greats

---

## [\[ANN\] JRuby 1.2.0RC1 Released](https://www.ruby-forum.com/t/ann-jruby-1-2-0rc1-released/161287)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 4\
**Last updated:** [February 25, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/ann-jruby-1-2-0rc1-released/161287 "2009-02-25T23:39:33Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.2.0RC1 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.2.0RC1 has fixed many many compatibility issues and continued …

---

## [Determine memeory usage of Arrays or other objects](https://www.ruby-forum.com/t/determine-memeory-usage-of-arrays-or-other-objects/161344)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 1\
**Last updated:** [February 25, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/determine-memeory-usage-of-arrays-or-other-objects/161344 "2009-02-25T23:00:43Z")

</div>

k = \[nil\] \*50000 is there a way to get some idea of how much memory k will use, or even how much mem it may use as k.size changes? ruby -e ‘p Array.methods.sort’ does not show anything obvious. – John M. 07739 171 …

---

## [Help interpreting benchmark results](https://www.ruby-forum.com/t/help-interpreting-benchmark-results/161273)

<div class="topic-metadata">

**Author:** [@alce](https://www.ruby-forum.com/u/alce)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/help-interpreting-benchmark-results/161273 "2009-02-25T21:57:43Z")

</div>

I ran this simple benchmark: Benchmark.bm do |x| x.report(‘Curl::Easy.http\_get’) do Curl::Easy.http\_get(text) end x.report(‘RestClient.get’) do RestClient.get(text) end end RestClient uses the standard Net:HTTP …

---

## [Docstrings](https://www.ruby-forum.com/t/docstrings/160127)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [February 25, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/docstrings/160127 "2009-02-25T20:47:28Z")

</div>

I like docstrings for being able to know what dynamically generated methods do. For instance, in rails, there is no documentation for People.find\_by\_first\_name # it’s obvious, but–there is nothing in the ri to lookup…

---

## [Require 'diff/lcs/Array'](https://www.ruby-forum.com/t/require-diff-lcs-array/161345)

<div class="topic-metadata">

**Author:** [@indium](https://www.ruby-forum.com/u/indium)\
**Replies:** 6\
**Last updated:** [February 25, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/require-diff-lcs-array/161345 "2009-02-25T20:45:43Z")

</div>

Hi All, I need compare two text files. I should require ‘diff/lcs/Array’ when i do this iam getting error. Should i install any additional gem(if yes pls share the link). I am using Scite editor. As iam very new to ru…

---

## [Was: Re: \[ruby-list:45877\] Re: ruby1.8 $B$H(B ruby1.9 $B$N(B instance\_eval $B$N5sF0$N0c$$$K$D$](https://www.ruby-forum.com/t/was-re-ruby-list-45877-re-ruby1-8-b-h-b-ruby1-9-b-n-b-instance-eval-b-n5sf0-n0c-k-d/160878)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [February 25, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/was-re-ruby-list-45877-re-ruby1-8-b-h-b-ruby1-9-b-n-b-instance-eval-b-n5sf0-n0c-k-d/160878 "2009-02-25T19:58:23Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!H?1~$,CY$/$J$C$F$9$\_$^$;$s!%e(B e$B!!e(B-list e$B$+$ie(B -dev e$B$K$b$C$F$-$^$7$?!%e(B Yukihiro M. wrote:: | |e$B!!$b$7$3$l$,;EMM$G$7$?$i!$0J2\<$N%Q%C%A$GD\>$j$^$9!%$I$&$7$?$b$s$G$7$g$&!%e(B …

---

## [Rdoc 2.4.0 Released](https://www.ruby-forum.com/t/rdoc-2-4-0-released/161295)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 9\
**Last updated:** [February 25, 2009, 7:41pm UTC](https://www.ruby-forum.com/t/rdoc-2-4-0-released/161295 "2009-02-25T19:41:40Z")

</div>

rdoc version 2.4.0 has been released! \<Project Page: http://rubyforge.org/projects/rdoc/\> \<Documentation: http://rdoc.rubyforge.org/\> RDoc is an application that produces documentation for one or more Ruby source fil…

---

## [Developing Ruby on Glade for windows - worth it?](https://www.ruby-forum.com/t/developing-ruby-on-glade-for-windows-worth-it/161297)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/developing-ruby-on-glade-for-windows-worth-it/161297 "2009-02-25T19:19:52Z")

</div>

This is more of an open discussion, since I’ve never done it myself and looking for input from those of you who have. I wrote a few .NET apps w/ C#, and ever since I picked up ruby I really wished there was an environ…

---

## [Pluginfactory 1.0.4](https://www.ruby-forum.com/t/pluginfactory-1-0-4/161349)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 25, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/pluginfactory-1-0-4/161349 "2009-02-25T19:14:34Z")

</div>

Version 1.0.4 of pluginfactory has been released. PluginFactory is a mixin module that turns an including class into a factory for its derivatives, capable of searching for and loading them by name. This is useful whe…

---

## [Can Ruby interact with the shell sh?](https://www.ruby-forum.com/t/can-ruby-interact-with-the-shell-sh/161249)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 11\
**Last updated:** [February 25, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/can-ruby-interact-with-the-shell-sh/161249 "2009-02-25T19:02:44Z")

</div>

Hello, I have to establish an VPN connection, currently I’m doing with another app that can interact with the shell (on OS X), but now I want to refactor all of this and use Ruby for that. What I’m trying is a lot of…

---

## [Error trying to install ruby gems 1.3.1](https://www.ruby-forum.com/t/error-trying-to-install-ruby-gems-1-3-1/161251)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 11\
**Last updated:** [February 25, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/error-trying-to-install-ruby-gems-1-3-1/161251 "2009-02-25T18:49:05Z")

</div>

~/my\_tar\_extractions/rubygems-1.3.1$ sudo ruby setup.rb Password: ./lib/rubygems.rb:723:in set\_paths': uninitialized constant Gem::Etc (NameError) from ./lib/rubygems.rb:719:ineach’ from ./lib/rubygems.rb:719:in set\_p…

---

## [How does one generate a "main page" for rdoc documentation?](https://www.ruby-forum.com/t/how-does-one-generate-a-main-page-for-rdoc-documentation/160809)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 20\
**Last updated:** [February 25, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/how-does-one-generate-a-main-page-for-rdoc-documentation/160809 "2009-02-25T18:39:40Z")

</div>

I tried rdoc --main maindocpage rex.rb where both maindocpage and rex.rb were in the current directory, and got the message: Could not find main page maindocpage multiple times. Thanks, Ken

---

## [Infinite loop with Singleton mixin](https://www.ruby-forum.com/t/infinite-loop-with-singleton-mixin/161292)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 2\
**Last updated:** [February 25, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/infinite-loop-with-singleton-mixin/161292 "2009-02-25T18:38:11Z")

</div>

This loops inifitely, but it doesn’t seem like it should. – require ‘singleton’ class SingleThing include Singleton def initialize @a = OtherThing.new end end class OtherThing def initialize @single\_ref = Sing…

---

## [Standard error redirection in backquote notation](https://www.ruby-forum.com/t/standard-error-redirection-in-backquote-notation/161347)

<div class="topic-metadata">

**Author:** [@Vincent\_Lambert](https://www.ruby-forum.com/u/Vincent_Lambert)\
**Replies:** 0\
**Last updated:** [February 25, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/standard-error-redirection-in-backquote-notation/161347 "2009-02-25T18:27:48Z")

</div>

Hello, We want to capture all the output of an external program that we call from ruby. We use a custom function that sends the command to the system using the backquote notation. 2\>&1 is appended at the end of the co…

---

## [Suggestion for site improvement](https://www.ruby-forum.com/t/suggestion-for-site-improvement/161340)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 1\
**Last updated:** [February 25, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/suggestion-for-site-improvement/161340 "2009-02-25T18:12:32Z")

</div>

I have seen many a thread on this site get derailed. The longer the thread, the less likely that you will read a post on the original subject. I suggest that a tree version of threads be used. This way, when someon…

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

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