# Ruby

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

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

---

## [\[ANN\] snailgun-1.0.2](https://www.ruby-forum.com/t/ann-snailgun-1-0-2/168487)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 17\
**Last updated:** [May 22, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/ann-snailgun-1-0-2/168487 "2009-05-22T17:44:03Z")

</div>

New experimental project: Snailgun accelerates the startup of Ruby applications which require large numbers of libraries. It’s especially beneficial for TDD with Rails apps, since the overhead of loading all the Rails…

---

## [Debugging a forked process](https://www.ruby-forum.com/t/debugging-a-forked-process/168583)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/debugging-a-forked-process/168583 "2009-05-22T17:42:27Z")

</div>

Given a rake task like this: begin require ‘gem/rake/task’ Gem::Rake::Task.new(:doit) do |t| t.fork = true end How would one go about tracing where the value of $LOAD\_PATH is set/changed in the forked interpreter? …

---

## [How to run a terminal command from a Ruby app?](https://www.ruby-forum.com/t/how-to-run-a-terminal-command-from-a-ruby-app/168483)

<div class="topic-metadata">

**Author:** [@eltercero](https://www.ruby-forum.com/u/eltercero)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/how-to-run-a-terminal-command-from-a-ruby-app/168483 "2009-05-22T17:36:24Z")

</div>

Hi there. I’m using Ruby and the great Processing implementation made for Ruby (Home · jashkenas/ruby-processing Wiki · GitHub). The “problem” is that if you need to run anything of Ruby-Processing, you need to write: …

---

## [HTMLDiff for jruby and ruby](https://www.ruby-forum.com/t/htmldiff-for-jruby-and-ruby/168556)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 5\
**Last updated:** [May 22, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/htmldiff-for-jruby-and-ruby/168556 "2009-05-22T17:32:17Z")

</div>

hello there from past few days iam trying to find out a gem that can compare the difference between two html file. i have tried to install myobie-htmldiff gem but the install didnt work out properly an it gave me err…

---

## [Irb -r gemname produces error](https://www.ruby-forum.com/t/irb-r-gemname-produces-error/168566)

<div class="topic-metadata">

**Author:** [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/irb-r-gemname-produces-error/168566 "2009-05-22T17:00:24Z")

</div>

Noobie question: every time I run for example: irb -r hpricot I get the error: …‘require’: no such file to load – hpricot (LoadError)… and it happens regardless of which gem I wish to require. I do a gem list and i…

---

## [Will\_paginate problem](https://www.ruby-forum.com/t/will-paginate-problem/168576)

<div class="topic-metadata">

**Author:** [@edounl](https://www.ruby-forum.com/u/edounl)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/will-paginate-problem/168576 "2009-05-22T16:21:49Z")

</div>

Hi, I have a problem using paginate: i made the paginate to work, but it only shows results in the first page, whenever i click on the second or others it doesnt show results, and i have more then 2 results for that …

---

## [HTML diff for jruby](https://www.ruby-forum.com/t/html-diff-for-jruby/168555)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 10:58am UTC](https://www.ruby-forum.com/t/html-diff-for-jruby/168555 "2009-05-22T10:58:51Z")

</div>

Hello does any one how to compare two HTML an get there differences. iam trying to install myobie-htmldiff gem for in jruby application for windows but its not happening i wish any one out there can help me out in th…

---

## [Can I use Hpricot to parse data into different array elem?](https://www.ruby-forum.com/t/can-i-use-hpricot-to-parse-data-into-different-array-elem/168527)

<div class="topic-metadata">

**Author:** [@clarinet](https://www.ruby-forum.com/u/clarinet)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 7:11am UTC](https://www.ruby-forum.com/t/can-i-use-hpricot-to-parse-data-into-different-array-elem/168527 "2009-05-22T07:11:23Z")

</div>

Hi, I have a question about using Hpricot. Say I have a file search.html that contains the following: \<a href=“http://www.sheetmusicplus.com/title/Holst-G-Wind-Quintet-Set/5015093”\>Holst G /Wind Qu…

---

## [You how know](https://www.ruby-forum.com/t/you-how-know/168470)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 6:48am UTC](https://www.ruby-forum.com/t/you-how-know/168470 "2009-05-22T06:48:06Z")

</div>

Hi yeah how comp.lang.ruby ?

---

## [Vim and '%': no brackets, how to navigate instead?](https://www.ruby-forum.com/t/vim-and-no-brackets-how-to-navigate-instead/168544)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 2\
**Last updated:** [May 22, 2009, 6:37am UTC](https://www.ruby-forum.com/t/vim-and-no-brackets-how-to-navigate-instead/168544 "2009-05-22T06:37:00Z")

</div>

Hi, coming from languages which extensively use brackets I’m very accustomed in using % to jump between start/end. How this is getting a bit tricky, if not to say “no possible” because of the lack of all the brackets …

---

## [How to comparing java date with ruby date](https://www.ruby-forum.com/t/how-to-comparing-java-date-with-ruby-date/168543)

<div class="topic-metadata">

**Author:** [@glenanderson](https://www.ruby-forum.com/u/glenanderson)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 6:24am UTC](https://www.ruby-forum.com/t/how-to-comparing-java-date-with-ruby-date/168543 "2009-05-22T06:24:06Z")

</div>

How can I compare a Ruby Date with Java Date. E.g. include Java require ‘date’ rbdate = Date.parse(“2008-08-01”) formatter = java.text.SimpleDateFormat(“yyyy/MM/dd”) jdate = formatter.parse(“2009/02/01”) puts “dat…

---

## [Odd output](https://www.ruby-forum.com/t/odd-output/168541)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 5:59am UTC](https://www.ruby-forum.com/t/odd-output/168541 "2009-05-22T05:59:35Z")

</div>

with this file: C:\>cat test.rb require ‘benchmark’ puts Benchmark.measure { 1000000.times {3}} and this command line: jruby -server --fast -v test.rb I get this output: jruby 1.3.0RC1 (ruby 1.8.6p287) (2009-05-01 …

---

## [Running error in windows](https://www.ruby-forum.com/t/running-error-in-windows/168540)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 5:50am UTC](https://www.ruby-forum.com/t/running-error-in-windows/168540 "2009-05-22T05:50:07Z")

</div>

When I download and run jruby, I get this. The system cannot find the path specified. Turned out that my JAVA\_HOME was set to (by default, by sun) C:\>echo %JAVA\_HOME% C:\\WINDOWS\\system32…\\ which jruby didn’t like mu…

---

## [Mailing list delays fixed?](https://www.ruby-forum.com/t/mailing-list-delays-fixed/168532)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 2:52am UTC](https://www.ruby-forum.com/t/mailing-list-delays-fixed/168532 "2009-05-22T02:52:56Z")

</div>

Seems that the crazy mailing list delays have been fixed, at least from my point-of-view; thanks to Tom C. from RubyForge! Please let me know if you are still experiencing delays. ~js

---

## [Webrick problem, PREMATURE END OF SCRIPT HEADERS](https://www.ruby-forum.com/t/webrick-problem-premature-end-of-script-headers/102723)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 2:08am UTC](https://www.ruby-forum.com/t/webrick-problem-premature-end-of-script-headers/102723 "2009-05-22T02:08:12Z")

</div>

I’ve downloaded and installed Ruby (v1.8.5) w/the latest Windows installer and am trying to run some cgi’s per these examples: http://microjet.ath.cx/webrickguide/html/CGIHandler.html I keep getting HTTP 500 - Interna…

---

## [Windows cgihandler Error: Premature end of script headers](https://www.ruby-forum.com/t/windows-cgihandler-error-premature-end-of-script-headers/88946)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 1:58am UTC](https://www.ruby-forum.com/t/windows-cgihandler-error-premature-end-of-script-headers/88946 "2009-05-22T01:58:41Z")

</div>

I’ve downloaded and installed Ruby (v1.8.5) w/the latest Windows installer and am trying to run some cgi’s per these examples: http://microjet.ath.cx/webrickguide/html/CGIHandler.html I keep getting HTTP 500 - Interna…

---

## [Code Review: NoAdaptive](https://www.ruby-forum.com/t/code-review-noadaptive/168530)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 1:20am UTC](https://www.ruby-forum.com/t/code-review-noadaptive/168530 "2009-05-22T01:20:00Z")

</div>

tfpt review “/shelveset:NoAdaptive;REDMOND\\tomat” Moves NoAdaptiveCompilation flag up to LangaugeOptions and implements it for Ruby. Tomas

---

## [Code Review: Protected3](https://www.ruby-forum.com/t/code-review-protected3/168529)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 12:56am UTC](https://www.ruby-forum.com/t/code-review-protected3/168529 "2009-05-22T00:56:02Z")

</div>

tfpt review “/shelveset:Protected3;REDMOND\\tomat” Small changes in DLR. Ruby: Fixes handling of CLR protected and private methods and properties. Enables generic methods in ClsTypeEmitter. Removes RubyCallFlag.TryCa…

---

## [Creating a zip file using rubyzip](https://www.ruby-forum.com/t/creating-a-zip-file-using-rubyzip/168523)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 2\
**Last updated:** [May 21, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/creating-a-zip-file-using-rubyzip/168523 "2009-05-21T23:31:09Z")

</div>

I’m trying to create a zip file, but I’m getting an error saying the file doesn’t exist, but it exists, as shown in the code. Any clues ? I think the permissions are OK, as everyboday can read it … maybe there’s anot…

---

## [Cdrom control and detection](https://www.ruby-forum.com/t/cdrom-control-and-detection/168522)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 5\
**Last updated:** [May 21, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/cdrom-control-and-detection/168522 "2009-05-21T23:17:46Z")

</div>

OK, I know how to eject/open the CD drive on a linux box from within Ruby: system “eject” How do I detect that the user has inserted the next cd so that my program can continue cataloging cd contents? I know it’s mo…

---

## [Stack level too deep error with Glassfish](https://www.ruby-forum.com/t/stack-level-too-deep-error-with-glassfish/168034)

<div class="topic-metadata">

**Author:** [@Joseph\_A](https://www.ruby-forum.com/u/Joseph_A)\
**Replies:** 8\
**Last updated:** [May 21, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep-error-with-glassfish/168034 "2009-05-21T21:32:08Z")

</div>

Anyone seen this error before? I previously had my application working under glassfish, but I don’t know what’s going wrong now. The application works just fine under JRuby and Mongrel. JRuby trunk Glassfish gem v…

---

## [W00t! Party for Gregory!](https://www.ruby-forum.com/t/w00t-party-for-gregory/168509)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 11\
**Last updated:** [May 21, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/w00t-party-for-gregory/168509 "2009-05-21T21:05:05Z")

</div>

On May 20, 2009, Gregory B. wrote: On Wed, May 20, 2009, Juan Z. removed\_email\_address@domain.invalid wrote: So you have better designs compared to those who seek further conciseness in a language. If only thos…

---

## [Correctly Style of SQL Formatting in Ruby Cude](https://www.ruby-forum.com/t/correctly-style-of-sql-formatting-in-ruby-cude/168438)

<div class="topic-metadata">

**Author:** [@rilindo\_foster](https://www.ruby-forum.com/u/rilindo_foster)\
**Replies:** 2\
**Last updated:** [May 21, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/correctly-style-of-sql-formatting-in-ruby-cude/168438 "2009-05-21T20:15:38Z")

</div>

Is there a correct style of putting in SQL statements in Ruby? My SQL statements tend to go around 200-400 columns, which looks very ugly. Rilindo F. AOL Instant Messenger: rilindo Google Talk: removed\_email\_address@…

---

## [Nokogiri not getting html body sometimes](https://www.ruby-forum.com/t/nokogiri-not-getting-html-body-sometimes/168432)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 2\
**Last updated:** [May 21, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/nokogiri-not-getting-html-body-sometimes/168432 "2009-05-21T18:32:22Z")

</div>

I’m using Mechanize to get imdb page and then Nokogiri Node#search method to get some info from the page, but I’ve stumbled onto one special case where #search doesn’t work properly, e.g. all other pages I’ve tried so…

---

## [Case sensitive strings](https://www.ruby-forum.com/t/case-sensitive-strings/168493)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 3\
**Last updated:** [May 21, 2009, 3:45pm UTC](https://www.ruby-forum.com/t/case-sensitive-strings/168493 "2009-05-21T15:45:55Z")

</div>

Hi all, This is one of those annoying ones, but simple to solve I would imagine. I have a word list, where each entry is on a single line and in lowercase. I process this text file reading each word words.each |word| …

---

## [Mysql vs. fork](https://www.ruby-forum.com/t/mysql-vs-fork/168408)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 6\
**Last updated:** [May 21, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/mysql-vs-fork/168408 "2009-05-21T15:40:38Z")

</div>

It’s commonly known that database connections do not play well with Process.fork; I thought that using at\_exit{exit!} was the correct way to solve this problem, but it appears imperfect. Take this pseudo-code: 1 db1 …

---

## [Default access specifier in Ruby](https://www.ruby-forum.com/t/default-access-specifier-in-ruby/168498)

<div class="topic-metadata">

**Author:** [@kumar\_a](https://www.ruby-forum.com/u/kumar_a)\
**Replies:** 1\
**Last updated:** [May 21, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/default-access-specifier-in-ruby/168498 "2009-05-21T15:31:53Z")

</div>

Hi, I am involving in development of Ruby on Rails applications. Please give me information regarding default access specifier in Ruby. Thanks in Advance, kumar

---

## [Newbie Question About Terminal](https://www.ruby-forum.com/t/newbie-question-about-terminal/168490)

<div class="topic-metadata">

**Author:** [@Boby\_Selamet\_Harton](https://www.ruby-forum.com/u/Boby_Selamet_Harton)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/newbie-question-about-terminal/168490 "2009-05-21T12:40:16Z")

</div>

Hi! I’m currently reading about regular expressions in Ruby U. Guidehttp://www.rubyist.net/~slagell/ruby/. I copy and then paste the program, save it to regex.rb. I ran it but there are no different colors like that …

---

## [One-Click Ruby Installer needs a new home, can you help him?](https://www.ruby-forum.com/t/one-click-ruby-installer-needs-a-new-home-can-you-help-him/168282)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [May 21, 2009, 11:34am UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-needs-a-new-home-can-you-help-him/168282 "2009-05-21T11:34:44Z")

</div>

Original posted on my blog: http://blog.mmediasys.com/2009/05/19/rubyinstaller-one-clicks-need-a-new-home-can-you-help-him/ === I must say that my skills to ask for something are really lacking, and my design skills …

---

## [Html diff gem for jruby](https://www.ruby-forum.com/t/html-diff-gem-for-jruby/168484)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 11:28am UTC](https://www.ruby-forum.com/t/html-diff-gem-for-jruby/168484 "2009-05-21T11:28:30Z")

</div>

hello i been wirking on RoR from past few month I remember that i used HTML Diff gem for testing the difference between two string I wnat to Know is ther a similar gem available for jruby also Thanks any

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

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