# Ruby

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

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

---

## [Rdoc run-time length question](https://www.ruby-forum.com/t/rdoc-run-time-length-question/172101)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 11\
**Last updated:** [July 18, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/rdoc-run-time-length-question/172101 "2009-07-18T13:18:02Z")

</div>

I note that if I don’t delete the relevant /docs dir, then each time I run rdoc on my ruby file it takes longer, and reports the involvement of ever more files. Can someone explain this behavior? It’s dramatic how muc…

---

## [OpenSSL / Persistent connection](https://www.ruby-forum.com/t/openssl-persistent-connection/172243)

<div class="topic-metadata">

**Author:** [@Fabien\_P](https://www.ruby-forum.com/u/Fabien_P)\
**Replies:** 1\
**Last updated:** [July 18, 2009, 12:27pm UTC](https://www.ruby-forum.com/t/openssl-persistent-connection/172243 "2009-07-18T12:27:11Z")

</div>

Hi. I want to have a persistent OpenSSL over a TCPSocket connection. The idea is having a rails website, a backgroundrb daemon. I do keep the connections within Model.something and I reuse them when needed. Sadly the…

---

## [Embed tag with watir](https://www.ruby-forum.com/t/embed-tag-with-watir/172273)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 8:49am UTC](https://www.ruby-forum.com/t/embed-tag-with-watir/172273 "2009-07-18T08:49:40Z")

</div>

One OBJECT is available. The source code for the OBJECT is I need to click the OBJECT. I have tried: $ie.element\_by\_xpath(“//embed\[@id=‘uploaderapi\_swf’\]”) ==\> main.rb:18: undefined method \`click’ for ni…

---

## [Creation of Table Data From Rake](https://www.ruby-forum.com/t/creation-of-table-data-from-rake/172261)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [July 18, 2009, 6:00am UTC](https://www.ruby-forum.com/t/creation-of-table-data-from-rake/172261 "2009-07-18T06:00:06Z")

</div>

I have been posting a topic on the Rails forum but it might not be the right area to post. Therefore, I believe my issue might be more related to Ruby and procedural matters with Rake. To make things as clear as poss…

---

## [Making sure a file isn't being written/copied before moving](https://www.ruby-forum.com/t/making-sure-a-file-isnt-being-written-copied-before-moving/172211)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 7\
**Last updated:** [July 18, 2009, 5:35am UTC](https://www.ruby-forum.com/t/making-sure-a-file-isnt-being-written-copied-before-moving/172211 "2009-07-18T05:35:27Z")

</div>

So, I’m (still) working on some scripts to rename and reorganize my image files. Right now, I have a script on my laptop that pulls images off the CF card and stores them locally. I have another script that rsync’s …

---

## [Trouble with puts](https://www.ruby-forum.com/t/trouble-with-puts/172238)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 9\
**Last updated:** [July 17, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/trouble-with-puts/172238 "2009-07-17T20:45:39Z")

</div>

Hello I have been trying to tranlate an application from java to ruby. The java program has a main method for testing purposes. I am implementing this in ruby as a separate file. While doing this I noticed that pu…

---

## [Ruby$B2q5D:)?F2q$G%j%8%'%/%H$5$l$F$7$^$C$?(B forwardable.rb $B$K$D(B $B$$$F(B](https://www.ruby-forum.com/t/ruby-b2q5d-f2q-g-j-8-h-5-l-f-7-c-b-forwardable-rb-b-k-d-b-b-f-b/172252)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/ruby-b2q5d-f2q-g-j-8-h-5-l-f-7-c-b-forwardable-rb-b-k-d-b-b-f-b/172252 "2009-07-17T15:38:54Z")

</div>

e$B$\*$b$Ke(B, yuguie$B$5$s$Xe(B e$B$1$$$8$e!w$$$7$D$+$G$9e(B. e$BM}M3$O2?$G$7$g$&$+e(B? e$B$^$:e(B, trunke$B$N$rJQ99$7$?M}M3$G$9$,e(B: – \[ruby-dev:36228\]e$B$+$i$N0zMQe(B trunke$B$NHG$G$Oe(B, SingleForwardable e$B$r$…

---

## [I have some Ruby math questions that need answering](https://www.ruby-forum.com/t/i-have-some-ruby-math-questions-that-need-answering/172230)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [July 17, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/i-have-some-ruby-math-questions-that-need-answering/172230 "2009-07-17T15:27:38Z")

</div>

When handling percentage calculations: Simple 99/100… Will I always have to do 99.to\_f/100.to\_f in order to receive 0.99? Or is there a simpler way of performing this task in ruby… I notice that there doesn’t appear…

---

## [Strange inspect behaviour](https://www.ruby-forum.com/t/strange-inspect-behaviour/172215)

<div class="topic-metadata">

**Author:** [@chilaquil](https://www.ruby-forum.com/u/chilaquil)\
**Replies:** 2\
**Last updated:** [July 17, 2009, 10:22am UTC](https://www.ruby-forum.com/t/strange-inspect-behaviour/172215 "2009-07-17T10:22:58Z")

</div>

The documentation says “if not overridden, #inspect method uses #to\_s to generate the string”, but it turns out that it’s behavior is more complicated: if it’s not overridden in some place, it uses #to\_s until the fir…

---

## [Rutema\_elements 0.1.4 Released](https://www.ruby-forum.com/t/rutema-elements-0-1-4-released/172244)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 9:22am UTC](https://www.ruby-forum.com/t/rutema-elements-0-1-4-released/172244 "2009-07-17T09:22:06Z")

</div>

rutema\_elements version 0.1.4 has been released! DESCRIPTION: Rutema Elements modules are the easiest way to add functionality to rutema parsers. Just derive your parser from the basic rutema parser and include the m…

---

## [Rutema 1.0.5 Released](https://www.ruby-forum.com/t/rutema-1-0-5-released/172241)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 9:18am UTC](https://www.ruby-forum.com/t/rutema-1-0-5-released/172241 "2009-07-17T09:18:36Z")

</div>

rutema version 1.0.5 has been released! DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes ex…

---

## [Rutema\_web 1.0.0 Released](https://www.ruby-forum.com/t/rutema-web-1-0-0-released/172242)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 9:18am UTC](https://www.ruby-forum.com/t/rutema-web-1-0-0-released/172242 "2009-07-17T09:18:01Z")

</div>

rutema\_web version 1.0.0 has been released! IMPORTANT: This releases changes the name of the gem from rutemaweb to rutema\_web (for the sake of consistency with existing and upcoming gems) . You might wanna do gem uni…

---

## [HELP:Research Project](https://www.ruby-forum.com/t/help-research-project/172240)

<div class="topic-metadata">

**Author:** [@ti-mara](https://www.ruby-forum.com/u/ti-mara)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 8:54am UTC](https://www.ruby-forum.com/t/help-research-project/172240 "2009-07-17T08:54:04Z")

</div>

Hi all, I was wondering if any of you guys could point me in the direction of any interesting research area? I’m studying for my degree in Information systems and business management , part of this requires me to do…

---

## [Ruby versions, snapshots and SVN branches - I'm confused](https://www.ruby-forum.com/t/ruby-versions-snapshots-and-svn-branches-im-confused/172237)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 8:16am UTC](https://www.ruby-forum.com/t/ruby-versions-snapshots-and-svn-branches-im-confused/172237 "2009-07-17T08:16:06Z")

</div>

The ruby down load page has… http://www.ruby-lang.org/en/downloads/ \* Ruby 1.9.1-p129 (md5: c71f413514ee6341c627be2957023a5c) Stable Version (recommended) Which suggests that the 1.9.1 branch is the stable branch \*…

---

## [How to know Array if have key?](https://www.ruby-forum.com/t/how-to-know-array-if-have-key/172233)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 3\
**Last updated:** [July 17, 2009, 7:54am UTC](https://www.ruby-forum.com/t/how-to-know-array-if-have-key/172233 "2009-07-17T07:54:05Z")

</div>

a\_array= \[{“1”=\>“11”}, {“2”=\>“22”}\] how to test if a\_array have a key “11”???

---

## [Need Help with a Very, Very Simple Program](https://www.ruby-forum.com/t/need-help-with-a-very-very-simple-program/172224)

<div class="topic-metadata">

**Author:** [@maxnorman](https://www.ruby-forum.com/u/maxnorman)\
**Replies:** 5\
**Last updated:** [July 17, 2009, 5:52am UTC](https://www.ruby-forum.com/t/need-help-with-a-very-very-simple-program/172224 "2009-07-17T05:52:57Z")

</div>

I’m almost an absolute novice in Ruby; it is my first language and I just began learning the basics yesterday, using Chris P.'s ‘Learning to Program.’ The trouble I’m having is simple, but nonetheless I would apprecia…

---

## [Case statement puzzle](https://www.ruby-forum.com/t/case-statement-puzzle/172204)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 8\
**Last updated:** [July 17, 2009, 5:15am UTC](https://www.ruby-forum.com/t/case-statement-puzzle/172204 "2009-07-17T05:15:34Z")

</div>

I’m missing something here, and cannot see the problem: x=‘1’ (1…5).include? x.to\_i # =\> true But… x=‘1’ case when x ==‘0’ puts ‘0’ when (1…5).include? x.to\_i puts ‘1’ end …won’t even compile. Can someone tel…

---

## [New ruby gnuplot](https://www.ruby-forum.com/t/new-ruby-gnuplot/172194)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [July 17, 2009, 12:12am UTC](https://www.ruby-forum.com/t/new-ruby-gnuplot/172194 "2009-07-17T00:12:57Z")

</div>

Since the maintainer appears to have abandoned http://rubyforge.org/projects/rgplot I forked his code onto github http://github.com/rogerdpack/ruby\_gnuplot/tree/master and plan on maintaining it, so feel free \[if you…

---

## [Uninitialized stream (IOError)](https://www.ruby-forum.com/t/uninitialized-stream-ioerror/172203)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/uninitialized-stream-ioerror/172203 "2009-07-16T23:15:06Z")

</div>

So I’m getting an unexpected IOError in my code. class ConfigStub \< File def initialize(location) unless filename = location.gsub("/", “\_”) raise ArgumentError, INVALID\_LOCATION\_FORMAT end @stub = File.open(CONFIG\_…

---

## [Help with making this prettier?](https://www.ruby-forum.com/t/help-with-making-this-prettier/172171)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/help-with-making-this-prettier/172171 "2009-07-16T21:20:01Z")

</div>

What I want to do is to extract the integer value corresponding to a bit field within a FixNum. That is, for example, what is the integer value formed by bits 4,5,6,7,8 of a number? This is my ugly first cut. There mu…

---

## [Reading windows processes](https://www.ruby-forum.com/t/reading-windows-processes/172212)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 9:08pm UTC](https://www.ruby-forum.com/t/reading-windows-processes/172212 "2009-07-16T21:08:16Z")

</div>

Hello, I was wondering if Ruby could read what programs are currently running on a Windows system… for example, if I have an executable called “close\_popup.exe” running on the system and visible from windows task man…

---

## [Interpolation question with each do block](https://www.ruby-forum.com/t/interpolation-question-with-each-do-block/172207)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/interpolation-question-with-each-do-block/172207 "2009-07-16T20:49:08Z")

</div>

Hi all, I have a quick interpolation question… def calculate\_tsos(model, datavar) var = model.find(:all) var.each do |rows| puts “#{model} (Team = #{rows.team.name} | #{datavar} = #{rows.datavar}” end end The on…

---

## [Case statement puzzle - correction](https://www.ruby-forum.com/t/case-statement-puzzle-correction/172205)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/case-statement-puzzle-correction/172205 "2009-07-16T20:29:42Z")

</div>

I’m missing something here, and cannot see the problem: x=‘1’ (1…5).include? x.to\_i # =\> true But… x=‘1’ case when x ==‘0’ puts ‘0’ when (1…5).include? x.to\_i puts ‘1’ end …won’t even compile. Can someone tel…

---

## [CSV file to database problem - FasterCSV::MalformedCSVError](https://www.ruby-forum.com/t/csv-file-to-database-problem-fastercsv-malformedcsverror/172200)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/csv-file-to-database-problem-fastercsv-malformedcsverror/172200 "2009-07-16T17:37:26Z")

</div>

Hello all, I’m having problems importing a simple csv into the sqlite database. When I execute “db:migrate --trace”, I get “FasterCSV::MalformedCSVError”. I’ve check the .csv file and made sure that it’s UTF-8 encod…

---

## [Problem executing bash script from ruby - resend](https://www.ruby-forum.com/t/problem-executing-bash-script-from-ruby-resend/172170)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/problem-executing-bash-script-from-ruby-resend/172170 "2009-07-16T17:20:58Z")

</div>

\[for some reason, my first attempt was not formatted correctly by the list server\] I have little experience with this sort of thing, but it looked fairly straightforward. I’m in trouble, however. Details: From /home…

---

## [Problem executing bash script from ruby](https://www.ruby-forum.com/t/problem-executing-bash-script-from-ruby/172169)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/problem-executing-bash-script-from-ruby/172169 "2009-07-16T17:00:38Z")

</div>

I have little experience with this sort of thing, but it looked fairly straightforward. I’m in trouble, however. Details: From /home/tomc/Ruby-work/setnet/bin/ I launch “./setnet”. This dir contains: mkrdoc.sh setn…

---

## [Re: Test::Unit run order](https://www.ruby-forum.com/t/re-test-unit-run-order/172193)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/re-test-unit-run-order/172193 "2009-07-16T14:58:14Z")

</div>

On Jul 15, 2009, at 1:33 PM, James C. removed\_email\_address@domain.invalid wrote: 2009/7/15 Dylan removed\_email\_address@domain.invalid Hey there! I had a question about the order tests are run in Test::Unit. I have a…

---

## [RDoc 2.4.3 - Document aliases and includes](https://www.ruby-forum.com/t/rdoc-2-4-3-document-aliases-and-includes/172183)

<div class="topic-metadata">

**Author:** [@thomthom](https://www.ruby-forum.com/u/thomthom)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/rdoc-2-4-3-document-aliases-and-includes/172183 "2009-07-16T13:22:49Z")

</div>

I first tried the RDoc that came with Ruby 1.8.6. But I didn’t like the four frame layout it produced. So I figured I’d try the latest RDoc. What I’m having problems with is getting it to document an aliased method. I…

---

## [\[Bug #1763\] SecurityError on an Exception object because of modification of instance variable #\_\_Thr](https://www.ruby-forum.com/t/bug-1763-securityerror-on-an-exception-object-because-of-modification-of-instance-variable-thr/171925)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 11:37am UTC](https://www.ruby-forum.com/t/bug-1763-securityerror-on-an-exception-object-because-of-modification-of-instance-variable-thr/171925 "2009-07-16T11:37:47Z")

</div>

Bug #1763: SecurityError on an Exception object because of modification of instance variable #ThrowState http://redmine.ruby-lang.org/issues/show/1763 e$B5/I\<\<Te(B: Hidetoshi Nagai e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(…

---

## [\[Bug #1138\] rdoc of taint/untrust](https://www.ruby-forum.com/t/bug-1138-rdoc-of-taint-untrust/159990)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 10:20am UTC](https://www.ruby-forum.com/t/bug-1138-rdoc-of-taint-untrust/159990 "2009-07-16T10:20:39Z")

</div>

Bug #1138: rdoc of taint/untrust http://redmine.ruby-lang.org/issues/show/1138 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: DOC ruby -v: - tainte$B$He(Buntruste$B$Ne…

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

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