# Ruby

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

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

---

## [Rails powered by GlassFish Application Server](https://www.ruby-forum.com/t/rails-powered-by-glassfish-application-server/197162)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 4:55am UTC](https://www.ruby-forum.com/t/rails-powered-by-glassfish-application-server/197162 "2008-03-23T04:55:31Z")

</div>

A new article is published highlighting the advantages of JRuby deployment on GlassFish. Please read details at: http://blogs.sun.com/arungupta/entry/rails\_powered\_by\_the\_glassfish Thanks, -Arun

---

## [Ruby and 3270 terminal emulation](https://www.ruby-forum.com/t/ruby-and-3270-terminal-emulation/132600)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [March 23, 2008, 12:21am UTC](https://www.ruby-forum.com/t/ruby-and-3270-terminal-emulation/132600 "2008-03-23T00:21:01Z")

</div>

Hi all, Are there any 3270 screen scraping libraries out there for Ruby? And do you have any suggestions on how to write one? Regards, Dan

---

## [Implementing google web search](https://www.ruby-forum.com/t/implementing-google-web-search/132566)

<div class="topic-metadata">

**Author:** [@saurabh\_purnaye](https://www.ruby-forum.com/u/saurabh_purnaye)\
**Replies:** 1\
**Last updated:** [March 22, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/implementing-google-web-search/132566 "2008-03-22T23:35:06Z")

</div>

Hi all, I m implementing a google search in my current project, where the requirement is to implement the google based web search for the site( same as www.workingwithrails.com site). I have searched many topics but …

---

## [Including instance methods and setting an instance variable](https://www.ruby-forum.com/t/including-instance-methods-and-setting-an-instance-variable/132516)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 19\
**Last updated:** [March 22, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/including-instance-methods-and-setting-an-instance-variable/132516 "2008-03-22T23:10:55Z")

</div>

Hi all, I’m trying to include a module and in that module I want to set an instance variable. I have the following: class Queue include LBo::InstanceMethods end module LBo module InstanceMethods attr\_accessor :po…

---

## [Problems building r85 using VS](https://www.ruby-forum.com/t/problems-building-r85-using-vs/132664)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [March 22, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/problems-building-r85-using-vs/132664 "2008-03-22T21:32:59Z")

</div>

When trying to build using VS I run into the following problems. Projects contain targets that attempt to sign using a key found at …\\MSSharedLibKey.snk. This key is not present Project references contain references …

---

## [Ruby object databases](https://www.ruby-forum.com/t/ruby-object-databases/132632)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 4\
**Last updated:** [March 22, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/ruby-object-databases/132632 "2008-03-22T17:42:24Z")

</div>

Google fails me. Anything like Python’s ZODB for Ruby? I found madeleine but a prevayler type system isnt really what I’m looking for. Pointers to projects, urls etc would be great.

---

## [Cloning arrays](https://www.ruby-forum.com/t/cloning-arrays/132652)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 1\
**Last updated:** [March 22, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/cloning-arrays/132652 "2008-03-22T16:54:45Z")

</div>

Thanks for the tutorials guys. Marshal proved the perfect solution. Len

---

## [LP64: date.rb:321:in \`convert': integer 86400000000000 too big to convert to \`int' (RangeError)](https://www.ruby-forum.com/t/lp64-date-rbin-convert-integer-86400000000000-too-big-to-convert-to-int-rangeerror/132637)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/lp64-date-rbin-convert-integer-86400000000000-too-big-to-convert-to-int-rangeerror/132637 "2008-03-22T16:36:20Z")

</div>

LP64 e$B$J%^%7%s$Ge(B test-all e$B$,F0$+$J$/$J$C$F$$$^$9!#e(B % ./ruby -v ruby 1.9.0 (2008-03-21 revision 15824) \[x86\_64-linux\] % make test-all ./miniruby -I./lib ./runruby.rb --extout=.ext – “./test/runner.rb” –b…

---

## [Cloning arrays](https://www.ruby-forum.com/t/cloning-arrays/132649)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 4\
**Last updated:** [March 22, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/cloning-arrays/132649 "2008-03-22T15:16:45Z")

</div>

Another newbie question. I have started recoding some of my homegrown Tcl/Tk applications in Ruby/rubytk and have hit an unexpected snag when attempting to clone arrays. The following code is snipped verbatim from t…

---

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

<div class="topic-metadata">

**Author:** [@subbu](https://www.ruby-forum.com/u/subbu)\
**Replies:** 7\
**Last updated:** [March 22, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/what-does-do/132238 "2008-03-22T14:30:43Z")

</div>

I came across &&= while reading some code. I know what ||= does but not this one. Can someone explain what it does? Thanks much -subbu

---

## [Ruby19 and defined?](https://www.ruby-forum.com/t/ruby19-and-defined/132588)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 5\
**Last updated:** [March 22, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/ruby19-and-defined/132588 "2008-03-22T14:21:48Z")

</div>

This seems to be a change in 1.9 that’s breaking some code (it was reported by a user of the bit-struct library). Here’s the test case: class C; def self.foo; end; end class D\<C p superclass p defined?(superclass.fo…

---

## [Object destruction](https://www.ruby-forum.com/t/object-destruction/132626)

<div class="topic-metadata">

**Author:** [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Replies:** 3\
**Last updated:** [March 22, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/object-destruction/132626 "2008-03-22T14:18:13Z")

</div>

I have a list of objects and after each initialization a few methods are called on them. They are inherently different but perform the same tasks on a different set of data. These tasks require ALOT of memory. After t…

---

## [Objects](https://www.ruby-forum.com/t/objects/132582)

<div class="topic-metadata">

**Author:** [@HadsS](https://www.ruby-forum.com/u/HadsS)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/objects/132582 "2008-03-22T13:26:01Z")

</div>

can i create objects and store them in a file once and use it other times when i need it after reopening the program… please helpp…!!

---

## [If-less if statements](https://www.ruby-forum.com/t/if-less-if-statements/132474)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 8\
**Last updated:** [March 22, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/if-less-if-statements/132474 "2008-03-22T12:15:18Z")

</div>

I asked this on the rails side of this forum but didn’t get a response and while I am using the code in a rails app I think that this is a ruby question. In a helper that I am using, I am seeing if a phone # gets ente…

---

## [Combine array(string) to string?](https://www.ruby-forum.com/t/combine-array-string-to-string/132455)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 10\
**Last updated:** [March 22, 2008, 11:31am UTC](https://www.ruby-forum.com/t/combine-array-string-to-string/132455 "2008-03-22T11:31:54Z")

</div>

str= “ABCDE” arr = Array.new arr = text.split “” and how can I cambine array ‘arr’ into string again??

---

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

<div class="topic-metadata">

**Author:** [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 11:06am UTC](https://www.ruby-forum.com/t/gem-error/132584 "2008-03-22T11:06:33Z")

</div>

Hi Im attempting to install mongrel using gem, i have: gem 1.0.1 ruby 1.8.6 when i run sudo gem install mongrel i get the following message: Building native extensions. This could take a while… ERROR: Error inst…

---

## [Any Tool/Framework to design DSL more easily with Ruby](https://www.ruby-forum.com/t/any-tool-framework-to-design-dsl-more-easily-with-ruby/132639)

<div class="topic-metadata">

**Author:** [@easy](https://www.ruby-forum.com/u/easy)\
**Replies:** 0\
**Last updated:** [March 22, 2008, 10:45am UTC](https://www.ruby-forum.com/t/any-tool-framework-to-design-dsl-more-easily-with-ruby/132639 "2008-03-22T10:45:49Z")

</div>

It is well known to use Ruby to build (internal) DSL. Domain specific Language. But, is there any more “high level” Tools/Libs or Framework to let me design/implement my DSL? I have found this one http://dslkit.ruby…

---

## [Ruby Compiler](https://www.ruby-forum.com/t/ruby-compiler/132597)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 8\
**Last updated:** [March 22, 2008, 8:52am UTC](https://www.ruby-forum.com/t/ruby-compiler/132597 "2008-03-22T08:52:53Z")

</div>

Hi, I longed for a ruby byte code compiler. But I guess YARV is not stable until now. So I made a very experimental Ruby Compiler. Actually it is not a true compiler just ruby object dumper and loader. By modifing g…

---

## [Getting error when creating new instance of Wscript object](https://www.ruby-forum.com/t/getting-error-when-creating-new-instance-of-wscript-object/132575)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 7:37am UTC](https://www.ruby-forum.com/t/getting-error-when-creating-new-instance-of-wscript-object/132575 "2008-03-22T07:37:41Z")

</div>

Hi, I performed the following: require ‘win32ole’ Now, when I create a new instance of Wscript shell object, I get the following error in the output window: wsh = WIN32OLE.new(‘Wscript.Shell’) invokingnotepadwsh.rb…

---

## [Support for classic core Ruby library](https://www.ruby-forum.com/t/support-for-classic-core-ruby-library/197271)

<div class="topic-metadata">

**Author:** [@pmouawad](https://www.ruby-forum.com/u/pmouawad)\
**Replies:** 1\
**Last updated:** [March 22, 2008, 5:39am UTC](https://www.ruby-forum.com/t/support-for-classic-core-ruby-library/197271 "2008-03-22T05:39:55Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Cannot rake compile rev 78](https://www.ruby-forum.com/t/cannot-rake-compile-rev-78/132317)

<div class="topic-metadata">

**Author:** [@pmouawad](https://www.ruby-forum.com/u/pmouawad)\
**Replies:** 6\
**Last updated:** [March 22, 2008, 4:38am UTC](https://www.ruby-forum.com/t/cannot-rake-compile-rev-78/132317 "2008-03-22T04:38:17Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Changing the installation prefix to the lib after configure/make/make install](https://www.ruby-forum.com/t/changing-the-installation-prefix-to-the-lib-after-configure-make-make-install/132617)

<div class="topic-metadata">

**Author:** [@llothar](https://www.ruby-forum.com/u/llothar)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 12:54am UTC](https://www.ruby-forum.com/t/changing-the-installation-prefix-to-the-lib-after-configure-make-make-install/132617 "2008-03-22T00:54:59Z")

</div>

Lets say i compile ruby on Unix with ./configure --prefix=$HOME/my\_ruby; make; make install And later i want to move it to $HOME/your\_ruby What can i do to get the inital paths for the standart library to also refer…

---

## [Getting the user's home directory path](https://www.ruby-forum.com/t/getting-the-users-home-directory-path/132446)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 5\
**Last updated:** [March 22, 2008, 12:24am UTC](https://www.ruby-forum.com/t/getting-the-users-home-directory-path/132446 "2008-03-22T00:24:36Z")

</div>

I’ve got a program that needs to access a file in the ~/etc/ directory. This program currently accesses it like so: file\_path = File.expand\_path("~#{ENV\[‘USER’\]}/etc/#{filename}") . . . but that environment variable j…

---

## [Ruby 1.9.0 - problems with RubyGems](https://www.ruby-forum.com/t/ruby-1-9-0-problems-with-rubygems/132605)

<div class="topic-metadata">

**Author:** [@wujciol](https://www.ruby-forum.com/u/wujciol)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/ruby-1-9-0-problems-with-rubygems/132605 "2008-03-21T23:22:11Z")

</div>

Yesterday I installed Ruby 1.9.0 . Today I can’t install anything using RubyGems. I’m getting error about file that don’t exist for Gems but it exist. Links for screenshots: Error: http://img217.imageshack.us/img217…

---

## [Mechanize confusion](https://www.ruby-forum.com/t/mechanize-confusion/132599)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 3\
**Last updated:** [March 21, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/mechanize-confusion/132599 "2008-03-21T22:12:42Z")

</div>

I will admit I’ve never used Mechanize before and if I am asking painfully obvious feel free to push me out in traffic, however… I have an odd issue. I have grabbed a form off of CDW’s site and am trying to fill ou…

---

## [File.exist? behavior problem/question](https://www.ruby-forum.com/t/file-exist-behavior-problem-question/132572)

<div class="topic-metadata">

**Author:** [@wonko](https://www.ruby-forum.com/u/wonko)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/file-exist-behavior-problem-question/132572 "2008-03-21T20:32:09Z")

</div>

I am getting strange behavior running the following test case: Create a file on filesystem (created D:/auz.dat) Check to see if the created file exists by running File.exist?(“D:/auz.dat”) The code returns True Run Fi…

---

## [Re: Planning to change IronRuby.sln to a VS 2008 project](https://www.ruby-forum.com/t/re-planning-to-change-ironruby-sln-to-a-vs-2008-project/132604)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/re-planning-to-change-ironruby-sln-to-a-vs-2008-project/132604 "2008-03-21T20:10:34Z")

</div>

+1 to 2k8

---

## [Submitting Patches?](https://www.ruby-forum.com/t/submitting-patches/132595)

<div class="topic-metadata">

**Author:** [@Jayme](https://www.ruby-forum.com/u/Jayme)\
**Replies:** 5\
**Last updated:** [March 21, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/submitting-patches/132595 "2008-03-21T19:48:15Z")

</div>

I just created a patch adding File.expand\_path. Is there someone I should send it to, or somewhere I can read about the process for submitting SVN patch files? Thanks, -Jayme

---

## [A question involving variable evaluation](https://www.ruby-forum.com/t/a-question-involving-variable-evaluation/132561)

<div class="topic-metadata">

**Author:** [@mike\_leonard](https://www.ruby-forum.com/u/mike_leonard)\
**Replies:** 4\
**Last updated:** [March 21, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/a-question-involving-variable-evaluation/132561 "2008-03-21T19:29:49Z")

</div>

Hello friends, I’m working on some code that will iterate through an array of regex patterns and values, returning a value when the corresponding regex is matched: the\_string = “foobar” patterns\_and\_values = \[\[/(foo…

---

## [Capturing referer in webrick proxy](https://www.ruby-forum.com/t/capturing-referer-in-webrick-proxy/132346)

<div class="topic-metadata">

**Author:** [@and80](https://www.ruby-forum.com/u/and80)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/capturing-referer-in-webrick-proxy/132346 "2008-03-21T16:15:49Z")

</div>

Hi all, I am doing a small proxy using the WEBrick::HTTPProxyServer class and I would like to capture the referer of each HTTP request. Specifically, I need it in order to keep trace of the html page linking to other…

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

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