# Ruby

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

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

---

## [Help with Ruby return types and documentation](https://www.ruby-forum.com/t/help-with-ruby-return-types-and-documentation/190549)

<div class="topic-metadata">

**Author:** [@zapotek](https://www.ruby-forum.com/u/zapotek)\
**Replies:** 6\
**Last updated:** [June 22, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/help-with-ruby-return-types-and-documentation/190549 "2010-06-22T19:53:17Z")

</div>

Hi guys, I’m new to Ruby and I really like it…or trying to like it. It’s so versatile and powerful and I’d like to take advantage of that but there are things that are just pissing me off. Probably due to my inexperi…

---

## [XMPP client with Ruby](https://www.ruby-forum.com/t/xmpp-client-with-ruby/127133)

<div class="topic-metadata">

**Author:** [@ochomo](https://www.ruby-forum.com/u/ochomo)\
**Replies:** 12\
**Last updated:** [June 22, 2010, 7:47pm UTC](https://www.ruby-forum.com/t/xmpp-client-with-ruby/127133 "2010-06-22T19:47:39Z")

</div>

Hi all, Does anyone out there know how to implement an xmpp client to a server like ejabberd using ruby? Kindly, give me any links to resources. – Ochomo

---

## [Limiting download size with net::http](https://www.ruby-forum.com/t/limiting-download-size-with-net-http/190552)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/limiting-download-size-with-net-http/190552 "2010-06-22T18:07:54Z")

</div>

Hi list, I got bored so I’m writing a little web spider in ruby. I’ve got several features planned like content type limits etc, but I’m stuck with the size limit. If I check against content\_length from the headers o…

---

## [Extract value](https://www.ruby-forum.com/t/extract-value/190551)

<div class="topic-metadata">

**Author:** [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Replies:** 3\
**Last updated:** [June 22, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/extract-value/190551 "2010-06-22T17:47:59Z")

</div>

Hello I would like to parse or regexp the following string : in order to keep only this : pub-9423056098431875 (and store it in a base) I tried with regexp : ((google\_ad\_client = “pub-)(.\*?)(”;)) but it’s not worki…

---

## [Ruby rexml stream mode](https://www.ruby-forum.com/t/ruby-rexml-stream-mode/190534)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 4\
**Last updated:** [June 22, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/ruby-rexml-stream-mode/190534 "2010-06-22T17:47:44Z")

</div>

hi, would any one please help me with parse the xml below with STREAM MODE of ruby rexml i would want to get out the following for each event: event id title url description \<?xml version="1.0" encoding="UTF-8"?\> …

---

## [Odd behaviour with invoking jruby via backtick on MacOS](https://www.ruby-forum.com/t/odd-behaviour-with-invoking-jruby-via-backtick-on-macos/190547)

<div class="topic-metadata">

**Author:** [@Duncan\_McGregor](https://www.ruby-forum.com/u/Duncan_McGregor)\
**Replies:** 9\
**Last updated:** [June 22, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/odd-behaviour-with-invoking-jruby-via-backtick-on-macos/190547 "2010-06-22T17:20:27Z")

</div>

I’m seeing rather odd behaviour with the backtick. $ jruby -J-Xmx512m -e 'puts jruby --version’ jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot™ 64-Bit Server VM 1.6.0\_20) \[x86\_64-java\] but …

---

## [\[Bug #3463\] 1.9.2-preview3 $B$G(B \[BUG\] gc\_sweep(): unknown data type 0x0](https://www.ruby-forum.com/t/bug-3463-1-9-2-preview3-b-g-b-bug-gc-sweep-unknown-data-type-0x0/190535)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 11:35am UTC](https://www.ruby-forum.com/t/bug-3463-1-9-2-preview3-b-g-b-bug-gc-sweep-unknown-data-type-0x0/190535 "2010-06-22T11:35:38Z")

</div>

Bug #3463: 1.9.2-preview3 e$B$Ge(B \[BUG\] gc\_sweep(): unknown data type 0x0 http://redmine.ruby-lang.org/issues/show/3463 e$B5/I\<\<Te(B: Tomoyuki C. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev …

---

## [App with lots of business logic](https://www.ruby-forum.com/t/app-with-lots-of-business-logic/190386)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 4\
**Last updated:** [June 22, 2010, 10:52am UTC](https://www.ruby-forum.com/t/app-with-lots-of-business-logic/190386 "2010-06-22T10:52:54Z")

</div>

Hi, starting basically my biggest project to date (a Rails app). I wasn’t initially intimidated, but the more we talk about the process of how we get from A to B, the more I realize that it involves tons of condition…

---

## [Mutex errors in rails application](https://www.ruby-forum.com/t/mutex-errors-in-rails-application/190409)

<div class="topic-metadata">

**Author:** [@pardeeb](https://www.ruby-forum.com/u/pardeeb)\
**Replies:** 2\
**Last updated:** [June 22, 2010, 8:00am UTC](https://www.ruby-forum.com/t/mutex-errors-in-rails-application/190409 "2010-06-22T08:00:37Z")

</div>

We just converted our MRI rails 2.3.2 app to JRuby 1.5.1 running under Glassfish gem v3 and are occasionally getting the following 2 mutex errors. Any advice on investigating the problem would be appreciated. The mut…

---

## [Re: OpenSSL](https://www.ruby-forum.com/t/re-openssl/190523)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 5:10am UTC](https://www.ruby-forum.com/t/re-openssl/190523 "2010-06-22T05:10:28Z")

</div>

I’ll see if I can include our vssettings file in tomorrows (and future) pushes From: Will G. removed\_email\_address@domain.invalid Sent: Monday, June 21, 2010 7:43 PM To: removed\_email\_address@domain.invalid removed\_…

---

## [OpenSSL](https://www.ruby-forum.com/t/openssl/190522)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 2\
**Last updated:** [June 22, 2010, 4:43am UTC](https://www.ruby-forum.com/t/openssl/190522 "2010-06-22T04:43:33Z")

</div>

Hello, everyone! After flailing about a bit this weekend with my utter lack of understanding of cryptography in general, I’ve started work on fleshing out OpenSSL support. I’ll be working on it here: http://github.c…

---

## [\[Bug:trunk\]trunk $B$G(B make test $B$,(B 1F](https://www.ruby-forum.com/t/bug-trunk-trunk-b-g-b-make-test-b-b-1f/190478)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 1\
**Last updated:** [June 22, 2010, 4:20am UTC](https://www.ruby-forum.com/t/bug-trunk-trunk-b-g-b-make-test-b-b-1f/190478 "2010-06-22T04:20:43Z")

</div>

e$B6a1J$H?=$7$^$9!#e(B revision:28366 e$B$Ne(B trunk e$B$Ge(B make test e$B$r\<B9T$9$k$He(B 1e$B$De(B failure e$B$,H/@8$7$^$9!#e(B #444 test\_massign.rb:16:in \`\<top (required)\>’: r = :ok :ng.tap {|®|} r #=\> “ng” (ex…

---

## [Information about satellite tv product](https://www.ruby-forum.com/t/information-about-satellite-tv-product/190516)

<div class="topic-metadata">

**Author:** [@sherry](https://www.ruby-forum.com/u/sherry)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 1:08am UTC](https://www.ruby-forum.com/t/information-about-satellite-tv-product/190516 "2010-06-22T01:08:02Z")

</div>

Hi guys, does any of you have any experience about this satellite TV http://satellitetv.product-review-online.com They offer us a 40% discount (As I tried to close the site, a pop up appeared and asked if I really wan…

---

## [Library path not working?](https://www.ruby-forum.com/t/library-path-not-working/190515)

<div class="topic-metadata">

**Author:** [@worzeel](https://www.ruby-forum.com/u/worzeel)\
**Replies:** 1\
**Last updated:** [June 22, 2010, 1:03am UTC](https://www.ruby-forum.com/t/library-path-not-working/190515 "2010-06-22T01:03:23Z")

</div>

Hi, I am new to using ruby, so I am probably doing something wrong, but I cant figure out what it is… I am having an issue with just trying to locate libraries for Ruby to include installed gems… Some examples: htt…

---

## [java.net.SocketException: Too many open files](https://www.ruby-forum.com/t/java-net-socketexception-too-many-open-files/185480)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 22\
**Last updated:** [June 21, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/java-net-socketexception-too-many-open-files/185480 "2010-06-21T23:54:55Z")

</div>

We have 2 web servers running Rails 2.3.5 with JRuby 1.4.0 under Tomcat 5.5. They have been up for several days without issue. This morning one of the web server starter spewing these errors and tomcat needed to be r…

---

## [Bundling Bundler](https://www.ruby-forum.com/t/bundling-bundler/190511)

<div class="topic-metadata">

**Author:** [@codemonkey](https://www.ruby-forum.com/u/codemonkey)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/bundling-bundler/190511 "2010-06-21T23:43:10Z")

</div>

We’re using Bundler 0.9.26, Rails 2.3.8, JRuby 1.5.0, and packaging it all with Warbler 1.1.0. Do I need to package Bundler itself for use at runtime? At the moment I can skip it if I put logic like this in our prein…

---

## [1.8.7 SMTP TLS How to?](https://www.ruby-forum.com/t/1-8-7-smtp-tls-how-to/190379)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [June 21, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/1-8-7-smtp-tls-how-to/190379 "2010-06-21T19:48:58Z")

</div>

I know that Ruby 1.8.7 is supposed to support SMTP TLS but damn if I can find a lick of documentation on it. I had been using the smtp\_tls gem, but wanted to update my code. Can anyone fill me it? Thanks.

---

## [WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config](https://www.ruby-forum.com/t/watin-net-4-0-and-the-loadfromremotesources-element-in-app-config/190496)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 11\
**Last updated:** [June 21, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/watin-net-4-0-and-the-loadfromremotesources-element-in-app-config/190496 "2010-06-21T19:04:31Z")

</div>

I am using .NET 4.0 with IronRuby to invoke some methods on WatiN framework 2.0.10.928. I keep getting the following error when loading the WatiN assemblies: C:\\Projects\\IronRubyDemo\\IronRubyDemoSolution\\BusinessObje…

---

## [Thread Timeout](https://www.ruby-forum.com/t/thread-timeout/190446)

<div class="topic-metadata">

**Author:** [@pollopoop92](https://www.ruby-forum.com/u/pollopoop92)\
**Replies:** 3\
**Last updated:** [June 21, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/thread-timeout/190446 "2010-06-21T18:51:02Z")

</div>

Hi list, i’m working with multiple threads, with a producer-consumer like algorithm. My problem is that i want that the “consumer” thread take all the content every N seconds and after go to “sleep” again, It’s the …

---

## [Bundler](https://www.ruby-forum.com/t/bundler/190359)

<div class="topic-metadata">

**Author:** [@dereke](https://www.ruby-forum.com/u/dereke)\
**Replies:** 6\
**Last updated:** [June 21, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/bundler/190359 "2010-06-21T18:34:38Z")

</div>

I have IronRuby 1.0 with RubyGems 1.3.6 and Bundler 0.9.25. When I run Bundler.setup I get this error: NameError: undefined method gem' for moduleBundler::SharedHelpers’ from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gem…

---

## [Writing files in Windows in correct enc. for batch scripts](https://www.ruby-forum.com/t/writing-files-in-windows-in-correct-enc-for-batch-scripts/190465)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 1\
**Last updated:** [June 21, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/writing-files-in-windows-in-correct-enc-for-batch-scripts/190465 "2010-06-21T18:22:45Z")

</div>

Hi, Me again, ruby 1.9.1 and windows 7 x64. My ruby program reads a ton of directory structures containing wav files, tag metadata and cuesheets. It then goes on to generate (ruby and/or batch) scripts that can be us…

---

## [Ruby Basic](https://www.ruby-forum.com/t/ruby-basic/190485)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 5\
**Last updated:** [June 21, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/ruby-basic/190485 "2010-06-21T16:18:47Z")

</div>

Hi All, def one puts “hi” end Once i call one --\> i can able to get a output. QUESTION: I have a array method\_list=\[“one”\] How can I convert “one” to method ?

---

## [\[ANN\] Money 3.0.3](https://www.ruby-forum.com/t/ann-money-3-0-3/190493)

<div class="topic-metadata">

**Author:** [@semmons99](https://www.ruby-forum.com/u/semmons99)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/ann-money-3-0-3/190493 "2010-06-21T16:03:05Z")

</div>

Money 3.0.3 Released Added #currency\_as\_string and #currency\_as\_string= for easier integration with ActiveRecord/Rails

---

## [Simple way to switch between printing object key/reference and object value?](https://www.ruby-forum.com/t/simple-way-to-switch-between-printing-object-key-reference-and-object-value/190463)

<div class="topic-metadata">

**Author:** [@soregums](https://www.ruby-forum.com/u/soregums)\
**Replies:** 1\
**Last updated:** [June 21, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/simple-way-to-switch-between-printing-object-key-reference-and-object-value/190463 "2010-06-21T14:39:39Z")

</div>

Hi, I have a hash: ruby-1.8.7-p249 \> person = {“name”=\>“nick”,“age”=\>26,“country”=\>“australia”,“job”=\>{“position”=\>“it guy”,“start”=\>“2010-01-01”},“roles”=\>\[“admin”,“user”,“login”\]} =\> {“name”=\>“nick”, “country”=\>“a…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/190416)

<div class="topic-metadata">

**Author:** [@Florent\_THOMAS](https://www.ruby-forum.com/u/Florent_THOMAS)\
**Replies:** 3\
**Last updated:** [June 21, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/no-subject/190416 "2010-06-21T14:31:32Z")

</div>

help Hello, I’m writing form france so please excuse my English. The context : I’m trying to install ruby on my centos. The purpose is to make retrospectiva work and I need sqlite3-ruby. But unfortunately the relea…

---

## [\[Bug #3459\] test\_regexp.rb Segmentation fault on x64-mswin64](https://www.ruby-forum.com/t/bug-3459-test-regexp-rb-segmentation-fault-on-x64-mswin64/190491)

<div class="topic-metadata">

**Author:** [@sakiyama\_shin](https://www.ruby-forum.com/u/sakiyama_shin)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 1:42pm UTC](https://www.ruby-forum.com/t/bug-3459-test-regexp-rb-segmentation-fault-on-x64-mswin64/190491 "2010-06-21T13:42:27Z")

</div>

Bug #3459: test\_regexp.rb Segmentation fault on x64-mswin64 http://redmine.ruby-lang.org/issues/show/3459 e$B5/I\<\<Te(B: sakiyama shin e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version:…

---

## [Module vs Binding Evaluation](https://www.ruby-forum.com/t/module-vs-binding-evaluation/190426)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [June 21, 2010, 12:40pm UTC](https://www.ruby-forum.com/t/module-vs-binding-evaluation/190426 "2010-06-21T12:40:59Z")

</div>

I am confused by the difference between using module\_eval on a module, vs. using eval on a binding extracted from a module. Have a look at this gist: Compare Module to Binding Eval · GitHub When run, it produces: s2…

---

## [Download parameg soft](https://www.ruby-forum.com/t/download-parameg-soft/190483)

<div class="topic-metadata">

**Author:** [@mahdiking1](https://www.ruby-forum.com/u/mahdiking1)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/download-parameg-soft/190483 "2010-06-21T12:30:26Z")

</div>

Download parameg soft download parameg . snes download . download rom . msn messenger download . msn download . download messenger . download roms . Antivirus software . Best Antivirus Software Program . antivirus up…

---

## [String comparison. Why does Ruby consider this true?](https://www.ruby-forum.com/t/string-comparison-why-does-ruby-consider-this-true/190375)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 12\
**Last updated:** [June 21, 2010, 12:27pm UTC](https://www.ruby-forum.com/t/string-comparison-why-does-ruby-consider-this-true/190375 "2010-06-21T12:27:28Z")

</div>

When I try for example to compare the following strings in Ruby, I get “true”. puts ‘Xeo’ \< ‘ball’ When I make ‘Xeo’ start with a lowercase letter, i get ‘false’ puts ‘xeo’ \< ‘ball’ The second statement is clear, bu…

---

## [How to print exit status to a log file?](https://www.ruby-forum.com/t/how-to-print-exit-status-to-a-log-file/190353)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 6\
**Last updated:** [June 21, 2010, 11:22am UTC](https://www.ruby-forum.com/t/how-to-print-exit-status-to-a-log-file/190353 "2010-06-21T11:22:47Z")

</div>

Hello, I would like to, for a given script, to print the exit status - such as normal, interrupted, terminated, etc. to a log file. How can I do that? Martin

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

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