# Ruby

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

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

---

## [Gem install of rubyzip working, but not](https://www.ruby-forum.com/t/gem-install-of-rubyzip-working-but-not/143999)

<div class="topic-metadata">

**Author:** [@nathandelane](https://www.ruby-forum.com/u/nathandelane)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/gem-install-of-rubyzip-working-but-not/143999 "2008-07-25T22:08:01Z")

</div>

I installed the rubyzip gem with the command: roboticbuddha:documents User$ gem install rubyzip Successfully installed rubyzip-0.9.1 1 gem installed roboticbuddha:documents User$ Everything looks fine, but when I tr…

---

## [Adding files to rdoc](https://www.ruby-forum.com/t/adding-files-to-rdoc/144085)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/adding-files-to-rdoc/144085 "2008-07-25T21:22:57Z")

</div>

Wasn’t able to find an answer to this one trivially… So gemspecs have the ‘rdoc\_extra\_files’ option to be able to specify README as their main file \[index.html\]. How might this be accomplished on the command line? rd…

---

## [Betabrite 1.0.3 Released](https://www.ruby-forum.com/t/betabrite-1-0-3-released/144143)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 8:54pm UTC](https://www.ruby-forum.com/t/betabrite-1-0-3-released/144143 "2008-07-25T20:54:35Z")

</div>

betabrite version 1.0.3 has been released! http://rubyforge.org/projects/betabrite/ http://betabrite.rubyforge.org/ removed\_email\_address@domain.invalid Provides a Ruby interface to BetaBrite LED signs. Changes: 1.…

---

## [Mechanize 0.7.7 Released](https://www.ruby-forum.com/t/mechanize-0-7-7-released/144142)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/mechanize-0-7-7-released/144142 "2008-07-25T20:53:59Z")

</div>

mechanize version 0.7.7 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, …

---

## [Threads: Different behavior under Linux and Windows](https://www.ruby-forum.com/t/threads-different-behavior-under-linux-and-windows/142498)

<div class="topic-metadata">

**Author:** [@swabianeagle](https://www.ruby-forum.com/u/swabianeagle)\
**Replies:** 12\
**Last updated:** [July 25, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/threads-different-behavior-under-linux-and-windows/142498 "2008-07-25T20:36:17Z")

</div>

Hi, I’ve tried the sample code below on Ubuntu (7.04) as well as on a Windows XP machine. While under Linux I get the expected result, namely task 1 counting away, under XP task 1 stalls until I enter something, then…

---

## [Error running .class generated by jrubyc](https://www.ruby-forum.com/t/error-running-class-generated-by-jrubyc/144119)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/error-running-class-generated-by-jrubyc/144119 "2008-07-25T20:35:51Z")

</div>

Hello guys, I have just subscribed to this list, but I do not know if this is the correct one. I have a ruby script that runs perfect from the command line using jruby. I compiled it with jrubyc and the .class is no…

---

## [Disbale keyboard](https://www.ruby-forum.com/t/disbale-keyboard/144086)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/disbale-keyboard/144086 "2008-07-25T19:41:16Z")

</div>

Hi, Anybody knows how to disable keyboard keys for textfield or in a text area… plz reply me

---

## [\[ANN\] RedCloth 4.0.0 -- Total rewrite - less buggy - 40x fas](https://www.ruby-forum.com/t/ann-redcloth-4-0-0-total-rewrite-less-buggy-40x-fas/144055)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/ann-redcloth-4-0-0-total-rewrite-less-buggy-40x-fas/144055 "2008-07-25T17:15:36Z")

</div>

I sent this message to the list early Tuesday morning, but it never showed up. Here’s hoping a post to Ruby Forum fares better… RedCloth 4.0 is out. The highlights: It brings Ruby Textile processing more in line wi…

---

## [\[Bug:1.9\] context switch may occur during freeing io](https://www.ruby-forum.com/t/bug-1-9-context-switch-may-occur-during-freeing-io/143428)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/bug-1-9-context-switch-may-occur-during-freeing-io/143428 "2008-07-25T16:57:43Z")

</div>

e$B1sF#$G$9!#e(B e$B0J2\<$N$h$&$Ke(B do\_select e$B$Ne(B blocking region e$B$Ke(B native\_thread\_yield e$B$re(B e$BF~$l$?\>e$G!"e(B Index: thread.c — thread.c (revision 18124) +++ thread.c (working copy) @@ -2004,6 +…

---

## [What is "p"?](https://www.ruby-forum.com/t/what-is-p/144036)

<div class="topic-metadata">

**Author:** [@matu](https://www.ruby-forum.com/u/matu)\
**Replies:** 13\
**Last updated:** [July 25, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/what-is-p/144036 "2008-07-25T16:06:03Z")

</div>

a really really stupid question: p “hello” “hello” =\> nil is p a method of object? self.class =\> Object self.methods =\> \[“inspect”, “popws”, “quit”, “irb\_fg”, “clone”, “method”, “public\_methods”, “publ…

---

## [Development tool review](https://www.ruby-forum.com/t/development-tool-review/144116)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/development-tool-review/144116 "2008-07-25T16:04:53Z")

</div>

has any one compared komodo and sapphire on steel editors and reviewed them side by side. i am looking to move away from notepad++ and into a good development editor.

---

## [Of GUIs threads and scheduling woes](https://www.ruby-forum.com/t/of-guis-threads-and-scheduling-woes/143907)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 11\
**Last updated:** [July 25, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/of-guis-threads-and-scheduling-woes/143907 "2008-07-25T15:46:39Z")

</div>

I have a small GUI app that I have written the purposes for it’s creation are two-fold and irrelevant. Here is my problem: I have two threads aside from the main thread. One that wakes machines at scheduled times …

---

## [Simple module for "count my instances" behaviour](https://www.ruby-forum.com/t/simple-module-for-count-my-instances-behaviour/143783)

<div class="topic-metadata">

**Author:** [@bobthebob01](https://www.ruby-forum.com/u/bobthebob01)\
**Replies:** 10\
**Last updated:** [July 25, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/simple-module-for-count-my-instances-behaviour/143783 "2008-07-25T15:28:56Z")

</div>

I want to make a simple module that makes its including classes self-countable. Here is the code (that does not work, incidentally): #—code module Countable @@counter = 0 def initialize @@counter += 1 end module…

---

## [Optional parameter in functions](https://www.ruby-forum.com/t/optional-parameter-in-functions/144103)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/optional-parameter-in-functions/144103 "2008-07-25T12:16:41Z")

</div>

how do i make a parameter optional. if it is possible. for eg. i want to do as follows function myCall(a,b,c=somedefault) … end myCall(a,b,c) or myCall(a,b)

---

## [Injecting native Java objects as Global Variables](https://www.ruby-forum.com/t/injecting-native-java-objects-as-global-variables/143991)

<div class="topic-metadata">

**Author:** [@S\_SSS](https://www.ruby-forum.com/u/S_SSS)\
**Replies:** 5\
**Last updated:** [July 25, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/injecting-native-java-objects-as-global-variables/143991 "2008-07-25T12:03:11Z")

</div>

I have this requirement that I need to inject native Java objects as Global Variables. If I have instantiate the runtime org.jruby.Ruby object instance, I could do that as follows IRubyObject globValue = JavaUtil.con…

---

## [Regexp Ruby selection](https://www.ruby-forum.com/t/regexp-ruby-selection/144091)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [July 25, 2008, 11:52am UTC](https://www.ruby-forum.com/t/regexp-ruby-selection/144091 "2008-07-25T11:52:35Z")

</div>

Hi folks, I’m trying to code a ruby script that select the content of a HTML table in a HTML page. I used rubular to test my regexp syntax which is / \<td class=“TabIntCenContenuto”\[^\>\]\>(.) / with rubular the result…

---

## [Refresh a frame](https://www.ruby-forum.com/t/refresh-a-frame/144099)

<div class="topic-metadata">

**Author:** [@bezy44](https://www.ruby-forum.com/u/bezy44)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 10:53am UTC](https://www.ruby-forum.com/t/refresh-a-frame/144099 "2008-07-25T10:53:00Z")

</div>

hey, I know that we can refresh an IE instance : Watir::IE.refresh but how can we refresh just a frame ? Thanks, Best regards.

---

## [Rendering an mp3 as a waveform image in ruby?](https://www.ruby-forum.com/t/rendering-an-mp3-as-a-waveform-image-in-ruby/144014)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 10:40am UTC](https://www.ruby-forum.com/t/rendering-an-mp3-as-a-waveform-image-in-ruby/144014 "2008-07-25T10:40:31Z")

</div>

Does anyone know of a way, in ruby, to render an mp3 into a waveform graphic? Like you’d see in audio editing tools like Audacity, Soundforge etc. Just a jpeg as the end result is fine. Hoping there might be a gem …

---

## [How to disable ctrl + c key in ruby on rails](https://www.ruby-forum.com/t/how-to-disable-ctrl-c-key-in-ruby-on-rails/144078)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 10:38am UTC](https://www.ruby-forum.com/t/how-to-disable-ctrl-c-key-in-ruby-on-rails/144078 "2008-07-25T10:38:10Z")

</div>

I am showing document in browser i want to disable the copy option ctrl + c key in ruby please help me out

---

## [Reading from a .ini file](https://www.ruby-forum.com/t/reading-from-a-ini-file/144081)

<div class="topic-metadata">

**Author:** [@kishorerp](https://www.ruby-forum.com/u/kishorerp)\
**Replies:** 6\
**Last updated:** [July 25, 2008, 10:36am UTC](https://www.ruby-forum.com/t/reading-from-a-ini-file/144081 "2008-07-25T10:36:41Z")

</div>

Hi all, I have a .ini file that looks like below.(in the same directory where ruby is installed) \[info\] URL=https://172.16.212.73/core UID=admin passwd=passwd In a .rb file, how do i read data from a .ini file.I h…

---

## [Quick IronRuby Links to Book Mark for Ever at RubyWorld](https://www.ruby-forum.com/t/quick-ironruby-links-to-book-mark-for-ever-at-rubyworld/144097)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 10:29am UTC](https://www.ruby-forum.com/t/quick-ironruby-links-to-book-mark-for-ever-at-rubyworld/144097 "2008-07-25T10:29:05Z")

</div>

Hi, I found this nice blog on RubyWorld and would like to share here. They cover quick links for IronRuby. Pl. share more links, if you find any good link missing from the list, its a request by th e blogger at Rub…

---

## [Can we compile a ruby src code into .exe and run it?](https://www.ruby-forum.com/t/can-we-compile-a-ruby-src-code-into-exe-and-run-it/144092)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 9:41am UTC](https://www.ruby-forum.com/t/can-we-compile-a-ruby-src-code-into-exe-and-run-it/144092 "2008-07-25T09:41:47Z")

</div>

Hi, For current ironruby, can we use it to compile a ruby source code into exe and release it to other person to run it? If it is possible, the other person need to install .net framework + anything else? Thanks in …

---

## [Disable keyboard](https://www.ruby-forum.com/t/disable-keyboard/196758)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 9:03am UTC](https://www.ruby-forum.com/t/disable-keyboard/196758 "2008-07-25T09:03:45Z")

</div>

Hi, Anybody knows how to disable keyboard keys for textfield or in a text area… plz reply me

---

## [Ruby-Talk Admin](https://www.ruby-forum.com/t/ruby-talk-admin/143988)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 7:32am UTC](https://www.ruby-forum.com/t/ruby-talk-admin/143988 "2008-07-25T07:32:25Z")

</div>

Who is the Ruby-Talk Admin? T.

---

## [How to disable keyboard options in ROR](https://www.ruby-forum.com/t/how-to-disable-keyboard-options-in-ror/144080)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 7:23am UTC](https://www.ruby-forum.com/t/how-to-disable-keyboard-options-in-ror/144080 "2008-07-25T07:23:38Z")

</div>

i want to disable the keyboard options in browser page using ruby on rails please help me out on this issue

---

## [Avoid reinstalling gem (if its already installed?)](https://www.ruby-forum.com/t/avoid-reinstalling-gem-if-its-already-installed/144052)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 5\
**Last updated:** [July 25, 2008, 5:27am UTC](https://www.ruby-forum.com/t/avoid-reinstalling-gem-if-its-already-installed/144052 "2008-07-25T05:27:58Z")

</div>

Is there a way to have rubygems not reinstall a gem if the latest version is already installed? For example, I want the second ‘install’ below to simply say ‘already installed’ and exit successfully. rsanheim@ares:~ …

---

## [\[Ruby 1.9 - Bug #356\] test\_flush(TestIONonblock): Errno::EBADF: Bad file descriptor](https://www.ruby-forum.com/t/ruby-1-9-bug-356-test-flush-testiononblock-errno-bad-file-descriptor/144071)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 5:23am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-356-test-flush-testiononblock-errno-bad-file-descriptor/144071 "2008-07-25T05:23:53Z")

</div>

e$B%A%1%C%He(B #356 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA) e$B$^$l$Ke(BIOError: closed streame$B$K$J$k$3$H$b$“$k$h$&$G$9!#e(B e$B$=$l$+$i2?EY$b\<B9T$7$F$$$Fe(B1e$BEY$@$1$G$9$,e(Berrore$B$K$J$i$J$+$C$?$3$H$,$”$…

---

## [\[Ruby 1.9 - Bug #354\] (Closed) Test failure test/ruby/test\_transcode.rb](https://www.ruby-forum.com/t/ruby-1-9-bug-354-closed-test-failure-test-ruby-test-transcode-rb/144068)

<div class="topic-metadata">

**Author:** [@Martin\_DSSS\_rst](https://www.ruby-forum.com/u/Martin_DSSS_rst)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 3:06am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-354-closed-test-failure-test-ruby-test-transcode-rb/144068 "2008-07-25T03:06:23Z")

</div>

e$B%A%1%C%He(B #354 e$B$,99?7$5$l$^$7$?!#e(B (by Martin De$(D+de(Brst) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B e$BC4Ev\<Te(B Yui NARUSEe$B$+$ie(BMartin De$(D+de(Brste$B$KJQ99e(B e$B?'!9$J\>pJs$"$j$,$H$&$4…

---

## [Ruby\_parser 1.0.0 Released](https://www.ruby-forum.com/t/ruby-parser-1-0-0-released/123976)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 5\
**Last updated:** [July 25, 2008, 1:45am UTC](https://www.ruby-forum.com/t/ruby-parser-1-0-0-released/123976 "2008-07-25T01:45:49Z")

</div>

ruby\_parser version 1.0.0 has been released! http://parsetree.rubyforge.org/ ruby\_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same a…

---

## [Inspect in console](https://www.ruby-forum.com/t/inspect-in-console/144038)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 12:48am UTC](https://www.ruby-forum.com/t/inspect-in-console/144038 "2008-07-25T00:48:30Z")

</div>

Hi, Did the -i switch break on the ir command ? I create a file test.rb with the following content: myvar = “hello world” puts myvar and then type in ir -i test.rb That yields: (loosely translated I can’t find the…

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

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