# Ruby

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

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

---

## [Instaling a gem without some dependences](https://www.ruby-forum.com/t/instaling-a-gem-without-some-dependences/174257)

<div class="topic-metadata">

**Author:** [@felix](https://www.ruby-forum.com/u/felix)\
**Replies:** 3\
**Last updated:** [September 4, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/instaling-a-gem-without-some-dependences/174257 "2009-09-04T16:07:33Z")

</div>

Hi, I’m new in using gem, and have a problem with dependences. I try to install RoR, but one of gems appear broken. Does Gem has an option “–install-without” or similar? I see there is one option to “–force” install,…

---

## [RubyWorld Conference live broadcasting](https://www.ruby-forum.com/t/rubyworld-conference-live-broadcasting/174942)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 1\
**Last updated:** [September 4, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/rubyworld-conference-live-broadcasting/174942 "2009-09-04T16:06:22Z")

</div>

Hi, The RubyWorld Conference will be held at Shimane Prefectural Convention Center “Kunibiki Messe”, Shimane Prefecture, during September 7th – 8th , 2009. The talks at the International Conference Hall will be live …

---

## [Smtp\_tls 1.0.1 Released](https://www.ruby-forum.com/t/smtp-tls-1-0-1-released/170993)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 10\
**Last updated:** [September 4, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/smtp-tls-1-0-1-released/170993 "2009-09-04T13:27:35Z")

</div>

smtp\_tls version 1.0.1 has been released! http://seattlerb.rubyforge.org/smtp\_tls Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+). Simply require ‘smtp\_tls’ and use the Net::SMTP#enable\_starttls …

---

## [Array.transpose on \] or \[\[\],\[\]\]](https://www.ruby-forum.com/t/array-transpose-on-or/174885)

<div class="topic-metadata">

**Author:** [@Ralf\_M](https://www.ruby-forum.com/u/Ralf_M)\
**Replies:** 5\
**Last updated:** [September 4, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/array-transpose-on-or/174885 "2009-09-04T13:07:48Z")

</div>

Hi, I wondered why \[\[\]\].transpose = \[\] and \[\[\],\[\]\].transpose = \[\] I expected them to be \[\[\]\], because the result would still be an array of arrays. Or did I miss anything about these special cases? Best regards Ral…

---

## [\<LocalJumpError\> Message: \<"no block given"\>](https://www.ruby-forum.com/t/localjumperror-message-no-block-given/174928)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 4\
**Last updated:** [September 4, 2009, 10:57am UTC](https://www.ruby-forum.com/t/localjumperror-message-no-block-given/174928 "2009-09-04T10:57:25Z")

</div>

Cannot understand why this error is being raised. Any help is appreciated. Please find the code listed below. def open get\_connection end protected def get\_connection @busy\_mutex.synchronize { while @free\_con…

---

## [JSpec command line run command doesn't work](https://www.ruby-forum.com/t/jspec-command-line-run-command-doesnt-work/174920)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 0\
**Last updated:** [September 4, 2009, 4:30am UTC](https://www.ruby-forum.com/t/jspec-command-line-run-command-doesnt-work/174920 "2009-09-04T04:30:43Z")

</div>

Hi. I’ve just installed the JSpec\* gem and trying to run some test suites. When I type: jspec run jspec run --browsers ff jspec run --browsers ff --server I receive the next warning and an error report: \<gem\_dir\>/…

---

## [Threads - running something in background](https://www.ruby-forum.com/t/threads-running-something-in-background/174850)

<div class="topic-metadata">

**Author:** [@akeem](https://www.ruby-forum.com/u/akeem)\
**Replies:** 7\
**Last updated:** [September 4, 2009, 3:56am UTC](https://www.ruby-forum.com/t/threads-running-something-in-background/174850 "2009-09-04T03:56:20Z")

</div>

Hey guys, I’ve been studying Ruby for some weeks now but when it comes to threads, I know that I am totally unskilled. I am trying to build a class which is able to keep updating itself every X seconds after being in…

---

## [Refactor sketchup-ruby code](https://www.ruby-forum.com/t/refactor-sketchup-ruby-code/174918)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 0\
**Last updated:** [September 4, 2009, 3:13am UTC](https://www.ruby-forum.com/t/refactor-sketchup-ruby-code/174918 "2009-09-04T03:13:36Z")

</div>

Hello, I need help in understanding how I can factor out some code I posted here: I’m a novice but I am experimenting with sketchup observers, and the code near the top has a lot redundancy. The first thing I want…

---

## [Ri on snow leopard?](https://www.ruby-forum.com/t/ri-on-snow-leopard/174906)

<div class="topic-metadata">

**Author:** [@n1ghtshade3](https://www.ruby-forum.com/u/n1ghtshade3)\
**Replies:** 3\
**Last updated:** [September 4, 2009, 2:38am UTC](https://www.ruby-forum.com/t/ri-on-snow-leopard/174906 "2009-09-04T02:38:28Z")

</div>

Hey all - As usual after any kind of dramatic change on my computer, ri is semi-busted after upgrading to Snow Leopard. Possibly relevant: $ ri --version ri v1.0.1 - 20041108 (Seems oddly kind of old.) Anyhow. Wor…

---

## [Data::Dumper for Ruby?](https://www.ruby-forum.com/t/data-dumper-for-ruby/174893)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 8\
**Last updated:** [September 4, 2009, 2:36am UTC](https://www.ruby-forum.com/t/data-dumper-for-ruby/174893 "2009-09-04T02:36:08Z")

</div>

Hello, I am new to Ruby and am about to start my first application that exceeds the size of gello.rb :wink: One of the first things I am missing is something like perl’s Data::Dumper module. This module is able to…

---

## [Odd random segfaults in 1.9.2dev with gem method](https://www.ruby-forum.com/t/odd-random-segfaults-in-1-9-2dev-with-gem-method/174915)

<div class="topic-metadata">

**Author:** [@Nikolai\_L](https://www.ruby-forum.com/u/Nikolai_L)\
**Replies:** 1\
**Last updated:** [September 4, 2009, 1:49am UTC](https://www.ruby-forum.com/t/odd-random-segfaults-in-1-9-2dev-with-gem-method/174915 "2009-09-04T01:49:18Z")

</div>

Got some segfault errors when trying to run rake test for rails. Minimal code example to reproduce is: ruby -e ‘gem “rake”’ the odd thing is that these segfaults are not 100% reproducible, sometimes it works as expect…

---

## [Code integration MATLAB and Ruby](https://www.ruby-forum.com/t/code-integration-matlab-and-ruby/174218)

<div class="topic-metadata">

**Author:** [@Djoudjou](https://www.ruby-forum.com/u/Djoudjou)\
**Replies:** 9\
**Last updated:** [September 4, 2009, 1:21am UTC](https://www.ruby-forum.com/t/code-integration-matlab-and-ruby/174218 "2009-09-04T01:21:47Z")

</div>

Hi, I’d like to integrate an optimization module coded in Matlab into a Ruby-based architecture. Basically the matlab code is performing a genetic algorithm. In matlab i use this code to find a sub matrix with minimu…

---

## [Activerecord-jdbc-adapter-0.9.1 timeout issues](https://www.ruby-forum.com/t/activerecord-jdbc-adapter-0-9-1-timeout-issues/174902)

<div class="topic-metadata">

**Author:** [@rudeluva](https://www.ruby-forum.com/u/rudeluva)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 11:53pm UTC](https://www.ruby-forum.com/t/activerecord-jdbc-adapter-0-9-1-timeout-issues/174902 "2009-09-03T23:53:56Z")

</div>

Hello, Every morning i have to restart my app because i’m receiving a ORA-02396:exceeded maximum idle time error from my oracle database. can anyone tell me why my connections aren’t being closed? thanks jruby 1.1.…

---

## [Gmail\_contacts 1.7 Released](https://www.ruby-forum.com/t/gmail-contacts-1-7-released/174911)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 10:59pm UTC](https://www.ruby-forum.com/t/gmail-contacts-1-7-released/174911 "2009-09-03T22:59:31Z")

</div>

gmail\_contacts version 1.7 has been released! http://seattlerb.rubyforge.org/gmail\_contacts Simple Gmail contacts extraction using GData. gmail\_contacts development was sponsored by AT&T Interactive. Changes: 1.7 …

---

## [All possible ways of iterating](https://www.ruby-forum.com/t/all-possible-ways-of-iterating/174777)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 5\
**Last updated:** [September 3, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/all-possible-ways-of-iterating/174777 "2009-09-03T22:51:19Z")

</div>

Hey, I am just curious as to what are all the possible methods of iterating through a code block in ruby. Thanks.

---

## [Generating multiple files with one ERB template](https://www.ruby-forum.com/t/generating-multiple-files-with-one-erb-template/174904)

<div class="topic-metadata">

**Author:** [@jacobly](https://www.ruby-forum.com/u/jacobly)\
**Replies:** 2\
**Last updated:** [September 3, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/generating-multiple-files-with-one-erb-template/174904 "2009-09-03T22:42:14Z")

</div>

I’m trying to generate html files based on an ERB template with data pulled from yaml files. My code looks like this: listing\_data = Dir\[’…/data/\*’\] listings = \[\] listing\_data.each do |file| listing = File.open(fil…

---

## [Try Ruby! is back](https://www.ruby-forum.com/t/try-ruby-is-back/174759)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 9\
**Last updated:** [September 3, 2009, 10:38pm UTC](https://www.ruby-forum.com/t/try-ruby-is-back/174759 "2009-09-03T22:38:27Z")

</div>

Thanks to Andrew McElroy, Try Ruby! is running again. Source is available as well: GitHub - Sophrinix/TryRuby: Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Origina…

---

## [Class#descendants?](https://www.ruby-forum.com/t/class-descendants/173660)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 17\
**Last updated:** [September 3, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/class-descendants/173660 "2009-09-03T22:20:53Z")

</div>

Ruby can do Class#ancestors but not Class#descendants. I found this: Class#descendants – qerub.se But it only works after you define a new inheritance. Is there a way to find descendants of a class that is already in …

---

## [Problems with XMPP4R with Google Apps for your Domain account](https://www.ruby-forum.com/t/problems-with-xmpp4r-with-google-apps-for-your-domain-account/196992)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/problems-with-xmpp4r-with-google-apps-for-your-domain-account/196992 "2009-09-03T21:51:36Z")

</div>

I am having problems connecting (using the xmpp4r ruby api) to an account on a ‘Google Apps for your Domain’ service. I am able to connect to a standard gmail.com account (using Jabber::Simple) fine, but when I try co…

---

## [Need ruby code to handle popup messages](https://www.ruby-forum.com/t/need-ruby-code-to-handle-popup-messages/174905)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 2\
**Last updated:** [September 3, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/need-ruby-code-to-handle-popup-messages/174905 "2009-09-03T21:37:40Z")

</div>

Hello guys I am running an web application driven by watir in the webpage when i click the logout button the page should exit but the problem is a pop window comes stating “are you sure “yes or no”” I need some he…

---

## [Ruby JavaScript Classes](https://www.ruby-forum.com/t/ruby-javascript-classes/174803)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 3\
**Last updated:** [September 3, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/ruby-javascript-classes/174803 "2009-09-03T20:48:20Z")

</div>

Rails has JavascriptHelper but can you recommend other packages that make it easy for the Ruby programmer to create JavaScript on web pages?

---

## [How to tell Ruby the relative path of file](https://www.ruby-forum.com/t/how-to-tell-ruby-the-relative-path-of-file/125399)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/how-to-tell-ruby-the-relative-path-of-file/125399 "2009-09-03T19:10:21Z")

</div>

Hi all, I use window vista version. I want to open a file using relative path.I wonder it is possible and how. Thank you very much, Li

---

## [Doubling numbers with Object#object\_id](https://www.ruby-forum.com/t/doubling-numbers-with-object-object-id/174327)

<div class="topic-metadata">

**Author:** [@EbFFA](https://www.ruby-forum.com/u/EbFFA)\
**Replies:** 6\
**Last updated:** [September 3, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/doubling-numbers-with-object-object-id/174327 "2009-09-03T18:38:57Z")

</div>

I was playing with Ruby and wrote an interesting method: def double n n.object\_id - 1 end irb\> double 5 =\> 10 irb\> double 1 =\> 2 irb\> double 0 =\> 0 irb\> double -101 =\> -202 irb\> double 100000001 =\> 20000000…

---

## [AE v1.0.0 released](https://www.ruby-forum.com/t/ae-v1-0-0-released/174900)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/ae-v1-0-0-released/174900 "2009-09-03T17:38:37Z")

</div>

= A.E. – Assertive Expressive http://proutils.rubyforge.org/ae/ == DESCRIPTION Assertions Expressive (A.E.) is an assertions framework intended for reuse by any TDD, BDD or similar system. == FEATURES/ISSUES Clea…

---

## [Can't seem to be able to require 'net/ssh/multi'](https://www.ruby-forum.com/t/cant-seem-to-be-able-to-require-net-ssh-multi/174886)

<div class="topic-metadata">

**Author:** [@chutsu](https://www.ruby-forum.com/u/chutsu)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/cant-seem-to-be-able-to-require-net-ssh-multi/174886 "2009-09-03T14:50:33Z")

</div>

So I’ve installed the net::ssh::multi using gems: gem install net-ssh-multi but then when I require it as such under irb: require ‘net/ssh/multi’ it gives me an error: LoadError: no such file to load – net/ssh/multi …

---

## [Comparison Ruby, Python, Php, Groovy ecc](https://www.ruby-forum.com/t/comparison-ruby-python-php-groovy-ecc/174282)

<div class="topic-metadata">

**Author:** [@triplem](https://www.ruby-forum.com/u/triplem)\
**Replies:** 24\
**Last updated:** [September 3, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/comparison-ruby-python-php-groovy-ecc/174282 "2009-09-03T14:18:57Z")

</div>

Comparison script languages for the fractal geometry, these are the languages i tested: Java Lua 5.1.4 Php 5.3.0 Python 2.6.2 Python 3.1.1 Jython 2.5.0 Groovy 1.6.3 Jruby 1.3.1 Ruby 1.9.1 p129 Ruby 1.8.6 p368 …

---

## [Error When Trying To Install a Gem](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821)

<div class="topic-metadata">

**Author:** [@nathanc](https://www.ruby-forum.com/u/nathanc)\
**Replies:** 4\
**Last updated:** [September 3, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821 "2009-09-03T13:40:53Z")

</div>

Hello, I’m trying to install the zlib and the simpleton gems in my Linux Ubuntu, but recently i’ve changed my Ubuntu version, then i installed rubygems version 0.9.4-4, but when i try to install this gems i’m getting…

---

## [Counter problem for specific file types](https://www.ruby-forum.com/t/counter-problem-for-specific-file-types/174877)

<div class="topic-metadata">

**Author:** [@nescripter](https://www.ruby-forum.com/u/nescripter)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/counter-problem-for-specific-file-types/174877 "2009-09-03T12:45:16Z")

</div>

Hi all, This is a real teaser for me and would appreciate some help with the logic. I want to introduce some numbering to a data set. Basically I have two sets of items the,a control item and a process item. The cont…

---

## [ANN: Sequel 3.4.0 Released](https://www.ruby-forum.com/t/ann-sequel-3-4-0-released/174822)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 7\
**Last updated:** [September 3, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-4-0-released/174822 "2009-09-03T12:24:11Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [Ruby soap4r header problem](https://www.ruby-forum.com/t/ruby-soap4r-header-problem/174867)

<div class="topic-metadata">

**Author:** [@bogea](https://www.ruby-forum.com/u/bogea)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 9:08am UTC](https://www.ruby-forum.com/t/ruby-soap4r-header-problem/174867 "2009-09-03T09:08:05Z")

</div>

Hi, I am trying to build a header using soap4r that is supposed to look like this \<SOAP-ENV:Header\> \<ns1:UserAuthentication SOAP-ENV:mustUnderstand=“1” SOAP-ENV:actor=“http://…api.address.com”\> ns1:iId\</ns1:iId\> n…

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

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