# Ruby

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

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

---

## [Hashes in 1.9 index](https://www.ruby-forum.com/t/hashes-in-1-9-index/193524)

<div class="topic-metadata">

**Author:** [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Replies:** 4\
**Last updated:** [August 19, 2010, 9:08am UTC](https://www.ruby-forum.com/t/hashes-in-1-9-index/193524 "2010-08-19T09:08:51Z")

</div>

Since hashes in 1.9 retain their insert order, is there a built in way to get values by index as well as key? For example: h = { a: 17, b: 18, c: 19 } puts h\[1\] =\> 19 Obviously that can’t work, but there may be som…

---

## [Can't open an xcl workbook on a mac with rb-appscript](https://www.ruby-forum.com/t/cant-open-an-xcl-workbook-on-a-mac-with-rb-appscript/193528)

<div class="topic-metadata">

**Author:** [@arti\_singh](https://www.ruby-forum.com/u/arti_singh)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 8:49am UTC](https://www.ruby-forum.com/t/cant-open-an-xcl-workbook-on-a-mac-with-rb-appscript/193528 "2010-08-19T08:49:58Z")

</div>

I get an errror when I try to open a workbook require “appscript” include Appscript excel=app(‘Microsoft Excel’) excel.activate workbook=excel.open\_workbook(:workbook\_filename=\>“Macintosh HD::Files::Data.xlsx”) Do…

---

## [Can i do this in ruby? a simulation process](https://www.ruby-forum.com/t/can-i-do-this-in-ruby-a-simulation-process/193412)

<div class="topic-metadata">

**Author:** [@midnightcoder](https://www.ruby-forum.com/u/midnightcoder)\
**Replies:** 54\
**Last updated:** [August 19, 2010, 8:08am UTC](https://www.ruby-forum.com/t/can-i-do-this-in-ruby-a-simulation-process/193412 "2010-08-19T08:08:32Z")

</div>

still i don’t know how to begin my program on this problem: A superhighway connects one large metropolitan area to another. A vehicle leaves the first city every 5-35sec. 20% of the vehicles have 1 passenger, 30% have…

---

## [\[Backport #3708\]\[Assigned\] Array#permutation $B$,$\*$+$7$J7k2L$rJV$9(B](https://www.ruby-forum.com/t/backport-3708-assigned-array-permutation-b-7-j7k2l-rjv-9-b/193523)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 5:45am UTC](https://www.ruby-forum.com/t/backport-3708-assigned-array-permutation-b-7-j7k2l-rjv-9-b/193523 "2010-08-19T05:45:42Z")

</div>

e$B%A%1%C%He(B #3708 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.) e$B%+%F%4%je(B coree$B$K%;%C%He(B e$B%9%F!\<%?%9e(B Closede$B$+$ie(BAssignede$B$KJQ99e(B e$BC4Ev\<Te(B Yuki S.e$B$K%;%C%He(B 1.9.2 e$B$X$N%P%C%/%\]!\<%HBP\>\]$G$9…

---

## [\[Bug #3708\]\[Closed\] Array#permutation $B$,$\*$+$7$J7k2L$rJV$9(B](https://www.ruby-forum.com/t/bug-3708-closed-array-permutation-b-7-j7k2l-rjv-9-b/193521)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 5:17am UTC](https://www.ruby-forum.com/t/bug-3708-closed-array-permutation-b-7-j7k2l-rjv-9-b/193521 "2010-08-19T05:17:36Z")

</div>

e$B%A%1%C%He(B #3708 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B This issue was solved with changeset r29044. Shumpei, thank you for reporting this issue. Your contributio…

---

## [Passenger-\>fastthread.c1 will not compile](https://www.ruby-forum.com/t/passenger-fastthread-c1-will-not-compile/193522)

<div class="topic-metadata">

**Author:** [@jmoncrieff](https://www.ruby-forum.com/u/jmoncrieff)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 4:54am UTC](https://www.ruby-forum.com/t/passenger-fastthread-c1-will-not-compile/193522 "2010-08-19T04:54:33Z")

</div>

Good Day, I am trying to get passenger running on one of our servers at work but when I run gem install passenger it seems not to be compiling here is the Output i am getting root@web1 jeff\]# gem install passenger …

---

## [Web Browser Visualization Libraries?](https://www.ruby-forum.com/t/web-browser-visualization-libraries/193480)

<div class="topic-metadata">

**Author:** [@goodfriend](https://www.ruby-forum.com/u/goodfriend)\
**Replies:** 4\
**Last updated:** [August 19, 2010, 2:17am UTC](https://www.ruby-forum.com/t/web-browser-visualization-libraries/193480 "2010-08-19T02:17:20Z")

</div>

Hi, Are there any complex visualization libraries that can be used with Ruby and/or Ruby on Rails that are similar to Prefuse (found at http://www.prefuse.org)? Thanks for any assistance you can offer. My Best, Fra…

---

## [Twitter gem - include\_entities option](https://www.ruby-forum.com/t/twitter-gem-include-entities-option/193512)

<div class="topic-metadata">

**Author:** [@Eddie\_Catflap](https://www.ruby-forum.com/u/Eddie_Catflap)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 12:03am UTC](https://www.ruby-forum.com/t/twitter-gem-include-entities-option/193512 "2010-08-19T00:03:52Z")

</div>

Hi The twitter api now has an option ‘include\_entities’ which when included in a call to a timeline returns a lot of interesting metadata about a tweet, such as users, lists, URLs, and hashtags mentioned in it. The…

---

## [Nokogiri bug?](https://www.ruby-forum.com/t/nokogiri-bug/193502)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 2\
**Last updated:** [August 18, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/nokogiri-bug/193502 "2010-08-18T23:17:01Z")

</div>

Hi Folks - Having some trouble w/ Nokogiri & its handling of xpaths and nodesets, wondering if anyone here knows about possible existing issues. (Apologies if this is a bit off-topic, but I am working in Ruby…) So I’m…

---

## [java.lang.ArrayIndexOutOfBoundsException sighting](https://www.ruby-forum.com/t/java-lang-arrayindexoutofboundsexception-sighting/192909)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 2\
**Last updated:** [August 18, 2010, 9:59pm UTC](https://www.ruby-forum.com/t/java-lang-arrayindexoutofboundsexception-sighting/192909 "2010-08-18T21:59:09Z")

</div>

Curiousity got the best of me and I wanted to see how other Ruby impls would behave when used to build MRI 1.9.2dev for Windows using our latest recipes on http://github.com/oneclick/rubyinstaller/tree/use-devkit Aft…

---

## [Windows installer enhancement?](https://www.ruby-forum.com/t/windows-installer-enhancement/193500)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 2\
**Last updated:** [August 18, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/windows-installer-enhancement/193500 "2010-08-18T21:16:24Z")

</div>

Currently the install4j-based installer populates the registry in a way that makes it challenging to easily parse to determine the version of JRuby installed and the installation root directory. Please consider updati…

---

## [Anyone use PDFLib with Ruby 1.9.1 and having issues?](https://www.ruby-forum.com/t/anyone-use-pdflib-with-ruby-1-9-1-and-having-issues/193498)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/anyone-use-pdflib-with-ruby-1-9-1-and-having-issues/193498 "2010-08-18T19:52:41Z")

</div>

All, Hope I am doing this correctly - if not, I apologize ahead of time. I can run any PDFLib file version, from 7.0.4 to 8.0.1, using Ruby 1.8.8 or lower just fine. (Windows) However, when I try the same PDFLib file…

---

## [Net::SSH is unable to use my RSA Key](https://www.ruby-forum.com/t/net-ssh-is-unable-to-use-my-rsa-key/193495)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/net-ssh-is-unable-to-use-my-rsa-key/193495 "2010-08-18T19:16:24Z")

</div>

Hi all, I’m currently using ruby 1.9.1p429 and net-ssh-2.0.23 When I try to use Net:SSH with the following example: #!/usr/bin/env ruby require ‘net/ssh’ Net::SSH.start(‘examplehost’, ‘user’, :password =\> “passwordt…

---

## [FYI: bad jruby-bin-1.5.1.tar.gz?](https://www.ruby-forum.com/t/fyi-bad-jruby-bin-1-5-1-tar-gz/193493)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/fyi-bad-jruby-bin-1-5-1-tar-gz/193493 "2010-08-18T18:31:17Z")

</div>

I had problems using 7-Zip v9.15 to extract, and in the discussion https://sourceforge.net/projects/sevenzip/forums/forum/45798/topic/3779254 it appears the file has some junk blocks according to 7-Zip’s author. I was…

---

## [Making File.open work on gzipped files](https://www.ruby-forum.com/t/making-file-open-work-on-gzipped-files/193430)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 14\
**Last updated:** [August 18, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/making-file-open-work-on-gzipped-files/193430 "2010-08-18T18:22:30Z")

</div>

Hello all, I am trying to write a class for a file parser with an class method for opening files for reading: class Parser def self.open ios = File.open(\*args) parser = self.new(ios) if block\_given? begin …

---

## [Strange behavior of or condition in loop](https://www.ruby-forum.com/t/strange-behavior-of-or-condition-in-loop/193450)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 7\
**Last updated:** [August 18, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/strange-behavior-of-or-condition-in-loop/193450 "2010-08-18T17:57:22Z")

</div>

I don’t understand why ruby’s “or” acts differently in a loop. This is some code I pulled out of a rails model, expanded the assignments and simulated in IRB (1.8.7 and 1.9.2rc) #simple boolean assignments #Why does …

---

## [Intstalled Ruby 1.8.7 but still getting ruby -v =\> 1.8.6](https://www.ruby-forum.com/t/intstalled-ruby-1-8-7-but-still-getting-ruby-v-1-8-6/193404)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 6\
**Last updated:** [August 18, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/intstalled-ruby-1-8-7-but-still-getting-ruby-v-1-8-6/193404 "2010-08-18T17:10:51Z")

</div>

I have followed the instructions to install ruby 1.8.7. Everything seems to have installed as best that I can determine. However when I run the command ruby -v I get ruby 1.8.6 (2009-06-08 patchlevel 369) \[universal…

---

## [Where to keep watir tests](https://www.ruby-forum.com/t/where-to-keep-watir-tests/193487)

<div class="topic-metadata">

**Author:** [@ambi995](https://www.ruby-forum.com/u/ambi995)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/where-to-keep-watir-tests/193487 "2010-08-18T17:02:46Z")

</div>

Hi all, Iam new o watir and i’ve automated few of my tests . Im looking for a test repository for my tests. If anyone can suggest me which tool to use to keep my tests. Also, if i’ve to run slective tests … how ca i d…

---

## [To maintain regression in watir](https://www.ruby-forum.com/t/to-maintain-regression-in-watir/193486)

<div class="topic-metadata">

**Author:** [@ambi995](https://www.ruby-forum.com/u/ambi995)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/to-maintain-regression-in-watir/193486 "2010-08-18T17:00:26Z")

</div>

Hi All, I’ve to create overnight regression task for my watir tests. If any onecan suggest me how to create a batch file or if there is any tool which can be used to maintain regression. Thanks

---

## [Macruby - some basic questions](https://www.ruby-forum.com/t/macruby-some-basic-questions/193437)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 3\
**Last updated:** [August 18, 2010, 4:28pm UTC](https://www.ruby-forum.com/t/macruby-some-basic-questions/193437 "2010-08-18T16:28:31Z")

</div>

I am going thru the macruby site and tutorial. I’d like to know if macruby is essentially meant for developing GUI applications on OS X ? Is there some list of example applications developed with macruby ? I’d li…

---

## [Adding Common Lisp to Ruby (fixed)](https://www.ruby-forum.com/t/adding-common-lisp-to-ruby-fixed/193484)

<div class="topic-metadata">

**Author:** [@NF\_BetaK](https://www.ruby-forum.com/u/NF_BetaK)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/adding-common-lisp-to-ruby-fixed/193484 "2010-08-18T16:18:57Z")

</div>

(fixed - I forgot to convert it to plain text!) - I forward an email conversation that I had with matz: Dear Yukihiro, I find Ruby to be an incredible language, and I thank you for creating it. If we take the progra…

---

## [Base64 multiple by 4](https://www.ruby-forum.com/t/base64-multiple-by-4/193452)

<div class="topic-metadata">

**Author:** [@nginxchina](https://www.ruby-forum.com/u/nginxchina)\
**Replies:** 7\
**Last updated:** [August 18, 2010, 4:15pm UTC](https://www.ruby-forum.com/t/base64-multiple-by-4/193452 "2010-08-18T16:15:55Z")

</div>

Hello, I’m in the need of a Base64 decoding method that can decode a string multiplied by 4. At the current moment I have the following method: def decode(encoded) if not encoded.length % 12 == 0 raise BadInputE…

---

## [Rdf generated by rss library is not valid](https://www.ruby-forum.com/t/rdf-generated-by-rss-library-is-not-valid/193458)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [August 18, 2010, 3:02pm UTC](https://www.ruby-forum.com/t/rdf-generated-by-rss-library-is-not-valid/193458 "2010-08-18T15:02:14Z")

</div>

e$B$U$H!“e(Brss e$B%i%$%V%i%j$N%A%e!\<%H%j%”%k$Ne(B http://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.ja e$B$K$"$C$?Nc$r0J2\<$N$h$&$KF0$+$7$F$\_$^$7$?!#e(B % ruby -rrss -e ’ rss = RSS::Maker.make(“1…

---

## [Click on html element](https://www.ruby-forum.com/t/click-on-html-element/193350)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 2\
**Last updated:** [August 18, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/click-on-html-element/193350 "2010-08-18T14:39:24Z")

</div>

Hi, I need to click on an html element using watir and firewatir, for example: A Since this is not a button or a link... how can I do it?

---

## [Weirdest IRB / Rails console problem](https://www.ruby-forum.com/t/weirdest-irb-rails-console-problem/193269)

<div class="topic-metadata">

**Author:** [@tick](https://www.ruby-forum.com/u/tick)\
**Replies:** 3\
**Last updated:** [August 18, 2010, 1:52pm UTC](https://www.ruby-forum.com/t/weirdest-irb-rails-console-problem/193269 "2010-08-18T13:52:03Z")

</div>

I have a really weird problem. In IRB / Rails Console I cannot type a Capital C. My system: OS X, 10.6.4 Ruby Version: 1.9.2.rc2, as well as 1.9.1.p378 The “C” works everywhere else, in OSX, in the Terminal, but not …

---

## [\[Bug #3708\] Array#permutation $B$,$\*$+$7$J7k2L$rJV$9(B](https://www.ruby-forum.com/t/bug-3708-array-permutation-b-7-j7k2l-rjv-9-b/193468)

<div class="topic-metadata">

**Author:** [@Shumpei\_A](https://www.ruby-forum.com/u/Shumpei_A)\
**Replies:** 3\
**Last updated:** [August 18, 2010, 12:52pm UTC](https://www.ruby-forum.com/t/bug-3708-array-permutation-b-7-j7k2l-rjv-9-b/193468 "2010-08-18T12:52:16Z")

</div>

Bug #3708: Array#permutation e$B$,$\*$+$7$J7k2L$rJV$9e(B http://redmine.ruby-lang.org/issues/show/3708 e$B5/I\<\<Te(B: Shumpei A. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.3dev (2010-08-18 trunk 290…

---

## [\[Bug #3708\]\[Open\] Array#permutation $B$,$\*$+$7$J7k2L$rJV$9(B](https://www.ruby-forum.com/t/bug-3708-open-array-permutation-b-7-j7k2l-rjv-9-b/193477)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 12:24pm UTC](https://www.ruby-forum.com/t/bug-3708-open-array-permutation-b-7-j7k2l-rjv-9-b/193477 "2010-08-18T12:24:46Z")

</div>

e$B%A%1%C%He(B #3708 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.) e$B%9%F!\<%?%9e(B Closede$B$+$ie(BOpene$B$KJQ99e(B r29037 e$B$G$Oe(B SEGV e$B$,H/@8$9$k$3$H$,$"$C$?$?$a!"0lC6e(B revert e$B$7$F=$@5$7$J$\*$7$^$9!#e(B http://…

---

## [\[Bug #3708\]\[Closed\] Array#permutation $B$,$\*$+$7$J7k2L$rJV$9(B](https://www.ruby-forum.com/t/bug-3708-closed-array-permutation-b-7-j7k2l-rjv-9-b/193470)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 11:47am UTC](https://www.ruby-forum.com/t/bug-3708-closed-array-permutation-b-7-j7k2l-rjv-9-b/193470 "2010-08-18T11:47:17Z")

</div>

e$B%A%1%C%He(B #3708 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r29037. Shumpei, thank you fo…

---

## [Ruby 1.9.1 unable to find ruby\_parser from an included .rb file, but can from irb?](https://www.ruby-forum.com/t/ruby-1-9-1-unable-to-find-ruby-parser-from-an-included-rb-file-but-can-from-irb/193453)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 1\
**Last updated:** [August 18, 2010, 11:26am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-unable-to-find-ruby-parser-from-an-included-rb-file-but-can-from-irb/193453 "2010-08-18T11:26:12Z")

</div>

Greetings, For some reason which I have been unable to track down tryruby.org is down again. What makes almost no sense is the error log is stating: \[Tue Aug 17 23:09:20 2010\] \[error\] \[client x.x.x.x\] \\tfrom /where/…

---

## [\[bug:1.8\] ossl\_ssl\_session.c:110: warning: implicit declaration of function 'TIMET2NUM'](https://www.ruby-forum.com/t/bug-1-8-ossl-ssl-session-c-warning-implicit-declaration-of-function-timet2num/184711)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 4\
**Last updated:** [August 18, 2010, 9:30am UTC](https://www.ruby-forum.com/t/bug-1-8-ossl-ssl-session-c-warning-implicit-declaration-of-function-timet2num/184711 "2010-08-18T09:30:52Z")

</div>

Ruby 1.8 e$B$G!"0J2\<$N7Y9p$,A}$($F$$$^$9!#e(B gcc -I. -I…/… -I…/…/. -I…/…/./ext/openssl -DRUBY\_EXTCONF\_H="extconf.h" -D\_FILE\_OFFSET\_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -Wno-long-long -o ossl\_ssl\_session.o -…

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

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