# Ruby

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

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

---

## [Interact with Ruby via command prompt window dynamically](https://www.ruby-forum.com/t/interact-with-ruby-via-command-prompt-window-dynamically/117272)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/interact-with-ruby-via-command-prompt-window-dynamically/117272 "2007-10-16T19:50:22Z")

</div>

Hi all, I use SciTE for Ruby scripting. I wonder if it is possible to dynamically interact with my script via command prompt from within SciTE. For example I want to get user input and then print it to the command pr…

---

## [How distinguish between a file and a directory?](https://www.ruby-forum.com/t/how-distinguish-between-a-file-and-a-directory/117401)

<div class="topic-metadata">

**Author:** [@Bazsl](https://www.ruby-forum.com/u/Bazsl)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/how-distinguish-between-a-file-and-a-directory/117401 "2007-10-16T19:19:19Z")

</div>

A newbie question. The code Dir.foreach(Dir.getwd) do |f| if ((f != '.') && (f != '..')) puts f end end lists the files and directories in the current working directory but does not identify which is a file an…

---

## [Re: Who's going to RubyConf 2007](https://www.ruby-forum.com/t/re-whos-going-to-rubyconf-2007/117350)

<div class="topic-metadata">

**Author:** [@Forrest\_C](https://www.ruby-forum.com/u/Forrest_C)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/re-whos-going-to-rubyconf-2007/117350 "2007-10-16T19:11:05Z")

</div>

I’m in also. It’ll be good to grab a drink with the “Island of Jruby” – dunno if Charles remembers the dozen or so times he proclaimed such back in that pub in Portland. ----- Original Message ---- From: Nick S. rem…

---

## [0\*\*-1](https://www.ruby-forum.com/t/0-1/117411)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/0-1/117411 "2007-10-16T17:32:39Z")

</div>

0\*\*-1 e$B$,e(B 0 e$B$K$J$k$3$H$K5$$,$D$-$^$7$?!#e(B % ./ruby -ve ‘p 0\*\*-1’ ruby 1.9.0 (2007-10-16 patchlevel 0) \[i686-linux\] 0 e$B0JA0$Oe(B Infinity e$B$G$7$?!#e(B % ruby-1.8.6 -ve ‘p 0\*\*-1’ ruby 1.8.6 (2007-03-13 …

---

## [Excel Parsing : extract values of cells with formulae](https://www.ruby-forum.com/t/excel-parsing-extract-values-of-cells-with-formulae/117267)

<div class="topic-metadata">

**Author:** [@geeta](https://www.ruby-forum.com/u/geeta)\
**Replies:** 5\
**Last updated:** [October 16, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/excel-parsing-extract-values-of-cells-with-formulae/117267 "2007-10-16T17:31:28Z")

</div>

Hi, I’v read a lot of posts regarding excel parsing, however, none of it helped me. I’m trying to use ‘parseexcel’ to parse my worksheets. Uptill now, using this, I have not been able to extract values of cells which…

---

## [Re: How distinguish between a file and a directory?](https://www.ruby-forum.com/t/re-how-distinguish-between-a-file-and-a-directory/117404)

<div class="topic-metadata">

**Author:** [@allen\_r](https://www.ruby-forum.com/u/allen_r)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/re-how-distinguish-between-a-file-and-a-directory/117404 "2007-10-16T17:12:45Z")

</div>

There are class side methods called “file?” and “directory?” on the File class that you can use. (ex. File.directory?(“path/to/directory”) )

---

## [Uri/common.rb:188:in \`initialize': wrong number of arguments (ArgumentError)](https://www.ruby-forum.com/t/uri-common-rbin-initialize-wrong-number-of-arguments-argumenterror/117397)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/uri-common-rbin-initialize-wrong-number-of-arguments-argumenterror/117397 "2007-10-16T16:40:31Z")

</div>

test-all e$B$,%(%i!\<$K$J$j$^$9!#e(B % ./ruby -v ruby 1.9.0 (2007-10-16 patchlevel 0) \[i686-linux\] % ./ruby test/runner.rb /home/akr/ruby/yarvo2/lib/ruby/1.9/uri/common.rb:188:in initialize': wrong number of arguments…

---

## [Multibyte string/regex literal with escape sequence](https://www.ruby-forum.com/t/multibyte-string-regex-literal-with-escape-sequence/116743)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 23\
**Last updated:** [October 16, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/multibyte-string-regex-literal-with-escape-sequence/116743 "2007-10-16T16:37:00Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B trunke$B$G!"e(B % ./miniruby -ve ‘# -- coding: EUC-JP -- p "e$B$“e(B\\n”.encoding’ ruby 1.9.0 (2007-10-07 patchlevel 0) \[i386-netbsdelf\] “US-ASCII” e$B$H$J$k$3$H$K5$I…

---

## [CSV question](https://www.ruby-forum.com/t/csv-question/117392)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/csv-question/117392 "2007-10-16T16:35:15Z")

</div>

hi, CSV (more specifically FasterCSV) reads the file i provided row by row FasterCSV.foreach(‘path/to/file.csv’, ‘r’) do |r| r # this is an array of a row in the file end but i need to get the array column by colum…

---

## [Process.detach - not detaching child?](https://www.ruby-forum.com/t/process-detach-not-detaching-child/117341)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/process-detach-not-detaching-child/117341 "2007-10-16T16:04:49Z")

</div>

Hi, I’ve got a script that was working great on OS X and now not working on Fedora Core 6. Both are running Ruby 1.8.6 and the latest Rails. The application is a Rails app that uses fork and the Process.detach. On OS…

---

## [How to ignore warning](https://www.ruby-forum.com/t/how-to-ignore-warning/116918)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 11\
**Last updated:** [October 16, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/how-to-ignore-warning/116918 "2007-10-16T14:57:53Z")

</div>

how to ignore warning messages in ruby (when executing ruby code)

---

## [Learning matrix](https://www.ruby-forum.com/t/learning-matrix/117383)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/learning-matrix/117383 "2007-10-16T14:39:22Z")

</div>

hi, can anyone point me to a nice tutorial / place to learn matrix’s in ruby? much appreciated.

---

## [How to connect to Intranet Server through Ruby](https://www.ruby-forum.com/t/how-to-connect-to-intranet-server-through-ruby/117377)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-connect-to-intranet-server-through-ruby/117377 "2007-10-16T13:47:07Z")

</div>

Hi , I have my application on two different servers text drive server 2 intranet server located at some place. Right now i am using VPN to access my application that is on intranet server. Now i need to connect t…

---

## [Autocompleter](https://www.ruby-forum.com/t/autocompleter/117372)

<div class="topic-metadata">

**Author:** [@patrickreilly](https://www.ruby-forum.com/u/patrickreilly)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/autocompleter/117372 "2007-10-16T13:28:43Z")

</div>

Hi there, i use the Autocompleter in a intranetweb. its fantastic. i fill the array with text from a database. my problem is now: i would like to hand over a second value to the autocompleter to show in an additional…

---

## [Javascript](https://www.ruby-forum.com/t/javascript/117370)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/javascript/117370 "2007-10-16T13:24:11Z")

</div>

Hello I have a controller which executes a “render :partial” to actualise part of my web page (a object). When I do that I would like to call a javascript function to complete my process. How can I do that? Anyone…

---

## [Reverse the Polarity (#143)](https://www.ruby-forum.com/t/reverse-the-polarity-143/117058)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [October 16, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/reverse-the-polarity-143/117058 "2007-10-16T12:25:48Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Comparison question](https://www.ruby-forum.com/t/comparison-question/117340)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 3\
**Last updated:** [October 16, 2007, 11:38am UTC](https://www.ruby-forum.com/t/comparison-question/117340 "2007-10-16T11:38:25Z")

</div>

I’m looking at the Comparable module in a book, and I can’t figure out how to do a simple comparison. What I want to do is a loop based on a counter. If the counter is less than 3, I want to execute the loop, otherw…

---

## [Can I test a single file using rake command](https://www.ruby-forum.com/t/can-i-test-a-single-file-using-rake-command/117365)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 11:06am UTC](https://www.ruby-forum.com/t/can-i-test-a-single-file-using-rake-command/117365 "2007-10-16T11:06:06Z")

</div>

Hi, All I am new to ROR, I am doing testing of my rails application, I want to use rake command insted using ruby filename.rb, Is there any way to do this??? Please give me a solution(you can mail me on my id.), Reg…

---

## [Error while using include\_class](https://www.ruby-forum.com/t/error-while-using-include-class/117360)

<div class="topic-metadata">

**Author:** [@Amol\_Dharmadhikari\_S](https://www.ruby-forum.com/u/Amol_Dharmadhikari_S)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 10:05am UTC](https://www.ruby-forum.com/t/error-while-using-include-class/117360 "2007-10-16T10:05:49Z")

</div>

Hi All, I am attempting to use a third party java class in a script. Simply using a include\_class on the classname throws the following error: C:\\work\\jruby\\xel\>c:\\jruby-1.0.1\\bin\\jruby.bat test.rb :1:in each': wrong …

---

## [Consumin/Access the Web Service](https://www.ruby-forum.com/t/consumin-access-the-web-service/117362)

<div class="topic-metadata">

**Author:** [@valippokkan](https://www.ruby-forum.com/u/valippokkan)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 9:53am UTC](https://www.ruby-forum.com/t/consumin-access-the-web-service/117362 "2007-10-16T09:53:26Z")

</div>

Hi All, I am a newbie . I want to Access a Webservice using ruby and i dont know the function that has to be used for calling web services. Using ruby, i want to send and receive request/response. A piece of code re…

---

## [Ruby on Cell](https://www.ruby-forum.com/t/ruby-on-cell/117359)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 9:47am UTC](https://www.ruby-forum.com/t/ruby-on-cell/117359 "2007-10-16T09:47:39Z")

</div>

For those of us who are straddling the relatively diverse worlds of Ruby and embedded systems, this press release is of interest: It sure brought a smile to my face. Cheers, Mohit. 10/16/2007 | 3:46 PM.

---

## [Change mouse pointer](https://www.ruby-forum.com/t/change-mouse-pointer/117356)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 8:51am UTC](https://www.ruby-forum.com/t/change-mouse-pointer/117356 "2007-10-16T08:51:01Z")

</div>

Hello I made my first ruby/ROR web site. Now, I would like to improve it. In a page, I have a “link\_to\_remote” object. When I click it, a method of my controller is called. This method executes a DB query and the res…

---

## [What is mean by scope in ruby?](https://www.ruby-forum.com/t/what-is-mean-by-scope-in-ruby/117347)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 8:18am UTC](https://www.ruby-forum.com/t/what-is-mean-by-scope-in-ruby/117347 "2007-10-16T08:18:45Z")

</div>

Hai friends, Please anybody can answer this question. What is mean by scope in ruby. Thank you.

---

## [Warbler config for WEB-INF/classes](https://www.ruby-forum.com/t/warbler-config-for-web-inf-classes/116989)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 7:33am UTC](https://www.ruby-forum.com/t/warbler-config-for-web-inf-classes/116989 "2007-10-16T07:33:09Z")

</div>

I was just looking at Warbler for packaging up my rails app into a .war. Very nice! One thing I’m having a little trouble with is that I need to get things into the WEB-INF/classes directory(properties files and the l…

---

## [JRuby on Rails won't run on Windows XP - had to adjust rails/lib/initializer.rb](https://www.ruby-forum.com/t/jruby-on-rails-wont-run-on-windows-xp-had-to-adjust-rails-lib-initializer-rb/117283)

<div class="topic-metadata">

**Author:** [@WolffS\_Tobias](https://www.ruby-forum.com/u/WolffS_Tobias)\
**Replies:** 6\
**Last updated:** [October 16, 2007, 6:59am UTC](https://www.ruby-forum.com/t/jruby-on-rails-wont-run-on-windows-xp-had-to-adjust-rails-lib-initializer-rb/117283 "2007-10-16T06:59:50Z")

</div>

After building JRuby and installing Rails, when I run “jruby -v” the following version is reported: ruby 1.8.5 (2007-10-15 rev 3876) \[x86-jruby1.1\]. Also, I have read Headius: A Ruby in the Rough which tells me that …

---

## [A couple of issues building in Visual Studio (resolved)](https://www.ruby-forum.com/t/a-couple-of-issues-building-in-visual-studio-resolved/117351)

<div class="topic-metadata">

**Author:** [@Derek\_Knight](https://www.ruby-forum.com/u/Derek_Knight)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 6:55am UTC](https://www.ruby-forum.com/t/a-couple-of-issues-building-in-visual-studio-resolved/117351 "2007-10-16T06:55:45Z")

</div>

John M uploaded some new project files on Sunday. This was just after I took my snapshot. IronRuby now builds for me. Thanks Derek

---

## [Rake$BE:IU(B](https://www.ruby-forum.com/t/rake-be-iu-b/116331)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 20\
**Last updated:** [October 16, 2007, 5:43am UTC](https://www.ruby-forum.com/t/rake-be-iu-b/116331 "2007-10-16T05:43:16Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B:#F|!“e(BSkypee$B$GOC$7$F$F!Ve(BRakee$B$Oe(BGeme$B$KI,?$G$J$$!W$H$$$&OC$rJ9$-e(B e$B$^$7$?!#9M$($F$\_$l$P8=:\_e(BRakee$B$Oe(BGeme$B$G%$%s%9%H!\<%k$G$-$k$s$G$9e(B e$B$+$iEv$?$jA0$J$s$G…

---

## [Newbie question - how to get current directory into a variab](https://www.ruby-forum.com/t/newbie-question-how-to-get-current-directory-into-a-variab/117337)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 6\
**Last updated:** [October 16, 2007, 2:36am UTC](https://www.ruby-forum.com/t/newbie-question-how-to-get-current-directory-into-a-variab/117337 "2007-10-16T02:36:42Z")

</div>

I’m running Ruby on Ubuntu Linux, and I need to be able to get the current directory that the program is running in into a variable in my program. Is there a simple way to do this? Also, is there a way to change dir…

---

## [Libnet doucmentation](https://www.ruby-forum.com/t/libnet-doucmentation/117292)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 2:08am UTC](https://www.ruby-forum.com/t/libnet-doucmentation/117292 "2007-10-16T02:08:06Z")

</div>

hi Now, I’m working with the libnet library (require libnet4r) and it works good so far. But now, I would like to create RTP packets and I can’t find any documentations about libnet for ruby. Does somebody have any …

---

## [Eclipse and ruby-debug](https://www.ruby-forum.com/t/eclipse-and-ruby-debug/117311)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 5\
**Last updated:** [October 16, 2007, 1:57am UTC](https://www.ruby-forum.com/t/eclipse-and-ruby-debug/117311 "2007-10-16T01:57:07Z")

</div>

I’m using the RDT plugin for Ruby development in Eclipse on Windows. It works fairly well, but it doesn’t move the source window to the current breakpoint line when it hits a breakpoint in the debugger, nor does it e…

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

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