# Ruby

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

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

---

## [Promiscuous mode](https://www.ruby-forum.com/t/promiscuous-mode/180561)

<div class="topic-metadata">

**Author:** [@mballante](https://www.ruby-forum.com/u/mballante)\
**Replies:** 12\
**Last updated:** [December 22, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/promiscuous-mode/180561 "2009-12-22T14:56:46Z")

</div>

Hi guys. i have a question. i am new in a ruby world. How can i set my wlan device in a promiscuous mode? thank at all :slight\_smile:

---

## [\[Feature #2080\] Proc#to\_source, Method#to\_source](https://www.ruby-forum.com/t/feature-2080-proc-to-source-method-to-source/175292)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 5\
**Last updated:** [December 22, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/feature-2080-proc-to-source-method-to-source/175292 "2009-12-22T14:50:17Z")

</div>

Feature #2080: Proc#to\_source, Method#to\_source http://redmine.ruby-lang.org/issues/show/2080 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, e$B%+%F%4%je(B: core, Targ…

---

## [Rb++ / rbgccxml 0.9.1](https://www.ruby-forum.com/t/rb-rbgccxml-0-9-1/180208)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 4\
**Last updated:** [December 22, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/rb-rbgccxml-0-9-1/180208 "2009-12-22T14:19:51Z")

</div>

What is rb++ / rbgccxml? Rb++, rbgccxml, and rice compose a suite of tools that make wrapping C++ libraries into Ruby extensions as simple as possible. This is built as a replacement for SWIG-Ruby. What’s New Fu…

---

## [Special cased?](https://www.ruby-forum.com/t/special-cased/180387)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 10\
**Last updated:** [December 22, 2009, 12:09pm UTC](https://www.ruby-forum.com/t/special-cased/180387 "2009-12-22T12:09:20Z")

</div>

This confused me a bit class A @a = 2 @@a = 3 def self.a puts \[@a, @@a\] end end class B \< A; end A.a # \[2, 3\] B.a # \[nil, 3\] shouldn’t @a just lookup @@a in the parent? Different treatment for different type…

---

## [\[Backport #2513\] CC is ignored in ext](https://www.ruby-forum.com/t/backport-2513-cc-is-ignored-in-ext/180585)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 9:32am UTC](https://www.ruby-forum.com/t/backport-2513-cc-is-ignored-in-ext/180585 "2009-12-22T09:32:29Z")

</div>

Backport #2513: CC is ignored in ext http://redmine.ruby-lang.org/issues/show/2513 e$B5/I\<\<Te(B: Nobuyoshi N. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Shyouhei U., e$B%+%F%4%je(B: build configuree$…

---

## [\[Bug #1330\] BigDecimal $B%\*%V%8%'%/%H$r2?EY$b;H$$2s$9$H(B Bus Error $B$,H/@8$9$k$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-1330-bigdecimal-b-v-8-h-r2-ey-b-h-2s-9-h-b-bus-error-b-h-8-9-k-3-h-k-b/180582)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 6:59am UTC](https://www.ruby-forum.com/t/bug-1330-bigdecimal-b-v-8-h-r2-ey-b-h-2s-9-h-b-bus-error-b-h-8-9-k-3-h-k-b/180582 "2009-12-22T06:59:08Z")

</div>

e$B%A%1%C%He(B #1330 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.) e$B%“!\<%-%F%/%A%c$,0c$C$F$^$7$?!#e(B i386 e$B$G$b$&0lEY;n$7$^$7$?$,!”:F8=$7$J$+$C$?$N$GJD$8$FNI$$$H;W$$$^$9!#e(B $ /opt/ruby/ruby\_1\_8/bin/ruby -rbigdecimal …

---

## [Invitation to the 2010 Fukuoka Ruby Forum](https://www.ruby-forum.com/t/invitation-to-the-2010-fukuoka-ruby-forum/180576)

<div class="topic-metadata">

**Author:** [@Kenichi\_Nakashima](https://www.ruby-forum.com/u/Kenichi_Nakashima)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 6:10am UTC](https://www.ruby-forum.com/t/invitation-to-the-2010-fukuoka-ruby-forum/180576 "2009-12-22T06:10:33Z")

</div>

Invitation to the 2010 Fukuoka Ruby Forum The Fukuoka Ruby Promotion Committee cordially invites you to attend the 2010 Fukuoka Ruby Forum in Fukuoka, Japan on January 29, 2010. The Fukuoka Ruby Forum will discuss mov…

---

## [\[Bug #1330\] BigDecimal $B%\*%V%8%'%/%H$r2?EY$b;H$$2s$9$H(B Bus Error $B$,H/@8$9$k$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-1330-bigdecimal-b-v-8-h-r2-ey-b-h-2s-9-h-b-bus-error-b-h-8-9-k-3-h-k-b/180574)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 5:20am UTC](https://www.ruby-forum.com/t/bug-1330-bigdecimal-b-v-8-h-r2-ey-b-h-2s-9-h-b-bus-error-b-h-8-9-k-3-h-k-b/180574 "2009-12-22T05:20:48Z")

</div>

e$B%A%1%C%He(B #1330 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.) e$B0J2\<$N$h$&$K!":F8=$5$l$J$$$3$H$r3NG’$7$^$7$?!#e(B $ /opt/ruby/ruby\_1\_8/bin/ruby -rbigdecimal -ve ’ a = BigDecimal("10000000000000000000000000000000000000…

---

## [Cannot obtain child process exit code on Windows](https://www.ruby-forum.com/t/cannot-obtain-child-process-exit-code-on-windows/180271)

<div class="topic-metadata">

**Author:** [@Wi\_siong\_K](https://www.ruby-forum.com/u/Wi_siong_K)\
**Replies:** 6\
**Last updated:** [December 22, 2009, 5:17am UTC](https://www.ruby-forum.com/t/cannot-obtain-child-process-exit-code-on-windows/180271 "2009-12-22T05:17:52Z")

</div>

Hi, I would like to obtain the exit code from a child program. But all the methods I tried were in vain. Here are two files that i used to test. C:\> type a.bat @echo off exit /b 29 C:\> type test.rb system(‘a.bat’) …

---

## [\[ANN\] tagged\_logger 0.2.1](https://www.ruby-forum.com/t/ann-tagged-logger-0-2-1/180571)

<div class="topic-metadata">

**Author:** [@fkocherga](https://www.ruby-forum.com/u/fkocherga)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 12:42am UTC](https://www.ruby-forum.com/t/ann-tagged-logger-0-2-1/180571 "2009-12-22T00:42:52Z")

</div>

Hello all, I’d like to announce one more logging facility ‘tagged\_logger’: http://github.com/fkocherga/tagged\_logger === WHY? === Several reasons: It makes #logger() method becomes accessible everywhere, so you do …

---

## [Unicorn 0.95.3 - userinfo in absoluteURIs](https://www.ruby-forum.com/t/unicorn-0-95-3-userinfo-in-absoluteuris/180567)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [December 21, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/unicorn-0-95-3-userinfo-in-absoluteuris/180567 "2009-12-21T23:21:24Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [Problems installing rake](https://www.ruby-forum.com/t/problems-installing-rake/180355)

<div class="topic-metadata">

**Author:** [@Lars\_Von\_Wedel](https://www.ruby-forum.com/u/Lars_Von_Wedel)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/problems-installing-rake/180355 "2009-12-21T21:28:25Z")

</div>

Hello, I installed Ironruby, mainly for the purpose of experimenting with rake. Using ‘igem install rake’ fails, I suspect due to authentication issues with the proxies on our company network. I then downloaded the r…

---

## [System waits for start](https://www.ruby-forum.com/t/system-waits-for-start/180537)

<div class="topic-metadata">

**Author:** [@Mikael\_P](https://www.ruby-forum.com/u/Mikael_P)\
**Replies:** 4\
**Last updated:** [December 21, 2009, 8:38pm UTC](https://www.ruby-forum.com/t/system-waits-for-start/180537 "2009-12-21T20:38:40Z")

</div>

Hi, The following spawns a new process (Notepad.exe) on Windows and then immediately returns when ran with ruby 1.8: system(‘start notepad’) ‘start’ is the command-line command for spawning a separate process that w…

---

## [Try Ruby is back up and better than ever!](https://www.ruby-forum.com/t/try-ruby-is-back-up-and-better-than-ever/180508)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 5\
**Last updated:** [December 21, 2009, 7:51pm UTC](https://www.ruby-forum.com/t/try-ruby-is-back-up-and-better-than-ever/180508 "2009-12-21T19:51:49Z")

</div>

Greetings, First, I’d like to thank James for updating the link over at ruby-lang.org. As Mentioned before TryRuby.org is the new home of Try Ruby. TryRruby.sophrinix.com should resolve sometime soon by the middle of …

---

## [Logging 1.3.0](https://www.ruby-forum.com/t/logging-1-3-0/180556)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [December 21, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/logging-1-3-0/180556 "2009-12-21T19:16:07Z")

</div>

Logging version 1.3.0 by Tim P. RubyGems.org | your community gem host == DESCRIPTION Logging is a flexible logging library for use in Ruby programs based on the design of Java’s log4j library. It features a hierar…

---

## [Jrubyc question](https://www.ruby-forum.com/t/jrubyc-question/180381)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/jrubyc-question/180381 "2009-12-21T16:54:28Z")

</div>

Hi- I have a project where I have some ruby files under say, c:\\project\\src and c:\\project\\src\\subdir Is there a good way to compile everything under the c:\\project\\src directory, including subdirectories, and outpu…

---

## [IO error == rubygems](https://www.ruby-forum.com/t/io-error-rubygems/179549)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 8\
**Last updated:** [December 21, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/io-error-rubygems/179549 "2009-12-21T15:37:24Z")

</div>

Is this expected: latest github C:\\dev\\ruby\\downloads\\jruby\\bin\>gem list C:\\dev\\ruby\\downloads\\jruby\\bin\\gem:8:in \`require’: IO error – rubygems (LoadError) from C:\\dev\\ruby\\downloads\\jruby\\bin\\gem:8 thanks. -r

---

## [Question about sum of fibonacci sequene](https://www.ruby-forum.com/t/question-about-sum-of-fibonacci-sequene/180380)

<div class="topic-metadata">

**Author:** [@atma](https://www.ruby-forum.com/u/atma)\
**Replies:** 9\
**Last updated:** [December 21, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/question-about-sum-of-fibonacci-sequene/180380 "2009-12-21T15:12:33Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear Sirs, Just to improve my programming skills and experience I found amusing solving problems like the ones posed by project Euler. Doing so, using Ruby is a joy, com…

---

## [Mac OS + Rails + JRuby](https://www.ruby-forum.com/t/mac-os-rails-jruby/180515)

<div class="topic-metadata">

**Author:** [@khelll](https://www.ruby-forum.com/u/khelll)\
**Replies:** 9\
**Last updated:** [December 21, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/mac-os-rails-jruby/180515 "2009-12-21T15:10:51Z")

</div>

Hellos, I’m trying to run a Rails application using JRuby on Mac OS(10.6.2) , however I’m using MySQL version that comes with MAMP server. Unfortunately it seems that the connection with the MySQL is not established …

---

## [\[Bug #1330\] BigDecimal $B%\*%V%8%'%/%H$r2?EY$b;H$$2s$9$H(B Bus Error $B$,H/@8$9$k$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-1330-bigdecimal-b-v-8-h-r2-ey-b-h-2s-9-h-b-bus-error-b-h-8-9-k-3-h-k-b/180542)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 0\
**Last updated:** [December 21, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/bug-1330-bigdecimal-b-v-8-h-r2-ey-b-h-2s-9-h-b-bus-error-b-h-8-9-k-3-h-k-b/180542 "2009-12-21T14:43:56Z")

</div>

e$B%A%1%C%He(B #1330 e$B$,99?7$5$l$^$7$?!#e(B (by Tadashi S.) e$B$I$&$b!"K:G/2q$K9T$C$?$iFMA3!Ve(BAssigne$B$7$H$$$?$+$i!W$H8@$o$l$?:XF#$G$9!#e(B e$B:G?7$Ne(Bruby\_1\_8e$B$r\<j85$N4D6-$G;n$7$?$H$3$m!“e(BN.timese$B$Ne(BNe$…

---

## [OpenSSL](https://www.ruby-forum.com/t/openssl/113986)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 3\
**Last updated:** [December 21, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/openssl/113986 "2009-12-21T14:14:05Z")

</div>

Does anyone know of a useful reference for Ruby’s OpenSSL libraries? I’m getting a useless error and the rdoc is effectively non-existant. – “Hey brother Christian with your high and mighty errand, Your actions spea…

---

## [Suggestion of Array#=== which improves case/when behaviour](https://www.ruby-forum.com/t/suggestion-of-array-which-improves-case-when-behaviour/180350)

<div class="topic-metadata">

**Author:** [@dmitryelastic](https://www.ruby-forum.com/u/dmitryelastic)\
**Replies:** 18\
**Last updated:** [December 21, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/suggestion-of-array-which-improves-case-when-behaviour/180350 "2009-12-21T12:57:24Z")

</div>

Hello, We already have :=== operator defined in Module, Range, Regexp and Proc which is great for case/when statement. For all other objects :=== mean :==. My suggestion is to extend Array with === method: Original…

---

## [Value for text\_field\_tag?](https://www.ruby-forum.com/t/value-for-text-field-tag/180530)

<div class="topic-metadata">

**Author:** [@T\_P](https://www.ruby-forum.com/u/T_P)\
**Replies:** 1\
**Last updated:** [December 21, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/value-for-text-field-tag/180530 "2009-12-21T12:55:39Z")

</div>

Hi! I have this in my controller: @text = params\[:data\]\[:text\] In the view, I have this code: \<%= label\_tag(‘data\[text\]’, "Word/phrase: ") %\> \<%= text\_field\_tag( ‘data\[text\]’, @text, :size =\> 40, :maxlength =\> 25…

---

## [Redirecting stderr in irb](https://www.ruby-forum.com/t/redirecting-stderr-in-irb/180525)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 11:38am UTC](https://www.ruby-forum.com/t/redirecting-stderr-in-irb/180525 "2009-12-21T11:38:24Z")

</div>

Redirecting $stderr in irb doesn’t work but redirecting $DEFAULT\_OUTPUT does. Can anyone explain why this happens? Also, is there any clever way to run irb in a thread and then redirect $DEFAULT\_OUTPUT only for that t…

---

## [\[Feature #2470\] Encoding#new doesn't undef\_method-ed](https://www.ruby-forum.com/t/feature-2470-encoding-new-doesnt-undef-method-ed/180028)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 11:23am UTC](https://www.ruby-forum.com/t/feature-2470-encoding-new-doesnt-undef-method-ed/180028 "2009-12-21T11:23:10Z")

</div>

Feature #2470: Encoding#new doesn’t undef\_method-ed http://redmine.ruby-lang.org/issues/show/2470 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core Fixnum e$B$de(B Encoding e…

---

## [JRuby install problem on Leopard/Snow Leopard](https://www.ruby-forum.com/t/jruby-install-problem-on-leopard-snow-leopard/180313)

<div class="topic-metadata">

**Author:** [@corourke](https://www.ruby-forum.com/u/corourke)\
**Replies:** 6\
**Last updated:** [December 21, 2009, 10:43am UTC](https://www.ruby-forum.com/t/jruby-install-problem-on-leopard-snow-leopard/180313 "2009-12-21T10:43:57Z")

</div>

Greetings, I downloaded jruby-bin-1.4.0.zip onto Mac OS X Leopard, unzipped it, and attempted to test it: $ cd jruby-1.4.0/ $ bin/jruby -version jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java Hot…

---

## [".." in path inside a JAR file?](https://www.ruby-forum.com/t/in-path-inside-a-jar-file/180335)

<div class="topic-metadata">

**Author:** [@patrik](https://www.ruby-forum.com/u/patrik)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 10:41am UTC](https://www.ruby-forum.com/t/in-path-inside-a-jar-file/180335 "2009-12-21T10:41:37Z")

</div>

Hi, It seems to me like having a path with “…” in it doesn’t produce the desired effect from inside a jar. Let’s say we have the path to a directory in variable named dir\_path. If we do dir\_path+"/…/file" that works…

---

## [Redbrige ActiveRecord problem](https://www.ruby-forum.com/t/redbrige-activerecord-problem/180496)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 9:19am UTC](https://www.ruby-forum.com/t/redbrige-activerecord-problem/180496 "2009-12-21T09:19:05Z")

</div>

Hi ! I encountered some problem when try using ActiveRecord from an embedded ruby script. I call the script like this: ScriptingContainer container = new ScriptingContainer(); this.getClass().getResourceAsStream(“te…

---

## [Splat array with 1 value in Ruby 1.9 vs Ruby 1.8](https://www.ruby-forum.com/t/splat-array-with-1-value-in-ruby-1-9-vs-ruby-1-8/179646)

<div class="topic-metadata">

**Author:** [@raulparolari](https://www.ruby-forum.com/u/raulparolari)\
**Replies:** 15\
**Last updated:** [December 21, 2009, 9:19am UTC](https://www.ruby-forum.com/t/splat-array-with-1-value-in-ruby-1-9-vs-ruby-1-8/179646 "2009-12-21T09:19:05Z")

</div>

In porting some automation code from 1.8.7 to 1.9.1, I find that in ruby 1.8 the following generated code (real code is unpacking binary strings and assigning variables, but I simplify for clarity, although the result …

---

## [Nokogiri and xpath for changing value on the web](https://www.ruby-forum.com/t/nokogiri-and-xpath-for-changing-value-on-the-web/180524)

<div class="topic-metadata">

**Author:** [@soujiro0725](https://www.ruby-forum.com/u/soujiro0725)\
**Replies:** 2\
**Last updated:** [December 21, 2009, 8:53am UTC](https://www.ruby-forum.com/t/nokogiri-and-xpath-for-changing-value-on-the-web/180524 "2009-12-21T08:53:27Z")

</div>

ruby 1.8.6 Ubuntu 8.04 nokogiri 1.4.0 Hi. I am trying to get a number(Nikkei 225) from the web site, “Google Finance”. It’s a number that indicates the average of major stock prices, which changes in real-time. …

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

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