# Ruby

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

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

---

## [Desperate help needed with SSH](https://www.ruby-forum.com/t/desperate-help-needed-with-ssh/167857)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [May 18, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/desperate-help-needed-with-ssh/167857 "2009-05-18T23:08:01Z")

</div>

Hi you Ruby Guru’s I have a small problem thats driving me crazy. I am trying to connect to multiple ssh servers (1 at a time), run a number of commands and capture the output to a unique file for each server. My cod…

---

## [What could be improved in Ruby for Science?](https://www.ruby-forum.com/t/what-could-be-improved-in-ruby-for-science/167874)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 19\
**Last updated:** [May 18, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/what-could-be-improved-in-ruby-for-science/167874 "2009-05-18T21:20:12Z")

</div>

Hello, I’ve noticed that languages such as Python are becoming more and more fashionable with the Scientific communities, along side more hard core classics like Fortran and Java. Do you think Ruby is missing some p…

---

## [EventMachine or GServer?](https://www.ruby-forum.com/t/eventmachine-or-gserver/168185)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 4\
**Last updated:** [May 18, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/eventmachine-or-gserver/168185 "2009-05-18T18:31:33Z")

</div>

I wrote my nifty server in GServer, but just stumbled on EventMachine. Is EM better than my GServer implementation (i guess it is :)) class GameServer \< GServer def initialize(\*args) super(\*args) end def serve(io) …

---

## [Checking ruby out from svn?](https://www.ruby-forum.com/t/checking-ruby-out-from-svn/168190)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 1\
**Last updated:** [May 18, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/checking-ruby-out-from-svn/168190 "2009-05-18T16:06:22Z")

</div>

I’m trying to pull out stuff from ruby’s svn repository and following the instructions at… http://www.ruby-lang.org/en/community/ruby-core/ I get… svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby svn: Server se…

---

## [Reading time from excel file](https://www.ruby-forum.com/t/reading-time-from-excel-file/168230)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 0\
**Last updated:** [May 18, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/reading-time-from-excel-file/168230 "2009-05-18T16:01:18Z")

</div>

Hi, How to read time format from excel file. please reply me

---

## [Trouble installing gems with jruby 1.1.6](https://www.ruby-forum.com/t/trouble-installing-gems-with-jruby-1-1-6/159553)

<div class="topic-metadata">

**Author:** [@Stefan\_Magnus\_Landr](https://www.ruby-forum.com/u/Stefan_Magnus_Landr)\
**Replies:** 6\
**Last updated:** [May 18, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/trouble-installing-gems-with-jruby-1-1-6/159553 "2009-05-18T15:42:50Z")

</div>

I’m trying to install rails with 1.1.6 on windows xp, but I get the following issue, probably due to the Ã¸ in my last name: This is the output from jruby C:\\jruby-1.1.6\\bin\>jruby -S gem install rails JRuby limited o…

---

## [Can't install Mogrel under Window](https://www.ruby-forum.com/t/cant-install-mogrel-under-window/120413)

<div class="topic-metadata">

**Author:** [@hbuckler](https://www.ruby-forum.com/u/hbuckler)\
**Replies:** 4\
**Last updated:** [May 18, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/cant-install-mogrel-under-window/120413 "2009-05-18T15:07:22Z")

</div>

I want to serve my pages using Mongrel and Apache. When trying to install fastthread-1.0.1 I get the following error message: Building native extensions. This could take a while… ERROR: While executing gem … (Runti…

---

## ["Too many open files - socket(2)" when invoking Socket.new](https://www.ruby-forum.com/t/too-many-open-files-socket-2-when-invoking-socket-new/167883)

<div class="topic-metadata">

**Author:** [@clemens](https://www.ruby-forum.com/u/clemens)\
**Replies:** 3\
**Last updated:** [May 18, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/too-many-open-files-socket-2-when-invoking-socket-new/167883 "2009-05-18T14:49:17Z")

</div>

Given the follwing code snippet: require ‘socket’ include Socket::Constants socket = Socket.new( AF\_INET, SOCK\_STREAM, 0 ) sockaddr = Socket.pack\_sockaddr\_in( 1313, ‘localhost’ ) socket.bind( sockaddr ) socket.list…

---

## [MP4Info Initial Release](https://www.ruby-forum.com/t/mp4info-initial-release/65247)

<div class="topic-metadata">

**Author:** [@Jason\_Terk](https://www.ruby-forum.com/u/Jason_Terk)\
**Replies:** 1\
**Last updated:** [May 18, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/mp4info-initial-release/65247 "2009-05-18T14:48:30Z")

</div>

Hello Rubyists, I would like to announce the release of my first Ruby project: MP4Info. Please use and abuse the library and please give me any hints, tips and tricks to make a better mousetrap; I haven’t been in the…

---

## [GC$B$NLdBj(B](https://www.ruby-forum.com/t/gc-b-nldbj-b/167949)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 18, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/gc-b-nldbj-b/167949 "2009-05-18T14:03:29Z")

</div>

ã‘ã„ã˜ã‚…ï¼ ã„ã—ã¤ã‹ã§ã™. æ·»ä»˜ã®ãƒ—ãƒ­ã‚°ãƒ©ãƒ ã‚’å®Ÿè¡Œã™ã‚‹ã¨. ã»ã¨ã‚“ã©ã®ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆ(æ–‡å­—åˆ—)ãŒGCã§å›žåŽ ã•ã‚Œãªã„ã¾ã¾æ®‹ã£ã¦ã—ã¾ã„ã¾ã™. ã“ã‚Œã£ã¦, rubyå´ã§ã‚‚ã£ã¨åŠ…

---

## [\[OT\] Interesting DLR links?](https://www.ruby-forum.com/t/ot-interesting-dlr-links/167936)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 4\
**Last updated:** [May 18, 2009, 12:31pm UTC](https://www.ruby-forum.com/t/ot-interesting-dlr-links/167936 "2009-05-18T12:31:23Z")

</div>

Hi, I believe DLR-proficient folks are on the list, so I’d like to ask althought it’s off-topic: have you got interesting DLR resources handy ? I’m mostly looking for articles or documentation related to 1/ building …

---

## [File grep](https://www.ruby-forum.com/t/file-grep/112257)

<div class="topic-metadata">

**Author:** [@abhijeet](https://www.ruby-forum.com/u/abhijeet)\
**Replies:** 7\
**Last updated:** [May 18, 2009, 9:21am UTC](https://www.ruby-forum.com/t/file-grep/112257 "2009-05-18T09:21:47Z")

</div>

I have a file that has a list of filenames- filenames.txt I have another file that has list of all the files in the system with their complete filepaths - allfilespath.txt I want to print the fullpaths of all the file…

---

## [Jruby 1.3.0RC1 is broken for drb](https://www.ruby-forum.com/t/jruby-1-3-0rc1-is-broken-for-drb/168051)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 5\
**Last updated:** [May 18, 2009, 7:53am UTC](https://www.ruby-forum.com/t/jruby-1-3-0rc1-is-broken-for-drb/168051 "2009-05-18T07:53:37Z")

</div>

Hi, Is this known issue? Is there work around? \[manish@alioth rubyexperiments\]$ jruby server.rb /opt/jruby/lib/ruby/1.8/drb/drb.rb:968:in set\_sockopt': JRuby only supports F\_SETFL for fcntl/ioctl currently (NotImpleme…

---

## [Question about Mini\_Magick and mogrify](https://www.ruby-forum.com/t/question-about-mini-magick-and-mogrify/168187)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [May 18, 2009, 12:47am UTC](https://www.ruby-forum.com/t/question-about-mini-magick-and-mogrify/168187 "2009-05-18T00:47:57Z")

</div>

Hi. I’m trying to write a caption to an image in my Rails Project. From http://www.imagemagick.org this is something I should use: width=identify -format %w dragon.jpg; convert -background ‘#0008’ -fill white -gravi…

---

## [Ruby-oci8 1.0.6 and 2.0.2](https://www.ruby-forum.com/t/ruby-oci8-1-0-6-and-2-0-2/168170)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 2\
**Last updated:** [May 18, 2009, 12:33am UTC](https://www.ruby-forum.com/t/ruby-oci8-1-0-6-and-2-0-2/168170 "2009-05-18T00:33:54Z")

</div>

Ruby-oci8 1.0.6 and 2.0.2 are released. These are Oracle modules using OCI8 API. http://rubyforge.org/projects/ruby-oci8/ Ruby-oci8 1.0.6 is a latest stable release. The target ruby version is 1.8. It doesn’t work wi…

---

## [Windows character in rails log filename. From glassfish?](https://www.ruby-forum.com/t/windows-character-in-rails-log-filename-from-glassfish/168182)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 0\
**Last updated:** [May 17, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/windows-character-in-rails-log-filename-from-glassfish/168182 "2009-05-17T22:33:51Z")

</div>

I’ve just moved a rails app to Linux from Windows. I run it with jruby and the glassfish gem. All is good, except that at start-up it produces two .log files. production.log production?.log and proceeds to write to …

---

## [File.write a long line](https://www.ruby-forum.com/t/file-write-a-long-line/168149)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 4\
**Last updated:** [May 17, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/file-write-a-long-line/168149 "2009-05-17T19:56:07Z")

</div>

I notice you can do this with print: print “blah blah”, “and so on” but not with File.write, except file.write “blah blah / and so on” which is no good cause it includes all the whitespace. I guess I can live wit…

---

## [Big Words (#204)](https://www.ruby-forum.com/t/big-words-204/167511)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [May 17, 2009, 7:41pm UTC](https://www.ruby-forum.com/t/big-words-204/167511 "2009-05-17T19:41:01Z")

</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…

---

## [Ruby/Tk](https://www.ruby-forum.com/t/ruby-tk/168083)

<div class="topic-metadata">

**Author:** [@graycardinal](https://www.ruby-forum.com/u/graycardinal)\
**Replies:** 4\
**Last updated:** [May 17, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/ruby-tk/168083 "2009-05-17T17:25:30Z")

</div>

Hi ! I have a trouble. require “tk” class Main def initialize @root = TkRoot.new { title “prog” } top = TkToplevel.new @edit = TkEntry.new(top) { pack } cmd = proc { puts @edit.get } button = TkButton.new(@ro…

---

## [Sample Interview Questions!](https://www.ruby-forum.com/t/sample-interview-questions/168174)

<div class="topic-metadata">

**Author:** [@Jaggu\_BN](https://www.ruby-forum.com/u/Jaggu_BN)\
**Replies:** 0\
**Last updated:** [May 17, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/sample-interview-questions/168174 "2009-05-17T16:55:35Z")

</div>

Most preferred Interview Questions, check for details. http://www.netinfocentre.com/InterviewSkills.html Good Luck

---

## [Minimal jruby.jar](https://www.ruby-forum.com/t/minimal-jruby-jar/168135)

<div class="topic-metadata">

**Author:** [@Michal\_Hantl](https://www.ruby-forum.com/u/Michal_Hantl)\
**Replies:** 4\
**Last updated:** [May 17, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/minimal-jruby-jar/168135 "2009-05-17T15:07:45Z")

</div>

Hello, I am working on a project that uses JRuby inside an applet to work with JavaScript. I started taking parts of the jruby jar by commenting line in the ant build.xml. So far so good - size went down to 5297kB. I…

---

## [Parse rss feeds with multiple enclosures per item](https://www.ruby-forum.com/t/parse-rss-feeds-with-multiple-enclosures-per-item/196962)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 17, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/parse-rss-feeds-with-multiple-enclosures-per-item/196962 "2009-05-17T12:07:58Z")

</div>

Hi, Does anybody know how I may parse an rss feed with multiple enclosures per item. I ve tried the ruby build in rss class, but that one only seems to support one enclosure per item? Thanks a lot in advance… Volke…

---

## [Net::SSH to login into a server with a public key](https://www.ruby-forum.com/t/net-ssh-to-login-into-a-server-with-a-public-key/168100)

<div class="topic-metadata">

**Author:** [@adad](https://www.ruby-forum.com/u/adad)\
**Replies:** 2\
**Last updated:** [May 17, 2009, 10:38am UTC](https://www.ruby-forum.com/t/net-ssh-to-login-into-a-server-with-a-public-key/168100 "2009-05-17T10:38:25Z")

</div>

Hi, I have a remote server B which can only accessed via server A through a public key. Is there a way to do this in net/ssh ? I have started an SSH session for A Net::SSH.start(“ServerA”,“username”,:password=\>“xyz”…

---

## [\[Bug #1442\] indentation check and coverage for toplevel do not work](https://www.ruby-forum.com/t/bug-1442-indentation-check-and-coverage-for-toplevel-do-not-work/167401)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 4\
**Last updated:** [May 17, 2009, 7:28am UTC](https://www.ruby-forum.com/t/bug-1442-indentation-check-and-coverage-for-toplevel-do-not-work/167401 "2009-05-17T07:28:21Z")

</div>

Bug #1442: indentation check and coverage for toplevel do not work http://redmine.ruby-lang.org/issues/show/1442 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: rub…

---

## [Re: Code Review: Fix for File.print misbehavior](https://www.ruby-forum.com/t/re-code-review-fix-for-file-print-misbehavior/168154)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [May 17, 2009, 7:27am UTC](https://www.ruby-forum.com/t/re-code-review-fix-for-file-print-misbehavior/168154 "2009-05-17T07:27:10Z")

</div>

I would be opposed to making the MSpec runner depend on any more stdlibs. I would suggest making a helper that swaps the IOStub with the real stdout for the duration of a block. JD …there is no try Sent from my phon…

---

## [$0 is truncated](https://www.ruby-forum.com/t/0-is-truncated/168131)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 10\
**Last updated:** [May 17, 2009, 3:16am UTC](https://www.ruby-forum.com/t/0-is-truncated/168131 "2009-05-17T03:16:08Z")

</div>

If I assign a new value to $0, I find it is truncated. $ cat test-dollar0.rb puts $0 str = “/foo” \* 20 puts str.size $0 = str puts $0 puts $0.size $ ruby test-dollar0.rb test-dollar0.rb 80 /foo/foo/foo/foo/foo …

---

## [Broken again on mono](https://www.ruby-forum.com/t/broken-again-on-mono/168123)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [May 17, 2009, 2:46am UTC](https://www.ruby-forum.com/t/broken-again-on-mono/168123 "2009-05-17T02:46:16Z")

</div>

Hi IronRuby is broken again on mono. It throws NullReference Exceptions for a lot of operations. It also complains about something not being bound to $exception Just indicating this in case somebody wants to pick it…

---

## [Console output](https://www.ruby-forum.com/t/console-output/168144)

<div class="topic-metadata">

**Author:** [@hellothere1](https://www.ruby-forum.com/u/hellothere1)\
**Replies:** 9\
**Last updated:** [May 17, 2009, 1:13am UTC](https://www.ruby-forum.com/t/console-output/168144 "2009-05-17T01:13:20Z")

</div>

Hi I am trying to find a way to output text in a console on the same spot many times. I have a table with data (multiline) and need the numbers in it to change every second, but the numbers should be at the same spot. …

---

## [Any current preprocessor/Ruby language add-ons?](https://www.ruby-forum.com/t/any-current-preprocessor-ruby-language-add-ons/167794)

<div class="topic-metadata">

**Author:** [@cruby](https://www.ruby-forum.com/u/cruby)\
**Replies:** 15\
**Last updated:** [May 17, 2009, 1:05am UTC](https://www.ruby-forum.com/t/any-current-preprocessor-ruby-language-add-ons/167794 "2009-05-17T01:05:41Z")

</div>

This is kind of a wide-ranging question but for some fairly specific purposes. I’m curious what project people are working on with respect to the Ruby language, compiler, or any preprocessors. Specifically I want to …

---

## [BigDecimal singletons](https://www.ruby-forum.com/t/bigdecimal-singletons/168148)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 1\
**Last updated:** [May 16, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/bigdecimal-singletons/168148 "2009-05-16T22:52:49Z")

</div>

Hi, I’m a ruby nuby and I’m confused about something. When I try to create a singleton method for a BigDecimal like so: require ‘bigdecimal’ d = BigDecimal.new(‘10’) class \<\< d def value 32 end end p.value I …

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

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