# Ruby

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

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

---

## [Rescue and principle of least surprise](https://www.ruby-forum.com/t/rescue-and-principle-of-least-surprise/160502)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/rescue-and-principle-of-least-surprise/160502 "2009-02-17T14:13:30Z")

</div>

It came as a big surprise to me when I discovered that this code: begin do stuff rescue do rescue stuff end …could fail to catch exceptions thrown in the “do stuff” section. A bare “rescue” looks to me like it ought…

---

## [Re: Re: Setting JMX attributes](https://www.ruby-forum.com/t/re-re-setting-jmx-attributes/160527)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 0\
**Last updated:** [February 17, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/re-re-setting-jmx-attributes/160527 "2009-02-17T13:32:10Z")

</div>

We are using the JMX gem Charles mentioned here in our code and not having any problems. (we are in production too). And we use the JMX stuff to monitor and manage our applications. Jay Feb 17, 2009 03:03:20 AM, r…

---

## [Accessing shared windows smb:// folder](https://www.ruby-forum.com/t/accessing-shared-windows-smb-folder/160509)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 3\
**Last updated:** [February 17, 2009, 12:28pm UTC](https://www.ruby-forum.com/t/accessing-shared-windows-smb-folder/160509 "2009-02-17T12:28:41Z")

</div>

I’m running ubuntu linux on an office network with mostly windows machines. I have a shared network folder that I can access with samba as: smb://hostname/shared I’m trying to write a script that will read the conten…

---

## [How to do this complicated logic in ruby](https://www.ruby-forum.com/t/how-to-do-this-complicated-logic-in-ruby/160431)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 9\
**Last updated:** [February 17, 2009, 10:00am UTC](https://www.ruby-forum.com/t/how-to-do-this-complicated-logic-in-ruby/160431 "2009-02-17T10:00:48Z")

</div>

Dear all I have an array with size around 1000, I want to perform some data checking and correction in this array. For instance, the first record of this array is a hash, as follow my\_array\[0\] = {“server”=\>“AHN”, “ho…

---

## [Webrick does not start](https://www.ruby-forum.com/t/webrick-does-not-start/160513)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 0\
**Last updated:** [February 17, 2009, 9:45am UTC](https://www.ruby-forum.com/t/webrick-does-not-start/160513 "2009-02-17T09:45:32Z")

</div>

I always get the error: C:/jruby/bin/…/lib/ruby/1.8/webrick/utils.rb:63:in create\_listeners': no such service 12345/tcp (SocketError) from C:/jruby/bin/../lib/ruby/1.8/webrick/server.rb:75:inlisten’ from C:/jruby/bin/……

---

## [Parsing CSV file into a database](https://www.ruby-forum.com/t/parsing-csv-file-into-a-database/160452)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 9\
**Last updated:** [February 17, 2009, 8:50am UTC](https://www.ruby-forum.com/t/parsing-csv-file-into-a-database/160452 "2009-02-17T08:50:44Z")

</div>

How would i go about parsing a csv from the web eg yahoo finance stock data into my database table called stocks? I would like this process to happen each time a user logs into there account so it will update the tabl…

---

## [\[ANN\] ffi-wiiuse 0.1.0](https://www.ruby-forum.com/t/ann-ffi-wiiuse-0-1-0/160479)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 3\
**Last updated:** [February 17, 2009, 7:48am UTC](https://www.ruby-forum.com/t/ann-ffi-wiiuse-0-1-0/160479 "2009-02-17T07:48:04Z")

</div>

ffi-wiiuse version 0.1.0 by Andrea F. GitHub - remogatto/ffi-wiiuse: wiiuse ruby binding using FFI == DESCRIPTION ffi-wiiuse is a ruby wrapper around wiiuse, a C library that handles the connection with Nintendo Wii…

---

## [Hash :: Recursive traversing and stripping the values](https://www.ruby-forum.com/t/hash-recursive-traversing-and-stripping-the-values/160440)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 17, 2009, 7:11am UTC](https://www.ruby-forum.com/t/hash-recursive-traversing-and-stripping-the-values/160440 "2009-02-17T07:11:47Z")

</div>

Hi, I am a Ruby N… I wrote a function for stripping all the values(a recursive one if it is a nested hash) but i almost end up in an error suggesting “Error =\> in \`strip\_hash\_values’: stack level too deep (SystemSta…

---

## [Gem install ruby-serialport gives error](https://www.ruby-forum.com/t/gem-install-ruby-serialport-gives-error/160505)

<div class="topic-metadata">

**Author:** [@sangeeta](https://www.ruby-forum.com/u/sangeeta)\
**Replies:** 0\
**Last updated:** [February 17, 2009, 7:06am UTC](https://www.ruby-forum.com/t/gem-install-ruby-serialport-gives-error/160505 "2009-02-17T07:06:29Z")

</div>

:::: gem install ruby-serialport Install required dependency echoe? \[Yn\] Y Install required dependency rubyforge? \[Yn\] Y Install required dependency highline? \[Yn\] Y Building native extensions. This could take a …

---

## [POP email with SSL](https://www.ruby-forum.com/t/pop-email-with-ssl/101192)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 4\
**Last updated:** [February 17, 2009, 7:06am UTC](https://www.ruby-forum.com/t/pop-email-with-ssl/101192 "2009-02-17T07:06:02Z")

</div>

Can someone point me to an example of reading email from a server using POP and SSL?

---

## [Regex does not contain - or no match](https://www.ruby-forum.com/t/regex-does-not-contain-or-no-match/160501)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 4:41am UTC](https://www.ruby-forum.com/t/regex-does-not-contain-or-no-match/160501 "2009-02-17T04:41:47Z")

</div>

okay, for some reason, i am not getting this… i am feeling very stupid… i am trying to find a case where the regex does NOT match… i have tried: string !=~/regex/ but this doesn’t seem to work… anyone have any idea…

---

## [Reading and writing narray/sound data to file](https://www.ruby-forum.com/t/reading-and-writing-narray-sound-data-to-file/160500)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 4:13am UTC](https://www.ruby-forum.com/t/reading-and-writing-narray-sound-data-to-file/160500 "2009-02-17T04:13:11Z")

</div>

Hi, I was wondering if anyone could help. I’m writing a program that analyses and processes audio in Ruby, using the audio/sndfile library and narray. Currently I’m analysing a file and storing the analysis data, an …

---

## [Building Ruby: Where is libruby1.8.so?](https://www.ruby-forum.com/t/building-ruby-where-is-libruby1-8-so/160497)

<div class="topic-metadata">

**Author:** [@Br.Bill](https://www.ruby-forum.com/u/Br.Bill)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 2:58am UTC](https://www.ruby-forum.com/t/building-ruby-where-is-libruby1-8-so/160497 "2009-02-17T02:58:30Z")

</div>

Ruby version: 1.8.6-p287 Architecture: RedHat enterprise 5.3 Linux den1 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86\_64 x86\_64 x86\_64 GNU/Linux I’m no expert on building in Linux, but I have finally managed…

---

## [Features diff between 1.8.5 and 1.8.6](https://www.ruby-forum.com/t/features-diff-between-1-8-5-and-1-8-6/160491)

<div class="topic-metadata">

**Author:** [@jersingh](https://www.ruby-forum.com/u/jersingh)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 2:26am UTC](https://www.ruby-forum.com/t/features-diff-between-1-8-5-and-1-8-6/160491 "2009-02-17T02:26:17Z")

</div>

We’ve got a redhat 5.3 64bit server under support. Out of curiosity, I posted a question to redhat as to why they support 1.8.5 and not 1.8.6. (It seems I was having trouble installing the mysql gem after I installed …

---

## [Controlling a forked process](https://www.ruby-forum.com/t/controlling-a-forked-process/160415)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 8\
**Last updated:** [February 17, 2009, 1:39am UTC](https://www.ruby-forum.com/t/controlling-a-forked-process/160415 "2009-02-17T01:39:45Z")

</div>

If I start a process, is there some way that I can maintain control of it. More specifically, can I start a process and then at some point based on a user action kill that process. I see hints of that in the documenta…

---

## [RubySpec: Exceptions in before/after get lost in output](https://www.ruby-forum.com/t/rubyspec-exceptions-in-before-after-get-lost-in-output/160102)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 1:19am UTC](https://www.ruby-forum.com/t/rubyspec-exceptions-in-before-after-get-lost-in-output/160102 "2009-02-17T01:19:38Z")

</div>

core/io/close\_read\_spec.rb does not work on my machine because it has the following code, but I don’t have “cat” on my machine. describe “IO#close\_read” do before :each do @io = IO.popen ‘cat’, “r+” @path = tmp(‘io.…

---

## [Stack Caching $B$rM-8z$K$7$?;~$N%S%k%I$K$D$$$F(B](https://www.ruby-forum.com/t/stack-caching-b-rm-8z-k-7-n-s-k-i-k-d-f-b/160467)

<div class="topic-metadata">

**Author:** [@nagachika](https://www.ruby-forum.com/u/nagachika)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 12:49am UTC](https://www.ruby-forum.com/t/stack-caching-b-rm-8z-k-7-n-s-k-i-k-d-f-b/160467 "2009-02-17T00:49:09Z")

</div>

nagachika e$B$H?=$7$^$9!#e(B e$BA02s$Ne(BRHGe$B$N5U=1$Ge(B Stack Caching Optimization e$B$r%M%?$K$9$k$?$a!"e(B OPT\_STACK\_CACHING e$B$re(B ON e$B$K$7$F%S%k%I$7$F$\_$k$3$H$KD)@o$7$^$7$?!#e(B e$B$^$@e(B make e$B$,:G8e$^…

---

## [Problem with WPF animation.Duration= and TimeSpan](https://www.ruby-forum.com/t/problem-with-wpf-animation-duration-and-timespan/160453)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 12:23am UTC](https://www.ruby-forum.com/t/problem-with-wpf-animation-duration-and-timespan/160453 "2009-02-17T00:23:59Z")

</div>

Hi all, Once again I am hitting some unexpected behavior in IronRuby. Might be a bug :wink: animation = System::Windows::Media::Animation::DoubleAnimation.new() =\> #System::Windows::Media::Animation::DoubleAnimat…

---

## [Good GUI documentation](https://www.ruby-forum.com/t/good-gui-documentation/160292)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 26\
**Last updated:** [February 16, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/good-gui-documentation/160292 "2009-02-16T23:40:00Z")

</div>

Hello all you happy GUIsher! Does anyone know of a good, well written book to learn one of the GUI supported by Ruby? I looked at: Fox TK QTK Jruby with netbeans shoes wxruby wide studio rubyonsteel monkeybar…

---

## [RubyCLR anyone?](https://www.ruby-forum.com/t/rubyclr-anyone/160451)

<div class="topic-metadata">

**Author:** [@zwadar](https://www.ruby-forum.com/u/zwadar)\
**Replies:** 3\
**Last updated:** [February 16, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/rubyclr-anyone/160451 "2009-02-16T22:58:07Z")

</div>

Hi, I asked this question http://www.ruby-forum.com/topic/178661 in main ruby forums, because its about MRI ruby and it’s gem, but maybe here I can find someone who will know the answer or at least can provide some …

---

## [Code Review: re](https://www.ruby-forum.com/t/code-review-re/160100)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/code-review-re/160100 "2009-02-16T22:21:07Z")

</div>

tfpt review “/shelveset:re;REDMOND\\sborde” Comment : Fixes couple of remaining blocking bugs in re: Ruby’s /(?:m)/m should map to CLR’s “(?:s)” Hacky fix for /(expr){N}+/ should be treated like /(?:expr{N})+/

---

## [Ffi-ncurses version 0.3.0](https://www.ruby-forum.com/t/ffi-ncurses-version-0-3-0/160408)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 9\
**Last updated:** [February 16, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/ffi-ncurses-version-0-3-0/160408 "2009-02-16T22:15:14Z")

</div>

ffi-ncurses version 0.3.0 by Sean O’Halpin GitHub - seanohalpin/ffi-ncurses: Interface to ncurses using Ruby FFI (Foreign Function Interface) == DESCRIPTION ffi-ncurses is an FFI wrapper for ncurses 5.x. This is the…

---

## [Strange problem with JRoR, plugins and environment](https://www.ruby-forum.com/t/strange-problem-with-jror-plugins-and-environment/160469)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 1\
**Last updated:** [February 16, 2009, 9:41pm UTC](https://www.ruby-forum.com/t/strange-problem-with-jror-plugins-and-environment/160469 "2009-02-16T21:41:10Z")

</div>

Hi I have a rails project where I have Globalize2, state\_machine and some other plugins in use. When trying to run migration scripts with JRuby 1.1.6 and RAILS\_ENV=test or production I get a following error message: A…

---

## [Implementing ASP.NET MVC](https://www.ruby-forum.com/t/implementing-asp-net-mvc/160471)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 7:37pm UTC](https://www.ruby-forum.com/t/implementing-asp-net-mvc/160471 "2009-02-16T19:37:01Z")

</div>

Hi, I’m currently implementing ActionFilters and ActionResults in ironruby mvc. I do have some questions about that… Why so many filters? Is there an example somewhere so I can see their intended use? At the momen…

---

## [Inherit and override in the same time?](https://www.ruby-forum.com/t/inherit-and-override-in-the-same-time/160457)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 6\
**Last updated:** [February 16, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/inherit-and-override-in-the-same-time/160457 "2009-02-16T19:31:05Z")

</div>

Hi Ruby gurus, Let’s say we have a Parent class, and a Child1 class that inherits from the Parent class. I’d like to create a Child2 class that inherits most of the Child1 class, except for one method, which I’d like…

---

## [Difficulty accessing command line function return value (Hadoop FS shell)](https://www.ruby-forum.com/t/difficulty-accessing-command-line-function-return-value-hadoop-fs-shell/160468)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/difficulty-accessing-command-line-function-return-value-hadoop-fs-shell/160468 "2009-02-16T19:12:50Z")

</div>

I’m attempting to use Hadoop FS shell ( http://hadoop.apache.org/core/docs/current/hdfs\_shell.html) within a ruby script. My challenge is that I’m unable to get the function return value of the commands I’m invoking…

---

## [Ruby-opengl 0.60.1 released (maintenance release)](https://www.ruby-forum.com/t/ruby-opengl-0-60-1-released-maintenance-release/160465)

<div class="topic-metadata">

**Author:** [@jandrake](https://www.ruby-forum.com/u/jandrake)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/ruby-opengl-0-60-1-released-maintenance-release/160465 "2009-02-16T18:55:13Z")

</div>

Hello, we’ve released version 0.60.1 of the ruby-opengl bindings. This is maintenance release. Changes in this release: Bugfixes Proper support for ruby 1.9/1.9.1+ Updated OpenGL enumerators in preparation for Open…

---

## [Q: visualisation for simple animations (e.g. cel. automata)?](https://www.ruby-forum.com/t/q-visualisation-for-simple-animations-e-g-cel-automata/160437)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 7\
**Last updated:** [February 16, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/q-visualisation-for-simple-animations-e-g-cel-automata/160437 "2009-02-16T18:46:19Z")

</div>

Hello, I would need to create a very simple visualisation for some scientific work I am doing. Basically I need to draw points in a 2D graph (and specify which colours to use) and each time the user presses the space…

---

## [Ruby Training in Atlanta, April 1-3!](https://www.ruby-forum.com/t/ruby-training-in-atlanta-april-1-3/160460)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 1\
**Last updated:** [February 16, 2009, 6:13pm UTC](https://www.ruby-forum.com/t/ruby-training-in-atlanta-april-1-3/160460 "2009-02-16T18:13:54Z")

</div>

Hi all – I’m very pleased to announce Ruby Training Atlanta, a co-production of Ruby Power and Light\[1\] and ENTP\[2\]. It’s a three-day course, April 1-3, covering intro to upper-intermediate topics. Principle instruct…

---

## [Netssh and mysl](https://www.ruby-forum.com/t/netssh-and-mysl/160379)

<div class="topic-metadata">

**Author:** [@adad](https://www.ruby-forum.com/u/adad)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/netssh-and-mysl/160379 "2009-02-16T17:24:58Z")

</div>

hi is there a way to run netssh and mysql. some thing on the lines: Net::SSH.start(“ipaddress”, “username”, :password=\>“psswd”) do |ssh| ssh.exec(“mysql -uusername -ppassword -P3306 dbname”) ssh.exec(“use dbname;”) …

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

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