# Ruby

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

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

---

## [\[Bug #1196\] $B@55,I=8=$N(B \\s $B$H(B \[\\s\] $B$,0\[$J$k(B](https://www.ruby-forum.com/t/bug-1196-b-55-i-8-n-b-s-b-h-b-s-b-0-j-k-b/161089)

<div class="topic-metadata">

**Author:** [@masa16](https://www.ruby-forum.com/u/masa16)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 11:23am UTC](https://www.ruby-forum.com/t/bug-1196-b-55-i-8-n-b-s-b-h-b-s-b-0-j-k-b/161089 "2009-05-12T11:23:25Z")

</div>

Bug #1196: e$B@55,I=8=$Ne(B \\s e$B$He(B \[\\s\] e$B$,0\[$J$ke(B http://redmine.ruby-lang.org/issues/show/1196 e$B5/I\<\<Te(B: Masahiro T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2008-08-11 patchle…

---

## [Question to write \\4 into file](https://www.ruby-forum.com/t/question-to-write-4-into-file/167590)

<div class="topic-metadata">

**Author:** [@cheyne](https://www.ruby-forum.com/u/cheyne)\
**Replies:** 7\
**Last updated:** [May 12, 2009, 9:37am UTC](https://www.ruby-forum.com/t/question-to-write-4-into-file/167590 "2009-05-12T09:37:40Z")

</div>

Hi there, I have problem with writng “\\4” into a file, for example, I want to write a string “aaa\\4024\_folder\\mm” into a file test.cfg. But once the string wrote into file, it is “aaa024\_folder\\mm”. So, i do this, st…

---

## [File over tcp? with out using net/ftp](https://www.ruby-forum.com/t/file-over-tcp-with-out-using-net-ftp/167470)

<div class="topic-metadata">

**Author:** [@i8igmac](https://www.ruby-forum.com/u/i8igmac)\
**Replies:** 11\
**Last updated:** [May 12, 2009, 9:31am UTC](https://www.ruby-forum.com/t/file-over-tcp-with-out-using-net-ftp/167470 "2009-05-12T09:31:08Z")

</div>

Im trying to send a file back and forth between a client.rb and server.rb… How can i do this with out using ftp?

---

## [Nil object error during integration test](https://www.ruby-forum.com/t/nil-object-error-during-integration-test/167749)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 9:28am UTC](https://www.ruby-forum.com/t/nil-object-error-during-integration-test/167749 "2009-05-12T09:28:07Z")

</div>

hello all, I have a simple test case that load home page. When I run test i got following error. test\_load\_site\_with\_out\_errors(UserScenariosTest) \[test/integration/user\_scenarios\_test.rb:18:in get\_home\_page' test/in…

---

## [Review: Array\\to\_s fix for : properly handles recursive array](https://www.ruby-forum.com/t/review-array-to-s-fix-for-properly-handles-recursive-array/167733)

<div class="topic-metadata">

**Author:** [@Tim\_CSSSDO](https://www.ruby-forum.com/u/Tim_CSSSDO)\
**Replies:** 5\
**Last updated:** [May 12, 2009, 9:25am UTC](https://www.ruby-forum.com/t/review-array-to-s-fix-for-properly-handles-recursive-array/167733 "2009-05-12T09:25:12Z")

</div>

http://github.com/tnachen/ironruby/commit/eeaf82a8d833c763fc617b602cd7415cb228a0f6 Modified IListOps to fix the recursive array problem during to\_s call. It used to only print the values in the array, and skip over arr…

---

## [Time with arbitrary offset](https://www.ruby-forum.com/t/time-with-arbitrary-offset/166457)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 8\
**Last updated:** [May 12, 2009, 9:10am UTC](https://www.ruby-forum.com/t/time-with-arbitrary-offset/166457 "2009-05-12T09:10:30Z")

</div>

Time e$B$G!"%\*%V%8%’%/%HKh$KG$0U$N;~:9$r;XDj$G$-$k$h$&$K$9$k$Ne(B e$B$O$I$&$G$7$g$&$+!#e(B e$B$?$H$($P!"$R$H$D$NMQK!$H$7$F!“e(B\[ruby-core:23036\] e$B$G$b=R$Y$^$7e(B e$B$?$,!“e(Bweb application e$B$G;~9o$r%f!\<%6$KI=\<($9…

---

## [Code Review: New](https://www.ruby-forum.com/t/code-review-new/167737)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 8:39am UTC](https://www.ruby-forum.com/t/code-review-new/167737 "2009-05-12T08:39:13Z")

</div>

tfpt review “/shelveset:New;REDMOND\\tomat” Mostly Ruby changes and a couple of utility methods in DLR. Fixes class instantiation, including bug http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1085. Several…

---

## [How to Face an Interview?](https://www.ruby-forum.com/t/how-to-face-an-interview/167743)

<div class="topic-metadata">

**Author:** [@Jaggu\_BN](https://www.ruby-forum.com/u/Jaggu_BN)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 7:05am UTC](https://www.ruby-forum.com/t/how-to-face-an-interview/167743 "2009-05-12T07:05:32Z")

</div>

Introduction Interview Tips How to Face an Interview Tips for a Successful Interview Sample Interview Questions Seven Tips for Interview. check this site to get more benefits in Interview. http://www.netinfocentre…

---

## [Review: ActiveSupport bug fixes](https://www.ruby-forum.com/t/review-activesupport-bug-fixes/167705)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 5:04am UTC](https://www.ruby-forum.com/t/review-activesupport-bug-fixes/167705 "2009-05-12T05:04:55Z")

</div>

---

## [\[Bug #1464\] backport request to ruby\_1\_9\_1](https://www.ruby-forum.com/t/bug-1464-backport-request-to-ruby-1-9-1/167739)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 4:14am UTC](https://www.ruby-forum.com/t/bug-1464-backport-request-to-ruby-1-9-1/167739 "2009-05-12T04:14:36Z")

</div>

Bug #1464: backport request to ruby\_1\_9\_1 http://redmine.ruby-lang.org/issues/show/1464 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., Target version: 1.9.1 ruby -v:…

---

## [One Die Game (#203)](https://www.ruby-forum.com/t/one-die-game-203/166980)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [May 12, 2009, 12:42am UTC](https://www.ruby-forum.com/t/one-die-game-203/166980 "2009-05-12T00:42:18Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [ANN: Rake 0.8.4 Released](https://www.ruby-forum.com/t/ann-rake-0-8-4-released/161985)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 4\
**Last updated:** [May 11, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/ann-rake-0-8-4-released/161985 "2009-05-11T23:10:47Z")

</div>

= Rake 0.8.4 Released Rake version 0.8.4 is a bug-fix release of rake. NOTE: The version of Rake that comes with Ruby 1.9 has diverged slightly from the core Rake code base. Rake 0.8.4 will work with Ruby 1.9, but i…

---

## [File.basename bug?](https://www.ruby-forum.com/t/file-basename-bug/167694)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 6\
**Last updated:** [May 11, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/file-basename-bug/167694 "2009-05-11T22:35:39Z")

</div>

How often do people get bitten by this? When operating on a file in the current directory, ‘./’ must be prepended to a filename for File.basename to work… or is this unexpected behavior? $ cat bug.rb DATAFORMAT\_VERS…

---

## [Help with \<\<-EOF](https://www.ruby-forum.com/t/help-with-eof/167699)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 5\
**Last updated:** [May 11, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/help-with-eof/167699 "2009-05-11T20:35:43Z")

</div>

Hi, I have a piece of code like: xmlData=\<\<-EOF xml code EOF I need to change it into: xmlData=" xml code " but I don’t know why… it doesn’t work when I change it into a normal string. Any idea?

---

## [Jruby-3623](https://www.ruby-forum.com/t/jruby-3623/167666)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 3\
**Last updated:** [May 11, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/jruby-3623/167666 "2009-05-11T19:15:14Z")

</div>

Writing about http://jira.codehaus.org/browse/JRUBY-3623 here as I cannot add more comments in jira… I dont want to harp on about this one too much, but… a jar file is defined by having additional metadata inside it …

---

## [Problems with compiling Ruby files](https://www.ruby-forum.com/t/problems-with-compiling-ruby-files/167692)

<div class="topic-metadata">

**Author:** [@Fouad\_M](https://www.ruby-forum.com/u/Fouad_M)\
**Replies:** 1\
**Last updated:** [May 11, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/problems-with-compiling-ruby-files/167692 "2009-05-11T19:09:22Z")

</div>

Hello, I am trying to compile ruby code files to class files and use them directly from java applications. I have a problem with method signatures, I looked into the jruby code and discovered the signature method, …

---

## [Regexp simple question](https://www.ruby-forum.com/t/regexp-simple-question/167690)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 5\
**Last updated:** [May 11, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/regexp-simple-question/167690 "2009-05-11T18:06:12Z")

</div>

Hi, I’m using the following regexp to capture a particular string from a japanese website content. / .?(\[^\<\]?)\</li\>/m The following is the match result. å¥³æ€§ / Is there a way I can remove the slash(’/’) from my re…

---

## [Gem uninstall activesupport specific version - how to?](https://www.ruby-forum.com/t/gem-uninstall-activesupport-specific-version-how-to/167678)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 1\
**Last updated:** [May 11, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/gem-uninstall-activesupport-specific-version-how-to/167678 "2009-05-11T16:58:36Z")

</div>

Hi, I have 3 versions of activesupport installed on my machine (2.2.2, 2.1.0, 1.4.4). Im looking to uninstall 2.2.2. I did ‘gem uninstall activesupport’ thinking it will give me options to choose which version I want…

---

## [AuthenticationFailed error with Net::SSH::Gateway](https://www.ruby-forum.com/t/authenticationfailed-error-with-net-gateway/167232)

<div class="topic-metadata">

**Author:** [@joemanfoo](https://www.ruby-forum.com/u/joemanfoo)\
**Replies:** 1\
**Last updated:** [May 11, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/authenticationfailed-error-with-net-gateway/167232 "2009-05-11T16:49:07Z")

</div>

Hello I wrote up a script that will connect to a remote Linux system and run some commands. Now I need to use the Net::SSH::Gateway gem to connect to a host, and use that as a portal to SSH to another system. Normal…

---

## [Too many open files](https://www.ruby-forum.com/t/too-many-open-files/167418)

<div class="topic-metadata">

**Author:** [@qilu](https://www.ruby-forum.com/u/qilu)\
**Replies:** 6\
**Last updated:** [May 11, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/too-many-open-files/167418 "2009-05-11T15:22:59Z")

</div>

I am writing an application server using TCP server which can only accept upto 249 client connections. After that, I get ‘Error: Too many open files…’. I run my server in Windows XP. Windows XP has a limit of 255 file…

---

## [CGI help](https://www.ruby-forum.com/t/cgi-help/167525)

<div class="topic-metadata">

**Author:** [@jeffl](https://www.ruby-forum.com/u/jeffl)\
**Replies:** 18\
**Last updated:** [May 11, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/cgi-help/167525 "2009-05-11T15:19:57Z")

</div>

So, I am trying ot read the contents of a file and format the contents there into a CGI form. At 6PM on A friday hough, I am just not seeing my errors - appreciate another srt of eyes! require “cgi” Filename = ‘clas…

---

## [Gsub pattern substitution and ${...}](https://www.ruby-forum.com/t/gsub-pattern-substitution-and/167646)

<div class="topic-metadata">

**Author:** [@sackerson](https://www.ruby-forum.com/u/sackerson)\
**Replies:** 7\
**Last updated:** [May 11, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/gsub-pattern-substitution-and/167646 "2009-05-11T14:48:37Z")

</div>

I’m trying to escape a URI that is matched by a regular expression with gsub. In irb, here’s my string: s = “” =\> “” Now I want to match href=“…” or href=‘…’ and then URI.escape the characters withing the q…

---

## [Newbie has trouble setting up redmine](https://www.ruby-forum.com/t/newbie-has-trouble-setting-up-redmine/167640)

<div class="topic-metadata">

**Author:** [@Jar\_Sconce](https://www.ruby-forum.com/u/Jar_Sconce)\
**Replies:** 1\
**Last updated:** [May 11, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/newbie-has-trouble-setting-up-redmine/167640 "2009-05-11T14:35:43Z")

</div>

Hello, I’m 100% new to anything related to ruby, and I’m trying to set up redmine for tocket management. I’m doing this on Mac OS X 10.5 Server (Leopard), with the following installed: ruby 1.8.7 (2009-04-08 patchlev…

---

## [How to get rdoc documentation with merb\_generator?](https://www.ruby-forum.com/t/how-to-get-rdoc-documentation-with-merb-generator/196958)

<div class="topic-metadata">

**Author:** [@Gernot\_H](https://www.ruby-forum.com/u/Gernot_H)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-get-rdoc-documentation-with-merb-generator/196958 "2009-05-11T13:50:30Z")

</div>

Hi all, Our company spent a year programming with hardly any documentation. I’ve spent the last two weeks adding this in rdoc format to the controller and various library files. So now I need to generate the actual d…

---

## [Who added this to my $PATH?](https://www.ruby-forum.com/t/who-added-this-to-my-path/167381)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 9\
**Last updated:** [May 11, 2009, 11:46am UTC](https://www.ruby-forum.com/t/who-added-this-to-my-path/167381 "2009-05-11T11:46:27Z")

</div>

I’ve just found the following line in my ~/.bashrc: PATH=$PATH:~/.gem/ruby/1.8/bin Now, that’s vey beautiful. Instead of cluttering /usr/bin, everythig goes in ~/.gem/ruby/1.8/bin. But I wonder. Who added this line t…

---

## [Initialization of class when inhereted](https://www.ruby-forum.com/t/initialization-of-class-when-inhereted/167675)

<div class="topic-metadata">

**Author:** [@alexp](https://www.ruby-forum.com/u/alexp)\
**Replies:** 1\
**Last updated:** [May 11, 2009, 11:31am UTC](https://www.ruby-forum.com/t/initialization-of-class-when-inhereted/167675 "2009-05-11T11:31:15Z")

</div>

Hi! class BaseClass def BaseClass.initialization\_for\_derived\_class @var = do\_something end end class DerivedClass \< BaseClass end I’d like to initialize @var in DerivedClass. Is there some way to run initializat…

---

## [Communicate with a daemon](https://www.ruby-forum.com/t/communicate-with-a-daemon/167641)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 4\
**Last updated:** [May 11, 2009, 11:16am UTC](https://www.ruby-forum.com/t/communicate-with-a-daemon/167641 "2009-05-11T11:16:46Z")

</div>

Hello everyone, After daemonize a Ruby process (thanks Ruby version 1.9), it is possible to communicate with on the same machine by using socket on localhost. Do you know some other methods instead of socket? Thanks. …

---

## [\[ANN\] Rumai 3.0.0](https://www.ruby-forum.com/t/ann-rumai-3-0-0/167673)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 10:38am UTC](https://www.ruby-forum.com/t/ann-rumai-3-0-0/167673 "2009-05-11T10:38:55Z")

</div>

Rumai 3.0.0 Ruby interface to the wmii window manager http://snk.tuxfamily.org/lib/rumai/ Rumai is a \[1\]Ruby interface to the \[2\]wmii window manager. \* It excels at dynam…

---

## [Popup handling in FireWatir](https://www.ruby-forum.com/t/popup-handling-in-firewatir/167671)

<div class="topic-metadata">

**Author:** [@sindhu\_watir](https://www.ruby-forum.com/u/sindhu_watir)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 10:37am UTC](https://www.ruby-forum.com/t/popup-handling-in-firewatir/167671 "2009-05-11T10:37:28Z")

</div>

Hi, I am working on firewatir.and i tried using following code to handle popup ff.image(:alt , “SUBMIT button”).click\_no\_wait ff.click\_jspopup\_button(“OK”) But i am getting the error----------NoMethodError: undefined …

---

## [Reading mp3 Tag](https://www.ruby-forum.com/t/reading-mp3-tag/167598)

<div class="topic-metadata">

**Author:** [@catsquotl](https://www.ruby-forum.com/u/catsquotl)\
**Replies:** 2\
**Last updated:** [May 11, 2009, 10:35am UTC](https://www.ruby-forum.com/t/reading-mp3-tag/167598 "2009-05-11T10:35:58Z")

</div>

Hi, I am taking a free course on Ruby and encountered a behavior i don\`t understand… this code produces jibberish on standard output f1 = File.open(“song.mp3”,‘r’) tag = f1.read\[-128…-1\] puts tag.dump produces “\]o\\…

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

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