# Ruby

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

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

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/138885)

<div class="topic-metadata">

**Author:** [@SSSS\_SSSS\_SSSSS\_SSS](https://www.ruby-forum.com/u/SSSS_SSSS_SSSSS_SSS)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/unsubscribe/138885 "2008-05-28T17:04:07Z")

</div>

unsubscribe

---

## [Writing event hooks called from C extensions](https://www.ruby-forum.com/t/writing-event-hooks-called-from-c-extensions/138801)

<div class="topic-metadata">

**Author:** [@mlangenberg](https://www.ruby-forum.com/u/mlangenberg)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/writing-event-hooks-called-from-c-extensions/138801 "2008-05-28T16:50:33Z")

</div>

Just for educational purposes, I’m trying to write a Ruby-C extension that allows me to hook into Carbon’s event handler. So I can handle mouse clicks in Ruby. Mouse clicks (like all events) happen asynchronously, mea…

---

## [\[Redmine for Ruby - Feature #5\] (Closed) Make repository synchronization background](https://www.ruby-forum.com/t/redmine-for-ruby-feature-5-closed-make-repository-synchronization-background/138880)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/redmine-for-ruby-feature-5-closed-make-repository-synchronization-background/138880 "2008-05-28T16:48:10Z")

</div>

Issue #5 has been updated by Yuki S… Status changed from Open to Closed fixed at rev.dfda2271e609da9f4902987b628d8df647556208 Feature #5: Make repository synchronization background http://redmine.ruby-lang.org/issues…

---

## [\[Bug:1.8\] example issue for ruby-1.8](https://www.ruby-forum.com/t/bug-1-8-example-issue-for-ruby-1-8/138875)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/bug-1-8-example-issue-for-ruby-1-8/138875 "2008-05-28T16:29:53Z")

</div>

Yuguie$B$G$9!#e(B shugoe$B$5$s$d%3%\_%C%?$N3’MM$N6(NO$rF@$^$7$F!"e(Bhttp://redmine.ruby- lang.org e$B$Ke(Brubye$B$r3+H/$9$k$?$a$Ne(Bissue tracking system e$B$r9=C\[$7$F$$$^$9!#\>:Y$O8e$\[$I9pCN$7$^$9!#e(B e$B\>e\<j$/@\_Dj$5…

---

## [Unit testing an HTTP client](https://www.ruby-forum.com/t/unit-testing-an-http-client/138703)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/unit-testing-an-http-client/138703 "2008-05-28T16:23:24Z")

</div>

Hi, my programm uses the HTTPClient gem to call a backend that was originally made for AJAX-without-the-X. Mainly it does POST without expecting any result. How do you test this? Writing a http server that logs when…

---

## [Pickaxe 3 applicable to 1.8?](https://www.ruby-forum.com/t/pickaxe-3-applicable-to-1-8/138755)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/pickaxe-3-applicable-to-1-8/138755 "2008-05-28T16:08:01Z")

</div>

Hi, working with ruby 1.8 I use my paper Piackaxe 2 for reference. But I spend a lot of time on trains, without the book or net access… Is the Pickaxe 3 PDF useable with 1.8 or does it just describe 1.9 without menti…

---

## [Best way to invoke JRuby from Java](https://www.ruby-forum.com/t/best-way-to-invoke-jruby-from-java/138686)

<div class="topic-metadata">

**Author:** [@Matt\_Fletcher](https://www.ruby-forum.com/u/Matt_Fletcher)\
**Replies:** 5\
**Last updated:** [May 28, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/best-way-to-invoke-jruby-from-java/138686 "2008-05-28T15:59:04Z")

</div>

Hi. Short version: I need to start JRuby from Java. I’m wondering what the preferred way is to do that now. I’ve perused two wiki pages (http://wiki.jruby.org/wiki/Java\_Integration and (http://wiki.jruby.org/wiki/Di…

---

## [\[Bug:trunk\] test issue for ruby-1.9](https://www.ruby-forum.com/t/bug-trunk-test-issue-for-ruby-1-9/138873)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/bug-trunk-test-issue-for-ruby-1-9/138873 "2008-05-28T15:50:13Z")

</div>

Yuguie$B$G$9!#e(B shugoe$B$5$s$d%3%\_%C%?$N3’MM$N6(NO$rF@$^$7$F!"e(Bhttp://redmine.ruby- lang.org e$B$Ke(Brubye$B$r3+H/$9$k$?$a$Ne(Bissue tracking system e$B$r9=C\[$7$F$$$^$9!#\>:Y$O8e$\[$I9pCN$7$^$9!#e(B e$B\>e\<j$/@\_Dj$5…

---

## [Download & use TK GUI application](https://www.ruby-forum.com/t/download-use-tk-gui-application/138720)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/download-use-tk-gui-application/138720 "2008-05-28T15:41:57Z")

</div>

HI Everybody; Can anyone tell me from where I can download TK & use it in Ruby. Which is the current stable version of TK; compatible with Ruby. Thankx in advance :slight\_smile:

---

## [How to know if the window was closed in Firewatir](https://www.ruby-forum.com/t/how-to-know-if-the-window-was-closed-in-firewatir/138869)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/how-to-know-if-the-window-was-closed-in-firewatir/138869 "2008-05-28T15:18:30Z")

</div>

I would like to know how to see if the FireFox window was closed. In watir you can check it: ie.exist? Returning true or false. is it possible in firewatir?

---

## [Documentation for ruby?](https://www.ruby-forum.com/t/documentation-for-ruby/138733)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 62\
**Last updated:** [May 28, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/documentation-for-ruby/138733 "2008-05-28T14:52:00Z")

</div>

i think the documentation at http://www.ruby-doc.org/ is fairly useless. is there a better one?

---

## [Named routes not working with jruby-rack?](https://www.ruby-forum.com/t/named-routes-not-working-with-jruby-rack/138819)

<div class="topic-metadata">

**Author:** [@Rib\_R](https://www.ruby-forum.com/u/Rib_R)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/named-routes-not-working-with-jruby-rack/138819 "2008-05-28T14:43:44Z")

</div>

I’m trying to go through this tutorial using jruby: Things seem to be working fine using script/server, but building a .war using warbler doesn’t seem to work: ActionView::TemplateError (undefined local variable or m…

---

## [1.8 def m() yield end; m {|&b| }](https://www.ruby-forum.com/t/1-8-def-m-yield-end-m-b/138840)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/1-8-def-m-yield-end-m-b/138840 "2008-05-28T13:18:18Z")

</div>

1.8 e$B$G0J2\<$,e(B ArgumentError e$B$K$J$k$N$Oe(B 1.9 e$B$H0\[$J$j$^$9!#e(B % ./ruby -ve ‘def m() yield end; m {|&b| }’ ruby 1.8.7 (2008-05-28 patchlevel 5000) \[i686-linux\] -e:1: tried to create Proc object without a …

---

## [Gem configuration options](https://www.ruby-forum.com/t/gem-configuration-options/138800)

<div class="topic-metadata">

**Author:** [@Jon\_ASLambert](https://www.ruby-forum.com/u/Jon_ASLambert)\
**Replies:** 4\
**Last updated:** [May 28, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/gem-configuration-options/138800 "2008-05-28T13:17:07Z")

</div>

How do you pass configuration options to extconf.rb when installing a gem? Specifically I’d like to configure ruby-gd. $ gem install ruby-gd ??something?? --with-freetype --with-ttf --with-jpeg --enable-gd2\_0 Thanks…

---

## [N00b question](https://www.ruby-forum.com/t/n00b-question/138772)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 4\
**Last updated:** [May 28, 2008, 11:18am UTC](https://www.ruby-forum.com/t/n00b-question/138772 "2008-05-28T11:18:59Z")

</div>

Can someone explain to me why my script is printing the key to my hash twice? I need it to print the key then the value on the first iteration and on the second iteration it should only print the value. I am getting…

---

## [Code Review: GeneriTypes](https://www.ruby-forum.com/t/code-review-generitypes/138836)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 7:22am UTC](https://www.ruby-forum.com/t/code-review-generitypes/138836 "2008-05-28T07:22:54Z")

</div>

tfpt review “/shelveset:GeneriTypes;REDMOND\\tomat” Fixes bug #15060 - it wasn’t possible to access a generic type if a non-generic one of the same name was in the same namespace. Tomas

---

## [Net/imap uses Thread#raise](https://www.ruby-forum.com/t/net-imap-uses-thread-raise/137940)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 9\
**Last updated:** [May 28, 2008, 6:27am UTC](https://www.ruby-forum.com/t/net-imap-uses-thread-raise/137940 "2008-05-28T06:27:49Z")

</div>

net/imap e$B$,860x$@$H;W$&$N$G$9$,!"e(B make test-all e$B$Ge(B test\_eucjp(TestKconv) e$B$,e(B net/imap e$B4XO"$N%P%Ce(B e$B%/%H%l!\<%9$,$D$$$Fe(B OpenSSL::SSL::SSLError: SSL\_read:: certificate verify failed e$B$H$$$&N…

---

## [RubyGarden.org down?](https://www.ruby-forum.com/t/rubygarden-org-down/138732)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 6:03am UTC](https://www.ruby-forum.com/t/rubygarden-org-down/138732 "2008-05-28T06:03:15Z")

</div>

http://www.rubygarden.org/ is giving me Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Is this a kno…

---

## [Code Review: RubyMarshalFix2](https://www.ruby-forum.com/t/code-review-rubymarshalfix2/138824)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 4:13am UTC](https://www.ruby-forum.com/t/code-review-rubymarshalfix2/138824 "2008-05-28T04:13:52Z")

</div>

tfpt review “/shelveset:RubyMarshalFix2;REDMOND\\curth” Fixed Marshal.load to work correctly with user-defined types not scoped to the global namespace

---

## [Code Review: Regex6](https://www.ruby-forum.com/t/code-review-regex6/138823)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 3:38am UTC](https://www.ruby-forum.com/t/code-review-regex6/138823 "2008-05-28T03:38:45Z")

</div>

tfpt review “/shelveset:Regex6;REDMOND\\tomat” Regexp fixes: Implements Regexp.initialize Fixes Regexp.new and compile signatures. Regexp.new does no escaping, it just takes whatever string is given an…

---

## [\[ruby-Bugs:19377\] Marshall.load of serialized instance of singleton class returns new instance](https://www.ruby-forum.com/t/ruby-bugs-19377-marshall-load-of-serialized-instance-of-singleton-class-returns-new-instance/137441)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 2:06am UTC](https://www.ruby-forum.com/t/ruby-bugs-19377-marshall-load-of-serialized-instance-of-singleton-class-returns-new-instance/137441 "2008-05-28T02:06:11Z")

</div>

e$B$J$+$@$G$9!#e(B e$B=P$7$?$D$b$j$GK:$l$F$?$h$&$G$9!#e(B \[ruby-Bugs:19377\]e$B$NLdBj$O!“e(BSingletonClassMethods#\_loade$B$,e(Bprivate e$B$K$J$C$F$$$k$N$Ge(Brb\_respond\_toe$B$,e(Bfalsee$B$rJV$9$H$$$&$3$H$,860x$G$9!#e(B …

---

## [Building on Solaris and trouble with missing libcrypt\_d](https://www.ruby-forum.com/t/building-on-solaris-and-trouble-with-missing-libcrypt-d/138813)

<div class="topic-metadata">

**Author:** [@justinj](https://www.ruby-forum.com/u/justinj)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 12:56am UTC](https://www.ruby-forum.com/t/building-on-solaris-and-trouble-with-missing-libcrypt-d/138813 "2008-05-28T00:56:39Z")

</div>

Hi, I have a Solaris zone that I use to build Ruby on and then I deploy it to a production box. I’m finding that there are some differences between these boxes, which are causing ruby to not run correctly when copie…

---

## [What is ?E in str.index(?E)](https://www.ruby-forum.com/t/what-is-e-in-str-index-e/138712)

<div class="topic-metadata">

**Author:** [@akhot](https://www.ruby-forum.com/u/akhot)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 12:47am UTC](https://www.ruby-forum.com/t/what-is-e-in-str-index-e/138712 "2008-05-28T00:47:42Z")

</div>

Dear all I am learning Ruby. “The Ruby Way” has following example. irb(main):047:0\> str = “Albert Einstein” =\> “Albert Einstein” irb(main):048:0\> str.index(?E) =\> 7 irb(main):049:0\> str1 = “mathematics” =\> “mathem…

---

## [Code Review: RubyGlob](https://www.ruby-forum.com/t/code-review-rubyglob/138810)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 12:14am UTC](https://www.ruby-forum.com/t/code-review-rubyglob/138810 "2008-05-28T00:14:50Z")

</div>

tfpt review “/shelveset:RubyGlob;REDMOND\\curth” Complete(?) implementation of Dir.glob. Passes all the pertinent specs.

---

## [\[OT} Problems with pasting using Gmail, anyone else?](https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 2\
**Last updated:** [May 27, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807 "2008-05-27T23:32:33Z")

</div>

I’ve posted code with correct spacing (indent of 2 spaces) by pasting from vim into gmail, and I’m missing spaces on lines that have them.when reading the code I sent through gmail. There’s something I’m obviously mi…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/138806)

<div class="topic-metadata">

**Author:** [@Horea\_R](https://www.ruby-forum.com/u/Horea_R)\
**Replies:** 0\
**Last updated:** [May 27, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/unsubscribe/138806 "2008-05-27T22:46:39Z")

</div>

unsubscribe

---

## [Why doesn't Float() work the same as Integer()?](https://www.ruby-forum.com/t/why-doesnt-float-work-the-same-as-integer/138062)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 25\
**Last updated:** [May 27, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/why-doesnt-float-work-the-same-as-integer/138062 "2008-05-27T22:40:47Z")

</div>

In my continuing work learning Ruby while creating a Rational class I ran into a problem with converting Strings. I am allowing Strings as input to the .new method and converting them to a Float, Integer, or Rational…

---

## [Can someone explain this syntax in new?](https://www.ruby-forum.com/t/can-someone-explain-this-syntax-in-new/138794)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 4\
**Last updated:** [May 27, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/can-someone-explain-this-syntax-in-new/138794 "2008-05-27T21:19:48Z")

</div>

I found this in an old post: "Here’s a Hash that automatically creates new hashes for each key you try to access (specifically 1-level deep for a ‘2-dimensional’ hash): people = Hash.new{ |me,key| me\[ key \] = {} } pe…

---

## [Another problem with -\> LoadError: no such file to load](https://www.ruby-forum.com/t/another-problem-with-loaderror-no-such-file-to-load/138790)

<div class="topic-metadata">

**Author:** [@Csongor](https://www.ruby-forum.com/u/Csongor)\
**Replies:** 2\
**Last updated:** [May 27, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/another-problem-with-loaderror-no-such-file-to-load/138790 "2008-05-27T19:55:41Z")

</div>

I am trying to install and use the file-tail gem, but it’s just not working. This is the gem I’m trying to use: http://file-tail.rubyforge.org/doc/classes/File/Tail.html And this is what happens: === Installing gem …

---

## [Why "ABCDE"returns an integer instead of 'A'?](https://www.ruby-forum.com/t/why-abcde-returns-an-integer-instead-of-a/138659)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 11\
**Last updated:** [May 27, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/why-abcde-returns-an-integer-instead-of-a/138659 "2008-05-27T19:42:07Z")

</div>

Hi, I cannot understand how a high level language as Ruby doesn’t handle a simple thing as C does with strings: in C: string = “ABCDE” string\[0\] =\> ‘A’ in Ruby: string = “ABCDE” string\[0\] =\> 65 Why 65? it’s the…

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

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