# Ruby

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

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

---

## [Logs maintenance tool/gem needed](https://www.ruby-forum.com/t/logs-maintenance-tool-gem-needed/180670)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/logs-maintenance-tool-gem-needed/180670 "2009-12-25T17:04:17Z")

</div>

Our UNIX environment is made up of couple hundred servers (AIX), with hundreds of logs. We have a simple ruby script running from the cron that uses a property file to maintain these logs. I was wondering if there is…

---

## [Storing methods in arrays or hashes](https://www.ruby-forum.com/t/storing-methods-in-arrays-or-hashes/180668)

<div class="topic-metadata">

**Author:** [@Philliam\_A](https://www.ruby-forum.com/u/Philliam_A)\
**Replies:** 4\
**Last updated:** [December 25, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/storing-methods-in-arrays-or-hashes/180668 "2009-12-25T17:00:09Z")

</div>

Hey all, I’m pretty new to ruby, and I absolutely love it. I have aquestion. I have programmed in a language called lua before (which had real full- fledged anonymous functions), and with a lua table, which is Lias v…

---

## [Rainbows! 0.90.0 - Thread\* fixes and RevFiberSpawn](https://www.ruby-forum.com/t/rainbows-0-90-0-thread-fixes-and-revfiberspawn/180661)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/rainbows-0-90-0-thread-fixes-and-revfiberspawn/180661 "2009-12-25T16:40:48Z")

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

---

## [Log4r unpack problems](https://www.ruby-forum.com/t/log4r-unpack-problems/197117)

<div class="topic-metadata">

**Author:** [@yoram](https://www.ruby-forum.com/u/yoram)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/log4r-unpack-problems/197117 "2009-12-25T16:38:26Z")

</div>

I was just starting to use log4r and everything was going peachy until I tired to unpack it into my local vendor/gems. The next time I tried to load my rails environment, I got: config.gem: Unpacked gem log4r-1.1.2 in…

---

## [\[Bug #2187\] Net::IMAP::ResponseParseError](https://www.ruby-forum.com/t/bug-2187-net-responseparseerror/177003)

<div class="topic-metadata">

**Author:** [@masa16](https://www.ruby-forum.com/u/masa16)\
**Replies:** 4\
**Last updated:** [December 25, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/bug-2187-net-responseparseerror/177003 "2009-12-25T16:37:51Z")

</div>

Bug #2187: Net::IMAP::ResponseParseError http://redmine.ruby-lang.org/issues/show/2187 e$B5/I\<\<Te(B: Masahiro T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2009-06-12 patchlevel 174) \[i686-linu…

---

## [\[Bug #2522\] Segmentation Fault is occurred on r26158 by running rubyspec](https://www.ruby-forum.com/t/bug-2522-segmentation-fault-is-occurred-on-r26158-by-running-rubyspec/180647)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 3\
**Last updated:** [December 25, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/bug-2522-segmentation-fault-is-occurred-on-r26158-by-running-rubyspec/180647 "2009-12-25T16:17:18Z")

</div>

Bug #2522: Segmentation Fault is occurred on r26158 by running rubyspec http://redmine.ruby-lang.org/issues/show/2522 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target v…

---

## [\[Backport #1930\] finalizer$B$,\<B9T$5$l$J$$(B r18394,r18397](https://www.ruby-forum.com/t/backport-1930-finalizer-b-b9t-5-l-j-b-r18394-r18397/173607)

<div class="topic-metadata">

**Author:** [@akira\_yamada](https://www.ruby-forum.com/u/akira_yamada)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/backport-1930-finalizer-b-b9t-5-l-j-b-r18394-r18397/173607 "2009-12-25T16:08:29Z")

</div>

Backport #1930: finalizere$B$,\<B9T$5$l$J$$e(B r18394,r18397 http://redmine.ruby-lang.org/issues/show/1930 e$B5/I\<\<Te(B: akira yamada e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core 1.8.7-p174e$B$de…

---

## [Help with gem ruby mysql error](https://www.ruby-forum.com/t/help-with-gem-ruby-mysql-error/180543)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 10\
**Last updated:** [December 25, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/help-with-gem-ruby-mysql-error/180543 "2009-12-25T15:42:41Z")

</div>

Hi, I downloaded & double clicked 3 files to install mysql 5.1 for MacOS, but i get the following errors, can someone advise please? Thanks! Ad ====================================================== sudo gem instal…

---

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

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/backport-2513-closed-cc-is-ignored-in-ext/180659 "2009-12-25T15:41:29Z")

</div>

e$B%A%1%C%He(B #2513 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B Applied in changeset r26173. http://redmine.ruby-lang.org/issues/show/2513

---

## [\[Backport #1660\] ruby1.8: tdiary's amazon.rb segfault in the cause of ruby's bug](https://www.ruby-forum.com/t/backport-1660-ruby1-8-tdiarys-amazon-rb-segfault-in-the-cause-of-rubys-bug/170601)

<div class="topic-metadata">

**Author:** [@dai\_VDR](https://www.ruby-forum.com/u/dai_VDR)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/backport-1660-ruby1-8-tdiarys-amazon-rb-segfault-in-the-cause-of-rubys-bug/170601 "2009-12-25T15:41:29Z")

</div>

Backport #1660: ruby1.8: tdiary’s amazon.rb segfault in the cause of ruby’s bug http://redmine.ruby-lang.org/issues/show/1660 e$B5/I\<\<Te(B: dai VDR e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Forwarded from http:/…

---

## [Undefined method \`run\_init\_script' for Debugger:Module](https://www.ruby-forum.com/t/undefined-method-run-init-script-for-debugger-module/180641)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/undefined-method-run-init-script-for-debugger-module/180641 "2009-12-25T15:33:07Z")

</div>

I’m new with ruby and rails. My environmant is RadRails running on Ubuntu 9.04 with ruby 1.8.7 After I started the debug server from RadRails, I got this output Fast Debugger (ruby-debug-ide 0.4.5) listens on localhos…

---

## [RuntimeError using Tk with Ruby](https://www.ruby-forum.com/t/runtimeerror-using-tk-with-ruby/180640)

<div class="topic-metadata">

**Author:** [@diabolator2](https://www.ruby-forum.com/u/diabolator2)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/runtimeerror-using-tk-with-ruby/180640 "2009-12-25T15:32:39Z")

</div>

Hi,all! I’ve installed Tk for GUI apps in Ruby. I was getting errors for require ‘tk’, then I’ve installed libtcltk-ruby and everything run well. BUT, this is what I get for require ‘tkextlib/tile’: /usr/lib/ruby/1…

---

## [QT autoconnect](https://www.ruby-forum.com/t/qt-autoconnect/180648)

<div class="topic-metadata">

**Author:** [@Kasper\_Johansen](https://www.ruby-forum.com/u/Kasper_Johansen)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/qt-autoconnect/180648 "2009-12-25T15:16:50Z")

</div>

Hi group. Can anyone tell me, if there is a way to get the clicked signal autoconnect to a function named “on\_pushButton\_clicked”, without defining it in the code? So far I have had no luck what so ever with connectS…

---

## [Question about "spreadsheet"](https://www.ruby-forum.com/t/question-about-spreadsheet/177066)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/question-about-spreadsheet/177066 "2009-12-25T15:15:37Z")

</div>

I am trying to learn how to use “spreadsheet” so I can create an Excel file. To that effect, I installed: 1 - spreadsheet 2 - ruby-ole I noticed that the Rdoc for “spreadsheet” contains an example which looks simpl…

---

## [Low level TCP port openness check](https://www.ruby-forum.com/t/low-level-tcp-port-openness-check/180639)

<div class="topic-metadata">

**Author:** [@bsanyi](https://www.ruby-forum.com/u/bsanyi)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 10:28am UTC](https://www.ruby-forum.com/t/low-level-tcp-port-openness-check/180639 "2009-12-25T10:28:41Z")

</div>

Hi, I would love to create a method, that’s for synchronization between parallel programs communicating on the network (with TCP connection). The method I need has a very simple interface and internal structure: def …

---

## [Png-file as a HTTP-Response](https://www.ruby-forum.com/t/png-file-as-a-http-response/180553)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 9:58am UTC](https://www.ruby-forum.com/t/png-file-as-a-http-response/180553 "2009-12-25T09:58:59Z")

</div>

Hello, Im quite stuck with my little project of writting a File-Controller in ruby. The actual problem is, that if I stream a png-file to a client TCP-Socket, the browser is getting the file realy slowly, so that it …

---

## [How to get a file contained in a gem "lib" directory?](https://www.ruby-forum.com/t/how-to-get-a-file-contained-in-a-gem-lib-directory/180529)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 8:00am UTC](https://www.ruby-forum.com/t/how-to-get-a-file-contained-in-a-gem-lib-directory/180529 "2009-12-25T08:00:06Z")

</div>

Hi, I’ve build a gem “mylib” which contains a file called “myfile.xml” under “lib/mylib” dir. Let’s imagine that depending on the environment it is stored (after installed) in: /usr/local/lib/ruby1.9/gems/1.9/gems/m…

---

## [Loses scope?](https://www.ruby-forum.com/t/loses-scope/180382)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 9\
**Last updated:** [December 24, 2009, 6:59am UTC](https://www.ruby-forum.com/t/loses-scope/180382 "2009-12-24T06:59:07Z")

</div>

Anybody know why this fails? a = 32 class A def go a end end puts A.new.go # raises with “a not defined” ? Thanks. -r

---

## [Tk load error](https://www.ruby-forum.com/t/tk-load-error/180513)

<div class="topic-metadata">

**Author:** [@diabolator2](https://www.ruby-forum.com/u/diabolator2)\
**Replies:** 6\
**Last updated:** [December 24, 2009, 4:09am UTC](https://www.ruby-forum.com/t/tk-load-error/180513 "2009-12-24T04:09:04Z")

</div>

Hi all! I start using Tk to create Ruby GUI apps but that’s da error: diabolator2@book:~$ cd /home/cristi/Desktop diabolator2@book:~/Desktop$ ruby firsttk.rb firsttk.rb:1:in \`require’: no such file to load – tk (LoadE…

---

## [Alternate Regular Expressions?](https://www.ruby-forum.com/t/alternate-regular-expressions/111410)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 26\
**Last updated:** [December 24, 2009, 3:26am UTC](https://www.ruby-forum.com/t/alternate-regular-expressions/111410 "2009-12-24T03:26:24Z")

</div>

Just randomly curious - Is there an alternate RegExp “language” to the current one in Ruby and Perl? Don’t get me wrong, I love the current RegExp in Ruby, but I’m allowed to be curious… Also, is Ruby going to jump …

---

## [Problem with trivial regular expression](https://www.ruby-forum.com/t/problem-with-trivial-regular-expression/180190)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 9\
**Last updated:** [December 23, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/problem-with-trivial-regular-expression/180190 "2009-12-23T19:39:18Z")

</div>

hi ,sorry for my english. I am trying to remember the use of regular expressions and i have a problem with this : i had a text with diferents strings, for example, url , like this : fajljsfjaosfohttp://www.marca.co…

---

## [Newbie - Moving Contents From Folder to Another](https://www.ruby-forum.com/t/newbie-moving-contents-from-folder-to-another/180610)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 4\
**Last updated:** [December 23, 2009, 12:46am UTC](https://www.ruby-forum.com/t/newbie-moving-contents-from-folder-to-another/180610 "2009-12-23T00:46:56Z")

</div>

Hi! I’m trying to create a program that will move contents that I’ve downloaded (i.e. folder called “Downloads”) to another folder (“Songs”). In other words, save mp3’s to “Downloads”, then run a Ruby script to move t…

---

## [\[ANN\] IronRuby 1.0 RC1](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc1/180259)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 1\
**Last updated:** [December 22, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc1/180259 "2009-12-22T23:10:25Z")

</div>

RubyConf made a few things related to the 1.0-rc1 release fall through the cracks, including an announcement out to the mailing list … my bad! Better late than never … The IronRuby team is pleased to announce version …

---

## [\[Bug #2516\] IO#reopen Compatibility (original: )](https://www.ruby-forum.com/t/bug-2516-io-reopen-compatibility-original/180607)

<div class="topic-metadata">

**Author:** [@ujihisa\_S](https://www.ruby-forum.com/u/ujihisa_S)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/bug-2516-io-reopen-compatibility-original/180607 "2009-12-22T21:30:41Z")

</div>

Bug #2516: IO#reopen Compatibility (original: \[ruby-dev:39479\]) http://redmine.ruby-lang.org/issues/show/2516 e$B5/I\<\<Te(B: ujihisa . e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Nobuyoshi N., e$B%+…

---

## [Symbols vs. constants?](https://www.ruby-forum.com/t/symbols-vs-constants/180572)

<div class="topic-metadata">

**Author:** [@Sonja\_Elen\_K](https://www.ruby-forum.com/u/Sonja_Elen_K)\
**Replies:** 34\
**Last updated:** [December 22, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/symbols-vs-constants/180572 "2009-12-22T20:03:28Z")

</div>

How are symbols and constant (capitalized) strings similar or dissimilar? They both seem to be used to store text that is not intended to change. In what situations should I use one or the other? How should I separate…

---

## [\[ help \] Ruby WM with C ext](https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936)

<div class="topic-metadata">

**Author:** [@maoa](https://www.ruby-forum.com/u/maoa)\
**Replies:** 2\
**Last updated:** [December 22, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936 "2009-12-22T19:44:09Z")

</div>

Hello, thank you for reading my post. My question is, how do I go about creating a C extension with Ruby? The reason I ask is because I recently found a window manager source code, http://paste.lisp.org/display/47144/…

---

## [Select!](https://www.ruby-forum.com/t/select/180247)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [December 22, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/select/180247 "2009-12-22T17:28:53Z")

</div>

Is there any reason there’s no select! (and I am familiar with compact! but still…) C:\>ruby -e ‘puts \[\].methods.grep /reject/’ reject reject! C:\>ruby -e ‘puts \[\].methods.grep /select/’ select

---

## [Integers and floats](https://www.ruby-forum.com/t/integers-and-floats/180593)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 15\
**Last updated:** [December 22, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/integers-and-floats/180593 "2009-12-22T16:49:44Z")

</div>

Can someone explain to me why Ruby treats integers and floating point numbers differently? irb(main):069:0\> 12.equal? 12 =\> true irb(main):071:0\> 12.0.equal? 12.0 =\> false – Kind Regards, Rajinder Y. http://DevM…

---

## [Rest-client headers or cookies](https://www.ruby-forum.com/t/rest-client-headers-or-cookies/180564)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 2\
**Last updated:** [December 22, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/rest-client-headers-or-cookies/180564 "2009-12-22T16:22:13Z")

</div>

Hi, I am trying to make a request to a PHP application coded with limonade (a REST sever like Sinatra). I’m using rest\_client which rides on top of Net::HTTP. I’d like to get the headers back from that call, so that …

---

## [OpenCL and Ruby](https://www.ruby-forum.com/t/opencl-and-ruby/180597)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 0\
**Last updated:** [December 22, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/opencl-and-ruby/180597 "2009-12-22T15:00:24Z")

</div>

Hi everybody, someone tryed to use OpenCL with ruby for speeding up something ( what ? ). Simone

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

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