# Ruby

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

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

---

## [Setting up JNDI with activerecord-jdbc-adapter](https://www.ruby-forum.com/t/setting-up-jndi-with-activerecord-jdbc-adapter/176387)

<div class="topic-metadata">

**Author:** [@jimgroom](https://www.ruby-forum.com/u/jimgroom)\
**Replies:** 4\
**Last updated:** [September 30, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/setting-up-jndi-with-activerecord-jdbc-adapter/176387 "2009-09-30T21:53:37Z")

</div>

I’m not sure if there is an active activerecord-jdbc mailing list, let me know if there is and I’ll kill the noise here. I’m working on deploying with OAS and trying to setup a JNDI connection. I’ve setup and tested m…

---

## [Rake war......Don't know how to build task 'war'](https://www.ruby-forum.com/t/rake-war-dont-know-how-to-build-task-war/176428)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 5\
**Last updated:** [September 30, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/rake-war-dont-know-how-to-build-task-war/176428 "2009-09-30T21:48:21Z")

</div>

That is the message when I run rake war to create a war file fo my application. I’m using jruby 1.3.1 and warbler 0.9.14. Perhaps I need to install warbler also as plugin in my application? To unsubscribe from this …

---

## [FYI review: Fix for SL build](https://www.ruby-forum.com/t/fyi-review-fix-for-sl-build/176454)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/fyi-review-fix-for-sl-build/176454 "2009-09-30T20:32:49Z")

</div>

Fix to irtests.rb for changing Silverlight install folder (it has changed once again to 3.0.40818.0)

---

## [L10n-simplified-0.9 died in Ruby 1.9.1 / Rails 2.3.3](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295)

<div class="topic-metadata">

**Author:** [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295 "2009-09-30T20:03:17Z")

</div>

As lot of people, I suposse, I’m trying to move my Rails 2.1.2 app to the newer versions of Ruby and Rails. And my first serious trouble is that l10n-simplified-0.9 doesn’t work, and there isn’t a newer version. That’…

---

## [Code Review: ShellExec7](https://www.ruby-forum.com/t/code-review-shellexec7/176455)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/code-review-shellexec7/176455 "2009-09-30T20:00:02Z")

</div>

tfpt review “/shelveset:ShellExec7;REDMOND\\tomat” Comment : Fixes issues with Kernel#, system and exec. Paths with spaces and shell commands were not handled correctly. Also fixes a bug in mspec/lib/mspec/helpers/ruby…

---

## [Clear ScriptEngine Global Variables](https://www.ruby-forum.com/t/clear-scriptengine-global-variables/176440)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 6\
**Last updated:** [September 30, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/clear-scriptengine-global-variables/176440 "2009-09-30T18:43:53Z")

</div>

Hi, Is there anyway to clear all global variables from the IronRuby script engine? For example if I define a variable in a script and execute it: $myVar = “Hello” And then execute another script in a new scriptscope…

---

## [Rdoc](https://www.ruby-forum.com/t/rdoc/176444)

<div class="topic-metadata">

**Author:** [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/rdoc/176444 "2009-09-30T17:55:51Z")

</div>

Hello, Is there a way to specify the return value of a method in rdoc? I would like my rdoc documentation to look like the ruby-core-api: “method\_name(param1, param2) =\> return\_value” Thanks for helping

---

## [Ruby Enterprise Edition 1.87 Experiences?](https://www.ruby-forum.com/t/ruby-enterprise-edition-1-87-experiences/176439)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-enterprise-edition-1-87-experiences/176439 "2009-09-30T16:12:13Z")

</div>

Hi friends. I’m running a Ubuntu 8.04 server at work that uses Ruby 1.87 as our interpreter of choice. Our hardware isn’t exactly top notch, so Ruby Enterprise Edition has quite the allure for us – especially with the …

---

## [Streaming, Daemons, Cron, the basics?](https://www.ruby-forum.com/t/streaming-daemons-cron-the-basics/176438)

<div class="topic-metadata">

**Author:** [@viatropos](https://www.ruby-forum.com/u/viatropos)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/streaming-daemons-cron-the-basics/176438 "2009-09-30T15:35:12Z")

</div>

Hey there, I’ve finally had a second to look into streaming, daemons, and cron tasks and all the neat gems built around them! But I’m not clear on how/when to use these things. I have a few questions on how/what the…

---

## [Gem install activerecord--adapter](https://www.ruby-forum.com/t/gem-install-activerecord-adapter/176363)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/gem-install-activerecord-adapter/176363 "2009-09-30T15:20:07Z")

</div>

I seem to be missing a gem, yet, according to gem list, I seem to have sufficient gems. It’s a bit puzzling in that this script was running and now just throws this error. Is this a missing gem? If so, which one? …

---

## [DateTime optionally containing microseconds](https://www.ruby-forum.com/t/datetime-optionally-containing-microseconds/197001)

<div class="topic-metadata">

**Author:** [@ambrice](https://www.ruby-forum.com/u/ambrice)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/datetime-optionally-containing-microseconds/197001 "2009-09-30T15:11:55Z")

</div>

Hi all, I’m sending DateTimes over soap to JADE agent system. If I send DateTime.now over it is accepted fine… and ends up as: 2009-09-30T09:20:52.959452-03:00 However, if I convert a Rails model field to datetime an…

---

## [YAML & String Interpolation](https://www.ruby-forum.com/t/yaml-string-interpolation/176366)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/yaml-string-interpolation/176366 "2009-09-30T14:24:30Z")

</div>

I’m trying to read in a YAML string stored in a configuration file and have Ruby perform String interpolation on it. For example, === YAML file === remote\_machine: “${server}:${port}” === RUBY === def load\_setting…

---

## [Syntax translation Java - Ruby](https://www.ruby-forum.com/t/syntax-translation-java-ruby/176368)

<div class="topic-metadata">

**Author:** [@mark42](https://www.ruby-forum.com/u/mark42)\
**Replies:** 5\
**Last updated:** [September 30, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/syntax-translation-java-ruby/176368 "2009-09-30T14:21:34Z")

</div>

have this code in Java: boolean monkey = true; for(i=0; monkey; i++){ if(index\[i\] == null) { put.something.new(i); break; } } I am aware that it makes no sense by itself so I will explain. I am iterating throug…

---

## [If process.exist then . . .?](https://www.ruby-forum.com/t/if-process-exist-then/176401)

<div class="topic-metadata">

**Author:** [@i8igmac](https://www.ruby-forum.com/u/i8igmac)\
**Replies:** 4\
**Last updated:** [September 30, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/if-process-exist-then/176401 "2009-09-30T12:08:22Z")

</div>

im trying to monitor a process, if this process is closed then i want to write a time and date to a logfile… i dont know how to do it but it should be as simple as this… (improper) loop { if process.exist(‘notepad.e…

---

## [Macros in Ruby](https://www.ruby-forum.com/t/macros-in-ruby/176427)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 11:47am UTC](https://www.ruby-forum.com/t/macros-in-ruby/176427 "2009-09-30T11:47:48Z")

</div>

Hi all, I have opened one page with the help of ruby gems (watir,firewatir). I need to use Macro’s iim code for single action and will contine to the next step in Ruby Script. the code looks like CODE: ie.goto(“loc…

---

## [Page redirect](https://www.ruby-forum.com/t/page-redirect/176423)

<div class="topic-metadata">

**Author:** [@sharankruthi](https://www.ruby-forum.com/u/sharankruthi)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 11:22am UTC](https://www.ruby-forum.com/t/page-redirect/176423 "2009-09-30T11:22:26Z")

</div>

Hi, In my application, if someone enters url which requires login, am redirecting to login page if they have not logged in already, after logging, i want to take the user to page from where he has been redirected to …

---

## [0.9.1 regression](https://www.ruby-forum.com/t/0-9-1-regression/176424)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 10:57am UTC](https://www.ruby-forum.com/t/0-9-1-regression/176424 "2009-09-30T10:57:51Z")

</div>

Hi I’d love to log this as a bug but I can’t track down why. This is the code for a ResultFilter with IronRuby MVC class LightspeedFilter \< ResultFilter def on\_result\_executing(context) # put before result filtering…

---

## [API:create & persistent](https://www.ruby-forum.com/t/api-create-persistent/176318)

<div class="topic-metadata">

**Author:** [@denis\_mahony](https://www.ruby-forum.com/u/denis_mahony)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 10:49am UTC](https://www.ruby-forum.com/t/api-create-persistent/176318 "2009-09-30T10:49:17Z")

</div>

Extract of API page. “persistent global local A flag for whether the create form should be persistent or not. If persistent, then after a successful create it will stay open. Default is false.” Am i right in thinkin…

---

## [Won't Go](https://www.ruby-forum.com/t/wont-go/176039)

<div class="topic-metadata">

**Author:** [@illeverbe](https://www.ruby-forum.com/u/illeverbe)\
**Replies:** 9\
**Last updated:** [September 30, 2009, 9:12am UTC](https://www.ruby-forum.com/t/wont-go/176039 "2009-09-30T09:12:04Z")

</div>

Cant get Ruby to run it seems. Windows XP. downloaded with 1.8.6 one click installer. try to run “puts gets”. works in irb. “gets” does not work in sciTE - it does nothing, but i can close it. if run from command prom…

---

## [How do you determine CPU time in a Ruby program?](https://www.ruby-forum.com/t/how-do-you-determine-cpu-time-in-a-ruby-program/176362)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 8:30am UTC](https://www.ruby-forum.com/t/how-do-you-determine-cpu-time-in-a-ruby-program/176362 "2009-09-30T08:30:54Z")

</div>

Thanks to all who helped me understand Ruby’s treatment of multidimensional arrays. I was able to successfully finish the 8-puzzle program yesterday afternoon. I’m been putting some code in to measure the time it t…

---

## [\[Feature:1.9\] improvement of method redefinition warning](https://www.ruby-forum.com/t/feature-1-9-improvement-of-method-redefinition-warning/176330)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 6:18am UTC](https://www.ruby-forum.com/t/feature-1-9-improvement-of-method-redefinition-warning/176330 "2009-09-30T06:18:01Z")

</div>

e$B$J$+$@$G$9!#e(B e$B%a%=%C%I:FDj5A$G7Y9p$r=P$9$H$-$K!"\>e=q$-$5$l$k$\[$&$NDj5A$N\>l=j$be(B e$B=P$7$F$O$I$&$G$7$g$&$+!#e(B Index: proc.c — proc.c (revision 25152) +++ proc.c (working copy) @@ -649,6 +649,8 @@ rb\_pro…

---

## [Another 0.9.1 regression](https://www.ruby-forum.com/t/another-0-9-1-regression/176392)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 2:59am UTC](https://www.ruby-forum.com/t/another-0-9-1-regression/176392 "2009-09-30T02:59:34Z")

</div>

I have a C# method with the following signature static class IItemExtensions { static void getLock(this Interop.IItem item, object session, out Interop.ILock lock, out string lockedBy); } I am calling it from IronR…

---

## [0.9.1 regression when creating System::Array of clr enum values](https://www.ruby-forum.com/t/0-9-1-regression-when-creating-system-array-of-clr-enum-values/176391)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 4\
**Last updated:** [September 30, 2009, 2:58am UTC](https://www.ruby-forum.com/t/0-9-1-regression-when-creating-system-array-of-clr-enum-values/176391 "2009-09-30T02:58:23Z")

</div>

I have a CLR dll which declares an enumeration FieldID. It’s just an ordinary C# enum I have the following code which used to work under 0.9 fields\_to\_read = \[FieldID.DBID, FieldID.Name\] clr\_fields = System::Array\[Fi…

---

## [Warning messages using PStore in Ruby 1.91](https://www.ruby-forum.com/t/warning-messages-using-pstore-in-ruby-1-91/197102)

<div class="topic-metadata">

**Author:** [@Eric\_Hutton](https://www.ruby-forum.com/u/Eric_Hutton)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 1:30am UTC](https://www.ruby-forum.com/t/warning-messages-using-pstore-in-ruby-1-91/197102 "2009-09-30T01:30:00Z")

</div>

Hi all, I’m running Ruby 1.91 and I’m getting the following two warning messages when using PStore: C:/tools/ruby19/lib/ruby/1.9.1/pstore.rb:134: warning: instance variable @thread\_safe not initialized C:/tools/ruby…

---

## [Warning messages using PStore in Ruby 1.91](https://www.ruby-forum.com/t/warning-messages-using-pstore-in-ruby-1-91/176395)

<div class="topic-metadata">

**Author:** [@Eric\_Hutton](https://www.ruby-forum.com/u/Eric_Hutton)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 1:28am UTC](https://www.ruby-forum.com/t/warning-messages-using-pstore-in-ruby-1-91/176395 "2009-09-30T01:28:50Z")

</div>

Hi all, I’m running Ruby 1.91 and I’m getting the following two warning messages when using PStore: C:/tools/ruby19/lib/ruby/1.9.1/pstore.rb:134: warning: instance variable @thread\_safe not initialized C:/tools/ruby…

---

## [IronRuby 0.9.1](https://www.ruby-forum.com/t/ironruby-0-9-1/176389)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 12:43am UTC](https://www.ruby-forum.com/t/ironruby-0-9-1/176389 "2009-09-30T00:43:07Z")

</div>

Congrats on the release! It solves a few of the bugs I’ve encountered and overall seems a bit faster which is always good. It’s getting really nice to use these days. We are using it internally for automated UI testi…

---

## [Excel sheet charts](https://www.ruby-forum.com/t/excel-sheet-charts/176376)

<div class="topic-metadata">

**Author:** [@sss](https://www.ruby-forum.com/u/sss)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/excel-sheet-charts/176376 "2009-09-29T23:54:45Z")

</div>

Hello, I have to plot charts in excel sheet. I don’t know where the data is stored so row information and how much is the data info is not known in advance. Rows and Cols get computed based on the length of the data …

---

## [Ruby and PostgreSQL?](https://www.ruby-forum.com/t/ruby-and-postgresql/176294)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 6\
**Last updated:** [September 29, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/ruby-and-postgresql/176294 "2009-09-29T23:48:32Z")

</div>

Hi- Not sure if this is the right place to post this, however I am looking for documentation for using Ruby with a Postgres database. I found the ruby-pg gem, however nothing in the way of docs and Google isn’t givi…

---

## [Sequel accessor methods](https://www.ruby-forum.com/t/sequel-accessor-methods/176185)

<div class="topic-metadata">

**Author:** [@mark42](https://www.ruby-forum.com/u/mark42)\
**Replies:** 11\
**Last updated:** [September 29, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/sequel-accessor-methods/176185 "2009-09-29T20:35:01Z")

</div>

the FAQ link is broken so forgive if i screw up some forum rule I am trying to add to a SEQUEL database like this: def new\_house( self\_id ) if DataBase\[:house\].where( :id =\> self\_id ).exists == false then …

---

## [Multi-War Deployment?](https://www.ruby-forum.com/t/multi-war-deployment/176370)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/multi-war-deployment/176370 "2009-09-29T20:32:32Z")

</div>

We want to package our app as a single, versioned, easy-to-deploy artifact for our customers. However, we use solr for search in our app, and we’re wondering how this will work, since solr is packaged in its own war f…

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

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