# Ruby

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

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

---

## [Gets() -- Need to skip when no response after 20seconds](https://www.ruby-forum.com/t/gets-need-to-skip-when-no-response-after-20seconds/191543)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 9\
**Last updated:** [July 14, 2010, 10:02am UTC](https://www.ruby-forum.com/t/gets-need-to-skip-when-no-response-after-20seconds/191543 "2010-07-14T10:02:48Z")

</div>

Code: puts “Print your age” a=gets() puts “Timeout. 20 Seconds Gone. Please re-run the Applciation” Need: a=gets() is waiting for input. I need to wait only 20 seconds. If therre is no input for 20 seconds then scr…

---

## [.NET 4.0 installer missing silverlight tools](https://www.ruby-forum.com/t/net-4-0-installer-missing-silverlight-tools/191545)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [July 14, 2010, 9:10am UTC](https://www.ruby-forum.com/t/net-4-0-installer-missing-silverlight-tools/191545 "2010-07-14T09:10:07Z")

</div>

Just moved to .NET 4.0 and noticed the sl and chiron tools were not included. I pulled them from the .NET 2.0 .zip. Ryan R. Email: removed\_email\_address@domain.invalid LinkedIn: http://www.linkedin.com/in/ryanriley …

---

## [Ruby|Web Conference](https://www.ruby-forum.com/t/ruby-web-conference/191541)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [July 14, 2010, 7:20am UTC](https://www.ruby-forum.com/t/ruby-web-conference/191541 "2010-07-14T07:20:42Z")

</div>

Hey all, I’m excited to announce Ruby|Web Conference, a new conference that will be held at Snowbird, Utah on September 9-10. This will be a topical gathering about all aspects of web programming using Ruby. So while …

---

## [What does this do?](https://www.ruby-forum.com/t/what-does-this-do/191528)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 11\
**Last updated:** [July 14, 2010, 7:10am UTC](https://www.ruby-forum.com/t/what-does-this-do/191528 "2010-07-14T07:10:45Z")

</div>

I have this portion of code from “Why’s poignant guide to Ruby” book. str = “A string is a long shelf of letters and spaces” # Nice definition :slight\_smile: puts str\[0…-1\] puts str\[1…-2\] I just want to ask. Does th…

---

## [Configurability 1.0.0](https://www.ruby-forum.com/t/configurability-1-0-0/191459)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [July 14, 2010, 5:24am UTC](https://www.ruby-forum.com/t/configurability-1-0-0/191459 "2010-07-14T05:24:49Z")

</div>

Version 1.0.0 of configurability has been released. Configurability is a mixin that allows you to add configurability to one or more objects or classes. You can assign them each a subsection of the configuration, and…

---

## [Loading a module without polluting my namespace](https://www.ruby-forum.com/t/loading-a-module-without-polluting-my-namespace/190079)

<div class="topic-metadata">

**Author:** [@hagbard](https://www.ruby-forum.com/u/hagbard)\
**Replies:** 19\
**Last updated:** [July 14, 2010, 2:28am UTC](https://www.ruby-forum.com/t/loading-a-module-without-polluting-my-namespace/190079 "2010-07-14T02:28:03Z")

</div>

Hey folks! In my current project I try to load a module dynamically. Which is basically no problem due to 'require\` accepting filenames as well. My problem is that I’d totally pollute my namespace. I thought of someth…

---

## [Advice for html project](https://www.ruby-forum.com/t/advice-for-html-project/191532)

<div class="topic-metadata">

**Author:** [@jnb](https://www.ruby-forum.com/u/jnb)\
**Replies:** 1\
**Last updated:** [July 14, 2010, 2:22am UTC](https://www.ruby-forum.com/t/advice-for-html-project/191532 "2010-07-14T02:22:47Z")

</div>

I helping my boss with some scripting for a web analysis research project. He handles vocabulary and analysis, while I am using ruby parse WARC files and the actual HTML. Anyway, I’m still fairly new to Ruby. I did th…

---

## [How can I get the result of this equation](https://www.ruby-forum.com/t/how-can-i-get-the-result-of-this-equation/191530)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [July 14, 2010, 2:19am UTC](https://www.ruby-forum.com/t/how-can-i-get-the-result-of-this-equation/191530 "2010-07-14T02:19:16Z")

</div>

I have written this a script like this: values = \[10, 20, 30\].each {|value| value + (value \* 10)} puts value In this case, I get: undefined local variable or method \`value’ for main:Object (NameError) I’m trying to …

---

## [\[Backport #3567\] r28082 \* ext/zlib/zlib.c (zstream\_append\_input2): add RB\_GC\_GUARD](https://www.ruby-forum.com/t/backport-3567-r28082-ext-zlib-zlib-c-zstream-append-input2-add-rb-gc-guard/191533)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [July 14, 2010, 1:45am UTC](https://www.ruby-forum.com/t/backport-3567-r28082-ext-zlib-zlib-c-zstream-append-input2-add-rb-gc-guard/191533 "2010-07-14T01:45:19Z")

</div>

Backport #3567: r28082 \* ext/zlib/zlib.c (zstream\_append\_input2): add RB\_GC\_GUARD. http://redmine.ruby-lang.org/issues/show/3567 e$B5/I\<\<Te(B: Nobuyoshi N. e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te…

---

## [Strange Loop 2010](https://www.ruby-forum.com/t/strange-loop-2010/191531)

<div class="topic-metadata">

**Author:** [@Eleanor\_McHugh](https://www.ruby-forum.com/u/Eleanor_McHugh)\
**Replies:** 0\
**Last updated:** [July 14, 2010, 1:35am UTC](https://www.ruby-forum.com/t/strange-loop-2010/191531 "2010-07-14T01:35:57Z")

</div>

I’ll be talking about GoLightly at http://strangeloop2010.com/ in October so if anyone wants to corner me there about plans for RubyGoLightly or the possibilities for Ruby in real-time/systems programming your interes…

---

## [Unicorn 1.0.1 and 1.1.2 - fix rollbacks](https://www.ruby-forum.com/t/unicorn-1-0-1-and-1-1-2-fix-rollbacks/191523)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [July 13, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/unicorn-1-0-1-and-1-1-2-fix-rollbacks/191523 "2010-07-13T22:13:23Z")

</div>

Changes: Theses release fix a long-standing bug where the original PID file is not restored when rolling back from a USR2 upgrade. Presumably most upgrades aren’t rolled back, so it took over a year to notice this is…

---

## [Gem spec](https://www.ruby-forum.com/t/gem-spec/191452)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 4\
**Last updated:** [July 13, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/gem-spec/191452 "2010-07-13T22:05:47Z")

</div>

JRuby 1.5.1, Rails app, with JDBC adapter 0.9.7 config.gem: Unpacked gem activerecord-jdbc-adapter-0.9.7 in vendor/gems has a mismatched specification file. Run ‘rake gems:refresh\_specs’ to fix this. mmm, OK. jruby …

---

## [Ruby & flash](https://www.ruby-forum.com/t/ruby-flash/191487)

<div class="topic-metadata">

**Author:** [@andromeda](https://www.ruby-forum.com/u/andromeda)\
**Replies:** 5\
**Last updated:** [July 13, 2010, 9:59pm UTC](https://www.ruby-forum.com/t/ruby-flash/191487 "2010-07-13T21:59:20Z")

</div>

Hello there. we do have a problem with a ruby site we are forced to maintain but have absolutely no experience nor knowledge about the framework and the service structures. I’d really appreciate some patience here, be…

---

## [How to build war for java 1.5 target machine?](https://www.ruby-forum.com/t/how-to-build-war-for-java-1-5-target-machine/191510)

<div class="topic-metadata">

**Author:** [@cyberjom](https://www.ruby-forum.com/u/cyberjom)\
**Replies:** 1\
**Last updated:** [July 13, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/how-to-build-war-for-java-1-5-target-machine/191510 "2010-07-13T19:45:52Z")

</div>

I’m using OSX 10.6 with java 1.6 with jruby 1.5.1 and warbler. Please guide me how can I deploy it for java 1.5 machine ?

---

## [Golf on CLI code](https://www.ruby-forum.com/t/golf-on-cli-code/191122)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 6\
**Last updated:** [July 13, 2010, 7:00pm UTC](https://www.ruby-forum.com/t/golf-on-cli-code/191122 "2010-07-13T19:00:46Z")

</div>

I have a registry (array) of CLI classes. Each class has a class method cli() that returns an array of strings or regular expressions to match against ARGV to see if it is the chosen cli. Eg. class FooList \<\< CLIBase …

---

## [While loop end action](https://www.ruby-forum.com/t/while-loop-end-action/191444)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [July 13, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/while-loop-end-action/191444 "2010-07-13T17:13:20Z")

</div>

I am trying to write a script that when certain circumstances arise it creates an object instance that adds some info to a temporary array for a given time. When the given time is up I would like to perform a couple a…

---

## [Errors in Ruby](https://www.ruby-forum.com/t/errors-in-ruby/191494)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 6\
**Last updated:** [July 13, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/errors-in-ruby/191494 "2010-07-13T17:10:59Z")

</div>

In the following sentence: The raise method is from the Kernel module. By default, raise creates an exception of the RuntimeError class. From: What is meant by raising an exception of the “RunTimeError”? And, if we r…

---

## [Remote File Handling](https://www.ruby-forum.com/t/remote-file-handling/191466)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 3\
**Last updated:** [July 13, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/remote-file-handling/191466 "2010-07-13T17:01:17Z")

</div>

Trying to use the File and Dir classes on remote directories with no luck whatsoever. Here’s what I want to do: Put a bunch of files into a folder on an FTP server. This could be anywhere. SSH/SFTP/FTP/whatever i…

---

## [Consuming a SOAP Service using Savon Gem](https://www.ruby-forum.com/t/consuming-a-soap-service-using-savon-gem/191489)

<div class="topic-metadata">

**Author:** [@saeed](https://www.ruby-forum.com/u/saeed)\
**Replies:** 4\
**Last updated:** [July 13, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/consuming-a-soap-service-using-savon-gem/191489 "2010-07-13T16:46:55Z")

</div>

Hi, I am trying to consume a SOAP service using the Savon gem but having difficulty. My code: "require ‘rubygems’ require ‘savon’ Client instance with a WSDL endpoint client = Savon::Client.new “http://realtime.n…

---

## [What is meant by those lines of code in this script?](https://www.ruby-forum.com/t/what-is-meant-by-those-lines-of-code-in-this-script/191222)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [July 13, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/what-is-meant-by-those-lines-of-code-in-this-script/191222 "2010-07-13T16:21:41Z")

</div>

I came across the following script from “Why’s poignant guide to Ruby”. http://pastie.org/1034445 And, I have included my questions as comments in the script. Please let me know what you think. Thanks.

---

## [Rescue](https://www.ruby-forum.com/t/rescue/191498)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 13, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/rescue/191498 "2010-07-13T14:39:43Z")

</div>

In this code: http://pastie.org/private/llneqf8bi5kf3i82q2ivw from Learn How to Blog and Build Websites for Profit!, I really didn’t get the idea of “rescue” and what it is supposed to do? Can you just explain it furt…

---

## [Standard Library vs. 3rd Party Library](https://www.ruby-forum.com/t/standard-library-vs-3rd-party-library/191458)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [July 13, 2010, 2:36pm UTC](https://www.ruby-forum.com/t/standard-library-vs-3rd-party-library/191458 "2010-07-13T14:36:14Z")

</div>

Loading rdoc in a ruby script leads to a conundrum of sorts. require ‘rdoc/rdoc’ This will load the version of RDoc distributed with Ruby. But it is a very old version. Installing the latest version of RDoc via gem h…

---

## [Tripe equals ===](https://www.ruby-forum.com/t/tripe-equals/191483)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 13, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/tripe-equals/191483 "2010-07-13T14:31:44Z")

</div>

What are === used for in Ruby? Do they work like .include? Thanks.

---

## [Listen to streaming radio with ruby?](https://www.ruby-forum.com/t/listen-to-streaming-radio-with-ruby/191112)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 3\
**Last updated:** [July 13, 2010, 1:32pm UTC](https://www.ruby-forum.com/t/listen-to-streaming-radio-with-ruby/191112 "2010-07-13T13:32:44Z")

</div>

Does anyone have any information they can share with me on reading an audio stream with ruby? I am teaching myself ruby and they say to find a project and build it, so here i am. I listen to a lot of online radio and…

---

## [How to create keybinds?](https://www.ruby-forum.com/t/how-to-create-keybinds/191419)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 3\
**Last updated:** [July 13, 2010, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-create-keybinds/191419 "2010-07-13T13:21:13Z")

</div>

My Rubyknowledge is somewhat limited, so im in need of some help with the following dilemma… is there a way to create keybinds in ruby? In plain english, I want to be able to press f2 and run a rubyscript, how would I…

---

## [Why do I get undefined method?](https://www.ruby-forum.com/t/why-do-i-get-undefined-method/191479)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [July 13, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/why-do-i-get-undefined-method/191479 "2010-07-13T12:26:38Z")

</div>

I’m trying to write a script such that when you enter a year, you get back a result of what occurred in this year or in the range of years, as follows: http://pastie.org/private/0nibq5i7abwghydfu0yzg The case is when …

---

## [RCov with jruby-complete possible?](https://www.ruby-forum.com/t/rcov-with-jruby-complete-possible/191308)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 4\
**Last updated:** [July 13, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/rcov-with-jruby-complete-possible/191308 "2010-07-13T12:25:03Z")

</div>

I’m trying to use RCov in my Rakefile for code coverage with Rspec in the ruby code our App, but because of our special needs in the app (mix code of Java, Ruby and Scala) we’re executing it with jruby-complete (1.5.1…

---

## [The Compleat Rubyist, Philadelphia, October 1-2 2010](https://www.ruby-forum.com/t/the-compleat-rubyist-philadelphia-october-1-2-2010/197199)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [July 13, 2010, 12:22pm UTC](https://www.ruby-forum.com/t/the-compleat-rubyist-philadelphia-october-1-2-2010/197199 "2010-07-13T12:22:32Z")

</div>

Hello everyone – I’m very pleased to announce that the next Compleat Rubyist event will be held in Philadelphia, PA, at the Crowne Plaza Philadelphia West, October 1-2, 2010. The Compleat Rubyist is a unique two-day …

---

## [Ehi, jruby 1.5, what's happen?](https://www.ruby-forum.com/t/ehi-jruby-1-5-whats-happen/190194)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 19\
**Last updated:** [July 13, 2010, 11:26am UTC](https://www.ruby-forum.com/t/ehi-jruby-1-5-whats-happen/190194 "2010-07-13T11:26:54Z")

</div>

I’m upgraded a rails application from jruby 1.4.0 to jruby-1-5-1. I’m using scaffolding to insert records in a database. On myapp/product/new here is the error: undefined method \`application\_backtrace’ for #Java::Org…

---

## [I'm trying to get the keys, but why values appear?](https://www.ruby-forum.com/t/im-trying-to-get-the-keys-but-why-values-appear/191475)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [July 13, 2010, 11:02am UTC](https://www.ruby-forum.com/t/im-trying-to-get-the-keys-but-why-values-appear/191475 "2010-07-13T11:02:19Z")

</div>

I’m trying to write a script that lists ONLY the keys in a hash as follows: http://pastie.org/private/1ruahb5w05ihsloqwmqeng The case is that when I run the script, I get the following: NameAbder-Rahman A. Age26 Whi…

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

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