# Ruby

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

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

---

## [Tk supports only GIF?](https://www.ruby-forum.com/t/tk-supports-only-gif/158363)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 5\
**Last updated:** [January 27, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/tk-supports-only-gif/158363 "2009-01-27T18:25:32Z")

</div>

I has this snippet to show images: require ‘tk’ TkLabel.new do image TkPhotoImage.new(‘file’=\> ‘world.gif’) end.pack Tk.mainloop But if I point it to some PNG or JPEG file, I get a “couldn’t recognize data in imag…

---

## [Ncurses: Take the input from certain spot?](https://www.ruby-forum.com/t/ncurses-take-the-input-from-certain-spot/158753)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [January 27, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/ncurses-take-the-input-from-certain-spot/158753 "2009-01-27T17:56:40Z")

</div>

I’ve set up a basic window that goes along the bottom of the term screen, 3 pixels tall, and I was wondering if it’s possible to tell Ncurses to show what the user is typing inside of this bordered window (it looks li…

---

## [\[Bug #1062\] Error: test\_def\_method](https://www.ruby-forum.com/t/bug-1062-error-test-def-method/158726)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [January 27, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/bug-1062-error-test-def-method/158726 "2009-01-27T17:27:44Z")

</div>

Bug #1062: Error: test\_def\_method http://redmine.ruby-lang.org/issues/show/1062 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Masatoshi Seki Reproducible Version: 1.8-he…

---

## [java.lang.ArrayIndexOutOfBoundsException - JRuby or Ruby bug?](https://www.ruby-forum.com/t/java-lang-arrayindexoutofboundsexception-jruby-or-ruby-bug/158684)

<div class="topic-metadata">

**Author:** [@Martijn\_S](https://www.ruby-forum.com/u/Martijn_S)\
**Replies:** 2\
**Last updated:** [January 27, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/java-lang-arrayindexoutofboundsexception-jruby-or-ruby-bug/158684 "2009-01-27T17:20:38Z")

</div>

Hello all, Recently I’ve updated the Prawn gem in one of my projects. It’s an alpha gem that’s not officially supporting JRuby, but since it’s 100% pure Ruby I was wondering if you could point me in the right direct…

---

## [How to pop up a Download Window](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 2\
**Last updated:** [January 27, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583 "2009-01-27T16:11:33Z")

</div>

Hi all , I have to show window as like you got on click of save(or by pressing of ctrl+s), which exact function like the crtl+s press. Please let me know if anyone having any idea regarding this. It would be great he…

---

## [Saving ActiveRecord/form changes](https://www.ruby-forum.com/t/saving-activerecord-form-changes/158742)

<div class="topic-metadata">

**Author:** [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Replies:** 1\
**Last updated:** [January 27, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/saving-activerecord-form-changes/158742 "2009-01-27T15:55:58Z")

</div>

Greetings everyone, I can’t pass updated/changed values from the form elements to the ActiveRecord. However something is going through because the table’s update\_when column is registering the date/time of the update…

---

## [Name Extraction](https://www.ruby-forum.com/t/name-extraction/158733)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [January 27, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/name-extraction/158733 "2009-01-27T14:51:30Z")

</div>

Hi Friends i have following string removed\_email\_address@domain.invalid~Vs~removed\_email\_address@domain.invalid the above string has 2 email ids in it.but i need only names of it. i want to extract only the names ja…

---

## [Time Compare](https://www.ruby-forum.com/t/time-compare/157994)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 11\
**Last updated:** [January 27, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/time-compare/157994 "2009-01-27T13:08:12Z")

</div>

Hello all is there any direct comparison function in ruby or in rails for time I need a function which compare current time is between 2 time objects or not … Please help me thanks in advance

---

## [\[Bug #1061\] free $B$N(B bcc32 $B$K$h$k(B Ruby $B$N(B build $B;~$NIT6q9g(B?](https://www.ruby-forum.com/t/bug-1061-free-b-n-b-bcc32-b-k-h-k-b-ruby-b-n-b-build-b-nit6q9g-b/158735)

<div class="topic-metadata">

**Author:** [@Jun\_Kudo](https://www.ruby-forum.com/u/Jun_Kudo)\
**Replies:** 0\
**Last updated:** [January 27, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/bug-1061-free-b-n-b-bcc32-b-k-h-k-b-ruby-b-n-b-build-b-nit6q9g-b/158735 "2009-01-27T12:47:05Z")

</div>

e$B%A%1%C%He(B #1061 e$B$,99?7$5$l$^$7$?!#e(B (by Jun Kudo) e$BN;2r$7$^$7$?!#e(B http://redmine.ruby-lang.org/issues/show/1061

---

## [\[Bug #1059\] cannot make socket.so](https://www.ruby-forum.com/t/bug-1059-cannot-make-socket-so/158711)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [January 27, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/bug-1059-cannot-make-socket-so/158711 "2009-01-27T12:17:43Z")

</div>

Bug #1059: cannot make socket.so http://redmine.ruby-lang.org/issues/show/1059 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext Reproducible Version: trunk libsocks4…

---

## [Page crawling and URL grabbing](https://www.ruby-forum.com/t/page-crawling-and-url-grabbing/158704)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 4\
**Last updated:** [January 27, 2009, 9:42am UTC](https://www.ruby-forum.com/t/page-crawling-and-url-grabbing/158704 "2009-01-27T09:42:06Z")

</div>

Hey guys, I’m trying to write an application that goes onto a website (istockphoto specifically), opens up istockphoto.com/file\_browse.php and grabs the URLs of the photos that appear there. It’s my first time doing …

---

## [A test suite for DRb](https://www.ruby-forum.com/t/a-test-suite-for-drb/158723)

<div class="topic-metadata">

**Author:** [@Dido\_S](https://www.ruby-forum.com/u/Dido_S)\
**Replies:** 0\
**Last updated:** [January 27, 2009, 9:41am UTC](https://www.ruby-forum.com/t/a-test-suite-for-drb/158723 "2009-01-27T09:41:31Z")

</div>

I’ve been working on a version of distributed Ruby that makes use of EventMachine (http://rubyforge.org/projects/emdrb) and so far, it seems to work well enough for most of the obvious stuff I use distributed Ruby for…

---

## [How do I use Erubis?](https://www.ruby-forum.com/t/how-do-i-use-erubis/158698)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 1\
**Last updated:** [January 27, 2009, 9:38am UTC](https://www.ruby-forum.com/t/how-do-i-use-erubis/158698 "2009-01-27T09:38:45Z")

</div>

I have been using eruby for embedded ruby in html, and I am moving to a new server and am interested in using erubis instead - how do I do that? Do I just install the rubygem and my .rhtml files should work the same w…

---

## [Remotely passing value on system() or %x\[\]](https://www.ruby-forum.com/t/remotely-passing-value-on-system-or-x/149958)

<div class="topic-metadata">

**Author:** [@mmabika](https://www.ruby-forum.com/u/mmabika)\
**Replies:** 10\
**Last updated:** [January 27, 2009, 9:34am UTC](https://www.ruby-forum.com/t/remotely-passing-value-on-system-or-x/149958 "2009-01-27T09:34:39Z")

</div>

Hi, I want to execute a remote bash script that take one string argument by using system() or %x\[\]. But the value argument is not transmited remotely. Here my program def trait\_fic(repfic) Find.find(repfic) do |pat…

---

## [\[Bug #1061\](Rejected) free $B$N(B bcc32 $B$K$h$k(B Ruby $B$N(B build $B;~$NIT6q9g(B?](https://www.ruby-forum.com/t/bug-1061-rejected-free-b-n-b-bcc32-b-k-h-k-b-ruby-b-n-b-build-b-nit6q9g-b/158722)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [January 27, 2009, 9:28am UTC](https://www.ruby-forum.com/t/bug-1061-rejected-free-b-n-b-bcc32-b-k-h-k-b-ruby-b-n-b-build-b-nit6q9g-b/158722 "2009-01-27T09:28:00Z")

</div>

e$B%A%1%C%He(B #1061 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA) e$B%+%F%4%je(B coree$B$K%;%C%He(B e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B e$B$H!"$$$&$h$&$JLdBj$r%a%s%F$9$k?M$,B8:\_$7$J$$$?$a!"e(Bbcc32e$B…

---

## [Display file contents in browser](https://www.ruby-forum.com/t/display-file-contents-in-browser/143870)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 2\
**Last updated:** [January 27, 2009, 9:24am UTC](https://www.ruby-forum.com/t/display-file-contents-in-browser/143870 "2009-01-27T09:24:33Z")

</div>

Hi, I have uploaded file and i am showing all uploaded files in browser with links the problem here is i need to show the file contents in the browser itself without downloading… is there any solution plz reply me

---

## [\[Bug #1061\] free $B$N(B bcc32 $B$K$h$k(B Ruby $B$N(B build $B;~$NIT6q9g(B?](https://www.ruby-forum.com/t/bug-1061-free-b-n-b-bcc32-b-k-h-k-b-ruby-b-n-b-build-b-nit6q9g-b/158721)

<div class="topic-metadata">

**Author:** [@Jun\_Kudo](https://www.ruby-forum.com/u/Jun_Kudo)\
**Replies:** 0\
**Last updated:** [January 27, 2009, 9:13am UTC](https://www.ruby-forum.com/t/bug-1061-free-b-n-b-bcc32-b-k-h-k-b-ruby-b-n-b-build-b-nit6q9g-b/158721 "2009-01-27T09:13:53Z")

</div>

Bug #1061: free e$B$Ne(B bcc32 e$B$K$h$ke(B Ruby e$B$Ne(B build e$B;~$NIT6q9ge(B ? http://redmine.ruby-lang.org/issues/show/1061 e$B5/I\<\<Te(B: Jun Kudo e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High Target version: 1.9.…

---

## [Question about BlankSlate.reveal](https://www.ruby-forum.com/t/question-about-blankslate-reveal/158579)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 7\
**Last updated:** [January 27, 2009, 12:40am UTC](https://www.ruby-forum.com/t/question-about-blankslate-reveal/158579 "2009-01-27T00:40:04Z")

</div>

Hi folks, I’ve been working on a chapter for “Ruby Best Practices”\[0\] about the dynamic nature of Ruby, and I initially thought Jim W.'s BlankSlate would be an excellent example (even though 1.9 has BasicObject). Ho…

---

## [Non-invasive templating solutions in ruby?](https://www.ruby-forum.com/t/non-invasive-templating-solutions-in-ruby/158677)

<div class="topic-metadata">

**Author:** [@Terrence\_Brannon](https://www.ruby-forum.com/u/Terrence_Brannon)\
**Replies:** 4\
**Last updated:** [January 26, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/non-invasive-templating-solutions-in-ruby/158677 "2009-01-26T21:31:44Z")

</div>

hello, I am a perl and python programmer, but for completeness, I would like to know which dynamic html generation systems exist in Ruby which focus on driving HTML generation outside of the HTML itself. In an ‘invasi…

---

## [Separate random number generators?](https://www.ruby-forum.com/t/separate-random-number-generators/158353)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 18\
**Last updated:** [January 26, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/separate-random-number-generators/158353 "2009-01-26T21:11:44Z")

</div>

For simulation work, I want to use multiple, independent random number generators. Does anyone know up to date implementations? I found randomr but that is inactive sinds 2001 and clearly marked alpha (RandomR README) …

---

## [Code Review: ThreadSafety7](https://www.ruby-forum.com/t/code-review-threadsafety7/158524)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [January 26, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/code-review-threadsafety7/158524 "2009-01-26T19:32:26Z")

</div>

tfpt review “/shelveset:ThreadSafety7;REDMOND\\tomat” Comment : Makes operations on class hierarchy thread-safe. A class-hierarchy lock is defined on RubyContext. The lock should be acquired by any reader or writer t…

---

## [Is there any IDE for WATIR development?](https://www.ruby-forum.com/t/is-there-any-ide-for-watir-development/155734)

<div class="topic-metadata">

**Author:** [@narendra](https://www.ruby-forum.com/u/narendra)\
**Replies:** 10\
**Last updated:** [January 26, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/is-there-any-ide-for-watir-development/155734 "2009-01-26T18:52:21Z")

</div>

Hi, Is there any IDE existed for watir development and please suggest me that which will make easier my life regards to watir development. Thanks, Narendra.

---

## [Minimal ruby install](https://www.ruby-forum.com/t/minimal-ruby-install/158663)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 3\
**Last updated:** [January 26, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/minimal-ruby-install/158663 "2009-01-26T18:29:33Z")

</div>

Hi All, I submitted a similar request over on the rails forum, but feel this is probably the more appropriate place, sorry for any duplication. Is there an embedded version of ruby available? Or is there a way to det…

---

## [Net-smtp timeout error](https://www.ruby-forum.com/t/net-smtp-timeout-error/158669)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/net-smtp-timeout-error/158669 "2009-01-26T18:21:51Z")

</div>

Hi, Ruby 1.8.6-p114 RHEL 3 I’ve got two RHEL3 boxes, alpha and beta. On the alpha box, the following script works fine. On the beta box I get a timeout error with the same script. What’s happening? require ‘net/smt…

---

## [Unalias a method?](https://www.ruby-forum.com/t/unalias-a-method/158587)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 10\
**Last updated:** [January 26, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/unalias-a-method/158587 "2009-01-26T15:50:04Z")

</div>

I needed to alias a method (alias\_method) to change its behavior during a series of tests the other day. I was able to alias the Module’s method ok, but I couldn’t figure out how to unalias it when I was done. What’s…

---

## [Choosing the most appropiate Ruby version and programming model to develop a SIP server](https://www.ruby-forum.com/t/choosing-the-most-appropiate-ruby-version-and-programming-model-to-develop-a-sip-server/158402)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 10\
**Last updated:** [January 26, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/choosing-the-most-appropiate-ruby-version-and-programming-model-to-develop-a-sip-server/158402 "2009-01-26T15:29:53Z")

</div>

Hi, I need to do a choice between the various Ruby versions (1.8, 1.9, JRuby, Rubinius…) and programming models (Reactor Model, Actor Model…) to build a SIP (VoIP) server. I’ve already started it and for now I’ve do…

---

## [Listing installed gems](https://www.ruby-forum.com/t/listing-installed-gems/158580)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 7\
**Last updated:** [January 26, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/listing-installed-gems/158580 "2009-01-26T14:48:10Z")

</div>

Hi - I’m trying to find out if there’s a simple way to list all the gems I have installed on my system (linux/windows), or perhaps there exists a rake task that does this. Of course, I could execute ls/dir on my gem …

---

## [Creating p7s/pkcs7 files with Ruby](https://www.ruby-forum.com/t/creating-p7s-pkcs7-files-with-ruby/158543)

<div class="topic-metadata">

**Author:** [@Yves\_Vogl](https://www.ruby-forum.com/u/Yves_Vogl)\
**Replies:** 4\
**Last updated:** [January 26, 2009, 11:25am UTC](https://www.ruby-forum.com/t/creating-p7s-pkcs7-files-with-ruby/158543 "2009-01-26T11:25:11Z")

</div>

Hi, after fiddling around a lot these days I’m giving up and asking you due to the lack of documentation of Ruby OpenSSL and too less knowledge to figure it out on my own. I want to sign an arbitrary document with a …

---

## [How to receive data using socket programming](https://www.ruby-forum.com/t/how-to-receive-data-using-socket-programming/158404)

<div class="topic-metadata">

**Author:** [@kamaljeetsinghsaini](https://www.ruby-forum.com/u/kamaljeetsinghsaini)\
**Replies:** 10\
**Last updated:** [January 26, 2009, 9:53am UTC](https://www.ruby-forum.com/t/how-to-receive-data-using-socket-programming/158404 "2009-01-26T09:53:37Z")

</div>

Hi, I have this following code that able to make connection and then disconnect. But after doing connection, i wish to receive data before doing disconnect. Im very new to understand socket programming will be great …

---

## [Whats wrong with this script?](https://www.ruby-forum.com/t/whats-wrong-with-this-script/158623)

<div class="topic-metadata">

**Author:** [@fantomknight10](https://www.ruby-forum.com/u/fantomknight10)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 8:07am UTC](https://www.ruby-forum.com/t/whats-wrong-with-this-script/158623 "2009-01-26T08:07:27Z")

</div>

\#!/usr/bin/ruby $headersumfile = File.open(“Header-summary.txt”,“w”); $finalizerfile = File.open(“Finalizers.m”,“w”); def scanfiles(dirhand, dirname) dirhand.each { | fn | if (fn == ‘.’ || fn == ‘…’) elsif (fn =~ /…

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

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