# Ruby

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

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

---

## [STARTTLS in Net::SMTP: news on the patch?](https://www.ruby-forum.com/t/starttls-in-net-news-on-the-patch/89479)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [March 31, 2007, 7:23am UTC](https://www.ruby-forum.com/t/starttls-in-net-news-on-the-patch/89479 "2007-03-31T07:23:41Z")

</div>

Searching back through the archives I found this message from 2004 by Daniel Hobe where he writes: “This patch adds STARTTLS support to net/smtp. The new methods are modeled on my previous patch to add SSL support to…

---

## [ANN: Swiftcore Analogger; fast asynchronous logging](https://www.ruby-forum.com/t/ann-swiftcore-analogger-fast-asynchronous-logging/90700)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 6:04am UTC](https://www.ruby-forum.com/t/ann-swiftcore-analogger-fast-asynchronous-logging/90700 "2007-03-31T06:04:36Z")

</div>

I’m announcing the first public release of the Swiftcore Analogger, a fast asynchronous logging service and client library for Ruby. – http://analogger.swiftcore.org You have a high performance Ruby application tha…

---

## [What is wrong in my script?](https://www.ruby-forum.com/t/what-is-wrong-in-my-script/90682)

<div class="topic-metadata">

**Author:** [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Replies:** 2\
**Last updated:** [March 31, 2007, 1:35am UTC](https://www.ruby-forum.com/t/what-is-wrong-in-my-script/90682 "2007-03-31T01:35:21Z")

</div>

require ‘net/smtp’ def send\_email(from, from\_alias, to, to\_alias, subject, message) msg = \<\<END\_OF\_MESSAGE From: #{from\_alias} \<#{from}\> To: #{to\_alias} \<#{to}\> Subject: #{subject} #{message} END\_OF\_MESSAGE Net::…

---

## [Is there a library/mechanism for an object/hash hybrid?](https://www.ruby-forum.com/t/is-there-a-library-mechanism-for-an-object-hash-hybrid/90666)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [March 31, 2007, 1:31am UTC](https://www.ruby-forum.com/t/is-there-a-library-mechanism-for-an-object-hash-hybrid/90666 "2007-03-31T01:31:20Z")

</div>

Hi, There are times when I want to store items in a hash, and yet refer the items using class/object method syntax. For example, I may want to do this: myhash\[‘aaa’\] = ‘bbb’ and then be able to refer to the ‘aaa’ …

---

## [Newbie needs a pointer](https://www.ruby-forum.com/t/newbie-needs-a-pointer/90670)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [March 31, 2007, 1:26am UTC](https://www.ruby-forum.com/t/newbie-needs-a-pointer/90670 "2007-03-31T01:26:18Z")

</div>

Hi all, just started looking at Ruby in earnest today and my logic has failed me already. Can someone provide some subtle hints are to where the following code needs attension. Its currently stuck in a continuous loo…

---

## [Simple gsub question \\' \\\` what?](https://www.ruby-forum.com/t/simple-gsub-question-what/90683)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 4\
**Last updated:** [March 31, 2007, 12:32am UTC](https://www.ruby-forum.com/t/simple-gsub-question-what/90683 "2007-03-31T00:32:09Z")

</div>

Sorry for the simple question, I just can’t figure this out after a couple hours… I need to parse a string: string = column-1:block-0,block-2,block-1,block-3 and I need to extract everything before the : (colon) into…

---

## [Free pdf ebook](https://www.ruby-forum.com/t/free-pdf-ebook/89765)

<div class="topic-metadata">

**Author:** [@hazal](https://www.ruby-forum.com/u/hazal)\
**Replies:** 65\
**Last updated:** [March 30, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/free-pdf-ebook/89765 "2007-03-30T22:52:29Z")

</div>

Hello everybody, i start to learn Ruby . i NEED “sams teach yourself RUBY in 21 days” book. can you give me any link to get it by downloading pdf format. thank you

---

## [Rdoc](https://www.ruby-forum.com/t/rdoc/90603)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/rdoc/90603 "2007-03-30T19:53:33Z")

</div>

Hey guys, I’m writing an extension and I’m having a little trouble getting rdoc to generate the documentation for me. I suspect that the problem is that I have my function documentation inside of the .h file precedin…

---

## [Just for fun](https://www.ruby-forum.com/t/just-for-fun/88939)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 39\
**Last updated:** [March 30, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/just-for-fun/88939 "2007-03-30T19:01:23Z")

</div>

I posted this to another forum as part of a challenge… thought to post it here just for fun. +5 pts if you know what algorithm is being used here… Anyone care to golf? Note that the breakdown of the string TXT was …

---

## [Passing data to tests with test/unit](https://www.ruby-forum.com/t/passing-data-to-tests-with-test-unit/90456)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 6\
**Last updated:** [March 30, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/passing-data-to-tests-with-test-unit/90456 "2007-03-30T17:43:55Z")

</div>

I have a test case, based on the Test::Unit::TestCase. How does one pass data to the test in such a way that the test can be run multiple times with different input. For example: class TC\_CreateOrder \< Test::Unit::Te…

---

## [HighLine Questions](https://www.ruby-forum.com/t/highline-questions/90611)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/highline-questions/90611 "2007-03-30T17:05:50Z")

</div>

Hi all, A few quick questions out there for people using HighLine. I’ve been looking at the examples and the readline one looks similar to what I want to do. Basically, I’d like the user to be able to type commands …

---

## [Required module automatically including, except in Debian](https://www.ruby-forum.com/t/required-module-automatically-including-except-in-debian/90613)

<div class="topic-metadata">

**Author:** [@Phil\_Darnowsky](https://www.ruby-forum.com/u/Phil_Darnowsky)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/required-module-automatically-including-except-in-debian/90613 "2007-03-30T16:55:49Z")

</div>

Dear everyone, I’ve recently joined a project which has some code analagous to this: included.rb: OUTER\_CONST = ‘foo’ module Included INNER\_CONST = 42 end includer.rb: require ‘included’ puts OUTER\_CONST # …

---

## [RoR + AJAX + Flickr](https://www.ruby-forum.com/t/ror-ajax-flickr/90629)

<div class="topic-metadata">

**Author:** [@Gayal](https://www.ruby-forum.com/u/Gayal)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/ror-ajax-flickr/90629 "2007-03-30T16:32:44Z")

</div>

Hi Guys, I was trying to implement the RUBY Flicker AJAX thing while watching the 20 min movie and i have no clue from where he drag and drop the Flickr API key. How can i do this? BTW Whats the text editor he’s us…

---

## [Release It! Design and Deploy Production-Ready Software](https://www.ruby-forum.com/t/release-it-design-and-deploy-production-ready-software/90635)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/release-it-design-and-deploy-production-ready-software/90635 "2007-03-30T16:14:41Z")

</div>

Folks, Mike Nygard’s new book, “Release It! Design and Deploy Production- Ready Software” is now in stock and shipping. Whether it’s in Java, .NET, or Ruby on Rails, getting your application ready to ship is only h…

---

## [Ruby-C Book?](https://www.ruby-forum.com/t/ruby-c-book/89972)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/ruby-c-book/89972 "2007-03-30T15:21:33Z")

</div>

I am still trying to improve my poor C and Ruby-C knowledge, today I managed to use rb\_iv\_set and rb\_iv\_get successfully … wow :wink: But what I would really like to have would be a Pickaxe2-like book dedicated to the…

---

## [New bie ::: how to use fork?](https://www.ruby-forum.com/t/new-bie-how-to-use-fork/90623)

<div class="topic-metadata">

**Author:** [@sai438](https://www.ruby-forum.com/u/sai438)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/new-bie-how-to-use-fork/90623 "2007-03-30T15:01:29Z")

</div>

I want to use fork call, but when Iam exiting in the fork call, the script is exiting but running in background. why is this happening???

---

## [Why is error not showing on rhtml page](https://www.ruby-forum.com/t/why-is-error-not-showing-on-rhtml-page/90560)

<div class="topic-metadata">

**Author:** [@PerfectDayToChaseTo](https://www.ruby-forum.com/u/PerfectDayToChaseTo)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/why-is-error-not-showing-on-rhtml-page/90560 "2007-03-30T14:56:28Z")

</div>

Hi All, Would someone please be kind enough to help? I think I’ve got everything right (though obviously I havent). I am putting some validation in my model class & expecting the error to show on the page, however it…

---

## [Pcaplet 'lookupdev': no suitable device found](https://www.ruby-forum.com/t/pcaplet-lookupdev-no-suitable-device-found/90548)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/pcaplet-lookupdev-no-suitable-device-found/90548 "2007-03-30T13:54:12Z")

</div>

Hello, I’m trying to prototype using Ruby for a networking class that I’m taking, and I need to be able to use libpcap. I found ‘pcaplet’ and have been trying to get set up with that, but when trying to execute the …

---

## [Same operation (sort of), different results](https://www.ruby-forum.com/t/same-operation-sort-of-different-results/90604)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/same-operation-sort-of-different-results/90604 "2007-03-30T13:41:11Z")

</div>

I’m a little confused by these results. Perhaps someone can tell me what I’m assuming incorrectly: $ irb irb(main):001:0\> 5 / 9 \* ( 100 - 32 ) =\> 0 irb(main):002:0\> ( 5 / 9 ) \* ( 100 - 32 ) =\> 0 irb(main):004:0\> …

---

## [RGL: decorate nodes and edges](https://www.ruby-forum.com/t/rgl-decorate-nodes-and-edges/90575)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 1:02pm UTC](https://www.ruby-forum.com/t/rgl-decorate-nodes-and-edges/90575 "2007-03-30T13:02:02Z")

</div>

Hi Guys Did anyone of you work with RGL (Ruby Graph Library? Did you try to decorate (e.g. color, shape, etc.) your nodes and edges? Were you successful? Could anyone point me to a good documentation or to some examp…

---

## [Re: Ruby math.pow equivalent](https://www.ruby-forum.com/t/re-ruby-math-pow-equivalent/90615)

<div class="topic-metadata">

**Author:** [@KandemS\_Vamshi\_Kris](https://www.ruby-forum.com/u/KandemS_Vamshi_Kris)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/re-ruby-math-pow-equivalent/90615 "2007-03-30T12:00:48Z")

</div>

Hi john, This the answer. @principal\*@rate/(1-(1/(1+@rate))\*\*@payments ) Thanks VamshiK

---

## [Ruby math.pow equivalent](https://www.ruby-forum.com/t/ruby-math-pow-equivalent/90558)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 6\
**Last updated:** [March 30, 2007, 11:53am UTC](https://www.ruby-forum.com/t/ruby-math-pow-equivalent/90558 "2007-03-30T11:53:48Z")

</div>

Hi, I am trying to calculate a monthly payment for a loan in Ruby. Does anyone know what the equivalent for math.pow in Java is for Ruby? @monthlypayment = @principal\*@rate/(1-Math.pow(1/(1+@rate),@payments)) Ive se…

---

## [Exceptions occassionally lost by child threads](https://www.ruby-forum.com/t/exceptions-occassionally-lost-by-child-threads/90605)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 10:00am UTC](https://www.ruby-forum.com/t/exceptions-occassionally-lost-by-child-threads/90605 "2007-03-30T10:00:34Z")

</div>

Hey Guys, As I understand it, the correct way to pass exceptions between threads is to explicitly raise them in the target thread… so something like this works: a = Thread.new(Thread.current) { |parent| … parent.ra…

---

## [Code to login into any account with login and passport](https://www.ruby-forum.com/t/code-to-login-into-any-account-with-login-and-passport/90523)

<div class="topic-metadata">

**Author:** [@Sachin\_Gadkar](https://www.ruby-forum.com/u/Sachin_Gadkar)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 9:29am UTC](https://www.ruby-forum.com/t/code-to-login-into-any-account-with-login-and-passport/90523 "2007-03-30T09:29:30Z")

</div>

Hi Ruby\_pals, Say, I have login and password for an account. Is it possible to get logged into it through a ruby code. Kindly suggest, ways. – removed\_email\_address@domain.invalid URL : http://nichas143.tripod.com

---

## [Rethinking the Generic Ruby Oneliner](https://www.ruby-forum.com/t/rethinking-the-generic-ruby-oneliner/90092)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 9:06am UTC](https://www.ruby-forum.com/t/rethinking-the-generic-ruby-oneliner/90092 "2007-03-30T09:06:26Z")

</div>

So I was asking myself the question… What ruby run time options would I add to make oneliners easier. Basically awk started it all with the notion of a loop that iterated over a file allowing patterns and actions per …

---

## [How to md5 a string?](https://www.ruby-forum.com/t/how-to-md5-a-string/90593)

<div class="topic-metadata">

**Author:** [@abon](https://www.ruby-forum.com/u/abon)\
**Replies:** 6\
**Last updated:** [March 30, 2007, 8:02am UTC](https://www.ruby-forum.com/t/how-to-md5-a-string/90593 "2007-03-30T08:02:58Z")

</div>

I’m using hexdigest in Digest/MD5 but got totally different outputs from other tools. I got some clues that in windows I should read the source I would like to hash with binary mode. But I have no idea how to transfo…

---

## [(Fire|)Watir and Selenium - Google SoC](https://www.ruby-forum.com/t/fire-watir-and-selenium-google-soc/90528)

<div class="topic-metadata">

**Author:** [@helder](https://www.ruby-forum.com/u/helder)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 6:16am UTC](https://www.ruby-forum.com/t/fire-watir-and-selenium-google-soc/90528 "2007-03-30T06:16:49Z")

</div>

Hi! I’ve got a project to come up with a way to record user action in Ruby code that can be executed by FireWatir. My idea is to parse the output from TestGen4Web or Selenium-IDE. This idea was proposed in the ruby- …

---

## [File.exists? broken in svn](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574)

<div class="topic-metadata">

**Author:** [@bch36](https://www.ruby-forum.com/u/bch36)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 6:15am UTC](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574 "2007-03-30T06:15:49Z")

</div>

The following one-liner works with release versions of ruby, but fails in the current version from svn: ruby -e ‘print File.exists?(“a.a”)’ This isn’t intentional, is it? I’m just trying to get a running copy of ruby…

---

## [Simple question on random numbers](https://www.ruby-forum.com/t/simple-question-on-random-numbers/90455)

<div class="topic-metadata">

**Author:** [@daddek](https://www.ruby-forum.com/u/daddek)\
**Replies:** 10\
**Last updated:** [March 30, 2007, 5:47am UTC](https://www.ruby-forum.com/t/simple-question-on-random-numbers/90455 "2007-03-30T05:47:19Z")

</div>

Hi. Total noob, very simple question. Can anyone tell me how I can generate a random number between two specific figures (between 60 and 2000, for instance)/ Thanks

---

## [Simple eruby -- including files](https://www.ruby-forum.com/t/simple-eruby-including-files/90553)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 5:29am UTC](https://www.ruby-forum.com/t/simple-eruby-including-files/90553 "2007-03-30T05:29:45Z")

</div>

NOTE: I’ll try one more time. For some reason, this message hasn’t been getting through. It occurred to me that the mailing list might be discarding messages with (X)HTML in them, so I replaced all greater-than and…

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

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