# Ruby

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

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

---

## [Date picker](https://www.ruby-forum.com/t/date-picker/147701)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 1\
**Last updated:** [September 4, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/date-picker/147701 "2008-09-04T14:31:34Z")

</div>

Hi, I need a plugin for date select from calender… plz reply if anybody know solution

---

## [IMAP, Gmail & reading the body of the message](https://www.ruby-forum.com/t/imap-gmail-reading-the-body-of-the-message/147618)

<div class="topic-metadata">

**Author:** [@azalar](https://www.ruby-forum.com/u/azalar)\
**Replies:** 5\
**Last updated:** [September 4, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/imap-gmail-reading-the-body-of-the-message/147618 "2008-09-04T14:11:07Z")

</div>

I have been collecting emails to my Gmail account for some time from a mailing list that I read and I want to write a Ruby script to iterate through these messages and give me back the data in the body of the message …

---

## [Block parameter for Delagator](https://www.ruby-forum.com/t/block-parameter-for-delagator/146864)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [September 4, 2008, 11:27am UTC](https://www.ruby-forum.com/t/block-parameter-for-delagator/146864 "2008-09-04T11:27:59Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. Ruby1.8 e$B$He(B Ruby1.9 e$B$H$G$Oe(B, e$B%V%m%C%/%Q%i%a!\<%?EO$7$N?6$kIq$$$N0c$$$G:$$Ce(B e$B$F$$$k$3$H$,$"$j$^$9e(B. e$B0J2\<$N%3!\<%I$r\<B9T$9$k$He(B: – require “delegate” d1 = SimpleD…

---

## [Does Ruby optimize tail-call recursion?](https://www.ruby-forum.com/t/does-ruby-optimize-tail-call-recursion/147252)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 6\
**Last updated:** [September 4, 2008, 10:56am UTC](https://www.ruby-forum.com/t/does-ruby-optimize-tail-call-recursion/147252 "2008-09-04T10:56:39Z")

</div>

Hi, I’m wondering if Ruby 1.9 optimizes tail-call recursion? I’ve read some reports that say yes, and some that say no. Does anyone know? Thanks -Patrick

---

## [Set session\_id with Jruby on Tomcat 6 / Stealing sessions](https://www.ruby-forum.com/t/set-session-id-with-jruby-on-tomcat-6-stealing-sessions/147693)

<div class="topic-metadata">

**Author:** [@Andres\_K](https://www.ruby-forum.com/u/Andres_K)\
**Replies:** 0\
**Last updated:** [September 4, 2008, 9:56am UTC](https://www.ruby-forum.com/t/set-session-id-with-jruby-on-tomcat-6-stealing-sessions/147693 "2008-09-04T09:56:53Z")

</div>

Hi, I’m using swfupload (flash uploader) to upload large files. A user must be logged in to be allowed to upload something. I did this by sending the session\_id as a GET parameter in the swfuploader target url. The s…

---

## [New Version of IBM\_DB Rails Adapter/Driver for IBM DataServers now available](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/196800)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [September 4, 2008, 6:40am UTC](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/196800 "2008-09-04T06:40:48Z")

</div>

Hi All, The new version (0.10.0) of IBM\_DB is now available. This release provides support for Trusted context in the driver. More details on what trusted context is can be found at http://publib.boulder.ibm.com/info…

---

## [Dtabase access with Ruby](https://www.ruby-forum.com/t/dtabase-access-with-ruby/147584)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [September 4, 2008, 6:22am UTC](https://www.ruby-forum.com/t/dtabase-access-with-ruby/147584 "2008-09-04T06:22:54Z")

</div>

Hi If myb doubt is a stupidity please forgive…I was reading a ruby book as part of learning Ruby and I reached heading accessing database with Ruby I have installed and running rails project…In the book it says two m…

---

## [Code Review: RubyClrInterop03](https://www.ruby-forum.com/t/code-review-rubyclrinterop03/147662)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [September 4, 2008, 2:35am UTC](https://www.ruby-forum.com/t/code-review-rubyclrinterop03/147662 "2008-09-04T02:35:49Z")

</div>

tfpt review “/shelveset:RubyClrInterop03;REDMOND\\curth” Comment : More Ruby CLR interop: Allow Ruby classes to implement / override virtual methods found in CLR base classes, including those from interfaces Support…

---

## [Recurrence 0.1.0](https://www.ruby-forum.com/t/recurrence-0-1-0/147645)

<div class="topic-metadata">

**Author:** [@edvardm](https://www.ruby-forum.com/u/edvardm)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/recurrence-0-1-0/147645 "2008-09-03T23:02:18Z")

</div>

git clone git://github.com/EdvardM/recurrence.git From the README: Recurrence \*\* Overview Recurrence provides a simple class for handling recurring, time-associated objects. The goal is to create a general-purpose…

---

## [ANN: Sequel 2.5.0 Released](https://www.ruby-forum.com/t/ann-sequel-2-5-0-released/147640)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/ann-sequel-2-5-0-released/147640 "2008-09-03T21:46:39Z")

</div>

Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but comprehensive ORM layer for mapping records to Ruby objec…

---

## [\[ann\] dbi 0.4.0](https://www.ruby-forum.com/t/ann-dbi-0-4-0/146702)

<div class="topic-metadata">

**Author:** [@happolati](https://www.ruby-forum.com/u/happolati)\
**Replies:** 2\
**Last updated:** [September 3, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/ann-dbi-0-4-0/146702 "2008-09-03T20:53:05Z")

</div>

DBI 0.4.0 is the next stable release of DBI, a lightweight database agnostic interface modeled after Perl’s DBI. This release brings many things: Type conversion is now universally managed amongst DBDs. Please see D…

---

## [Dir.glob doubt](https://www.ruby-forum.com/t/dir-glob-doubt/147633)

<div class="topic-metadata">

**Author:** [@dracko](https://www.ruby-forum.com/u/dracko)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/dir-glob-doubt/147633 "2008-09-03T20:33:16Z")

</div>

Reading the Rails source, I found this: (Dir.glob("#{@path}//\*/") | Dir.glob("#{@path}/\*\*")).each do |file| Why is it different from just: (Dir.glob("#{@path}/\*\*")).each do |file| What am I missing? Thanks, Rodrigo…

---

## [Simple IMAP client?](https://www.ruby-forum.com/t/simple-imap-client/147493)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 3\
**Last updated:** [September 3, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/simple-imap-client/147493 "2008-09-03T19:12:17Z")

</div>

People, I am thinking about writing a very simple IMAP client in Ruby (mostly for access from mobile phones) - anyone done anything like this? Suggestions? Thanks, Phil. Philip R. GPO Box 3411 Sydney NSW 2001 Au…

---

## [Thread safe profiler](https://www.ruby-forum.com/t/thread-safe-profiler/147622)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/thread-safe-profiler/147622 "2008-09-03T18:08:56Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. profiler.rb e$B$G$9$,e(B, thread safe e$B$G$O$"$j$^$;$se(B. e$B$=$l$Ge(B, thread safe e$B$K$9$k$K$Oe(B, thread e$BC10L$Ge(B cpu time e$B$,\<h$l$l$P=PMh$=$&$G$9e(B. pthread(e$B$H$$$&$+e(Bl…

---

## [How to match words that rhyme?](https://www.ruby-forum.com/t/how-to-match-words-that-rhyme/147309)

<div class="topic-metadata">

**Author:** [@reddvinylene](https://www.ruby-forum.com/u/reddvinylene)\
**Replies:** 11\
**Last updated:** [September 3, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/how-to-match-words-that-rhyme/147309 "2008-09-03T18:07:10Z")

</div>

Hello hello! How do I match words that rhyme, like end rhymes, last syllable rhymes, double rhymes, beginning rhymes and first syllable rhymes? Like rhymer.com. I’m looking to improve my freestyle skills …

---

## [Code Review: config-1](https://www.ruby-forum.com/t/code-review-config-1/147567)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/code-review-config-1/147567 "2008-09-03T17:32:34Z")

</div>

tfpt review “/shelveset:config-1;REDMOND\\jflam” Comment : Updated the Rakefile to reflect the new DLR configuration settings. We now transform app.config to ir.exe.config based on whether it is a Merlin, Svn, or Bin…

---

## [Ruby 1.8.6 on AIX 5.3](https://www.ruby-forum.com/t/ruby-1-8-6-on-aix-5-3/147238)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-on-aix-5-3/147238 "2008-09-03T17:24:55Z")

</div>

I’m trying to get ruby/rails up and running on on an AIX 5.3 box. I’ve gone through the installation several times, and I’m getting very close. Ruby compiles, irb and simple ruby programs run, rubygems installs, as d…

---

## [Where the Required Things Are (#175)](https://www.ruby-forum.com/t/where-the-required-things-are-175/147227)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 20\
**Last updated:** [September 3, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/where-the-required-things-are-175/147227 "2008-09-03T15:50:58Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [Downloading files](https://www.ruby-forum.com/t/downloading-files/147586)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 3\
**Last updated:** [September 3, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/downloading-files/147586 "2008-09-03T15:43:05Z")

</div>

Hi, Which is the proper way to download a binary file? Trying: open(temp\_path,“w”).write(open(http\_path).read) returns truncated files Cheers, M.

---

## [Using actionmailer to send an email](https://www.ruby-forum.com/t/using-actionmailer-to-send-an-email/141040)

<div class="topic-metadata">

**Author:** [@APNelson.L](https://www.ruby-forum.com/u/APNelson.L)\
**Replies:** 7\
**Last updated:** [September 3, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/using-actionmailer-to-send-an-email/141040 "2008-09-03T15:23:43Z")

</div>

Hi, I was just wondering how i would write a ruby script to send an email using the gmail smtp. Here is what I have so far: require ‘rubygems’ require ‘action\_mailer’ class SimpleMailer \< ActionMailer::Base def sim…

---

## [Re: Open4 : undefined method \`spawn'](https://www.ruby-forum.com/t/re-open4-undefined-method-spawn/147602)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/re-open4-undefined-method-spawn/147602 "2008-09-03T15:22:47Z")

</div>

seems strange to me because the method spawn IS defined in the “module Open4” (lines 241-320) “include Mod” gives you access to the instance methods of the module, but not module methods. See class Module - RDoc Do…

---

## [Binary files comparision](https://www.ruby-forum.com/t/binary-files-comparision/147581)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 4\
**Last updated:** [September 3, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/binary-files-comparision/147581 "2008-09-03T15:21:37Z")

</div>

Hallo guys, I’ve got 2 folders with content which I need to binary compare (file by file). Is in ruby any library to help me with this? Any other ideas? Thanks in advance

---

## [IO#write\_nonblock(string, offset) useful?](https://www.ruby-forum.com/t/io-write-nonblock-string-offset-useful/147526)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [September 3, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/io-write-nonblock-string-offset-useful/147526 "2008-09-03T15:05:45Z")

</div>

Was asked to repost this under a separate thread, so here it is! Currently we have IO#write\_nonblock(string) \[writes as much of the string as currently possible\] What I was thinking would be useful would be IO#write…

---

## [Re: Does Ruby has free DES encrypt lib?](https://www.ruby-forum.com/t/re-does-ruby-has-free-des-encrypt-lib/147591)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/re-does-ruby-has-free-des-encrypt-lib/147591 "2008-09-03T14:11:11Z")

</div>

I think there is a DES cipher in the openssl api. Unfornutately, this is not well documented. Check openssl ruby-stdlib documentation. which you can find at http://technorama.net/~oss/ruby/openssl/doc/ If you goog…

---

## [Refactoring of enumerating prime numbers](https://www.ruby-forum.com/t/refactoring-of-enumerating-prime-numbers/146023)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 19\
**Last updated:** [September 3, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/refactoring-of-enumerating-prime-numbers/146023 "2008-09-03T13:47:08Z")

</div>

Yuguiã§ã™ã€‚ mathn.rbã«åŽéŒ²ã•ã‚Œã¦ã„ã‚‹Primeã‚¯ãƒ©ã‚¹ã®ä½¿ã„å‹æ‰‹ãŒã„ã¾ã„ã¡è‰¯ããªã„ã®ã§æ”¹å–„ ã‚’ææ¡ˆã—ã¾ã™ã€‚ç›´ã—ãŸã„ã®ã¯3ç‚¹ã§ã™ã€‚ mathn.rbã«å…¥ã£ã¦ã„ã‚‹ ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚…

---

## [Ruby doesn't need equal's signs for assigment?](https://www.ruby-forum.com/t/ruby-doesnt-need-equals-signs-for-assigment/147490)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 4\
**Last updated:** [September 3, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/ruby-doesnt-need-equals-signs-for-assigment/147490 "2008-09-03T12:43:03Z")

</div>

I’m new to Ruby… do you need ='s signs for assigment? On this page: I see this example over and over… where are the equal’s signs??? class Notifier \< ActionMailer::Base def signup\_notification(recipient) recipient…

---

## [\[Bug #495\] Failure: test\_priority(TestThread)](https://www.ruby-forum.com/t/bug-495-failure-test-priority-testthread/146790)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/bug-495-failure-test-priority-testthread/146790 "2008-09-03T12:28:33Z")

</div>

Bug #495: Failure: test\_priority(TestThread) http://redmine.ruby-lang.org/issues/show/495 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal CPUe$B$J$I$NB\>$N4D6-$b1F6A$7$=$&$G$9$,!"e(B rub…

---

## [Sketchup: Constructing Triangle with Ruby](https://www.ruby-forum.com/t/sketchup-constructing-triangle-with-ruby/127349)

<div class="topic-metadata">

**Author:** [@eps](https://www.ruby-forum.com/u/eps)\
**Replies:** 3\
**Last updated:** [September 3, 2008, 11:27am UTC](https://www.ruby-forum.com/t/sketchup-constructing-triangle-with-ruby/127349 "2008-09-03T11:27:02Z")

</div>

Hello, i’m constructing triangles with ruby and try to plot them within Sketchup. In most cases, this works. But sometimes, an error occurs: “Points are not planar”, which is quite strange for a triangle… model = Ske…

---

## [How can I prevent include one module multi-times?](https://www.ruby-forum.com/t/how-can-i-prevent-include-one-module-multi-times/147556)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 8\
**Last updated:** [September 3, 2008, 10:41am UTC](https://www.ruby-forum.com/t/how-can-i-prevent-include-one-module-multi-times/147556 "2008-09-03T10:41:09Z")

</div>

I am looking for a method to check whether this module has been included. Does Ruby have this feature?

---

## [Does Ruby has free DES encrypt lib?](https://www.ruby-forum.com/t/does-ruby-has-free-des-encrypt-lib/147565)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 9:14am UTC](https://www.ruby-forum.com/t/does-ruby-has-free-des-encrypt-lib/147565 "2008-09-03T09:14:59Z")

</div>

Does Ruby has free DES encrypt lib?

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

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