# Ruby

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

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

---

## [\[RFC\] Proposing a Ruby Packaging Standard](https://www.ruby-forum.com/t/rfc-proposing-a-ruby-packaging-standard/187233)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 33\
**Last updated:** [May 5, 2010, 4:25pm UTC](https://www.ruby-forum.com/t/rfc-proposing-a-ruby-packaging-standard/187233 "2010-05-05T16:25:28Z")

</div>

Hello, earlier this month I wrote up a draft for a specification on how to structure Ruby projects. It started at RPS-SPEC · GitHub and there was lots of discussion there, which I now want to move to ruby-talk to ga…

---

## [Project tracking software](https://www.ruby-forum.com/t/project-tracking-software/188091)

<div class="topic-metadata">

**Author:** [@NEELU](https://www.ruby-forum.com/u/NEELU)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/project-tracking-software/188091 "2010-05-05T15:46:51Z")

</div>

PROJECT TRACKING SOFTWARE

---

## [How to use load comman(in mysql) in ruby?](https://www.ruby-forum.com/t/how-to-use-load-comman-in-mysql-in-ruby/187972)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 2\
**Last updated:** [May 5, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/how-to-use-load-comman-in-mysql-in-ruby/187972 "2010-05-05T15:39:11Z")

</div>

in mysql,it can run: LOAD DATA LOCAL INFILE “/home/pt/test/bal.csv” INTO TABLE bal FIELDS TERMINATED BY ‘,’ ENCLOSED BY ‘"’ LINES TERMINATED BY ‘\\n’ IGNORE 1 LINES; in my ruby programm: str="LOAD DATA LOCAL INFILE “…

---

## [\[Bug #3236\](Closed) ISeq.load $B$G(B \[BUG\] iseq\_set\_sequence: ic\_index overflow $B$,H/@8(B](https://www.ruby-forum.com/t/bug-3236-closed-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188087)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/bug-3236-closed-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188087 "2010-05-05T15:37:29Z")

</div>

e$B%A%1%C%He(B #3236 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r27632. Tomoyuki, thank you f…

---

## [Troubles with nested hashes](https://www.ruby-forum.com/t/troubles-with-nested-hashes/188081)

<div class="topic-metadata">

**Author:** [@teedubb](https://www.ruby-forum.com/u/teedubb)\
**Replies:** 2\
**Last updated:** [May 5, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/troubles-with-nested-hashes/188081 "2010-05-05T15:37:18Z")

</div>

i’m new to ruby and not that great a programmer so bear with me. i’m trying to dynamically populate a nested hash. below is the structure of what i’m trying to populate devices = { ‘macaddr’ =\> { ‘packets’ =\> ‘’, …

---

## [Why can't I do a "to\_i?"](https://www.ruby-forum.com/t/why-cant-i-do-a-to-i/188084)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [May 5, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/why-cant-i-do-a-to-i/188084 "2010-05-05T15:29:53Z")

</div>

Hello, I keep getting an “undefined method \`to\_f’” for this simple script. Can someone help me? I’m interrogating jpeg graphics files and I need to log their widths and depths, in picas. Thanks a lot, Peter Dir.chd…

---

## [\[Bug #3236\] ISeq.load $B$G(B \[BUG\] iseq\_set\_sequence: ic\_index overflow $B$,H/@8(B](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188088)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188088 "2010-05-05T15:15:14Z")

</div>

e$B%A%1%C%He(B #3236 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$B1sF#$G$9!#e(B InstructionSequence#load e$B$OHs8x3+4X?t$G$“$j!“e(Biseq gem e$B$Oe(B third party (e$B%o%J%Y$5$s$G$9$,e(B) e$B$Ne(B gem e$B$J$N$G!”$3$Ne(B …

---

## [Unable to install ruby-debug](https://www.ruby-forum.com/t/unable-to-install-ruby-debug/188061)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 2\
**Last updated:** [May 5, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/unable-to-install-ruby-debug/188061 "2010-05-05T14:29:52Z")

</div>

$: sudo gem install ruby-debug Building native extensions. This could take a while… ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Version…

---

## [\[Bug #3236\] ISeq.load $B$G(B \[BUG\] iseq\_set\_sequence: ic\_index overflow $B$,H/@8(B](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188083)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 2:12pm UTC](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188083 "2010-05-05T14:12:01Z")

</div>

e$B%A%1%C%He(B #3236 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B$9$\_$^$;$s!"\<+J,$N%3%a%s%H$,J,$+$j$K$/$+$C$?$N$GJdB-CW$7$^$9!#e(B e$B%Q%C%AA0H\>$Ne(B ic\_index e$B$N%A%'%C%/ItJ,$K$D$$$F$OH=CG$,$D$-$^$;$s$G$7$?$N$Ge(B e…

---

## [\[Bug:trunk\] ext/tk on cygwin](https://www.ruby-forum.com/t/bug-trunk-ext-tk-on-cygwin/187952)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [May 5, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/bug-trunk-ext-tk-on-cygwin/187952 "2010-05-05T12:18:25Z")

</div>

e$B$J$+$@$G$9!#e(B cygdrive-prefixe$B$OJQ992DG=$J$N$G!"%I%i%$%V%l%?!\<$r@5$7$/G’\<1$7$Je(B e$B$$\>l9g$,$"$j$^$9!#e(B e$B;d$O\<B:\]$KJQ$($F$$$^$9!#e(B diff --git i/ext/tk/extconf.rb w/ext/tk/extconf.rb index 676c132…a8adac…

---

## [\[Bug:trunk\] cross-compiling ext/tk](https://www.ruby-forum.com/t/bug-trunk-cross-compiling-ext-tk/187950)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [May 5, 2010, 12:17pm UTC](https://www.ruby-forum.com/t/bug-trunk-cross-compiling-ext-tk/187950 "2010-05-05T12:17:50Z")

</div>

e$B$J$+$@$G$9!#e(B e$B%/%m%9%3%s%Q%$%k$N$H$-$Ke(Bext/tk/extconf.rbe$B$,E,@Z$J%G%#%l%/%H%j$re(B e$BC5$7$F$$$^$;$s!#$^$?!"e(Bis\_win32?e$B$N$H$-$KF1$8%G%#%l%/%H%j$r!"M?$(e(B e$B$i$l$?%Q%9\<+BN$He(B\\e$B$re(B/e$B$KCV49$7$?$…

---

## [Acts\_as\_audited thread safety](https://www.ruby-forum.com/t/acts-as-audited-thread-safety/188060)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 1\
**Last updated:** [May 5, 2010, 7:28am UTC](https://www.ruby-forum.com/t/acts-as-audited-thread-safety/188060 "2010-05-05T07:28:39Z")

</div>

Does anyone know of threading issues with the acts\_as\_audited plugin in Rails/Jruby with config.threadsafe! on ? def set\_audit\_user self.user = Thread.current\[:acts\_as\_audited\_user\] if Thread.current\[:acts\_as\_audited…

---

## [Posix\_mq 0.5.0 - POSIX Message Queues for Ruby](https://www.ruby-forum.com/t/posix-mq-0-5-0-posix-message-queues-for-ruby/188058)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 4:59am UTC](https://www.ruby-forum.com/t/posix-mq-0-5-0-posix-message-queues-for-ruby/188058 "2010-05-05T04:59:27Z")

</div>

POSIX message queues allow local processes to exchange data in the form of messages. This API is distinct from that provided by System V message queues, but provides similar functionality. posix\_mq - POSIX message q…

---

## [Unicorn 0.98.0 - Rack HTTP server for fast clients and Unix](https://www.ruby-forum.com/t/unicorn-0-98-0-rack-http-server-for-fast-clients-and-unix/188053)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 3:09am UTC](https://www.ruby-forum.com/t/unicorn-0-98-0-rack-http-server-for-fast-clients-and-unix/188053 "2010-05-05T03:09:25Z")

</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…

---

## [Raindrops 0.2.0 - raining penguins!](https://www.ruby-forum.com/t/raindrops-0-2-0-raining-penguins/188055)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 3:00am UTC](https://www.ruby-forum.com/t/raindrops-0-2-0-raining-penguins/188055 "2010-05-05T03:00:38Z")

</div>

For servers running Unicorn 0.98.0 (and derivative servers) under Linux, :listeners no longer needs to be passed explicitly when configuring the Rack middleware. Some small documentation updates and cleanups, too. Ra…

---

## [Using Ruby's standard libraries in Silverlight](https://www.ruby-forum.com/t/using-rubys-standard-libraries-in-silverlight/185601)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 12\
**Last updated:** [May 5, 2010, 2:12am UTC](https://www.ruby-forum.com/t/using-rubys-standard-libraries-in-silverlight/185601 "2010-05-05T02:12:04Z")

</div>

Hey guys, What is the recommendation for using Ruby’s standard libraries in Silverlight applications? Should the lib be copied to the project dir? should a reference be added to the manifest? some other technique? T…

---

## [Rainbows! 0.92.0 - inching towards the pot of gold](https://www.ruby-forum.com/t/rainbows-0-92-0-inching-towards-the-pot-of-gold/188052)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 12:50am UTC](https://www.ruby-forum.com/t/rainbows-0-92-0-inching-towards-the-pot-of-gold/188052 "2010-05-05T00:50:42Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily b…

---

## [Sendmail, semicolons and new lines](https://www.ruby-forum.com/t/sendmail-semicolons-and-new-lines/187924)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 5\
**Last updated:** [May 4, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/sendmail-semicolons-and-new-lines/187924 "2010-05-04T23:57:49Z")

</div>

I know the tile doesn’t sound very Ruby-related but please bear with me! In a Ruby script I make a system call to ‘sendmail’ to send text from a file I’ve created from a Ruby string (I use sendmail because I don’t hav…

---

## [Inverse of stream parser](https://www.ruby-forum.com/t/inverse-of-stream-parser/187870)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 13\
**Last updated:** [May 4, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/inverse-of-stream-parser/187870 "2010-05-04T22:57:45Z")

</div>

I plan to parse a huge XML document (too big to fit into RAM) using a stream parser. I can divide the stream into logical chunks which can be processed individually. If a particular chunk fails, I want to append it to…

---

## [\[ANN\] JRuby 1.5.0.RC3 Released](https://www.ruby-forum.com/t/ann-jruby-1-5-0-rc3-released/188048)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 0\
**Last updated:** [May 4, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/ann-jruby-1-5-0-rc3-released/188048 "2010-05-04T22:12:41Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.5.0.RC3 Homepage: http://www.jruby.org/ Download: Downloads — JRuby.org This development cycle has been our longest cycle yet (nearly 5 months), bu…

---

## [\[Bug #3247\] test/ruby/test\_m17n.rb failure](https://www.ruby-forum.com/t/bug-3247-test-ruby-test-m17n-rb-failure/188044)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [May 4, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/bug-3247-test-ruby-test-m17n-rb-failure/188044 "2010-05-04T21:17:40Z")

</div>

Bug #3247: test/ruby/test\_m17n.rb failure http://redmine.ruby-lang.org/issues/show/3247 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yui NARUSE, Target version: 1.9.2 r…

---

## [Scope](https://www.ruby-forum.com/t/scope/188033)

<div class="topic-metadata">

**Author:** [@Eduardo\_Mucelli\_RSS](https://www.ruby-forum.com/u/Eduardo_Mucelli_RSS)\
**Replies:** 3\
**Last updated:** [May 4, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/scope/188033 "2010-05-04T21:12:24Z")

</div>

I have a script with those two following classes: class String def to\_b \[“true”\].include?(self.downcase) end end class HereIWantUseToB “string”.to\_b end Ok, that works fine, the to\_b method can be “seen” by He…

---

## [Very Simple Swing GUI does not work](https://www.ruby-forum.com/t/very-simple-swing-gui-does-not-work/188040)

<div class="topic-metadata">

**Author:** [@nerdplusplus](https://www.ruby-forum.com/u/nerdplusplus)\
**Replies:** 2\
**Last updated:** [May 4, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/very-simple-swing-gui-does-not-work/188040 "2010-05-04T20:00:09Z")

</div>

I try to build a very simple GUI, in fact a JFrame which only contains a button which is clickable, but it doesnt work properly. The GUI is visible, but when I try to click the button, an error occurs. My code: #Just …

---

## [Something I expected to work, but didn't!](https://www.ruby-forum.com/t/something-i-expected-to-work-but-didnt/188024)

<div class="topic-metadata">

**Author:** [@thinkwritemute](https://www.ruby-forum.com/u/thinkwritemute)\
**Replies:** 10\
**Last updated:** [May 4, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/something-i-expected-to-work-but-didnt/188024 "2010-05-04T17:27:01Z")

</div>

irb(main):001:0\> x = 2 =\> 2 irb(main):002:0\> y = 4 =\> 4 irb(main):003:0\> x, y \*= 2 SyntaxError: (irb):3: syntax error, unexpected tOP\_ASGN, expecting ‘=’ x, y \*= 2 ^ from /usr/local/bin/irb:12:in \`’ :frowning:

---

## [\[Bug #3236\] ISeq.load $B$G(B \[BUG\] iseq\_set\_sequence: ic\_index overflow $B$,H/@8(B](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188035)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [May 4, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188035 "2010-05-04T16:04:27Z")

</div>

e$B%A%1%C%He(B #3236 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) ic\_index e$B$N%A%'%C%/$K$D$$$F$O$o$+$j$^$;$s$,!“e(B ic\_size e$B$,I|85$5$l$F$$$J$$LdBj$K$D$$$F$O$=$NDL$j$@$H;W$$$^$9$7e(B iseq\_load e$B0J30$K1F6A$O$J$5$=$&$G…

---

## [Login into yahoo](https://www.ruby-forum.com/t/login-into-yahoo/187746)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 2\
**Last updated:** [May 4, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/login-into-yahoo/187746 "2010-05-04T16:00:56Z")

</div>

hi all, Is there a way to login into yahoo programmatically i.e just providing “email” and “password” without making use of the yahoo login page. Thoughts?

---

## [Calculation in a block](https://www.ruby-forum.com/t/calculation-in-a-block/188026)

<div class="topic-metadata">

**Author:** [@contactmouli](https://www.ruby-forum.com/u/contactmouli)\
**Replies:** 6\
**Last updated:** [May 4, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/calculation-in-a-block/188026 "2010-05-04T14:16:21Z")

</div>

Hi, I’m new to ruby, and I am trying to add all the natural numbers below one thousand that are multiples of 3 or 5. (exercise from ProjectEuler) Here’s my code: class Array def sumNumbers sum = 0 self.each\_with\_i…

---

## [Ocra-fied exe doesn't trace with set\_trace\_func](https://www.ruby-forum.com/t/ocra-fied-exe-doesnt-trace-with-set-trace-func/188010)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 1\
**Last updated:** [May 4, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/ocra-fied-exe-doesnt-trace-with-set-trace-func/188010 "2010-05-04T14:01:36Z")

</div>

set\_trace\_func does not seem to work in an ocra executable – the proc specified for tracing seems simply not to execute. The tracing works fine when running under straight ruby and under NetBeans, but not with the oc…

---

## [Key search in files](https://www.ruby-forum.com/t/key-search-in-files/187978)

<div class="topic-metadata">

**Author:** [@quantum17](https://www.ruby-forum.com/u/quantum17)\
**Replies:** 2\
**Last updated:** [May 4, 2010, 10:23am UTC](https://www.ruby-forum.com/t/key-search-in-files/187978 "2010-05-04T10:23:12Z")

</div>

i am trying to find a set of keys within specific files under a specific directory. i read the keys from a file and iterate through them opening and looking all the files under the specified directory. However only th…

---

## [Main working window for Ruby is DOS?](https://www.ruby-forum.com/t/main-working-window-for-ruby-is-dos/187948)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 15\
**Last updated:** [May 4, 2010, 8:43am UTC](https://www.ruby-forum.com/t/main-working-window-for-ruby-is-dos/187948 "2010-05-04T08:43:41Z")

</div>

I know nothing about programming and am not a techy person, so please excuse the terms I’m using. I just downloaded Ruby. I expected an environment like Visual BASIC where there’s a tool bar on the left side and you …

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

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