# Ruby

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

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

---

## [Gem dependency / installing multiple gem from a single file](https://www.ruby-forum.com/t/gem-dependency-installing-multiple-gem-from-a-single-file/169802)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/gem-dependency-installing-multiple-gem-from-a-single-file/169802 "2009-06-08T23:33:16Z")

</div>

Ruby gems has a nice way of defining and including dependencies but it does not work when some of the dependent gems are not available from download server. So as an example I want to distribute a gem that depends on…

---

## [1.3 wierd rack error in redeploy on Glassfish 2.1](https://www.ruby-forum.com/t/1-3-wierd-rack-error-in-redeploy-on-glassfish-2-1/169797)

<div class="topic-metadata">

**Author:** [@mikael1991](https://www.ruby-forum.com/u/mikael1991)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/1-3-wierd-rack-error-in-redeploy-on-glassfish-2-1/169797 "2009-06-08T22:28:48Z")

</div>

Hi Guys I just have deployed my first Jruby1.3 rails app on a glasshfish 2.1 server. It works fine but there seems to be some issues when i do a redeploy of the same app. I Get this error below. The way around it i …

---

## [Get all cookies from a website](https://www.ruby-forum.com/t/get-all-cookies-from-a-website/169794)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/get-all-cookies-from-a-website/169794 "2009-06-08T21:44:20Z")

</div>

Hi all Once I reach a website, I want to get a list of all the cookies for that page. When I run this, the ruby scripts just sits and does nothing. How do you get the cookie and values from a website using cgi gem? Th…

---

## [Sort on European date](https://www.ruby-forum.com/t/sort-on-european-date/169786)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/sort-on-european-date/169786 "2009-06-08T18:08:51Z")

</div>

Hi, date = \[‘15/10/1971’, ‘16/10/1972’, ‘12/12/1971’\] real = date.map {|s| Date.parse s} puts real.sort Could anyone please tell me how I can parse the date in this sort with a European format? Thanks Aidy

---

## [Strange "no such file to load -- sqlite3" error](https://www.ruby-forum.com/t/strange-no-such-file-to-load-sqlite3-error/169774)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/strange-no-such-file-to-load-sqlite3-error/169774 "2009-06-08T17:56:59Z")

</div>

Hi, I’m porting my existing Rails project to Jruby, under a tomcat .war webapp deployment. jruby script/server on the project works just fine, no problem with dependencies production: adapter: jdbcsqlite3 databa…

---

## [How to html file in ruby](https://www.ruby-forum.com/t/how-to-html-file-in-ruby/169785)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 2\
**Last updated:** [June 8, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/how-to-html-file-in-ruby/169785 "2009-06-08T17:41:25Z")

</div>

Hi, How to read a html file in ruby

---

## [Printing out Cucumber step definitions](https://www.ruby-forum.com/t/printing-out-cucumber-step-definitions/169780)

<div class="topic-metadata">

**Author:** [@Dema](https://www.ruby-forum.com/u/Dema)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/printing-out-cucumber-step-definitions/169780 "2009-06-08T15:46:06Z")

</div>

Hi there, After a few years of almost complete silence, I’m back at blogging about Ruby-related stuff again. For a first post, I’m showing a rake task you can use if you want to print out Cucumber step definitions fo…

---

## [Sqlite3 & joins](https://www.ruby-forum.com/t/sqlite3-joins/169767)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 3\
**Last updated:** [June 8, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/sqlite3-joins/169767 "2009-06-08T15:23:40Z")

</div>

this question goes on from my previous one about my 1st hurdle using SQLite3. what sort of performance hit will you get if you have 3 select statements (1 for each table/DB file)? tables are customer, Jobs, parts. c…

---

## [STDIN, OUT, ERR and $stdin, out, err - Differences?](https://www.ruby-forum.com/t/stdin-out-err-and-stdin-out-err-differences/169639)

<div class="topic-metadata">

**Author:** [@terrychou](https://www.ruby-forum.com/u/terrychou)\
**Replies:** 7\
**Last updated:** [June 8, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/stdin-out-err-and-stdin-out-err-differences/169639 "2009-06-08T14:50:18Z")

</div>

Can anyone explain what’s happening here? print $stdin.fileno =\> 0 print $stdout.fileno =\> 0 print $sterr.fileno =\> 0 print STDIN.fileno =\> 0 print STDOUT.fileno =\> 1 print STDERR.fileno =\> 2 print STDOUT.objec…

---

## [Change file permissions via FTP](https://www.ruby-forum.com/t/change-file-permissions-via-ftp/169510)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 2\
**Last updated:** [June 8, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/change-file-permissions-via-ftp/169510 "2009-06-08T14:09:50Z")

</div>

Hi, I have to upload a file via FTP and then change its permissions, i’m using net/ftp but i don’t know how to change the perms. How can I do that? Should I use another library? Thanks in advance. Luca

---

## [Time slowly out of sync?](https://www.ruby-forum.com/t/time-slowly-out-of-sync/169562)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 4\
**Last updated:** [June 8, 2009, 11:57am UTC](https://www.ruby-forum.com/t/time-slowly-out-of-sync/169562 "2009-06-08T11:57:54Z")

</div>

Hi all! This is my first post to this mailinglist, so be gentle :slight\_smile: I hope you can help me with this very strange issue I’m having… I have an application in JRuby on GlassFish deployed on 2 servers. One is…

---

## [State pattern?](https://www.ruby-forum.com/t/state-pattern/94626)

<div class="topic-metadata">

**Author:** [@Michael\_SentropieS\_S](https://www.ruby-forum.com/u/Michael_SentropieS_S)\
**Replies:** 3\
**Last updated:** [June 8, 2009, 9:23am UTC](https://www.ruby-forum.com/t/state-pattern/94626 "2009-06-08T09:23:37Z")

</div>

Hello, I found this State-pattern example on \[1\], and was interested to find a way to make this more useable for standard classes (not just servers as in the example) I’am not so skilled in OO coding and ruby, so iam…

---

## [Zephyr v2.5 with Advanced Test Management Capabilities](https://www.ruby-forum.com/t/zephyr-v2-5-with-advanced-test-management-capabilities/169747)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 9:21am UTC](https://www.ruby-forum.com/t/zephyr-v2-5-with-advanced-test-management-capabilities/169747 "2009-06-08T09:21:03Z")

</div>

Hello Everyone, Zephyr has created a name for itself in software testing arena with its revolutionary test management system. Now from them comes a more advanced test management system, Zephyr v2.5 with advanced test …

---

## [\[ANN\] Operation Lambda 1.0 alpha](https://www.ruby-forum.com/t/ann-operation-lambda-1-0-alpha/169745)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 9:18am UTC](https://www.ruby-forum.com/t/ann-operation-lambda-1-0-alpha/169745 "2009-06-08T09:18:10Z")

</div>

Operation Lambda Announcing Operation Lambda: a remake of the classic game by Bret Victor. Make your way through a distressed spaceship, rescuing hostages and deflecting lasers in 100 levels! The remake implements th…

---

## [Chinese strftime](https://www.ruby-forum.com/t/chinese-strftime/169741)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 7:52am UTC](https://www.ruby-forum.com/t/chinese-strftime/169741 "2009-06-08T07:52:40Z")

</div>

Hi guys, I need to translate the strftime into chinese. I found a tutorial (ref: Out of Computer: 讓Ruby on Rails顯示中文日期) require ‘date’ Date::ABBR\_DAYNAMES.replace %w(æ—¥ ä¸€ äºŒ ä¸‰ å›› äº” å…­) Date::DAYNAMES.re…

---

## [Net/http post\_form problem](https://www.ruby-forum.com/t/net-http-post-form-problem/169652)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 2\
**Last updated:** [June 8, 2009, 7:38am UTC](https://www.ruby-forum.com/t/net-http-post-form-problem/169652 "2009-06-08T07:38:35Z")

</div>

Hi, I’m trying to execute the next code: require ‘net/http’ require ‘uri’ puts “starting…” url = URI.parse(‘http://localhost/test3/demo.aspx’) puts “retrieving…” res = Net::HTTP.post\_form(url, {“FullName” =\> “Sha…

---

## [Code Review: NewSingletons3](https://www.ruby-forum.com/t/code-review-newsingletons3/169693)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 5:59am UTC](https://www.ruby-forum.com/t/code-review-newsingletons3/169693 "2009-06-08T05:59:11Z")

</div>

tfpt review “/shelveset:NewSingletons3;REDMOND\\tomat” Initial work to improve singletons. Improves reflection cache generator - it searches IronRuby.dll for all types marked by \[ReflectionCache\] attribute and generat…

---

## [Endless Ruby 0.0.2](https://www.ruby-forum.com/t/endless-ruby-0-0-2/169080)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 21\
**Last updated:** [June 8, 2009, 1:05am UTC](https://www.ruby-forum.com/t/endless-ruby-0-0-2/169080 "2009-06-08T01:05:36Z")

</div>

endless.rb is a pre-processor for ruby which allows you to use python-ish indentation to delimit scopes, instead of having to type ‘end’ every time. endless.rb · GitHub Basically, this makes the end keyword optional…

---

## [Nokogiri 1.3.1 Released](https://www.ruby-forum.com/t/nokogiri-1-3-1-released/169735)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 1:03am UTC](https://www.ruby-forum.com/t/nokogiri-1-3-1-released/169735 "2009-06-08T01:03:51Z")

</div>

nokogiri version 1.3.1 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://rubyforge.org/mailman/listinfo/nokogiri-talk …

---

## [Rexical 1.0.3 Released](https://www.ruby-forum.com/t/rexical-1-0-3-released/169732)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 12:58am UTC](https://www.ruby-forum.com/t/rexical-1-0-3-released/169732 "2009-06-08T00:58:35Z")

</div>

rexical version 1.0.3 has been released! http://github.com/tenderlove/rexical/tree/master Rexical is a lexical scanner generator. It is written in Ruby itself, and generates Ruby program. It is designed for use with…

---

## [\[Feature: 1.9.2\] rename rb\_thread\_\* functions](https://www.ruby-forum.com/t/feature-1-9-2-rename-rb-thread-functions/169724)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 12:04am UTC](https://www.ruby-forum.com/t/feature-1-9-2-rename-rb-thread-functions/169724 "2009-06-08T00:04:45Z")

</div>

ã€€ã•ã•ã ã§ã™ï¼Ž ã€€ç¾åœ¨ï¼Œthread.c ã§å®šç¾©ã•ã‚Œã¦ã„ã‚‹ rb\_thread\_… ã¨ã„ã†é–¢æ•°ã®ã†ã¡ï¼Œã„ãã¤ ã‹ã®é–¢æ•°ã¯ rb\_thread\_t \* ã‚’å¼•æ•°ã«ã—ã¦ã„ã¾ã™ï¼Žã“ã®ã‚ˆã†ãªé–¢æ•°ã® prefix ã‚’ rb\_t…

---

## [Adding, multiplying array](https://www.ruby-forum.com/t/adding-multiplying-array/169713)

<div class="topic-metadata">

**Author:** [@Haris\_BogdanoviS\_S](https://www.ruby-forum.com/u/Haris_BogdanoviS_S)\
**Replies:** 6\
**Last updated:** [June 7, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/adding-multiplying-array/169713 "2009-06-07T23:37:14Z")

</div>

Hi. I want to multply all elements of two arrays and add that to all elements of the third array like this: c+=a\*b c=\[1,1,1\] a=\[2,2,2\] b=\[3,3,3\] c=\[7,7,7\] # (1+2\*3)=7 I tried (found on google): a.zip(b).map {|…

---

## [Speaking of pledges for Ruby projects](https://www.ruby-forum.com/t/speaking-of-pledges-for-ruby-projects/169692)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [June 7, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/speaking-of-pledges-for-ruby-projects/169692 "2009-06-07T23:10:52Z")

</div>

Hi everyone, I am looking for pledges so that I can continue to work on some fantastic open source Ruby projects that are, in my opinion, of great benefit to the Ruby programming community at large. http://pledgie.…

---

## [Datamapper/AppEngine: "org.jruby.RubyClass is not a supported property type"](https://www.ruby-forum.com/t/datamapper-appengine-org-jruby-rubyclass-is-not-a-supported-property-type/169648)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 4\
**Last updated:** [June 7, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/datamapper-appengine-org-jruby-rubyclass-is-not-a-supported-property-type/169648 "2009-06-07T21:44:42Z")

</div>

I’m using the latest trunk of appengine-apis-0.0.4 and the dm-appengine-0.0.1 gem to talk to DataMapper (0.10.0) on App Engine via JRuby (1.3rc) on Rails. I thought this configuration was compatible. However, when I t…

---

## [\[ANN\] Oughtve 0.8.0](https://www.ruby-forum.com/t/ann-oughtve-0-8-0/169725)

<div class="topic-metadata">

**Author:** [@rue](https://www.ruby-forum.com/u/rue)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/ann-oughtve-0-8-0/169725 "2009-06-07T20:49:57Z")

</div>

Oughtve Shotgun: $105.95. Beat-up Olds: $2000. Chemistry 101: $36. Remembering “niktu”: Priceless. What? Oughtve is a very simple command-line- and directory-based notation t…

---

## [Persisting with rails, preprocess with java?](https://www.ruby-forum.com/t/persisting-with-rails-preprocess-with-java/169718)

<div class="topic-metadata">

**Author:** [@rmacedon](https://www.ruby-forum.com/u/rmacedon)\
**Replies:** 1\
**Last updated:** [June 7, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/persisting-with-rails-preprocess-with-java/169718 "2009-06-07T20:26:41Z")

</div>

I’m fairly new to jruby and rails and I have searched high and low for an answer to this problem, but haven’t been able to solve it. My dilema: I have a java library that takes a file, parses the contents and store…

---

## [Upgrade from jruby 1.2.0 to 1.3.0](https://www.ruby-forum.com/t/upgrade-from-jruby-1-2-0-to-1-3-0/169711)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 2\
**Last updated:** [June 7, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/upgrade-from-jruby-1-2-0-to-1-3-0/169711 "2009-06-07T20:24:55Z")

</div>

I’ve jruby 1.2.0 and I’ve installed some gems. Now I want to upgrade to jruby 1.3.0. My gems are under /home/user/jruby-1.2.0. Downloading jruby 1.3.0 I put it under /home/user/jruby-1.3.0 Upgrading to 1.3.0 I’ve to …

---

## [Jruby 1.3.0 windows vista issues: doesn't output helpful error if JAVA\_HOME undefined, and JAVA\_HOME](https://www.ruby-forum.com/t/jruby-1-3-0-windows-vista-issues-doesnt-output-helpful-error-if-java-home-undefined-and-java-home/169662)

<div class="topic-metadata">

**Author:** [@Gary\_SSWeaver](https://www.ruby-forum.com/u/Gary_SSWeaver)\
**Replies:** 2\
**Last updated:** [June 7, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0-windows-vista-issues-doesnt-output-helpful-error-if-java-home-undefined-and-java-home/169662 "2009-06-07T20:23:09Z")

</div>

Tried jruby 1.3.0 on windows vista this morning and found out that: if I do: set JAVA\_HOME= jruby -version I get: The system cannot find the path specified. (it should probably state that JAVA\_HOME must be set) if…

---

## [Gems:refresh\_specs](https://www.ruby-forum.com/t/gems-refresh-specs/169511)

<div class="topic-metadata">

**Author:** [@Mistress\_Janna\_Bros](https://www.ruby-forum.com/u/Mistress_Janna_Bros)\
**Replies:** 3\
**Last updated:** [June 7, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/gems-refresh-specs/169511 "2009-06-07T20:12:01Z")

</div>

Why, when I do a : jruby -S rake gems:refresh\_specs --trace from the top-level dir of my rails app, do I get the following stack trace: \*\* Invoke gems:refresh\_specs (first\_time) \*\* Invoke gems:base (first\_time) \*…

---

## [Code organization](https://www.ruby-forum.com/t/code-organization/169671)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [June 7, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/code-organization/169671 "2009-06-07T19:36:45Z")

</div>

Hi all, What are the differences bewteen the following code organization? What situations are preferred by each one? Thanks, Li #######code 1############# module A class B end class C end end #######code 2#####…

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

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