# Ruby

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

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

---

## [Node.h](https://www.ruby-forum.com/t/node-h/151465)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/node-h/151465 "2008-10-21T21:29:45Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!$9$\_$^$;$s!$e(Bnode.h e$B$H$+$C$F7k6I$I$&$J$C$?$s$G$7$?$C$1!%e(B e$B!!@hF|$N%\*%U%i%$%s%\_!\<%F%#%s%0$N%m%0$rK;$7$5$K$+$^$1$F=q$$$F$J$$$s$Ge(B e$B$9$,!$e(Bm17n e$B\<~$j$O$J$k$;$5$s$,$^$H$a$F$/$l$…

---

## [Sugestion - Background process](https://www.ruby-forum.com/t/sugestion-background-process/151451)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/sugestion-background-process/151451 "2008-10-21T21:29:44Z")

</div>

Before reply Backgroundrb, leaves to explain my situation. I need make a feed reader, and obvious, she need refreshing the feeds registreds. Everything is running smoothly, and for to make the updater, I used Backgrou…

---

## [Ruby on Rails Programmer - Austin, TX](https://www.ruby-forum.com/t/ruby-on-rails-programmer-austin-tx/151453)

<div class="topic-metadata">

**Author:** [@heathers](https://www.ruby-forum.com/u/heathers)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-programmer-austin-tx/151453 "2008-10-21T18:51:09Z")

</div>

Ruby on Rails Programmer - Otherinbox OtherInbox is looking to hire an experienced Ruby On Rails Programmer to join our team. We are looking for a highly motivated, goal-oriented individual who will be responsible for…

---

## [Ruby on Rails Jr Programmer - Austin, TX](https://www.ruby-forum.com/t/ruby-on-rails-jr-programmer-austin-tx/151452)

<div class="topic-metadata">

**Author:** [@heathers](https://www.ruby-forum.com/u/heathers)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-jr-programmer-austin-tx/151452 "2008-10-21T18:50:29Z")

</div>

Ruby on Rails Junior Programmer/Tester - Otherinbox OtherInbox is looking to hire an experienced Ruby On Rails Junior Programmer/Tester to join our team. We are looking for a highly motivated, goal-oriented individual…

---

## [Code Review: RandomRubyFixes04](https://www.ruby-forum.com/t/code-review-randomrubyfixes04/151446)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/code-review-randomrubyfixes04/151446 "2008-10-21T18:48:07Z")

</div>

tfpt review “/shelveset:RandomRubyFixes04;REDMOND\\curth” Comment : Eliminated static field BasicSocket.DoNotReverseLookup in favor of a property on the context. Fixed two variants of String.slice! to work the same (…

---

## [Ruby way to take some action only once in a loop?](https://www.ruby-forum.com/t/ruby-way-to-take-some-action-only-once-in-a-loop/151433)

<div class="topic-metadata">

**Author:** [@rubyfox](https://www.ruby-forum.com/u/rubyfox)\
**Replies:** 7\
**Last updated:** [October 21, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/ruby-way-to-take-some-action-only-once-in-a-loop/151433 "2008-10-21T18:18:47Z")

</div>

This example is slightly contrived, but I hope it does illustrate the question. Say you’re generating table from an array and want to output header row only if there will be actual rows in the table. Basically I woul…

---

## [Counting](https://www.ruby-forum.com/t/counting/151196)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 17\
**Last updated:** [October 21, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/counting/151196 "2008-10-21T17:16:38Z")

</div>

How would i go about making Ruby count to say 1000 usin only multiples of say 2 and 6. Then i am looking to add all of the outputted numbers. Can anyone help

---

## [Problems with "scruffy"](https://www.ruby-forum.com/t/problems-with-scruffy/151440)

<div class="topic-metadata">

**Author:** [@kaizen](https://www.ruby-forum.com/u/kaizen)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/problems-with-scruffy/151440 "2008-10-21T15:06:38Z")

</div>

Hi, I’ve the last one-click installer and the scruffy gem. And if I try to run this example script: require ‘rubygems’ require ‘scruffy’ graph = Scruffy::Graph.new graph.title = “Favourite Snacks” graph.renderer =…

---

## [Prob with ranges](https://www.ruby-forum.com/t/prob-with-ranges/151264)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 8\
**Last updated:** [October 21, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/prob-with-ranges/151264 "2008-10-21T14:41:52Z")

</div>

i looked at an example rng.each {| i | block } -\> rng Iterates over the elements rng, passing each in turn to the block. (10…15).each do |n| print n, ’ ’ end produces: 10 11 12 13 14 15 when i try the same, it doe…

---

## [ConverterNotFoundError while making Ruby in Windows(trunk)](https://www.ruby-forum.com/t/converternotfounderror-while-making-ruby-in-windows-trunk/151198)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 12\
**Last updated:** [October 21, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/converternotfounderror-while-making-ruby-in-windows-trunk/151198 "2008-10-21T14:33:06Z")

</div>

e$B=uED$G$9!#e(B e$BNc$K$h$C$FJs9p$@$1$G$9!#e(B Cygwin e$B\>e$Ge(B CC=‘gcc -mno-cygwin’ e$B$G%3%s%Q%$%k$7$?$H$-$Ke(B e$B3HD%%i%$%V%i%je(Bdbme$B$N%3%s%Q%$%k$Ge(BEncoding::ConverterNotFoundError e$B$,=P$F\<:GT$7$^$9!#e(B …

---

## [DRB: can't run subshell in drb server?](https://www.ruby-forum.com/t/drb-cant-run-subshell-in-drb-server/151437)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/drb-cant-run-subshell-in-drb-server/151437 "2008-10-21T13:30:14Z")

</div>

Hi, I have a script with puts %x{echo hi} When run normally it works. When run under a drb server that was started with the root user (sudo), it works. But when run under a drb server that was started with a normal…

---

## [New opportunities To get jobs](https://www.ruby-forum.com/t/new-opportunities-to-get-jobs/151435)

<div class="topic-metadata">

**Author:** [@delhi\_institute\_of\_S](https://www.ruby-forum.com/u/delhi_institute_of_S)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/new-opportunities-to-get-jobs/151435 "2008-10-21T13:05:31Z")

</div>

Delhi Institute of Management & Services Dear friends, We are extremely happy to welcome you to the world of Management… We are in the process of preparing some 5 minutes revision Q & A type lessons for management st…

---

## [$BB0@-CM$N$?$a$N(B xml: :attr](https://www.ruby-forum.com/t/bb0-cm-n-a-n-b-xml-attr/151430)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/bb0-cm-n-a-n-b-xml-attr/151430 "2008-10-21T12:31:28Z")

</div>

At 17:31 08/10/21, Tanaka A. wrote: xml: :attr e$B$rE,MQ$7$?7k2L$rB0@-CMA4BN$H$7$F;HMQ$9$k$N$,$\*A&e(B e$B$a$G$9!#e(B e$B@h$:!"$3$l$OMQ8l$NLdBj$@$1$+$b$7$l$^$;$s$,!"e(B e$BB0@-CM$O0zMQIt$NCf$N$b$N$G!"0zMQId$r4^$\_$^$…

---

## [Macos sucking up the universe!](https://www.ruby-forum.com/t/macos-sucking-up-the-universe/151418)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 11:31am UTC](https://www.ruby-forum.com/t/macos-sucking-up-the-universe/151418 "2008-10-21T11:31:32Z")

</div>

Hello! I have a small ppc MacMini, and I decided to try and get a nice Ruby environment on it. It shipped with 1.8.2 and no Gems. So I downloaded RubyGems and ran setup.rb. It told me: uninitialized constant Gem::E…

---

## [Instance counter](https://www.ruby-forum.com/t/instance-counter/151128)

<div class="topic-metadata">

**Author:** [@pierrebombay](https://www.ruby-forum.com/u/pierrebombay)\
**Replies:** 20\
**Last updated:** [October 21, 2008, 11:26am UTC](https://www.ruby-forum.com/t/instance-counter/151128 "2008-10-21T11:26:15Z")

</div>

Please forgive the trite nature of this question, I’m new to ruby and OO programming in general. I’m looking to create a counter that keeps track of the number of instances created from one class (++ would we access t…

---

## [Encrypting using openssl Triple-DES](https://www.ruby-forum.com/t/encrypting-using-openssl-triple-des/151359)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 10:51am UTC](https://www.ruby-forum.com/t/encrypting-using-openssl-triple-des/151359 "2008-10-21T10:51:38Z")

</div>

Hi, I need to encrypt some data using Triple DES in ECB mode (DES-EDE3-ECB), but I don’t know how to do it. If I create the cipher like this: e = OpenSSL::Cipher::Cipher.new ‘DES-EDE3’ It seems (man enc) that des-ede…

---

## [Can anyone tell me why my code isn't working?](https://www.ruby-forum.com/t/can-anyone-tell-me-why-my-code-isnt-working/151399)

<div class="topic-metadata">

**Author:** [@tcm614ce](https://www.ruby-forum.com/u/tcm614ce)\
**Replies:** 4\
**Last updated:** [October 21, 2008, 10:48am UTC](https://www.ruby-forum.com/t/can-anyone-tell-me-why-my-code-isnt-working/151399 "2008-10-21T10:48:23Z")

</div>

Hi there, For some reason the get\_mac\_by\_printer(host\_name) method isn’t working. All the other bits work, but I have a feeling that I’m running into a problem with variables defined within blocks, but I’m at a loss a…

---

## [GC patch for 1.9 to run in a separate thread](https://www.ruby-forum.com/t/gc-patch-for-1-9-to-run-in-a-separate-thread/151412)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 10:44am UTC](https://www.ruby-forum.com/t/gc-patch-for-1-9-to-run-in-a-separate-thread/151412 "2008-10-21T10:44:36Z")

</div>

All righty. Here is a patch for anyone adventurous \[a diff against ruby 1.9 SVN HEAD\] It runs the garbage collector in a child process–the child discovers any garbage and reports back which objects have no references …

---

## [A new quotation operator to automatically unindent %q and %Q](https://www.ruby-forum.com/t/a-new-quotation-operator-to-automatically-unindent-q-and-q/151293)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 5\
**Last updated:** [October 21, 2008, 10:28am UTC](https://www.ruby-forum.com/t/a-new-quotation-operator-to-automatically-unindent-q-and-q/151293 "2008-10-21T10:28:38Z")

</div>

Hello everyone, Many times I have faced the situation of embedding multi-line strings in my programs while wanting to preserve the indentation of the surrounding code: module Foo class Bar def to\_s %q{ This block…

---

## [Long Division (#180)](https://www.ruby-forum.com/t/long-division-180/151163)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 6\
**Last updated:** [October 21, 2008, 10:15am UTC](https://www.ruby-forum.com/t/long-division-180/151163 "2008-10-21T10:15:50Z")

</div>

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

---

## [Gems (1.3.0) not visible from ruby (1.8.7)](https://www.ruby-forum.com/t/gems-1-3-0-not-visible-from-ruby-1-8-7/151351)

<div class="topic-metadata">

**Author:** [@jonin](https://www.ruby-forum.com/u/jonin)\
**Replies:** 3\
**Last updated:** [October 21, 2008, 8:35am UTC](https://www.ruby-forum.com/t/gems-1-3-0-not-visible-from-ruby-1-8-7/151351 "2008-10-21T08:35:50Z")

</div>

Hi, I’m trying to sftp into another server using net-sftp, but the gems I install are not visible to ruby interpreter. I’ve installed the net-sftp gem, and it shows fine in gem listing (see below), but when I try to …

---

## [REXML and Empty-Elements](https://www.ruby-forum.com/t/rexml-and-empty-elements/151400)

<div class="topic-metadata">

**Author:** [@alphalux](https://www.ruby-forum.com/u/alphalux)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 8:15am UTC](https://www.ruby-forum.com/t/rexml-and-empty-elements/151400 "2008-10-21T08:15:39Z")

</div>

Hello all, I have been using REXML to help me merge some XML files. I noticed that simply opening an XML document and writing it to a file will automatically convert the blank nodes with a start-tag and an end-tag to …

---

## [\[ANN\] rspec-rails 1.1.9 Released](https://www.ruby-forum.com/t/ann-rspec-rails-1-1-9-released/151414)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 7:15am UTC](https://www.ruby-forum.com/t/ann-rspec-rails-1-1-9-released/151414 "2008-10-21T07:15:19Z")

</div>

rspec-rails version 1.1.9 has been released! http://rspec.info/ Behaviour Driven Development for Ruby on Rails. Changes: Version 1.1.9 / 2008-10-20 4 bug fixes require ‘rubygems’ in script/spec fix failure mess…

---

## [Ruby/mysql connection close problem](https://www.ruby-forum.com/t/ruby-mysql-connection-close-problem/151371)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 5:23am UTC](https://www.ruby-forum.com/t/ruby-mysql-connection-close-problem/151371 "2008-10-21T05:23:49Z")

</div>

Hello, I am using the Ruby/mysql module installed from gems and everything is working fine except the connections arent closing. I was under the impression that upon completion of a script the database handle will cl…

---

## [Block method to yield stdout?](https://www.ruby-forum.com/t/block-method-to-yield-stdout/151375)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 3\
**Last updated:** [October 21, 2008, 4:44am UTC](https://www.ruby-forum.com/t/block-method-to-yield-stdout/151375 "2008-10-21T04:44:24Z")

</div>

All, I’ve written a distribution service that spawns processes using IO.popen in a seperate thread for each job. In my Task class, I would like to create a block method such as ‘Task.monitor(mode=“stdout”)’, which wou…

---

## [\[Bug #658\] $B%9%/%j%W%H%(%s%3!\<%G%#%s%0$,(BUTF-8$B$N$H$-(B /\[\\xfe\]/ $B$G(BSEGV](https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250)

<div class="topic-metadata">

**Author:** [@Hiroshi\_M](https://www.ruby-forum.com/u/Hiroshi_M)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 1:57am UTC](https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250 "2008-10-21T01:57:38Z")

</div>

Bug #658: e$B%9%/%j%W%H%(%s%3!\<%G%#%s%0$,e(BUTF-8e$B$N$H$-e(B /\[\\xfe\]/ e$B$Ge(BSEGV http://redmine.ruby-lang.org/issues/show/658 e$B5/I\<\<Te(B: Hiroshi M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%j%S%8%g%se(B…

---

## [\[Bug #669\] nil $B$r0z?t$K$7$F(B Iconv.new $B$r8F$V$H(BSEGV](https://www.ruby-forum.com/t/bug-669-nil-b-r0z-t-k-7-f-b-iconv-new-b-r8f-v-h-bsegv/151398)

<div class="topic-metadata">

**Author:** [@Hiroshi\_M](https://www.ruby-forum.com/u/Hiroshi_M)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 12:07am UTC](https://www.ruby-forum.com/t/bug-669-nil-b-r0z-t-k-7-f-b-iconv-new-b-r8f-v-h-bsegv/151398 "2008-10-21T00:07:43Z")

</div>

Bug #669: nil e$B$r0z?t$K$7$Fe(B Iconv.new e$B$r8F$V$He(BSEGV http://redmine.ruby-lang.org/issues/show/669 e$B5/I\<\<Te(B: Hiroshi M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext, Target version: 1.…

---

## [Re: daemons](https://www.ruby-forum.com/t/re-daemons/151394)

<div class="topic-metadata">

**Author:** [@Chiaming\_H](https://www.ruby-forum.com/u/Chiaming_H)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/re-daemons/151394 "2008-10-20T23:39:35Z")

</div>

Hello, Phy, Maybe I have missed something, but couldn’t you just put the entire process in the background instead of forking it? Something like: jruby scaleMatrix.rb & or doing it with nohup? Cheers, Chiaming H. -…

---

## [Timer](https://www.ruby-forum.com/t/timer/151389)

<div class="topic-metadata">

**Author:** [@angico](https://www.ruby-forum.com/u/angico)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/timer/151389 "2008-10-20T23:36:39Z")

</div>

Hi, All. Can anybody tell me how to implement kind of a timer in Ruby, similar to the following one from Java? timer = new Timer( 200, handler ); // call handler each 200 milliseconds Thank you, – angico home page…

---

## [ApressDailyDeal - Practical Rails Plugins](https://www.ruby-forum.com/t/apressdailydeal-practical-rails-plugins/151336)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/apressdailydeal-practical-rails-plugins/151336 "2008-10-20T23:20:49Z")

</div>

Apress has a daily ebook deal where they discount a single ebook for 24 hours to $10. Recently they’ve been a bunch of older books, today’s is actually relevant and quite new: Practical Rails Plugins (http://rubyurl.…

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

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