# Ruby

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

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

---

## [Problem requiring rspec within jruby-complete jar](https://www.ruby-forum.com/t/problem-requiring-rspec-within-jruby-complete-jar/166907)

<div class="topic-metadata">

**Author:** [@figo2476](https://www.ruby-forum.com/u/figo2476)\
**Replies:** 5\
**Last updated:** [April 30, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/problem-requiring-rspec-within-jruby-complete-jar/166907 "2009-04-30T23:06:11Z")

</div>

Hi, I am trying to use rspec that is included in the jruby-complete jar. I have a test.rb created that has the following two lines: require ‘rubygems’ require ‘spec’ Then when I run “java -jar jruby-complete-1.1.6.…

---

## [New to Ruby, making a program from a disabled friend](https://www.ruby-forum.com/t/new-to-ruby-making-a-program-from-a-disabled-friend/166740)

<div class="topic-metadata">

**Author:** [@hankquinlan](https://www.ruby-forum.com/u/hankquinlan)\
**Replies:** 14\
**Last updated:** [April 30, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/new-to-ruby-making-a-program-from-a-disabled-friend/166740 "2009-04-30T23:00:50Z")

</div>

Hi. I am only learning Ruby to help my friend out, and am completely new to programming. I am trying to make a program that can take in text and then blink it out using the moniter screen (like say, switching from bla…

---

## [OpenSSL::X509::Certificate](https://www.ruby-forum.com/t/openssl-certificate/166819)

<div class="topic-metadata">

**Author:** [@jirapong](https://www.ruby-forum.com/u/jirapong)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/openssl-certificate/166819 "2009-04-30T22:37:24Z")

</div>

Hi, I got following methods/attributes implement in OpenSSL::X509::Certificate new → certb new(data) → cert subject issuer serial to\_s inspect Commits: http://github.com/Jirapong/ironruby/commit/a907d58168b772…

---

## [Strange two dimensional array behaviour](https://www.ruby-forum.com/t/strange-two-dimensional-array-behaviour/166920)

<div class="topic-metadata">

**Author:** [@kanesoban](https://www.ruby-forum.com/u/kanesoban)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 10:24pm UTC](https://www.ruby-forum.com/t/strange-two-dimensional-array-behaviour/166920 "2009-04-30T22:24:30Z")

</div>

This code is supposed to read in a 9x9 table (sudoku table) from a simple text file. It then needs to write it out on the screen. #read from file def puzzle\_beolvas fnev f = File.new(fnev,“r”) puzzle = Array.new(9){…

---

## [Inheriting from an abstract class](https://www.ruby-forum.com/t/inheriting-from-an-abstract-class/166918)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/inheriting-from-an-abstract-class/166918 "2009-04-30T21:48:07Z")

</div>

Hi I’ve been working with Kean Walmsley to get the same samples going he has for IronPython but with IronRuby. In this process he’s inheriting of an abstract class inside the autocad assemblies, but when that new ru…

---

## [Gem problems: install "bulk updating..." gets oom killed: no memory](https://www.ruby-forum.com/t/gem-problems-install-bulk-updating-gets-oom-killed-no-memory/166876)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/gem-problems-install-bulk-updating-gets-oom-killed-no-memory/166876 "2009-04-30T20:54:40Z")

</div>

Hello, ruby 1.8.4, gems 1.0.1 On a 256MB VPS my gem installs blow up. I had this problem when the VPS was at 128MB, then upgraded to 256 and it went away. But now it’s happening again. It doesn’t matter how many proc…

---

## [Gem install - will not work outside of bin folder](https://www.ruby-forum.com/t/gem-install-will-not-work-outside-of-bin-folder/166824)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 7\
**Last updated:** [April 30, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/gem-install-will-not-work-outside-of-bin-folder/166824 "2009-04-30T20:52:19Z")

</div>

Hi I just installed ruby 1.8.6 stable version on windows xp pc. When I try to install gems by gem install gemname…it says ‘command not recognized’. When I download a gem manually and put in the bin folder and then us…

---

## [View Source Code in Whois.net](https://www.ruby-forum.com/t/view-source-code-in-whois-net/166879)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 5\
**Last updated:** [April 30, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/view-source-code-in-whois-net/166879 "2009-04-30T20:33:38Z")

</div>

I am trying to view the source code in whois.net using the following code: require ‘open-uri’ open(“http://whois.net/whois/qoxax.com”) {|f| text = f.read lines = f.readlines text = lines.join text.gsub!(/\\s+/," ") …

---

## [Reading from fifo with no writers blocks the whole process](https://www.ruby-forum.com/t/reading-from-fifo-with-no-writers-blocks-the-whole-process/166871)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 7:41pm UTC](https://www.ruby-forum.com/t/reading-from-fifo-with-no-writers-blocks-the-whole-process/166871 "2009-04-30T19:41:26Z")

</div>

Hi, in my program I’m creating a thread, in which I open a FIFO and read data from it. pipe\_listener\_thread = Thread.new(ARGV\[0\]) do |fifoname| while true # loop to reopen fifo, when it ends because of no writers …

---

## [Starting a thread from Glassfish](https://www.ruby-forum.com/t/starting-a-thread-from-glassfish/166846)

<div class="topic-metadata">

**Author:** [@Joseph\_A](https://www.ruby-forum.com/u/Joseph_A)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/starting-a-thread-from-glassfish/166846 "2009-04-30T19:17:25Z")

</div>

I’m working on a project that is looking in to using the glassfish gem for our Rails application. One thing we need to do with this application is have a process/thread running which is periodically (e.g. once per s…

---

## [JRuby & Eventmachine HTTP Server](https://www.ruby-forum.com/t/jruby-eventmachine-http-server/166782)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 9\
**Last updated:** [April 30, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/jruby-eventmachine-http-server/166782 "2009-04-30T18:52:47Z")

</div>

The eventmachine gem java version works fine, but is there a java version of “eventmachine\_httpserver” ? The only version I can find is the C based one. Thanks Paul F. To unsubscribe from this list, please visit: h…

---

## [Nginx, Sinatra, HAML, GlassFish gem blogs](https://www.ruby-forum.com/t/nginx-sinatra-haml-glassfish-gem-blogs/166884)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 5\
**Last updated:** [April 30, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/nginx-sinatra-haml-glassfish-gem-blogs/166884 "2009-04-30T18:07:42Z")

</div>

I’ve published a few blog entries this week that’ll be useful for this audience: nginx + GlassFish recipe: http://blogs.sun.com/arungupta/entry/totd\_81\_how\_to\_use Sinatra CRUD + HAML + GlassFish Gem: http://blogs.su…

---

## [Ruby Syntax and SOAP Web Service](https://www.ruby-forum.com/t/ruby-syntax-and-soap-web-service/106782)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/ruby-syntax-and-soap-web-service/106782 "2009-04-30T17:51:49Z")

</div>

I need a good tutorial to show how to create a RUBY SOAP request when I have an example SOAP request file. The example in my book is next to useless. Also, how can I see that SOAP xml is being sent and the client re…

---

## [Constant cannot be found in the correct rails file](https://www.ruby-forum.com/t/constant-cannot-be-found-in-the-correct-rails-file/166893)

<div class="topic-metadata">

**Author:** [@skiz](https://www.ruby-forum.com/u/skiz)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/constant-cannot-be-found-in-the-correct-rails-file/166893 "2009-04-30T17:16:42Z")

</div>

Hi, I am trying to write a session store for rails that uses the big table from google. I have written the class and pasted into here. The problem is I keep getting this error when I try to start the dev server: C…

---

## [Complete Java/Jruby lockup](https://www.ruby-forum.com/t/complete-java-jruby-lockup/166820)

<div class="topic-metadata">

**Author:** [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Replies:** 15\
**Last updated:** [April 30, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/complete-java-jruby-lockup/166820 "2009-04-30T16:22:07Z")

</div>

I apologize for being long and vague with this posting as I’m at a loss as to what is happening. I’m not sure if I hitting a java bug, jruby bug or an application bug. The platform is jruby 1.2.0 running with Java 1.…

---

## [Emulating a web browser](https://www.ruby-forum.com/t/emulating-a-web-browser/166863)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/emulating-a-web-browser/166863 "2009-04-30T16:11:32Z")

</div>

I am looking for a library to help me emulate a web browser, at least at the network level. By this I mean I would like to run a program that, from the point of view of a web server, behaves just like, say, Firefox,…

---

## [JRuby Speed vs Raw Java](https://www.ruby-forum.com/t/jruby-speed-vs-raw-java/166841)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 3\
**Last updated:** [April 30, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/jruby-speed-vs-raw-java/166841 "2009-04-30T15:14:33Z")

</div>

Probably a dumb question, but anyway… What overhead cost is involved in using JRuby compared to using raw Java? For example, is there a significant overhead in using a ruby hash compared to java Hashmap? Another exa…

---

## [(mandriva,eclipse) extract digits from fixnums](https://www.ruby-forum.com/t/mandriva-eclipse-extract-digits-from-fixnums/166880)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-extract-digits-from-fixnums/166880 "2009-04-30T14:58:21Z")

</div>

hi, I want to do a basic thing but without succes: if a=1232, let nb\_nb=4 (the number of digits) for i from 1 to nb\_nb, I want the following results: i=1 =\> res=1 (first digit of a) and NOT the number 01 (with a zero…

---

## [Object scope and cleanup](https://www.ruby-forum.com/t/object-scope-and-cleanup/166839)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 1:49pm UTC](https://www.ruby-forum.com/t/object-scope-and-cleanup/166839 "2009-04-30T13:49:55Z")

</div>

I am having trouble understanding Ruby object cleanup wrt scope. In particular, I would think that an object is getting deleted, but it turns out that is not the case. I have an RSpec test below. The BinarySearchTree …

---

## [RubyGems question: install vs. update](https://www.ruby-forum.com/t/rubygems-question-install-vs-update/166826)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 7\
**Last updated:** [April 30, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/rubygems-question-install-vs-update/166826 "2009-04-30T13:30:26Z")

</div>

This must be obvious, but what’s the difference between “gem install” and “gem update”? I would have thought that “gem update” would do a gem install plus a gem cleanup, effectively updating your current version. But…

---

## [Find if an array has any element present in another array](https://www.ruby-forum.com/t/find-if-an-array-has-any-element-present-in-another-array/166877)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 6\
**Last updated:** [April 30, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/find-if-an-array-has-any-element-present-in-another-array/166877 "2009-04-30T13:19:13Z")

</div>

Hi, I have 2 lists a=\[1,2,3,4\] b=\[2,4,6,7,8\] I want to find if there are any elements present in “a” which are also present in “b”. I jus wanna “true” or “false” answer if both of the arrays have any element in co…

---

## [Random Access using IO#pos in code blocks](https://www.ruby-forum.com/t/random-access-using-io-pos-in-code-blocks/166722)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 12\
**Last updated:** [April 30, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/random-access-using-io-pos-in-code-blocks/166722 "2009-04-30T13:16:50Z")

</div>

Hello everyone, I’m 20 days new to Ruby, please forgive if I make any mistakes. I’m on a project where I’m indexing certain words in a text document. So I’m also storing the file position where the word occurs. But th…

---

## [I cannot install gem](https://www.ruby-forum.com/t/i-cannot-install-gem/166875)

<div class="topic-metadata">

**Author:** [@9tailsfox](https://www.ruby-forum.com/u/9tailsfox)\
**Replies:** 3\
**Last updated:** [April 30, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/i-cannot-install-gem/166875 "2009-04-30T12:49:26Z")

</div>

Hello dudes!!! I cannot install any gems. Running gem begins with “Bulk updating gem source indes for: http://gems.rubyforge.org” and ends with Error: while executing gem (Timeout::Error) execution expired Is it fir…

---

## [Defining a default proc for Hash](https://www.ruby-forum.com/t/defining-a-default-proc-for-hash/166860)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 5\
**Last updated:** [April 30, 2009, 10:02am UTC](https://www.ruby-forum.com/t/defining-a-default-proc-for-hash/166860 "2009-04-30T10:02:05Z")

</div>

Hello, Is there a way to redefine or newly define a default proc for Hash way after it has been constructed and populated with elements? There seems to be a #default= but no #default\_proc= Thank you, Jayanth

---

## [\[Feature #1422\] Unused function rb\_ary\_to\_s](https://www.ruby-forum.com/t/feature-1422-unused-function-rb-ary-to-s/166845)

<div class="topic-metadata">

**Author:** [@T\_UJIHISA](https://www.ruby-forum.com/u/T_UJIHISA)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 9:49am UTC](https://www.ruby-forum.com/t/feature-1422-unused-function-rb-ary-to-s/166845 "2009-04-30T09:49:45Z")

</div>

Feature #1422: Unused function rb\_ary\_to\_s http://redmine.ruby-lang.org/issues/show/1422 e$B5/I\<\<Te(B: T UJIHISA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ujihisae$B$H$$$$$^$9!#e(B Array#to…

---

## [Can this code be more succinct](https://www.ruby-forum.com/t/can-this-code-be-more-succinct/166739)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 9\
**Last updated:** [April 30, 2009, 8:33am UTC](https://www.ruby-forum.com/t/can-this-code-be-more-succinct/166739 "2009-04-30T08:33:46Z")

</div>

Hi All, I like to use the following form for handling error situations: ( puts “ERROR: Long msg”; exit) if some\_boolean \_expression I want the multiple form because the error messages are often long and sometimes…

---

## [Preprocessing ruby gems in ruby1.9](https://www.ruby-forum.com/t/preprocessing-ruby-gems-in-ruby1-9/166840)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 8:33am UTC](https://www.ruby-forum.com/t/preprocessing-ruby-gems-in-ruby1-9/166840 "2009-04-30T08:33:06Z")

</div>

i notice that almost all pre 1.9 gems wont compile in ruby1.9 because of the ff error (or something like it), : error: ‘struct RArray’ has no member named ‘len’ : error: ‘struct RArray’ has no member named ‘ptr’ … t…

---

## [Login in AdWord Account Using Ruby Code](https://www.ruby-forum.com/t/login-in-adword-account-using-ruby-code/166856)

<div class="topic-metadata">

**Author:** [@ssunny](https://www.ruby-forum.com/u/ssunny)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 8:20am UTC](https://www.ruby-forum.com/t/login-in-adword-account-using-ruby-code/166856 "2009-04-30T08:20:23Z")

</div>

Can Someone please tell me how to login in AdWords Account via ruby code and scrape the home page. Its really helpfull for me if i get the code… Thanks.

---

## [Ruby Interface of Erlang](https://www.ruby-forum.com/t/ruby-interface-of-erlang/166595)

<div class="topic-metadata">

**Author:** [@KDr2](https://www.ruby-forum.com/u/KDr2)\
**Replies:** 10\
**Last updated:** [April 30, 2009, 8:01am UTC](https://www.ruby-forum.com/t/ruby-interface-of-erlang/166595 "2009-04-30T08:01:30Z")

</div>

Hello, erveyone,I just start a new project called erlix,the ruby interface for erlang,at Google Code Archive - Long-term storage for Google Code Project Hosting. ,you may need it. Erlix can help you communicating with…

---

## [Hi, i'm new](https://www.ruby-forum.com/t/hi-im-new/166699)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 7:40am UTC](https://www.ruby-forum.com/t/hi-im-new/166699 "2009-04-30T07:40:50Z")

</div>

Hi, i just started to get wet with ruby on rails… Is this the right place to ask for rails questions? Thanks

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

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