# Ruby

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

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

---

## [Jruby1.1.2 - rack exception on glassfish : undefined method \`each' for 0:Fixnum](https://www.ruby-forum.com/t/jruby1-1-2-rack-exception-on-glassfish-undefined-method-each-for-0-fixnum/139062)

<div class="topic-metadata">

**Author:** [@M\_C](https://www.ruby-forum.com/u/M_C)\
**Replies:** 8\
**Last updated:** [June 8, 2008, 12:06am UTC](https://www.ruby-forum.com/t/jruby1-1-2-rack-exception-on-glassfish-undefined-method-each-for-0-fixnum/139062 "2008-06-08T00:06:29Z")

</div>

I am trying to deploy my first application on glassfish V2 using JRuby 1.1.2 and Warble 0.99 but get this error below. WebModule\[/myapp\]Exception caught /Library/Java/libs/glassfish/domains/domain1/generated/jsp/j2ee-…

---

## [Variable in lambda](https://www.ruby-forum.com/t/variable-in-lambda/139604)

<div class="topic-metadata">

**Author:** [@salamond](https://www.ruby-forum.com/u/salamond)\
**Replies:** 6\
**Last updated:** [June 7, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/variable-in-lambda/139604 "2008-06-07T21:25:06Z")

</div>

Hi, all. I came across the following problem. I need to generate a couple of methods, by now, I’m using acode = lambda { puts "i am a student in class " + c } bcode = lambda { puts "class "+c+ “is a great class” …

---

## [Price Ranges (#164)](https://www.ruby-forum.com/t/price-ranges-164/139127)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 15\
**Last updated:** [June 7, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/price-ranges-164/139127 "2008-06-07T20:45:08Z")

</div>

Apologies for the late quiz… been rather busy today. Here’s another simple one, but practical. I didn’t get specific about input formats/parameters/etc, I leave that to you this week. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=…

---

## [Glader: quick .glade -\> Ruby](https://www.ruby-forum.com/t/glader-quick-glade-ruby/139829)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/glader-quick-glade-ruby/139829 "2008-06-07T19:36:09Z")

</div>

Here’s a tiny script I wrote to go the last mile when generating Ruby programs to make use of Glade forms. The ruby-glade-create-template program that comes in the libglade2-ruby.18 package creates an example program…

---

## [Trunk: mswin32 $BHG$,(B nmake -f enc.mk $B$G%(%i!\<$K$J$k(B](https://www.ruby-forum.com/t/trunk-mswin32-bhg-b-nmake-f-enc-mk-b-g-i-k-j-k-b/139827)

<div class="topic-metadata">

**Author:** [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/trunk-mswin32-bhg-b-nmake-f-enc-mk-b-g-i-k-j-k-b/139827 "2008-06-07T19:13:13Z")

</div>

pegacorn e$B$G$9!#e(B r16754 e$B$NJQ99$G!"e(Bmswin32 e$BHG$,%S%k%I$G$-$J$/$J$C$F$$$^$9!#e(B e$B%S%k%I%m%0e(B\> nmake -f enc.mk -l cl -nologo -I. -I.ext/include/i386-mswin32\_90 -I./…/include -I./… -MD -Zi -W3 -wd4018…

---

## [Few questions on DLR](https://www.ruby-forum.com/t/few-questions-on-dlr/139824)

<div class="topic-metadata">

**Author:** [@andysko](https://www.ruby-forum.com/u/andysko)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/few-questions-on-dlr/139824 "2008-06-07T18:23:19Z")

</div>

Hi, I have few questions about DLR, mostly about how it works inside. So my first question is about compiling. I actually didnâ€™t find much information about this, but I know that in DLR I can interpret or compile…

---

## ["Advancing With Rails", July 21-24, Edison, NJ](https://www.ruby-forum.com/t/advancing-with-rails-july-21-24-edison-nj/139820)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/advancing-with-rails-july-21-24-edison-nj/139820 "2008-06-07T17:31:32Z")

</div>

Hi everyone – I’m very pleased to announce the following upcoming training course: ADVANCING WITH RAILS July 21-24 Edison, NJ (Raritan Center) “Advancing With Rails” is a course for intermediate Rails prog…

---

## [Using portions of other methods in a new method](https://www.ruby-forum.com/t/using-portions-of-other-methods-in-a-new-method/139814)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 9\
**Last updated:** [June 7, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/using-portions-of-other-methods-in-a-new-method/139814 "2008-06-07T16:36:11Z")

</div>

How do you take a piece of a method and use it in another? Here is my simple example: class MyArray def counter result = \[\] i = 0 a = 1 b = 0 while i \<= 5 do a = a + 1 b = b +1.5 result \<\< b.to\_s + “\\t” + a.to…

---

## [Ruby is much slower on linux when compiled with --enable-pth](https://www.ruby-forum.com/t/ruby-is-much-slower-on-linux-when-compiled-with-enable-pth/113707)

<div class="topic-metadata">

**Author:** [@therealadam](https://www.ruby-forum.com/u/therealadam)\
**Replies:** 26\
**Last updated:** [June 7, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/ruby-is-much-slower-on-linux-when-compiled-with-enable-pth/113707 "2008-06-07T15:51:35Z")

</div>

Hi, I was seeing significant performance differences between ruby 1.8.4 on an old distribution and a newer one. I spent some hours tracking down the differences and it appears that --enable-pthread causes ruby to be …

---

## [Configure $B$,@8@.$9$k(B CFLAGS/cflags](https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802)

<div class="topic-metadata">

**Author:** [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Replies:** 2\
**Last updated:** [June 7, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802 "2008-06-07T15:11:38Z")

</div>

pegacorn e$B$G$9!#e(B r16800 e$B$NJQ99$G!"e(Bconfigure e$B$,@8@.$9$ke(B CFLAGS/cflags e$B$,e(B e$B$h$/$o$+$i$J$$$3$H$K$J$C$F$$$k$N$G$9$,!"e(B e$B$3$l$O0U?^$7$?F0:n$G$7$g$&$+!)e(B e$B"!e(Br16800 configure.in (CFLAGS…

---

## [Download using Safari's cookies](https://www.ruby-forum.com/t/download-using-safaris-cookies/139807)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 10:05am UTC](https://www.ruby-forum.com/t/download-using-safaris-cookies/139807 "2008-06-07T10:05:50Z")

</div>

Hi, the httpclient library includes a custom file-based cookie storage. I made a primitive drop-in replacement (myclient.cookie\_manager = NSCookieManager.new) that uses OS X’ built-in jar. It works for getting stuff …

---

## [Code Review: CC2](https://www.ruby-forum.com/t/code-review-cc2/139799)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 5:31am UTC](https://www.ruby-forum.com/t/code-review-cc2/139799 "2008-06-07T05:31:04Z")

</div>

tfpt review “/shelveset:CC2;REDMOND\\tomat” Replaces most uses of Ast.CodeContext() calls by references to the current RubyScope variable. Removes uses of LambdaBuilder and scope factories. Introduces LocalsBuilder - …

---

## [\[Bug:ruby 1.9\] cannot open file with big mode value](https://www.ruby-forum.com/t/bug-ruby-1-9-cannot-open-file-with-big-mode-value/139748)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 3\
**Last updated:** [June 7, 2008, 5:04am UTC](https://www.ruby-forum.com/t/bug-ruby-1-9-cannot-open-file-with-big-mode-value/139748 "2008-06-07T05:04:09Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B io.ce$B$NCf$G!“e(Bopen()e$B$K:G=E$KEO$5$l$ke(Bmodee$B$re(BNUM2INTe$B$G@8@.$7$F$$e(B e$B$k$H$3$m$,?t2U=j$”$k$N$G$9$,!"e(Bmodee$B$,e(Bunsigned inte$B$J4D6-$G:G\>ee(B e$B0…

---

## [Re: Trying to get a value from cshell script inside ruby](https://www.ruby-forum.com/t/re-trying-to-get-a-value-from-cshell-script-inside-ruby/139797)

<div class="topic-metadata">

**Author:** [@McLaughlinS\_James\_T](https://www.ruby-forum.com/u/McLaughlinS_James_T)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 4:29am UTC](https://www.ruby-forum.com/t/re-trying-to-get-a-value-from-cshell-script-inside-ruby/139797 "2008-06-07T04:29:38Z")

</div>

You can use env to get the value of $STAT from ruby. Please forgive me if I miss some details here but… Try this: puts ENV\[“STAT”\] That should print the value of the env variable named STAT. I am not sure how chang…

---

## [Bind variables](https://www.ruby-forum.com/t/bind-variables/139588)

<div class="topic-metadata">

**Author:** [@Nathan\_Day](https://www.ruby-forum.com/u/Nathan_Day)\
**Replies:** 4\
**Last updated:** [June 7, 2008, 4:02am UTC](https://www.ruby-forum.com/t/bind-variables/139588 "2008-06-07T04:02:42Z")

</div>

I am extremely new to Ruby, my company is in the process of evaluating it for a large new report system and administration system. One concern with Ruby is the use of bind variables, we need to use bind variables for…

---

## [\[ANN\] activerecord-jdbc-adapter 0.8.1 Released](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-8-1-released/139560)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 6\
**Last updated:** [June 7, 2008, 2:24am UTC](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-8-1-released/139560 "2008-06-07T02:24:56Z")

</div>

Everyone, The long-delayed and much-awaited 0.8.1 release is here. It fixes quite a few reported bugs (but not quite all). See the full changelog below for details. Please help me make more frequent releases of ar-jd…

---

## [Arrays](https://www.ruby-forum.com/t/arrays/139787)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [June 7, 2008, 1:55am UTC](https://www.ruby-forum.com/t/arrays/139787 "2008-06-07T01:55:53Z")

</div>

modArr = Array.new freq = Array.new(\[ \[0\] \]) values = Array.new(\[ \[\] \]) #--------------Open the output file and process each line----- File.open(‘output.txt’, ‘r’).each { |x| #-------------Create uniqu…

---

## [A complete guide for Ruby Progammers](https://www.ruby-forum.com/t/a-complete-guide-for-ruby-progammers/196700)

<div class="topic-metadata">

**Author:** [@mcmohd](https://www.ruby-forum.com/u/mcmohd)\
**Replies:** 22\
**Last updated:** [June 7, 2008, 1:49am UTC](https://www.ruby-forum.com/t/a-complete-guide-for-ruby-progammers/196700 "2008-06-07T01:49:49Z")

</div>

This tutorial gives you complete knowledge starting from basic to advance. It includes tutorial on Ruby Webservices, Ruby LDPA, Ruby XML, Ruby/Tk, Ruby/DBI and many more interesting subjects. If you like it please sha…

---

## [Trying to get a value from cshell script inside ruby](https://www.ruby-forum.com/t/trying-to-get-a-value-from-cshell-script-inside-ruby/139791)

<div class="topic-metadata">

**Author:** [@inabramova](https://www.ruby-forum.com/u/inabramova)\
**Replies:** 1\
**Last updated:** [June 7, 2008, 1:43am UTC](https://www.ruby-forum.com/t/trying-to-get-a-value-from-cshell-script-inside-ruby/139791 "2008-06-07T01:43:58Z")

</div>

I am trying to run the c shell script inside ruby script. Looks something like this: csh\_script = File.new(TemporaryFile.getFileName(“test\_csh”), w) csh\_script.puts("#!/bin/csh/") csh\_script.chmod(0555) csh\_script.p…

---

## [Table does not exist error jruby-1.1.2 rails 2.1.0](https://www.ruby-forum.com/t/table-does-not-exist-error-jruby-1-1-2-rails-2-1-0/139770)

<div class="topic-metadata">

**Author:** [@jraines](https://www.ruby-forum.com/u/jraines)\
**Replies:** 2\
**Last updated:** [June 7, 2008, 12:07am UTC](https://www.ruby-forum.com/t/table-does-not-exist-error-jruby-1-1-2-rails-2-1-0/139770 "2008-06-07T00:07:40Z")

</div>

I updated to jruby-1.1.2 and rails 2.1.0 and I started using a different MySQL5 database then I had been using. But now when I run my migration or try to use my simple rails app I get a Table does not exist exception …

---

## [Decoding Multipart responses](https://www.ruby-forum.com/t/decoding-multipart-responses/139782)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/decoding-multipart-responses/139782 "2008-06-06T23:14:32Z")

</div>

I’ve been struggling with Soap4R (http://groups.google.com/group/soap4r/browse\_thread/thread/e7372dff4d5708da) trying to make it read the CSV attachment that comes back with a web service response (attached). So I dec…

---

## [Histogram](https://www.ruby-forum.com/t/histogram/139680)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 8\
**Last updated:** [June 6, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/histogram/139680 "2008-06-06T22:53:00Z")

</div>

I’ve been looking around to learn about histograms, and haven’t had any luck… can someone tell me how a histogram would work for something like this: Name, Age Bob, 2 Jim, 2 Eric, 4 Rob, 5 How would I use a histo…

---

## [Dramatis 0.1.1 released](https://www.ruby-forum.com/t/dramatis-0-1-1-released/139779)

<div class="topic-metadata">

**Author:** [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/dramatis-0-1-1-released/139779 "2008-06-06T22:48:18Z")

</div>

The first alpha release of dramatis hit the streets today. dramatis is a library available in Ruby and Python used to write concurrent programs based on the actor model of concurrency. The dramatis web site is http:/…

---

## [Difference between requiring a DLL versus using an assembly name?](https://www.ruby-forum.com/t/difference-between-requiring-a-dll-versus-using-an-assembly-name/139778)

<div class="topic-metadata">

**Author:** [@s450r1](https://www.ruby-forum.com/u/s450r1)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/difference-between-requiring-a-dll-versus-using-an-assembly-name/139778 "2008-06-06T22:23:02Z")

</div>

Hi, A couple weeks ago, I started using IronRuby to unit test my C# code. I was amazed how well it worked. The IronRuby team has done an amazing job! I’m tremendously impressed. When I first started using IronRuby,…

---

## [Open-uri and illegal url characters](https://www.ruby-forum.com/t/open-uri-and-illegal-url-characters/139776)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 6, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/open-uri-and-illegal-url-characters/139776 "2008-06-06T22:10:33Z")

</div>

Hello, n00b here. I use open-uri to read a Yahoo .csv file of stock and index quotes. Yahoo indices start with a circumflex (“^”) which a browser will convert to “%5e”. The following line is rejected by Yahoo (andRuby…

---

## [Working more efficiently in Ruby](https://www.ruby-forum.com/t/working-more-efficiently-in-ruby/139753)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/working-more-efficiently-in-ruby/139753 "2008-06-06T21:50:30Z")

</div>

This may be a useful tool to better understand & find Ruby concepts: http://www.yoyobrain.com/cardboxes/preview/103 Add flashcards to your studies, click on cram with the learning wizard. We’re building this site to i…

---

## [QtRuby TableWidget fill all](https://www.ruby-forum.com/t/qtruby-tablewidget-fill-all/139435)

<div class="topic-metadata">

**Author:** [@bizzz](https://www.ruby-forum.com/u/bizzz)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/qtruby-tablewidget-fill-all/139435 "2008-06-06T21:33:22Z")

</div>

Hello, i’m still a ruby-newbie :slight\_smile: and will be very thankful for any advise. I’ve got a table via QTableWidget. The size is set during program execution by setRowCount/setColumnCount. Then i need to randoml…

---

## [Meow 1.0.0 Released](https://www.ruby-forum.com/t/meow-1-0-0-released/139762)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/meow-1-0-0-released/139762 "2008-06-06T19:58:30Z")

</div>

meow version 1.0.0 has been released! http://meow.rubyforge.org/ Sends local Growl notifications in Ruby using Ruby Cocoa. Synopsis: meep = Meow.new(‘Meow Test’) meep.notify(‘Title’, ‘Description’) Changes: 1.0.…

---

## [Code Review: RubyPrecompilation](https://www.ruby-forum.com/t/code-review-rubyprecompilation/139756)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/code-review-rubyprecompilation/139756 "2008-06-06T19:32:01Z")

</div>

Ruby and DLR. tfpt review “/shelveset:RubyPrecompilation;REDMOND\\tomat” Removes dependency of precompiled code on optimized scopes. Enables loading/saving precompiled assemblies in Ruby loader. Implements IExpression…

---

## [Config.guess is too old](https://www.ruby-forum.com/t/config-guess-is-too-old/139752)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/config-guess-is-too-old/139752 "2008-06-06T18:31:48Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B:#$Ne(Brubye$B$KE:IU$5$l$F$$$ke(Bconfig.guesse$B$G%5%\]!\<%H$5$l$F$$$J$$%We(B e$B%i%C%H%U%)!\<%\`$rF’$s$G$7$^$C$?$N$G$9$,!":G?7$Ne(Bconfig.guesse$B$Ge(B e$B$O%5%\]!\<%H$5$…

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

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