# Ruby

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

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

---

## [Running JRuby scripts from Windows .bat files](https://www.ruby-forum.com/t/running-jruby-scripts-from-windows-bat-files/166919)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/running-jruby-scripts-from-windows-bat-files/166919 "2009-05-04T15:58:15Z")

</div>

foo.rb contains: puts “in foo” foo.bat contains @echo off echo hello jruby foo.rb echo world Running “foo” from a Windows command prompt outputs: hello in foo Why doesn’t it output “world”? jruby is causing foo…

---

## [Clr events in ruby](https://www.ruby-forum.com/t/clr-events-in-ruby/167133)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 3\
**Last updated:** [May 4, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/clr-events-in-ruby/167133 "2009-05-04T15:57:39Z")

</div>

Hi everyone, I’m messing around with trying to create ironruby mock (actually recorder) implementations of various sorts of CLR type features and am struggling with events. Is it currently possible to create an imp…

---

## [XML builder performance](https://www.ruby-forum.com/t/xml-builder-performance/152222)

<div class="topic-metadata">

**Author:** [@samuelzx](https://www.ruby-forum.com/u/samuelzx)\
**Replies:** 12\
**Last updated:** [May 4, 2009, 12:18pm UTC](https://www.ruby-forum.com/t/xml-builder-performance/152222 "2009-05-04T12:18:11Z")

</div>

Hi all, I have been doing some performance testing, and have noticed it takes significantly longer to render a XML output then a HTML one. It made me think perhaps there’s a faster way of generating XML than using XML …

---

## [JRuby, Rails, and GlassFish Bootcamp - May 19/20, San Francisco](https://www.ruby-forum.com/t/jruby-rails-and-glassfish-bootcamp-may-19-20-san-francisco/167102)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/jruby-rails-and-glassfish-bootcamp-may-19-20-san-francisco/167102 "2009-05-04T12:11:02Z")

</div>

A 1.5 days JRuby, Rails, and GlassFish bootcamp is arranged for May 19/20 in San Francisco. Day 1 is free with introduction to JRuby, Rails, and GlassFish. Day 2 requires $$$ and provide an in-depth knowledge of JRuby…

---

## [BlueFeather 0.20 released](https://www.ruby-forum.com/t/bluefeather-0-20-released/167126)

<div class="topic-metadata">

**Author:** [@dice](https://www.ruby-forum.com/u/dice)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 11:49am UTC](https://www.ruby-forum.com/t/bluefeather-0-20-released/167126 "2009-05-04T11:49:16Z")

</div>

Hello, my name is Dice. I’m rubyist in Japan. I have released BlueFeather 0.20. This software is extended Markdown converter based on BlueCloth 1.0.0. These are changes from BlueFeather 0.10. Adapt to ruby 1.9.x s…

---

## [Need help with SQLite3](https://www.ruby-forum.com/t/need-help-with-sqlite3/167100)

<div class="topic-metadata">

**Author:** [@syncopated](https://www.ruby-forum.com/u/syncopated)\
**Replies:** 4\
**Last updated:** [May 4, 2009, 11:17am UTC](https://www.ruby-forum.com/t/need-help-with-sqlite3/167100 "2009-05-04T11:17:16Z")

</div>

I am trying to install SQLite3 I put the required Windows32 files into my path. I installed the gem sqlite3-ruby successfully … but something is wrong! I tested the installation with: require ‘rubygems’ require ‘sql…

---

## [\[ANN\] Inochi 1.0.0](https://www.ruby-forum.com/t/ann-inochi-1-0-0/167123)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 10:27am UTC](https://www.ruby-forum.com/t/ann-inochi-1-0-0/167123 "2009-05-04T10:27:24Z")

</div>

Inochi 1.0.0 Gives life to RubyGems-based software http://snk.tuxfamily.org/lib/inochi Inochi is an infrastructure for \[1\]RubyGems-based software projects that encourages…

---

## [\[ANN\] ERBook 7.0.0](https://www.ruby-forum.com/t/ann-erbook-7-0-0/167122)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 10:26am UTC](https://www.ruby-forum.com/t/ann-erbook-7-0-0/167122 "2009-05-04T10:26:57Z")

</div>

ERBook 7.0.0 Extensible document processor based on eRuby http://snk.tuxfamily.org/lib/erbook/ ERBook is an extensible document processor that emits \[1\]any document you can im…

---

## [\[ANN\] Dfect 1.0.0](https://www.ruby-forum.com/t/ann-dfect-1-0-0/167121)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 10:26am UTC](https://www.ruby-forum.com/t/ann-dfect-1-0-0/167121 "2009-05-04T10:26:41Z")

</div>

Dfect 1.0.0 Assertion testing library for Ruby http://snk.tuxfamily.org/lib/dfect/ Dfect is an assertion testing library for Ruby that emphasizes a simple assertion voc…

---

## [\[ANN\] Ember 0.0.0](https://www.ruby-forum.com/t/ann-ember-0-0-0/167118)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 10:24am UTC](https://www.ruby-forum.com/t/ann-ember-0-0-0/167118 "2009-05-04T10:24:35Z")

</div>

Ember 0.0.0 eRuby template processor http://snk.tuxfamily.org/lib/ember Ember is an \[1\]eRuby template processsor that facilitates debugging, reduces markup, and im…

---

## [Rails ActionPack tests](https://www.ruby-forum.com/t/rails-actionpack-tests/166253)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 3\
**Last updated:** [May 4, 2009, 9:42am UTC](https://www.ruby-forum.com/t/rails-actionpack-tests/166253 "2009-05-04T09:42:33Z")

</div>

It is now possible to run the Rails ActionPack tests to completion without any hangs or fatal crashes! The full instructions are at the bottom of IronRuby.net /. Note that this is not the full test suite (have not tri…

---

## [\[Bug #571\] IPv6$B7O$NDj?t$,L$Dj5A(B (for 1.8)](https://www.ruby-forum.com/t/bug-571-ipv6-b7o-ndj-t-l-dj5a-b-for-1-8/148776)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 8:13am UTC](https://www.ruby-forum.com/t/bug-571-ipv6-b7o-ndj-t-l-dj5a-b-for-1-8/148776 "2009-05-04T08:13:33Z")

</div>

e$B%A%1%C%He(B #571 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.) e$B\<h$j9~$\_$^$9$+$iD\>@;d$Ke(B(e$B$^$?$Oe(Bruby-deve$B$Ke(B)e$B%a!\<%k$/$@$5$$!#e(B http://redmine.ruby-lang.org/issues/show/571

---

## [Git push](https://www.ruby-forum.com/t/git-push/167015)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 7:58am UTC](https://www.ruby-forum.com/t/git-push/167015 "2009-05-04T07:58:20Z")

</div>

Hey everyone, I usually just quietly push changes out, but I wanted to say something about the changes that went out today. Today’s changes have changed the interpreter to be an Adaptive Compiling interpreter. For tho…

---

## [Selecting row under Grid for EXTJS code](https://www.ruby-forum.com/t/selecting-row-under-grid-for-extjs-code/167068)

<div class="topic-metadata">

**Author:** [@bhavesh1\_sharma](https://www.ruby-forum.com/u/bhavesh1_sharma)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 5:33am UTC](https://www.ruby-forum.com/t/selecting-row-under-grid-for-extjs-code/167068 "2009-05-04T05:33:59Z")

</div>

Hi, I have to select the row under Grid which is an extjs code. When we have a grid, and want to select a “row” in the grid, for some reason we cannot select it. We have sent click events and it appears that we’re ge…

---

## [Module lookup starting with "::"](https://www.ruby-forum.com/t/module-lookup-starting-with/167098)

<div class="topic-metadata">

**Author:** [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 2:43am UTC](https://www.ruby-forum.com/t/module-lookup-starting-with/167098 "2009-05-04T02:43:00Z")

</div>

hello, could anyone explain why sometimes a module is referenced with “::” before its name? like in ::a::b::C is it equivalent to the regular form “A::b::C”? thanks

---

## [How to change the Timeout::Error threshold for open\_uri](https://www.ruby-forum.com/t/how-to-change-the-timeout-error-threshold-for-open-uri/132506)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 3\
**Last updated:** [May 4, 2009, 2:01am UTC](https://www.ruby-forum.com/t/how-to-change-the-timeout-error-threshold-for-open-uri/132506 "2009-05-04T02:01:08Z")

</div>

When opening a particularly slow loading URL I am getting the following error: Loading production environment (Rails 2.0.2) require ‘open-uri’ =\> \[“OpenURI”\] ?\> open(‘WWTDD - Latest Celebrity Gossip and Scandal …

---

## [OpenSSL::Cipher dad decrypt](https://www.ruby-forum.com/t/openssl-cipher-dad-decrypt/167051)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [May 4, 2009, 12:15am UTC](https://www.ruby-forum.com/t/openssl-cipher-dad-decrypt/167051 "2009-05-04T00:15:29Z")

</div>

I’m trying to implement a simple encrypt and decrypt function in Rails. I’ve found this Ruby script using OpenSSL::Cipher::Cipher. When I try with the “wrong” KEY value, just to test it, I get an error saying “bad dec…

---

## [Multiple database connections](https://www.ruby-forum.com/t/multiple-database-connections/166976)

<div class="topic-metadata">

**Author:** [@jameslabocki](https://www.ruby-forum.com/u/jameslabocki)\
**Replies:** 4\
**Last updated:** [May 3, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/multiple-database-connections/166976 "2009-05-03T21:44:43Z")

</div>

A quick question: Say my project needs to connect to a second database, Users stored in one db and data in another, How would I configure my projects database.yml? Thanks for the help.

---

## [Sending data types in a UDP packet](https://www.ruby-forum.com/t/sending-data-types-in-a-udp-packet/167093)

<div class="topic-metadata">

**Author:** [@ibw](https://www.ruby-forum.com/u/ibw)\
**Replies:** 1\
**Last updated:** [May 3, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/sending-data-types-in-a-udp-packet/167093 "2009-05-03T20:55:25Z")

</div>

In the specific protocol I’m writing a script for, I need to send a lot of different data types through the packet, such as U32, and S8. (Unsigned 32 bit, signed 8 bit). Does ruby support these types of variables? How…

---

## [SOAP - issue with openssl verification failure](https://www.ruby-forum.com/t/soap-issue-with-openssl-verification-failure/167008)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 9\
**Last updated:** [May 3, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/soap-issue-with-openssl-verification-failure/167008 "2009-05-03T17:55:28Z")

</div>

I have the following code in a script that I am trying to use at work - #!/usr/local/bin/ruby require ‘rubygems’ require ‘soap/wsdlDriver’ wsdl = ‘myURL’ driver = SOAP::WSDLDriverFactory.new(wsdl).create\_rpc\_driver …

---

## [Finding anagram of words](https://www.ruby-forum.com/t/finding-anagram-of-words/167062)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 8:30am UTC](https://www.ruby-forum.com/t/finding-anagram-of-words/167062 "2009-05-03T08:30:30Z")

</div>

Hey, Please help me to solve this problem with an example. Thanks in advance. Find anagrams of words e.g. rinse, reins, siren, resin are all anagrams one of another. use this file of words (you can use any words) We…

---

## [Rubylexer 0.7.3 Released](https://www.ruby-forum.com/t/rubylexer-0-7-3-released/166982)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 6:36am UTC](https://www.ruby-forum.com/t/rubylexer-0-7-3-released/166982 "2009-05-03T06:36:30Z")

</div>

Rubylexer version 0.7.3 has been released! http://rubylexer.rubyforge.org/ http://rubyforge.org/projects/rubylexer/ RubyLexer is a lexer library for Ruby, written in Ruby. Rubylexer is meant as a lexer for Ruby that…

---

## [Digits of Pi (#202)](https://www.ruby-forum.com/t/digits-of-pi-202/166416)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 25\
**Last updated:** [May 3, 2009, 2:55am UTC](https://www.ruby-forum.com/t/digits-of-pi-202/166416 "2009-05-03T02:55:54Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Prawn relative-path image](https://www.ruby-forum.com/t/prawn-relative-path-image/167060)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 2:35am UTC](https://www.ruby-forum.com/t/prawn-relative-path-image/167060 "2009-05-03T02:35:39Z")

</div>

Hi, I would like to show an image on PDF (via prawn pdf.image). I am using a photo\_for helper to retrieve an image i.e. photo\_for(@account, :small), which yields Is there a way to use image relative path with pdf.ima…

---

## [N00b ? re: CGI Hash and arrays](https://www.ruby-forum.com/t/n00b-re-cgi-hash-and-arrays/167053)

<div class="topic-metadata">

**Author:** [@jeffl](https://www.ruby-forum.com/u/jeffl)\
**Replies:** 4\
**Last updated:** [May 2, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/n00b-re-cgi-hash-and-arrays/167053 "2009-05-02T23:13:28Z")

</div>

Hi, n00b here, and got myself stumped on something I thought was easy. I get CGI params returned as: params: {“conf\_mod”=\>\[“20”\], “conf\_impact”=\>\[“10”\], “avail\_impact”=\>\[“5”\], “integrity\_impact”=\>\[“5”\], “authorizatio…

---

## [Code Review: InterpreterFixAndRemoval](https://www.ruby-forum.com/t/code-review-interpreterfixandremoval/167055)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/code-review-interpreterfixandremoval/167055 "2009-05-02T23:03:06Z")

</div>

tfpt review “/shelveset:InterpreterFixAndRemoval;REDMOND\\tomat” (interpreter change reviewed by John). Interpreter: Fixes a bug in interpreter - if an exception was thrown in a finally clause the handler of that exce…

---

## [How to get jdbc-postgres updated?](https://www.ruby-forum.com/t/how-to-get-jdbc-postgres-updated/167054)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/how-to-get-jdbc-postgres-updated/167054 "2009-05-02T22:51:23Z")

</div>

The jdbc-postgres gem (jruby-extras) includes: postgresql-8.2-504.jdbc3.jar But 8.3-604 is the current recommended/stable version (http://jdbc.postgresql.org/download.html). If you look at the changelog you will see…

---

## [Gmail\_contacts 1.1 released!](https://www.ruby-forum.com/t/gmail-contacts-1-1-released/167010)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 2\
**Last updated:** [May 2, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/gmail-contacts-1-1-released/167010 "2009-05-02T22:44:54Z")

</div>

gmail\_contacts version 1.1 has been released! http://seattlerb.rubyforge.org/gmail\_contacts Simple Gmail contacts extraction using GData. gmail\_contacts development was sponsored by AT&T Interactive. Changes: 1.1 …

---

## [Help me understand 'self' vs current object](https://www.ruby-forum.com/t/help-me-understand-self-vs-current-object/167038)

<div class="topic-metadata">

**Author:** [@cruby](https://www.ruby-forum.com/u/cruby)\
**Replies:** 4\
**Last updated:** [May 2, 2009, 10:24pm UTC](https://www.ruby-forum.com/t/help-me-understand-self-vs-current-object/167038 "2009-05-02T22:24:47Z")

</div>

I’m pretty mystified by this, so I would appreciate any insights… This does involve a Rails/ActiveRecord object, but that shouldn’t matter here, right? I’m archiving an object when it gets deleted, so I’m chaining met…

---

## [Call Java with JRuby](https://www.ruby-forum.com/t/call-java-with-jruby/167031)

<div class="topic-metadata">

**Author:** [@dynamic84](https://www.ruby-forum.com/u/dynamic84)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/call-java-with-jruby/167031 "2009-05-02T14:21:04Z")

</div>

Hi, I am a problem for my project at University… the using: JRuby =\> 1.8.6 Rails =\> 2.3.2 Java =\> JDK 1.6 and MySql 5.06 The Call java in Jruby is correct: configuration the file jar Open File Configuration/en…

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

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