# Ruby

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

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

---

## [Array#to\_hash](https://www.ruby-forum.com/t/array-to-hash/160079)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 11\
**Last updated:** [February 16, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/array-to-hash/160079 "2009-02-16T14:53:34Z")

</div>

Would any problems arise from extending Array with this? Convert an array into an indexed hash. \[:a,:b,:c\].to\_hash #=\> {0=\>:a,1=\>:b,2=\>:c} def to\_hash h = {} each\_with\_index do |v, i| h\[i\] = v end h end Thanks…

---

## [:having problem](https://www.ruby-forum.com/t/having-problem/160422)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/having-problem/160422 "2009-02-16T13:58:41Z")

</div>

Hi I am using :having option in query it is giving error like “Unknown key(s): having” plz reply me with solution Advanced Thanks Ganesh

---

## [\[ANN\] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb](https://www.ruby-forum.com/t/ann-merb-mind-maps-a-tutorial-on-rspec-graphviz-a-little-merb/160443)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/ann-merb-mind-maps-a-tutorial-on-rspec-graphviz-a-little-merb/160443 "2009-02-16T13:30:24Z")

</div>

Netizens: Crispin & Gregory’s new book, /Agile Testing: A Practical Guide for Testers and Agile Teams/, has a kewt “mind map” at the start of each chapter. It inspired me to find a way to use the “tag cloud” on a bl…

---

## [Xpath](https://www.ruby-forum.com/t/xpath/160275)

<div class="topic-metadata">

**Author:** [@palberto](https://www.ruby-forum.com/u/palberto)\
**Replies:** 5\
**Last updated:** [February 16, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/xpath/160275 "2009-02-16T12:13:13Z")

</div>

Hi all, I have a question: I would like to know if it is possible, using REXML, get full path from root, of document XML, to leaf node, through a XPath query? example with l’XML: ... …

---

## [Exercise in Frustration](https://www.ruby-forum.com/t/exercise-in-frustration/160373)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 9\
**Last updated:** [February 16, 2009, 11:27am UTC](https://www.ruby-forum.com/t/exercise-in-frustration/160373 "2009-02-16T11:27:20Z")

</div>

I would like to see someone else do this. I’ve simplified the issue to a small exercise. Given: module MyEnhancement def attr\_accessor(\*a) put "doing something special with #{a.join(' ')}" super(\*a) end end This…

---

## [Ruby vs Perl performance](https://www.ruby-forum.com/t/ruby-vs-perl-performance/159718)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 76\
**Last updated:** [February 16, 2009, 10:50am UTC](https://www.ruby-forum.com/t/ruby-vs-perl-performance/159718 "2009-02-16T10:50:51Z")

</div>

I have downloaded perl and ruby program in net.I run both the programs.But the Ruby program performance very wost than perl.Can any one tell me the reasons and soultion to make ruby as faster than perl. I have attach…

---

## [ADO.rb](https://www.ruby-forum.com/t/ado-rb/159360)

<div class="topic-metadata">

**Author:** [@ricercar](https://www.ruby-forum.com/u/ricercar)\
**Replies:** 3\
**Last updated:** [February 16, 2009, 10:35am UTC](https://www.ruby-forum.com/t/ado-rb/159360 "2009-02-16T10:35:34Z")

</div>

Hi, I’m trying to connect to an existing MS SQL database using Ruby. All websites point me to using ‘DBI’ but there is a glitch mentioned about ADO.rb that has to be separately downloaded. Everyone points me to http:/…

---

## [Perl Encrypt / Ruby Decrypt](https://www.ruby-forum.com/t/perl-encrypt-ruby-decrypt/160420)

<div class="topic-metadata">

**Author:** [@manimaran](https://www.ruby-forum.com/u/manimaran)\
**Replies:** 1\
**Last updated:** [February 16, 2009, 10:35am UTC](https://www.ruby-forum.com/t/perl-encrypt-ruby-decrypt/160420 "2009-02-16T10:35:09Z")

</div>

Dear folks, I have encrypted string, which was encrypted by following perl code use Crypt; print “enter the normal pin\\n”; $entered\_pin = ; chomp ( $entered\_pin ); my $EPin = Crypt::Encrypt ( $entered\_pin ); print…

---

## [Got SystemStackError exception: stack level too deep](https://www.ruby-forum.com/t/got-systemstackerror-exception-stack-level-too-deep/159911)

<div class="topic-metadata">

**Author:** [@bezan](https://www.ruby-forum.com/u/bezan)\
**Replies:** 15\
**Last updated:** [February 16, 2009, 10:10am UTC](https://www.ruby-forum.com/t/got-systemstackerror-exception-stack-level-too-deep/159911 "2009-02-16T10:10:06Z")

</div>

I have master Process that is forking 2 child processes in the background. Now one of the child process is sending a mail out to me using the smtp server every minute. After about 20 hours I get the following error b…

---

## [Add POSTARG support to rb\_scan\_args()](https://www.ruby-forum.com/t/add-postarg-support-to-rb-scan-args/160250)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 9:36am UTC](https://www.ruby-forum.com/t/add-postarg-support-to-rb-scan-args/160250 "2009-02-16T09:36:15Z")

</div>

ã€€rb\_scan\_args()ã‚’POSTARGå¯¾å¿œã«ã™ã‚‹ãƒ‘ãƒƒãƒã§ã™ã€‚ rb\_scan\_args(argc, argv, "11\*2", &first, &optional, &array, &penult, &last); ã®ã‚ˆã†ã«ã€ \* ã®å¾Œã«æ•°å­—ã‚’æŒ‡å®šã§ãã¾ã™ã€‚ ã€€ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ã…

---

## [Iterating a changing Hash under 1.9.1](https://www.ruby-forum.com/t/iterating-a-changing-hash-under-1-9-1/160378)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 17\
**Last updated:** [February 16, 2009, 9:30am UTC](https://www.ruby-forum.com/t/iterating-a-changing-hash-under-1-9-1/160378 "2009-02-16T09:30:56Z")

</div>

The following code shows that Hash#each under 1.9.1p0 does not iterate over keys added during iteration: a = \[ 1, 2, 3 \]; h = { 0=\>0 } h.each{ |k,v| h\[a\[k\]\] = a\[k\] } p h #=\> {0=\>0, 1=\>1} However, this code (on 1.9.…

---

## [Ruby language: compiled or jited?](https://www.ruby-forum.com/t/ruby-language-compiled-or-jited/160347)

<div class="topic-metadata">

**Author:** [@sohdubom](https://www.ruby-forum.com/u/sohdubom)\
**Replies:** 7\
**Last updated:** [February 16, 2009, 8:49am UTC](https://www.ruby-forum.com/t/ruby-language-compiled-or-jited/160347 "2009-02-16T08:49:54Z")

</div>

Is it true that ruby language will change to a compiled or jited language, like .net or java?

---

## [Extract values from Hash map](https://www.ruby-forum.com/t/extract-values-from-hash-map/160418)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 7:09am UTC](https://www.ruby-forum.com/t/extract-values-from-hash-map/160418 "2009-02-16T07:09:53Z")

</div>

Following is my code wherein I am reading from an XML file require ‘xmlconfigfile’ data = XmlConfigFile.new(‘script\_data.xml’) data.no\_hash\_key\_element\_path = true data.expand\_attributes = true senddata = data.get…

---

## [Best-performing Rss parser](https://www.ruby-forum.com/t/best-performing-rss-parser/65561)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 11\
**Last updated:** [February 16, 2009, 4:50am UTC](https://www.ruby-forum.com/t/best-performing-rss-parser/65561 "2009-02-16T04:50:42Z")

</div>

Hi all, I am working on a project that requires rss parsing for pre-fetched web pages. I don’t need caching or anything fancy, just the rss parsing itself. I am currently using sporkmonger’s feedtools, but I am won…

---

## [Meaning of "\<\<"?](https://www.ruby-forum.com/t/meaning-of/160263)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 14\
**Last updated:** [February 16, 2009, 3:40am UTC](https://www.ruby-forum.com/t/meaning-of/160263 "2009-02-16T03:40:31Z")

</div>

Hi, I’m currently trying to learn ruby, coming from a perl/unix background. I’ve been working through one of the many online tutorials and it’s suddenly thrown in the “\<\<” operator. Now, I’m familiar with a the use o…

---

## [Multidimensional hash - get all not blank keys](https://www.ruby-forum.com/t/multidimensional-hash-get-all-not-blank-keys/160362)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 12\
**Last updated:** [February 16, 2009, 3:05am UTC](https://www.ruby-forum.com/t/multidimensional-hash-get-all-not-blank-keys/160362 "2009-02-16T03:05:21Z")

</div>

Hello. I have this Hash. result={“1”=\>{“6”=\>"", “7”=\>"", “8”=\>"", “1”=\>“Value1”, “2”=\>"", “3”=\>“Value2”, “4”=\>"", “5”=\>""}, “2”=\>{“6”=\>"", “7”=\>"", “8”=\>“Value3”, “1”=\>"", “2”=\>"", “3”=\>"", “4”=\>"", “5”=\>…

---

## [Jruby blocking in tomcat](https://www.ruby-forum.com/t/jruby-blocking-in-tomcat/160353)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 2:08am UTC](https://www.ruby-forum.com/t/jruby-blocking-in-tomcat/160353 "2009-02-16T02:08:05Z")

</div>

Hello, While running a load test i saw blocking in Jconsole. All threads said Name: http-8080-ProcessorX (where X is every thread but #7) State: BLOCKED on org.jruby.RubyClass@23b9fe9b owned by: http-8080-Processor…

---

## [DRb::DRbBadScheme when using drbunix sockets, why?](https://www.ruby-forum.com/t/drb-drbbadscheme-when-using-drbunix-sockets-why/160299)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [February 16, 2009, 1:24am UTC](https://www.ruby-forum.com/t/drb-drbbadscheme-when-using-drbunix-sockets-why/160299 "2009-02-16T01:24:49Z")

</div>

Hi, I’ve been slowly hacking on my parallel recursive readdir() implementation using a limited number of parallel processes, since as you all know, Ruby threads are not truly parallel. Anyway, I’m now getting wierd e…

---

## [To get time differnece in hours between two time values](https://www.ruby-forum.com/t/to-get-time-differnece-in-hours-between-two-time-values/154270)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 6\
**Last updated:** [February 16, 2009, 12:42am UTC](https://www.ruby-forum.com/t/to-get-time-differnece-in-hours-between-two-time-values/154270 "2009-02-16T00:42:07Z")

</div>

Hi I have two values like incidents.first.created\_on and Time.now bothe are of class Time Now I would like to get differnet between these two in hours I gtried like (Time.now-incidents.first.created\_on).hours Bu…

---

## [Ri Object](https://www.ruby-forum.com/t/ri-object/160397)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 1\
**Last updated:** [February 15, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/ri-object/160397 "2009-02-15T23:08:46Z")

</div>

How can i access the documentation relating to ARGV, ARGF, ARGV, DATA, ENV, FALSE, NIL, RUBY\_COPYRIGHT, RUBY\_DESCRIPTION, RUBY\_PATCHLEVEL – John M. 07739 171 531 MSc (DIC) Timezone: GMT

---

## [Securing certain apps w/ NTFS?](https://www.ruby-forum.com/t/securing-certain-apps-w-ntfs/160401)

<div class="topic-metadata">

**Author:** [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/securing-certain-apps-w-ntfs/160401 "2009-02-15T22:08:04Z")

</div>

We are having problems using IIS and ISAPI\_reverse proxy to mongrel for our login page. It appears as thought the cookies aren’t being passed or certain info doesn’t match. Is it possible to use NTFS permissions to s…

---

## [Ruby-newbie](https://www.ruby-forum.com/t/ruby-newbie/160164)

<div class="topic-metadata">

**Author:** [@eugynon](https://www.ruby-forum.com/u/eugynon)\
**Replies:** 4\
**Last updated:** [February 15, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/ruby-newbie/160164 "2009-02-15T21:54:29Z")

</div>

Hi! Ive been trying for a couple of days to get connected to vortex wargame with the help of ruby. Since this language is kinda new to me i dont get what im doing wrong. The mission is to get 4 unsigned integer, sum…

---

## [Net-Ssh](https://www.ruby-forum.com/t/net-ssh/159926)

<div class="topic-metadata">

**Author:** [@GonSSSSalo\_Pires](https://www.ruby-forum.com/u/GonSSSSalo_Pires)\
**Replies:** 2\
**Last updated:** [February 15, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/net-ssh/159926 "2009-02-15T21:51:30Z")

</div>

Hi there, I’m trying to develop a script that will use net-ssh to performe some routine commands on a remote server. But i’ve a problem when i give a comand that will change the remote system prompt. I think ruby is…

---

## [Game server query problems](https://www.ruby-forum.com/t/game-server-query-problems/160375)

<div class="topic-metadata">

**Author:** [@Randy\_W](https://www.ruby-forum.com/u/Randy_W)\
**Replies:** 2\
**Last updated:** [February 15, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/game-server-query-problems/160375 "2009-02-15T21:50:09Z")

</div>

Hello, I’m relatively new to Ruby, so some of this is foreign, but despite trying for several hours I can’t seem to get this query to work. My goal is to create a query that’s consistent with this ( Gamespy Protocol…

---

## [Ruby CLASSPATH](https://www.ruby-forum.com/t/ruby-classpath/160317)

<div class="topic-metadata">

**Author:** [@Slaine](https://www.ruby-forum.com/u/Slaine)\
**Replies:** 4\
**Last updated:** [February 15, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/ruby-classpath/160317 "2009-02-15T20:55:34Z")

</div>

Hi all, I have upgraded ruby on a Amazon EC2 instance. I trying to bundle it now using the ruby program packaged with the AMI. There seems to be something wrong now with loading required libraries. When the main ruby…

---

## [\[ANN\] Radiant 0.7.1 - Engraving Release (bugfixes)](https://www.ruby-forum.com/t/ann-radiant-0-7-1-engraving-release-bugfixes/160390)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-7-1-engraving-release-bugfixes/160390 "2009-02-15T20:19:09Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.7.1 Engraving is a bugfix release that corrects two errors in the user-interface. The contents of page-parts will now mai…

---

## [Never reinstall XP again](https://www.ruby-forum.com/t/never-reinstall-xp-again/160381)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/never-reinstall-xp-again/160381 "2009-02-15T17:38:40Z")

</div>

Never reinstall XP again, New professional repair tool. Keeps data and applications in-tact. Reimage is an on-line tool that automates PC maintenance and repairs so that any PC will run like new, everyday. Reimage us…

---

## [Incorrect library paths in App.Config](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266)

<div class="topic-metadata">

**Author:** [@cephas](https://www.ruby-forum.com/u/cephas)\
**Replies:** 6\
**Last updated:** [February 15, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/incorrect-library-paths-in-app-config/160266 "2009-02-15T16:37:34Z")

</div>

Hi, I just noticed that the App.Config that is generated in an in Unsigned build of IronRuby (i.e. rake compile) contains incorrect library paths. When I tried to run rake mspec:core it failed to require ‘fileutils…

---

## [If you are unhappy with the direction of Ruby 1.8.7+, respond](https://www.ruby-forum.com/t/if-you-are-unhappy-with-the-direction-of-ruby-1-8-7-respond/160090)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 188\
**Last updated:** [February 15, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/if-you-are-unhappy-with-the-direction-of-ruby-1-8-7-respond/160090 "2009-02-15T14:56:38Z")

</div>

I am setting up two threads in the hopes that we can see names attached to opinions about the decision to break backwards compatibility between Ruby 1.8.6 and Ruby 1.8.7+ This one is for those who wish that Ruby 1.8 w…

---

## [RubyCLR anyone?](https://www.ruby-forum.com/t/rubyclr-anyone/160363)

<div class="topic-metadata">

**Author:** [@zwadar](https://www.ruby-forum.com/u/zwadar)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/rubyclr-anyone/160363 "2009-02-15T13:00:46Z")

</div>

Hi, maybe I’ll find someone who is using RubyCLR and can help me? After first success with winforms usage from ruby I’m trying to use SharpSVN (http://sharpsvn.open.collab.net/) library to access SVN from ruby on win…

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

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