# Ruby

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

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

---

## [Ruby Cookbook review](https://www.ruby-forum.com/t/ruby-cookbook-review/71161)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 17\
**Last updated:** [October 8, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/ruby-cookbook-review/71161 "2006-10-08T20:47:54Z")

</div>

Because of the recent and sudden interest in Ruby on Rails, there is quite a demand for books that can help people learn to program efficiently in Ruby. Though the language itself encourages fast learning and a high d…

---

## [Fwd: Posix Pangrams (#97) - Quicksolution](https://www.ruby-forum.com/t/fwd-posix-pangrams-97-quicksolution/229110)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 8, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/fwd-posix-pangrams-97-quicksolution/229110 "2006-10-08T18:19:55Z")

</div>

Begin forwarded message:

---

## [Binding parameters in ruby/postres queries](https://www.ruby-forum.com/t/binding-parameters-in-ruby-postres-queries/71420)

<div class="topic-metadata">

**Author:** [@larry](https://www.ruby-forum.com/u/larry)\
**Replies:** 2\
**Last updated:** [October 8, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/binding-parameters-in-ruby-postres-queries/71420 "2006-10-08T16:36:26Z")

</div>

I’m using the postgres library and trying to improve the performance of a database query that gets repeated many (~1 million) times. The documentation suggests you can pass in bind parameters as so: Documentation ----…

---

## [Compound Parallel Operators](https://www.ruby-forum.com/t/compound-parallel-operators/71186)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 16\
**Last updated:** [October 8, 2006, 2:38pm UTC](https://www.ruby-forum.com/t/compound-parallel-operators/71186 "2006-10-08T14:38:07Z")

</div>

(I didn’t see an RCR for this, and my lazy 60s of searching didn’t find any discussion about it. If it’s been discussed before, just say so and I’ll go hunt for the discussion properly.) Ruby allows parallel assignmen…

---

## [RoR : Shortening this code](https://www.ruby-forum.com/t/ror-shortening-this-code/71239)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 7\
**Last updated:** [October 8, 2006, 12:35pm UTC](https://www.ruby-forum.com/t/ror-shortening-this-code/71239 "2006-10-08T12:35:53Z")

</div>

Hello, Under Ruby On Rails, I would like to replace mouvement = Mouvement.find(params\[:id\]) mouvement.statut = :traite mouvement.save! By Mouvement.update(params\[:id\], statut =’#{:traite}’") But this error occurs …

---

## [JRuby scripting for Mozilla?](https://www.ruby-forum.com/t/jruby-scripting-for-mozilla/70823)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 11\
**Last updated:** [October 8, 2006, 6:25am UTC](https://www.ruby-forum.com/t/jruby-scripting-for-mozilla/70823 "2006-10-08T06:25:30Z")

</div>

Given that JRuby runs on Java, and Java can, I believe be used to script Mozilla, is anyone working on a way to use JRuby to script Mozilla? Thanks, Ken McDonald

---

## [Hpricot and XPaths with indices](https://www.ruby-forum.com/t/hpricot-and-xpaths-with-indices/71262)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 2\
**Last updated:** [October 8, 2006, 5:49am UTC](https://www.ruby-forum.com/t/hpricot-and-xpaths-with-indices/71262 "2006-10-08T05:49:28Z")

</div>

Hello, I just started to use HPricot a few days ago (what a cool piece of software! :wink: so it is possible that I have just overlooked it but I did not find a way to evaluate XPaths with indices yet. Instead of a ge…

---

## [ANN: sme-configdb v0.1 released](https://www.ruby-forum.com/t/ann-sme-configdb-v0-1-released/71401)

<div class="topic-metadata">

**Author:** [@msoulier](https://www.ruby-forum.com/u/msoulier)\
**Replies:** 0\
**Last updated:** [October 8, 2006, 4:37am UTC](https://www.ruby-forum.com/t/ann-sme-configdb-v0-1-released/71401 "2006-10-08T04:37:21Z")

</div>

About sme-configdb: This API is designed for accessing e-smith database format files, commonly found on the SME Server (formerly e-smith server and gateway). See http://smeserver.org. Homepage: http://sme-configdb.r…

---

## [In the year 2525](https://www.ruby-forum.com/t/in-the-year-2525/71334)

<div class="topic-metadata">

**Author:** [@elyod\_72](https://www.ruby-forum.com/u/elyod_72)\
**Replies:** 20\
**Last updated:** [October 8, 2006, 4:07am UTC](https://www.ruby-forum.com/t/in-the-year-2525/71334 "2006-10-08T04:07:19Z")

</div>

Is there a reason why Time.local can’t handle dates beyond 2038? I know that’s when the number of second since 1970 exceeds 2^32, but can’t a big, strong language like Ruby handle it? irb(main):004:0\> Time.local(2038…

---

## [Euruko 06, Nov 4 and 5, Please make up your mind till Tuesda](https://www.ruby-forum.com/t/euruko-06-nov-4-and-5-please-make-up-your-mind-till-tuesda/71355)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 8, 2006, 12:27am UTC](https://www.ruby-forum.com/t/euruko-06-nov-4-and-5-please-make-up-your-mind-till-tuesda/71355 "2006-10-08T00:27:09Z")

</div>

Hi all, as previously announced the European Ruby conference will take place in Munich the weekend of Nov 4 and 5. http://www.euruko.com We are very happy to see that many ruby-friends will show up, but our current …

---

## [RubyGarden mirror?](https://www.ruby-forum.com/t/rubygarden-mirror/71371)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 0\
**Last updated:** [October 7, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/rubygarden-mirror/71371 "2006-10-07T22:30:45Z")

</div>

Hi, I was wondering if there’s a mirror of RubyGarden. There was a nice set of articles concerning design patterns. As long as i know what i am looking for i can still read it thanks to Google cache but it’s still a …

---

## [Sequence 0.1.0 Released](https://www.ruby-forum.com/t/sequence-0-1-0-released/71341)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 3\
**Last updated:** [October 7, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/sequence-0-1-0-released/71341 "2006-10-07T20:28:32Z")

</div>

Sequence version 0.1.0 has been released! http://rubyforge.org/projects/sequence http://sequence.rubyforge.org/ Sequence is a wrapper api for accessing data in Strings, Arrays, Files, IOs, and Enumerations. Each sequ…

---

## [RubyConf 2006 ticket available](https://www.ruby-forum.com/t/rubyconf-2006-ticket-available/71360)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 2\
**Last updated:** [October 7, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/rubyconf-2006-ticket-available/71360 "2006-10-07T20:00:30Z")

</div>

I cannot attend RubyConf so I’m selling my ticket for $125 (which is what I paid) cheers! Paul

---

## [Parsing visual basic](https://www.ruby-forum.com/t/parsing-visual-basic/71174)

<div class="topic-metadata">

**Author:** [@FSSenault](https://www.ruby-forum.com/u/FSSenault)\
**Replies:** 7\
**Last updated:** [October 7, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/parsing-visual-basic/71174 "2006-10-07T19:26:28Z")

</div>

Hello. Where I work, we have to develop and maintain a quite huge application fully written in Visual Basic 6 \[1\]. Quite a few tasks should be automated, and being the magical-one-liner- script guru of the workplace,…

---

## [Bug: right shift (\>\>) for Bignum?](https://www.ruby-forum.com/t/bug-right-shift-for-bignum/71314)

<div class="topic-metadata">

**Author:** [@Johan\_H](https://www.ruby-forum.com/u/Johan_H)\
**Replies:** 3\
**Last updated:** [October 7, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/bug-right-shift-for-bignum/71314 "2006-10-07T17:52:22Z")

</div>

Hi! I think I have stumbled on a bug in the right shift method on Bignums. An expression like (1 - 2\*\*i) \>\> (i+1) normally gives a value of -1 (i.e. minus one). But when the shift amount is near a multiple of 32 (or…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/71356)

<div class="topic-metadata">

**Author:** [@Zachary\_Paruk](https://www.ruby-forum.com/u/Zachary_Paruk)\
**Replies:** 0\
**Last updated:** [October 7, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/no-subject/71356 "2006-10-07T16:32:14Z")

</div>

unsubscribe

---

## [Evaluating XPaths with indices in HPricot](https://www.ruby-forum.com/t/evaluating-xpaths-with-indices-in-hpricot/71351)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [October 7, 2006, 3:00pm UTC](https://www.ruby-forum.com/t/evaluating-xpaths-with-indices-in-hpricot/71351 "2006-10-07T15:00:10Z")

</div>

Hello, I have been asking this a few days ago, and since I got no response and I needed it badly I came up with a hack: http://www.rubyrailways.com/evaluating-xpaths-with-indicdes-in-hpricot/ I am not really sure it …

---

## [Trouble Filtering the \\ character](https://www.ruby-forum.com/t/trouble-filtering-the-character/71328)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 4\
**Last updated:** [October 7, 2006, 2:56pm UTC](https://www.ruby-forum.com/t/trouble-filtering-the-character/71328 "2006-10-07T14:56:09Z")

</div>

In my application, I cannot allow the user to enter the “” character in their URL. The only problem is, if I try if sURL.include? “”, it gives me an error, because I’m guessing it assumes that I am trying to escape ch…

---

## [Ruby,SDL,OpenGL](https://www.ruby-forum.com/t/ruby-sdl-opengl/71229)

<div class="topic-metadata">

**Author:** [@pinkman](https://www.ruby-forum.com/u/pinkman)\
**Replies:** 2\
**Last updated:** [October 7, 2006, 2:01pm UTC](https://www.ruby-forum.com/t/ruby-sdl-opengl/71229 "2006-10-07T14:01:04Z")

</div>

This is in regards to my last topic, where I was having problems with lag, I got around to thinking that maybe it was just the way RUDL handled opengl, and somehow caused lag, so I thought I’d go ahead and try in norm…

---

## [Re: Design Patterns in Ruby - WIKI](https://www.ruby-forum.com/t/re-design-patterns-in-ruby-wiki/71346)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 7, 2006, 11:43am UTC](https://www.ruby-forum.com/t/re-design-patterns-in-ruby-wiki/71346 "2006-10-07T11:43:54Z")

</div>

This is an automated response. Thank you for contacting the Technical Support team at The MathWorks Ltd. A technical support representative will be contacting you within 1 business day. The following information wil…

---

## [Re: Ruby,SDL,OpenGL](https://www.ruby-forum.com/t/re-ruby-sdl-opengl/71347)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 7, 2006, 11:27am UTC](https://www.ruby-forum.com/t/re-ruby-sdl-opengl/71347 "2006-10-07T11:27:54Z")

</div>

This is an automated response. Thank you for contacting the Technical Support team at The MathWorks Ltd. A technical support representative will be contacting you within 1 business day. The following information wil…

---

## [Design Patterns in Ruby - WIKI](https://www.ruby-forum.com/t/design-patterns-in-ruby-wiki/71260)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 1\
**Last updated:** [October 7, 2006, 11:21am UTC](https://www.ruby-forum.com/t/design-patterns-in-ruby-wiki/71260 "2006-10-07T11:21:53Z")

</div>

http://wiki.rubygarden.org/Ruby/page/show/ExampleDesignPatternsInRuby The above URL used to have nice collection of design patterns and how to implement them in Ruby. And currently…looks like the page is not available…

---

## [Active record question](https://www.ruby-forum.com/t/active-record-question/71299)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 3\
**Last updated:** [October 7, 2006, 6:49am UTC](https://www.ruby-forum.com/t/active-record-question/71299 "2006-10-07T06:49:39Z")

</div>

Sorry guys, I try and keep these sorts of questions to the Rails list but I’ve had little luck over there. Since this is a Ruby / Active Record question I thought I’d throw it out here. Apologies if it’s not appropr…

---

## [Libxml 0.3.8 - How to validate document with schema?](https://www.ruby-forum.com/t/libxml-0-3-8-how-to-validate-document-with-schema/70785)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 4\
**Last updated:** [October 7, 2006, 4:29am UTC](https://www.ruby-forum.com/t/libxml-0-3-8-how-to-validate-document-with-schema/70785 "2006-10-07T04:29:48Z")

</div>

Hello all (Ross), I’m trying to get libxml to validate an XML::Document using #validate with an XML::Schema. Can one of you describe to me what is wrong ? I have this, with the examples pasted at the end of this pos…

---

## [AIX 5.2 Ruby binaries or installation package](https://www.ruby-forum.com/t/aix-5-2-ruby-binaries-or-installation-package/68593)

<div class="topic-metadata">

**Author:** [@daya](https://www.ruby-forum.com/u/daya)\
**Replies:** 5\
**Last updated:** [October 7, 2006, 2:31am UTC](https://www.ruby-forum.com/t/aix-5-2-ruby-binaries-or-installation-package/68593 "2006-10-07T02:31:52Z")

</div>

Hi All I need help. I work for a company where I have to convince my superiors to use Ruby, the deployment machine available is AIX 5.2. I have read success stories of compiling Ruby 1.8.4 on AIX 5.2/5.3 . “But I was…

---

## [\_why ... I need your contact info](https://www.ruby-forum.com/t/why-i-need-your-contact-info/71327)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 1\
**Last updated:** [October 7, 2006, 1:19am UTC](https://www.ruby-forum.com/t/why-i-need-your-contact-info/71327 "2006-10-07T01:19:35Z")

</div>

\_why when you get a chance, please shoot me a copy of your contact info … I work for a company that would like to contact you about coming to speak … and, they need a good way to get in touch … Since I wasn’t able to…

---

## [Problem with sockets in Ruby 1.8.5](https://www.ruby-forum.com/t/problem-with-sockets-in-ruby-1-8-5/71097)

<div class="topic-metadata">

**Author:** [@Dido\_S](https://www.ruby-forum.com/u/Dido_S)\
**Replies:** 2\
**Last updated:** [October 6, 2006, 11:13pm UTC](https://www.ruby-forum.com/t/problem-with-sockets-in-ruby-1-8-5/71097 "2006-10-06T23:13:23Z")

</div>

I’ve just updated to Ruby 1.8.5 and tried using Webrick for a little application. Funny thing was if I didn’t specify a bind address, Webrick crashed with a SocketError. I isolated the code that causes this problem, a…

---

## [Rubyforge update](https://www.ruby-forum.com/t/rubyforge-update/71301)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [October 6, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/rubyforge-update/71301 "2006-10-06T21:43:28Z")

</div>

The machine appears to be having problems, perhaps a cooling fan died or some such. Heading to the colo facility now. Updates will be posted here: http://tomcopeland.blogs.com/juniordeveloper/2006/10/rubyforge\_down.…

---

## [ActiveRecord on JRuby](https://www.ruby-forum.com/t/activerecord-on-jruby/71284)

<div class="topic-metadata">

**Author:** [@Daniel\_VSSSSlkerts](https://www.ruby-forum.com/u/Daniel_VSSSSlkerts)\
**Replies:** 2\
**Last updated:** [October 6, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/activerecord-on-jruby/71284 "2006-10-06T21:43:28Z")

</div>

Hello! How stable is the ActiveRecord lib in the JRuby environment? Are there any experience with it in production usage? Any hints appreciated. g,

---

## [Tabs and parse errors with Ruby 1.8.4 and Windows](https://www.ruby-forum.com/t/tabs-and-parse-errors-with-ruby-1-8-4-and-windows/71273)

<div class="topic-metadata">

**Author:** [@wjrogers](https://www.ruby-forum.com/u/wjrogers)\
**Replies:** 12\
**Last updated:** [October 6, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/tabs-and-parse-errors-with-ruby-1-8-4-and-windows/71273 "2006-10-06T20:57:36Z")

</div>

This is a cross-post from the Rails list in hopes of getting some information from people who know more about the Ruby side of things. I get compile errors from ERB in my Rails views when I load the ferret C extension…

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

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