# Ruby

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

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

---

## [Winclicker problem](https://www.ruby-forum.com/t/winclicker-problem/153199)

<div class="topic-metadata">

**Author:** [@erika](https://www.ruby-forum.com/u/erika)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 11:15am UTC](https://www.ruby-forum.com/t/winclicker-problem/153199 "2008-11-13T11:15:17Z")

</div>

Hi, I used the following code def myclick(button, waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub("/" , “\\” ) shortName = w.getShortFileName(longName) c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{…

---

## [Glassfish IO severe error](https://www.ruby-forum.com/t/glassfish-io-severe-error/153139)

<div class="topic-metadata">

**Author:** [@rgillett](https://www.ruby-forum.com/u/rgillett)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 9:11am UTC](https://www.ruby-forum.com/t/glassfish-io-severe-error/153139 "2008-11-13T09:11:04Z")

</div>

Glassfish issues this error message. What does it mean? The server can provide its default page but cannot pick up any applications and gives 404 to all requests. INFO: Listening on port 3000 12-Nov-2008 15:22:18 …

---

## [Code Review: rake\_compile](https://www.ruby-forum.com/t/code-review-rake-compile/153163)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [November 13, 2008, 6:37am UTC](https://www.ruby-forum.com/t/code-review-rake-compile/153163 "2008-11-13T06:37:11Z")

</div>

tfpt review “/shelveset:rake\_compile;REDMOND\\jdeville” Comment : Fixes rake compile by adding a response file. This has been tested on both internal and external layouts. JD http://blog.jredville.com

---

## [Using embedded ruby in servlet filter](https://www.ruby-forum.com/t/using-embedded-ruby-in-servlet-filter/153097)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 3:17am UTC](https://www.ruby-forum.com/t/using-embedded-ruby-in-servlet-filter/153097 "2008-11-13T03:17:45Z")

</div>

Hi, I’ve successfully deployed a tomcat app using a servlet filter that uses jruby to manipulate the session data. I’m following the code ideas presented here: http://wiki.jruby.org/wiki/Direct\_JRuby\_Embedding#Ruby\_…

---

## [Priority inheritance](https://www.ruby-forum.com/t/priority-inheritance/153187)

<div class="topic-metadata">

**Author:** [@Daniel\_Cunha](https://www.ruby-forum.com/u/Daniel_Cunha)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 2:30am UTC](https://www.ruby-forum.com/t/priority-inheritance/153187 "2008-11-13T02:30:22Z")

</div>

Hi, I would like to now if there is a library that implements priority inheritance in Ruby. I now that some people thing that you are already in trouble if you need to use this approach. But I really need to. A litt…

---

## [Method missing](https://www.ruby-forum.com/t/method-missing/153171)

<div class="topic-metadata">

**Author:** [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/method-missing/153171 "2008-11-12T23:08:31Z")

</div>

Hello guys, I am receiving the following error: /usr/local/jruby-1.1.4/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ active\_support/dependencies.rb:510:in \`method\_missing’: cannot load Java class The jar file is l…

---

## [Tomcat memory usage rising - is this normal?](https://www.ruby-forum.com/t/tomcat-memory-usage-rising-is-this-normal/153157)

<div class="topic-metadata">

**Author:** [@typej](https://www.ruby-forum.com/u/typej)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/tomcat-memory-usage-rising-is-this-normal/153157 "2008-11-12T22:48:37Z")

</div>

Hey guys - Do you know if it is normal for tomcat to grow in memory size and not come back down? Currently I have an application that has not been restarted for over 20 days, and it has gone from 200 mb to 750 mb. I…

---

## [JRuby, Netbeans and OSGi](https://www.ruby-forum.com/t/jruby-netbeans-and-osgi/153088)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 5\
**Last updated:** [November 12, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/jruby-netbeans-and-osgi/153088 "2008-11-12T18:21:14Z")

</div>

Some excitement (?) seems to be developing around OSGi (Open Services Gateway Initiative) Are there any examples of using JRuby code in this environment, if it is possible? A few past entries in this JRuby list men…

---

## [Accessing the system log on Windows](https://www.ruby-forum.com/t/accessing-the-system-log-on-windows/153141)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/accessing-the-system-log-on-windows/153141 "2008-11-12T18:20:39Z")

</div>

This is in a production environment, so ruby 1.8.6. How would I go about parsing the Windows logs which one can read from the Event Viewer (Event, System, etc)? My point of focus is the System log, to see the logons /…

---

## [Unexpected return (LocalJumpError)](https://www.ruby-forum.com/t/unexpected-return-localjumperror/153094)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/unexpected-return-localjumperror/153094 "2008-11-12T18:15:17Z")

</div>

def a blk = Proc.new { return } blk.call end a # =\> It’s OK def a(blk) blk.call end blk = lambda { return } a blk # =\> It’s OK blk = Proc.new { return } a blk …

---

## [Rails: Rack + AOT --\> RackInitializationException: IO error](https://www.ruby-forum.com/t/rails-rack-aot-rackinitializationexception-io-error/152949)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/rails-rack-aot-rackinitializationexception-io-error/152949 "2008-11-12T16:50:15Z")

</div>

Hi, I’m trying to deploy a very simple RoR application into a Glassfish Server. The problem here is that I need to protect my source code somehow, so I’ve compiled all models and controllers with jrubyc, hacked acti…

---

## [Testing for ruby 1.9 in extension code](https://www.ruby-forum.com/t/testing-for-ruby-1-9-in-extension-code/153042)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 3\
**Last updated:** [November 12, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/testing-for-ruby-1-9-in-extension-code/153042 "2008-11-12T16:40:08Z")

</div>

Hi In C extension code, what’s the canonical way to test whether the ruby being compiled against is 1.8 or 1.9? I’ve been using ways like #ifdef RUBY\_RUBY\_H … 1.9 code #endif But this seems accidental. However I d…

---

## [Gem mirrors down?](https://www.ruby-forum.com/t/gem-mirrors-down/152966)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/gem-mirrors-down/152966 "2008-11-12T16:26:01Z")

</div>

There seem to be some gem mirrors down right now. One example is http://rubyforge-gems.ruby-forum.com/gems/ There are at least a few others that are redirects from http://gems.rubyforge.org/ that are down (xaop, mmmu…

---

## [Clone of http://tryruby.hobix.com/](https://www.ruby-forum.com/t/clone-of-http-tryruby-hobix-com/153136)

<div class="topic-metadata">

**Author:** [@Sawood\_Alam](https://www.ruby-forum.com/u/Sawood_Alam)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/clone-of-http-tryruby-hobix-com/153136 "2008-11-12T15:32:25Z")

</div>

Hi, Is there a way to clone http://tryruby.hobix.com/ application in our native language? thanks,

---

## [Where to get latest jruby-complete?](https://www.ruby-forum.com/t/where-to-get-latest-jruby-complete/153126)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/where-to-get-latest-jruby-complete/153126 "2008-11-12T15:01:44Z")

</div>

Hi, I’m seeing that there is no jruby-complete-1.1.5 here: http://dist.codehaus.org/jruby/ Where do I get the jruby-complete jar? Is it possible to bundle myself? If so, how? Matt

---

## [Problem with foxGUIb](https://www.ruby-forum.com/t/problem-with-foxguib/152519)

<div class="topic-metadata">

**Author:** [@massimiliano](https://www.ruby-forum.com/u/massimiliano)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/problem-with-foxguib/152519 "2008-11-12T14:28:33Z")

</div>

Hi all, I wrote this some days ago to the fxruby maillist throug ruby-forum, but I didn’t get response yet. IHi. I’m learning Ruby, and I’m having a little problem. Some days ago, I searched a GUI Builder to constru…

---

## [First Cincinnati.rb Meeting](https://www.ruby-forum.com/t/first-cincinnati-rb-meeting/153120)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/first-cincinnati-rb-meeting/153120 "2008-11-12T13:15:58Z")

</div>

If you live in or near Cincinnati, love Ruby and want to get together to talk and do some hacking, please join us. Date: Every Tuesday (Except the 1st Tuesday of the month, in deference to the excellent Agile Round T…

---

## [What is that method called?](https://www.ruby-forum.com/t/what-is-that-method-called/153031)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 11\
**Last updated:** [November 12, 2008, 12:41pm UTC](https://www.ruby-forum.com/t/what-is-that-method-called/153031 "2008-11-12T12:41:34Z")

</div>

I need the method that has the ability to turn a long string like this: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque pulvinar turpis a nisi. Cras id elit. Aliquam vitae pede nec lacus element…

---

## [:FOO === "FOO" =\> true and case/when behavior](https://www.ruby-forum.com/t/foo-foo-true-and-case-when-behavior/152689)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 12, 2008, 11:34am UTC](https://www.ruby-forum.com/t/foo-foo-true-and-case-when-behavior/152689 "2008-11-12T11:34:52Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. e$B0J2\<$N%9%/%j%W%H$r\<B9T$9$k$He(B: – p :FOO === “FOO” FOO = :FOO case “FOO” when FOO puts 1 else puts 0 end case “FOO” when :FOO puts 1 else puts 0 end e$B0J2\<$N$h$&$J7k2L$K…

---

## [Forwardable in trunk](https://www.ruby-forum.com/t/forwardable-in-trunk/148102)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 10:27am UTC](https://www.ruby-forum.com/t/forwardable-in-trunk/148102 "2008-11-12T10:27:20Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. trunke$B$KF~$C$F$$$ke(B Forwardable e$B$G$9$,e(B, e$B%\*%j%8%J%k$N0U?^$,\<B8=$G$-$F$$$^e(B e$B$;$se(B. e$BJQ$o$C$F$$$k$3$H$KD9$$4V5$$,IU$+$J$+$C$?$N$bLdBj$G$9$,e(B(^^;; trunke$B$NHG$G$Oe(B…

---

## [Loop?](https://www.ruby-forum.com/t/loop/91725)

<div class="topic-metadata">

**Author:** [@Ali\_Y](https://www.ruby-forum.com/u/Ali_Y)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 9:09am UTC](https://www.ruby-forum.com/t/loop/91725 "2008-11-12T09:09:41Z")

</div>

hi how can I make a loop, to make the program run foreve r’?

---

## [Erb still treats $KCODE](https://www.ruby-forum.com/t/erb-still-treats-kcode/139391)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 15\
**Last updated:** [November 12, 2008, 9:00am UTC](https://www.ruby-forum.com/t/erb-still-treats-kcode/139391 "2008-11-12T09:00:32Z")

</div>

e$B1sF#$G$9!#e(B 1.9 e$B$Ne(B erb e$B$,L$$@$K%3%^%s%I%i%$%s0z?t$Ge(B $KCODE e$B$r;XDj$G$-$^$9$,!"e(B e$B$3$l$O;D$C$F$$$F$$$$$N$G$7$g$&$+!#e(B $ ./local/bin/erb --version erb.rb \[2.0.4 2008-06-02\] $ ./local/bin/erb …

---

## [1.upto(4) in ruby 1.8.6](https://www.ruby-forum.com/t/1-upto-4-in-ruby-1-8-6/153102)

<div class="topic-metadata">

**Author:** [@Tom\_Verbeure](https://www.ruby-forum.com/u/Tom_Verbeure)\
**Replies:** 3\
**Last updated:** [November 12, 2008, 7:16am UTC](https://www.ruby-forum.com/t/1-upto-4-in-ruby-1-8-6/153102 "2008-11-12T07:16:51Z")

</div>

Hi, I’m doing the following: indices = 1.upto(points.size) zipped = indices.zip(distances, points) Basically, I’m temporarily annotating my point objects with an index to avoid losing track of its original posit…

---

## [How to collect all the href links in a single page to a log file](https://www.ruby-forum.com/t/how-to-collect-all-the-href-links-in-a-single-page-to-a-log-file/153081)

<div class="topic-metadata">

**Author:** [@Sita\_Rami\_R](https://www.ruby-forum.com/u/Sita_Rami_R)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 7:08am UTC](https://www.ruby-forum.com/t/how-to-collect-all-the-href-links-in-a-single-page-to-a-log-file/153081 "2008-11-12T07:08:05Z")

</div>

I have a web which consists of multiple links with different colors. I want to collect a set of links with same color and move them to a notepad file(log file)… Please give Ruby code which works in Watir. Thanks,

---

## [IO Error](https://www.ruby-forum.com/t/io-error/152839)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 22\
**Last updated:** [November 12, 2008, 4:42am UTC](https://www.ruby-forum.com/t/io-error/152839 "2008-11-12T04:42:32Z")

</div>

Has anyone seen an IO Error like this before ? Nov 7, 2008 2:55:57 AM org.apache.catalina.core.ApplicationContext log INFO: /!\\ FAILSAFE /!\\ Fri Nov 07 02:55:57 -0500 2008 Status: 500 Internal Server Error IO Error …

---

## [Advanced arrays](https://www.ruby-forum.com/t/advanced-arrays/153083)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 6\
**Last updated:** [November 12, 2008, 4:41am UTC](https://www.ruby-forum.com/t/advanced-arrays/153083 "2008-11-12T04:41:57Z")

</div>

Hi all, I have a quick brain teaser. I have an array full of data broken down into indivdual entries. I running a simple if statement to check for an entry in the array, if my if statement finds that entry its prints…

---

## ["J" prefix on all scripts is finally possible...still want it?](https://www.ruby-forum.com/t/j-prefix-on-all-scripts-is-finally-possible-still-want-it/153082)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 9\
**Last updated:** [November 11, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/j-prefix-on-all-scripts-is-finally-possible-still-want-it/153082 "2008-11-11T23:40:32Z")

</div>

It looks like in a recent RubyGems it became possible to have it install all scripts with “j” prefixes. “jrake”, “jrails”, etc. It appears to be broken in 1.3.1 when defaults are specified, but Eric H. has been inform…

---

## [Special UTF8 characters as methods in ruby](https://www.ruby-forum.com/t/special-utf8-characters-as-methods-in-ruby/153080)

<div class="topic-metadata">

**Author:** [@six](https://www.ruby-forum.com/u/six)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/special-utf8-characters-as-methods-in-ruby/153080 "2008-11-11T23:35:51Z")

</div>

I’m trying to figure out how to define as a method a special math symbol: def – num # Not seeing the square root symbol after def here? Wouldn’t surprise me. Math.sqrt num end – but ruby gives me the error: :3: …

---

## [Installing merb with jruby](https://www.ruby-forum.com/t/installing-merb-with-jruby/153058)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/installing-merb-with-jruby/153058 "2008-11-11T20:04:41Z")

</div>

I am having problems installing the merb gem with jruby: ============== c:\>jruby -S gem install merb Building native extensions. This could take a while… ERROR: Error installing merb: ERROR: Failed to build gem na…

---

## [Comparing variable to multiple values](https://www.ruby-forum.com/t/comparing-variable-to-multiple-values/153005)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 8\
**Last updated:** [November 11, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/comparing-variable-to-multiple-values/153005 "2008-11-11T18:50:41Z")

</div>

I’m wondering if there’s a better way to do this in ruby: if a == “word1” || a == “word2” or || a == “word3” puts “good” end

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

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