# Ruby

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

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

---

## [Raindrops - real-time stats for preforking Rack servers](https://www.ruby-forum.com/t/raindrops-real-time-stats-for-preforking-rack-servers/186504)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 3:11am UTC](https://www.ruby-forum.com/t/raindrops-real-time-stats-for-preforking-rack-servers/186504 "2010-04-08T03:11:00Z")

</div>

Raindrops is a real time stats package to show statistics for Rack HTTP servers. It is designed for preforking servers such as Rainbows! and Unicorn, but should support any Rack HTTP server under Ruby 1.9, 1.8 and po…

---

## [Win32ole question](https://www.ruby-forum.com/t/win32ole-question/186502)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 2:59am UTC](https://www.ruby-forum.com/t/win32ole-question/186502 "2010-04-08T02:59:58Z")

</div>

I have a 3rd party COM library, and this works in VBScript: Set foo = CreateObject(“Foo”) foo.Fields(“FieldA”) = 5 foo.Fields(“FieldB”) = “bar” WScript.Echo foo.Fields(“FieldA”) WScript.Echo foo.Fields(“FieldB”) bu…

---

## [First post](https://www.ruby-forum.com/t/first-post/186496)

<div class="topic-metadata">

**Author:** [@superflyy](https://www.ruby-forum.com/u/superflyy)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 2:56am UTC](https://www.ruby-forum.com/t/first-post/186496 "2010-04-08T02:56:57Z")

</div>

Hello I am new to Ruby and programming. I hate to just dump code here so if you don’t feel like responding I understand. I am trying to import two text files, one containing names and one containing text. I did this…

---

## [Visibility in tests](https://www.ruby-forum.com/t/visibility-in-tests/186429)

<div class="topic-metadata">

**Author:** [@lykos](https://www.ruby-forum.com/u/lykos)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 2:33am UTC](https://www.ruby-forum.com/t/visibility-in-tests/186429 "2010-04-08T02:33:32Z")

</div>

Hi, I’m new to this, forum, but I really love Ruby and I hope this is the right place to discuss problems and questions I have. I learned Ruby when I was twelve, so I know Ruby for more than one third of my life and I…

---

## [Creating an exe on Mac OS X](https://www.ruby-forum.com/t/creating-an-exe-on-mac-os-x/186425)

<div class="topic-metadata">

**Author:** [@jcubed](https://www.ruby-forum.com/u/jcubed)\
**Replies:** 7\
**Last updated:** [April 8, 2010, 12:41am UTC](https://www.ruby-forum.com/t/creating-an-exe-on-mac-os-x/186425 "2010-04-08T00:41:33Z")

</div>

I’ve created a Ruby P. with Textmate, but now I need to create it as an exe for Windows computers. I know there is a way to create exe files on Windows, but I do not have the resources installed on a windows computer… …

---

## [Xml to ruby compactible json](https://www.ruby-forum.com/t/xml-to-ruby-compactible-json/186476)

<div class="topic-metadata">

**Author:** [@sharnel](https://www.ruby-forum.com/u/sharnel)\
**Replies:** 2\
**Last updated:** [April 8, 2010, 12:35am UTC](https://www.ruby-forum.com/t/xml-to-ruby-compactible-json/186476 "2010-04-08T00:35:45Z")

</div>

Hi, I have an xml which i need in ruby json format I use the below code : data=Hash.from\_xml(xml).to\_json() where xml contains the xml data. i get the result in the below format : {‘responseHeader’:{‘status’:0,‘QTi…

---

## [\[Feature:trunk\] \[irb\] interactive help](https://www.ruby-forum.com/t/feature-trunk-irb-interactive-help/179839)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [April 8, 2010, 12:27am UTC](https://www.ruby-forum.com/t/feature-trunk-irb-interactive-help/179839 "2010-04-08T00:27:41Z")

</div>

e$B$J$+$@$G$9!#e(B rie$B$Ne(Binteractive modee$B$re(Birbe$B$+$i;H$($k$h$&$K$9$k$H$$$&$N$O$I$&$G$7$ge(B e$B$&$+!#e(B Index: lib/irb/cmd/help.rb — lib/irb/cmd/help.rb (revision 25998) +++ lib/irb/cmd/help.rb (workin…

---

## [Irbsh-1.0.1](https://www.ruby-forum.com/t/irbsh-1-0-1/186491)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 11:08pm UTC](https://www.ruby-forum.com/t/irbsh-1-0-1/186491 "2010-04-07T23:08:40Z")

</div>

Hi, == About irbsh Irbsh is an extension of irb/inf-ruby.el. You can easily execute shell commands and Ruby codes by using irbsh. Eval list feature makes irbsh be an development environment of Ruby. While irbsh has …

---

## [$SAFE=0 for setuid?](https://www.ruby-forum.com/t/safe-0-for-setuid/186309)

<div class="topic-metadata">

**Author:** [@kly](https://www.ruby-forum.com/u/kly)\
**Replies:** 16\
**Last updated:** [April 7, 2010, 11:06pm UTC](https://www.ruby-forum.com/t/safe-0-for-setuid/186309 "2010-04-07T23:06:54Z")

</div>

Hi From most documentation I see that $SAFE is automatically set to 1 if you run ruby as root. However, this causes pcap that I’m using not to function (it throws a SecurityError). I need $SAFE=0 for pcap to functi…

---

## [Net::HTTP error -- getaddrinfo: nodename nor servname provid](https://www.ruby-forum.com/t/net-http-error-getaddrinfo-nodename-nor-servname-provid/186489)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/net-http-error-getaddrinfo-nodename-nor-servname-provid/186489 "2010-04-07T22:58:04Z")

</div>

Hi – I have an app that exists, is running on ssl, & is running happily on Heroku. I’ve exposed a web service on it that is called by this code: As far as I can tell, everything is absolutely correct (although I’ve …

---

## [Pass a password to ssh](https://www.ruby-forum.com/t/pass-a-password-to-ssh/186422)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [April 7, 2010, 10:04pm UTC](https://www.ruby-forum.com/t/pass-a-password-to-ssh/186422 "2010-04-07T22:04:28Z")

</div>

Anybody know how to pass a password to ssh? with this: require ‘open3’ stdin, stdout, stderr, thread\_on\_doze = Open3.popen3 ‘ssh user@host’ ssh somehow appears to bypass and still require the password from the termi…

---

## [Getting output of program with some DRb for good measure](https://www.ruby-forum.com/t/getting-output-of-program-with-some-drb-for-good-measure/186475)

<div class="topic-metadata">

**Author:** [@christoforever](https://www.ruby-forum.com/u/christoforever)\
**Replies:** 3\
**Last updated:** [April 7, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/getting-output-of-program-with-some-drb-for-good-measure/186475 "2010-04-07T21:54:05Z")

</div>

I’m running a DRb service which accepts a string and than processes that file name on the server side. So I’ve been digging around the internet and it seems people have been running into the same problems as me. The D…

---

## [Manipulating of an Array of Structs](https://www.ruby-forum.com/t/manipulating-of-an-array-of-structs/197228)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 9:52pm UTC](https://www.ruby-forum.com/t/manipulating-of-an-array-of-structs/197228 "2010-04-07T21:52:17Z")

</div>

I have data that I’ve extracted from a database, that I wish to pass to a calling (external) piece of software through Drb. The are a large number of data set formats, but an employee based example might look somethin…

---

## [What is the meaning of \\A and \\Z](https://www.ruby-forum.com/t/what-is-the-meaning-of-a-and-z/186485)

<div class="topic-metadata">

**Author:** [@amishera](https://www.ruby-forum.com/u/amishera)\
**Replies:** 3\
**Last updated:** [April 7, 2010, 8:37pm UTC](https://www.ruby-forum.com/t/what-is-the-meaning-of-a-and-z/186485 "2010-04-07T20:37:38Z")

</div>

It is said that \\A matches the beginning of the string and \\Z matches the end of the string. I am not sure what means.

---

## [Dissapearing data from array](https://www.ruby-forum.com/t/dissapearing-data-from-array/186483)

<div class="topic-metadata">

**Author:** [@nax](https://www.ruby-forum.com/u/nax)\
**Replies:** 3\
**Last updated:** [April 7, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/dissapearing-data-from-array/186483 "2010-04-07T20:33:50Z")

</div>

Hi all. I have the next problem. a = %w(a b) z = %w(1) a.insert(1, z) puts a a 1 b z.clear puts a a b Oopss… where “1” is? what happened? what can I do to keep “1” when I clear the array (z)? Thanks a lot. …

---

## [UML Diagrams](https://www.ruby-forum.com/t/uml-diagrams/186458)

<div class="topic-metadata">

**Author:** [@pollopoop92](https://www.ruby-forum.com/u/pollopoop92)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 8:11pm UTC](https://www.ruby-forum.com/t/uml-diagrams/186458 "2010-04-07T20:11:17Z")

</div>

Hi list, someone know with what app i can draw UML diagrams like the ones appear at PraProg books, for example, that seems handmaded? Something like yuml but standalone :slight\_smile: Thanks in advance, Francesco V…

---

## [Manipulating an Array of Structs](https://www.ruby-forum.com/t/manipulating-an-array-of-structs/186480)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/manipulating-an-array-of-structs/186480 "2010-04-07T18:54:35Z")

</div>

I have data that I’ve extracted from a database, that I wish to pass to a calling (external) piece of software through Drb. The are a large number of data set formats, but an employee based example might look somethin…

---

## [Heiao](https://www.ruby-forum.com/t/heiao/186477)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 5:25pm UTC](https://www.ruby-forum.com/t/heiao/186477 "2010-04-07T17:25:33Z")

</div>

oiefjid rakesh wrote: Watch Angelina Jolie’s sex scandal videos 30-Mar-10 Watch Angelina Jolie’s sex scandal videos at her house for more details register here to start watching video now http://moourl.com/82x99 P…

---

## [Executing a program (a quick question)](https://www.ruby-forum.com/t/executing-a-program-a-quick-question/186436)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/executing-a-program-a-quick-question/186436 "2010-04-07T17:23:48Z")

</div>

Hi! I want to launch a program and I don’t care about its return value or output. I also don’t want it to block my ruby program. On Linux I do this as follows: if !fork system(“xpdf /path/to/some/file”) exit! # … …

---

## [Modifying a Hash in one process when .each is running in another](https://www.ruby-forum.com/t/modifying-a-hash-in-one-process-when-each-is-running-in-another/186467)

<div class="topic-metadata">

**Author:** [@nmotter](https://www.ruby-forum.com/u/nmotter)\
**Replies:** 10\
**Last updated:** [April 7, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/modifying-a-hash-in-one-process-when-each-is-running-in-another/186467 "2010-04-07T17:07:59Z")

</div>

I want one process to continually loop through a list of objects (in the form of a hash), while another process continually refreshes that list. I’ve done it the most obvious way below, but are there any pitfalls here…

---

## [Maximum number of sockets](https://www.ruby-forum.com/t/maximum-number-of-sockets/186416)

<div class="topic-metadata">

**Author:** [@JesSSSSs\_Gabriel\_y\_S](https://www.ruby-forum.com/u/JesSSSSs_Gabriel_y_S)\
**Replies:** 8\
**Last updated:** [April 7, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/maximum-number-of-sockets/186416 "2010-04-07T16:54:31Z")

</div>

Hi, I am trying to test how many concurrent connections a certain web server (nginx) can support in our machines, so I tried to make a little ruby script to just open sockets connecting to that machine. I first incre…

---

## [Rubyproblems.com](https://www.ruby-forum.com/t/rubyproblems-com/186470)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 4:36pm UTC](https://www.ruby-forum.com/t/rubyproblems-com/186470 "2010-04-07T16:36:21Z")

</div>

Hi folks, I’m pleased to announce the launch of rubyproblems.com! While we’ve been jokingly referring to this service as “Like RubyQuiz, but less fun – Like PeepCode, but text-based”, we are actually trying to come u…

---

## [How to convert a float into time](https://www.ruby-forum.com/t/how-to-convert-a-float-into-time/186460)

<div class="topic-metadata">

**Author:** [@madhusudhan](https://www.ruby-forum.com/u/madhusudhan)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/how-to-convert-a-float-into-time/186460 "2010-04-07T16:06:11Z")

</div>

Hello, I am querying from the database which is storing time in double format. I need to convert this to time format. I was able to convert time into float but not able to convert the float into time format. Regards, …

---

## [Singularity Alert for OO AI in Ruby & Javascript](https://www.ruby-forum.com/t/singularity-alert-for-oo-ai-in-ruby-javascript/186426)

<div class="topic-metadata">

**Author:** [@Mentifex](https://www.ruby-forum.com/u/Mentifex)\
**Replies:** 3\
**Last updated:** [April 7, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/singularity-alert-for-oo-ai-in-ruby-javascript/186426 "2010-04-07T15:26:06Z")

</div>

The Amazon sales rank for the renegade AI4U textbook of artificial intelligence recently showed a slight uptick indicating that some genius AI devotee has prudently purchased the “leading” (idea-wise, not sales-wise …

---

## [Ruby uninstall and fresh install](https://www.ruby-forum.com/t/ruby-uninstall-and-fresh-install/186451)

<div class="topic-metadata">

**Author:** [@shreyas12](https://www.ruby-forum.com/u/shreyas12)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/ruby-uninstall-and-fresh-install/186451 "2010-04-07T13:30:29Z")

</div>

Everything was working fine , until we decided to upgrade ruby to 1.8.7 from 1.8.6, and thats when all hell broke loose. When we compiled Ruby 1.8.7 from source it got installed into /usr/local/bin and Ruby 1.8.6 stay…

---

## [Precision and ==](https://www.ruby-forum.com/t/precision-and/186457)

<div class="topic-metadata">

**Author:** [@LAMBEAU\_Bernard](https://www.ruby-forum.com/u/LAMBEAU_Bernard)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/precision-and/186457 "2010-04-07T13:07:59Z")

</div>

We all know that finite representation comes with some difficulties… but… x = 45.0\*(Math::PI / 180.0) y = 0.785398163397448 puts “#{x.class} : #{x}” puts “#{y.class} : #{y}” puts 45.0\*(Math::PI / 180.0) == 0.785398…

---

## [Convert multi dimentional array to array of hashes](https://www.ruby-forum.com/t/convert-multi-dimentional-array-to-array-of-hashes/186446)

<div class="topic-metadata">

**Author:** [@all4miller](https://www.ruby-forum.com/u/all4miller)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 11:56am UTC](https://www.ruby-forum.com/t/convert-multi-dimentional-array-to-array-of-hashes/186446 "2010-04-07T11:56:47Z")

</div>

Hi, How can I turn and array like this this \[\[1,2,3,4,5\],\[1,2,3,4,5\]\] into this \[{:lt=\>1,:ln=\>1},{:lt=\>2,:ln=\>2},{:lt=\>3,:ln=\>3},{:lt=\>4,:ln=\>4},{:lt=\>5,:ln=\>5}\] Cheers

---

## [Parse the data in an array index in ruby](https://www.ruby-forum.com/t/parse-the-data-in-an-array-index-in-ruby/186410)

<div class="topic-metadata">

**Author:** [@brknl](https://www.ruby-forum.com/u/brknl)\
**Replies:** 5\
**Last updated:** [April 7, 2010, 9:38am UTC](https://www.ruby-forum.com/t/parse-the-data-in-an-array-index-in-ruby/186410 "2010-04-07T09:38:58Z")

</div>

Hi, I have a array in a class. And i want to parse the data in the array’s index. I tried split method but it said private method ‘split’… For example class AA @data... ........ end @data\[0\]=" ABC HGD KKK 111…" …

---

## [What's matter with fastri?](https://www.ruby-forum.com/t/whats-matter-with-fastri/186437)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 8:35am UTC](https://www.ruby-forum.com/t/whats-matter-with-fastri/186437 "2010-04-07T08:35:45Z")

</div>

pt@pt-laptop:~$ sudo gem install fastercsv Successfully installed fastercsv-1.5.3 1 gem installed Installing ri documentation for fastercsv-1.5.3… Updating class cache with 1729 classes… Installing RDoc documentatio…

---

## [Heroku progamming](https://www.ruby-forum.com/t/heroku-progamming/186433)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 4\
**Last updated:** [April 7, 2010, 7:00am UTC](https://www.ruby-forum.com/t/heroku-progamming/186433 "2010-04-07T07:00:56Z")

</div>

Hello, We have a Ruby program that: Is based on Wee + rack Accepts input from a browser/client Generates a text file, which is also a ruby class Is this an appropriate ‘Ruby’ topic? If so: 1 Does ‘Heroku’ seem …

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

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