# Ruby

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

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

---

## [Access JRuby options](https://www.ruby-forum.com/t/access-jruby-options/162544)

<div class="topic-metadata">

**Author:** [@skiz](https://www.ruby-forum.com/u/skiz)\
**Replies:** 1\
**Last updated:** [March 12, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/access-jruby-options/162544 "2009-03-12T18:05:12Z")

</div>

Hi, I am working on an ZenTest to make it more JRuby friendly. To do this I need to active the Objectspace in a sub process (the autotest process creates it). What I want to be able to do is just pass the options fr…

---

## [JRuby objects in Scala](https://www.ruby-forum.com/t/jruby-objects-in-scala/162533)

<div class="topic-metadata">

**Author:** [@Meredith\_Gregory](https://www.ruby-forum.com/u/Meredith_Gregory)\
**Replies:** 7\
**Last updated:** [March 12, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/jruby-objects-in-scala/162533 "2009-03-12T17:55:10Z")

</div>

JRubyat, i’ve really been stymied by various approaches to use JRuby objects from any other JVM language. At the time of this writing, my currently best performing, non-buggy approach is to covert to YAML and convert…

---

## [Gets seems cached the $stdin value](https://www.ruby-forum.com/t/gets-seems-cached-the-stdin-value/162623)

<div class="topic-metadata">

**Author:** [@figo2476](https://www.ruby-forum.com/u/figo2476)\
**Replies:** 1\
**Last updated:** [March 12, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/gets-seems-cached-the-stdin-value/162623 "2009-03-12T17:48:08Z")

</div>

Hi, I am trying to make use of the jirb\_swing console so that if I encountered an exception in my code, I can launch jirb\_swing for debugging purpose. Unfortunately, the current jirb\_swing hijacks the io stream and …

---

## [Change (and update) values of hash](https://www.ruby-forum.com/t/change-and-update-values-of-hash/162628)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 7\
**Last updated:** [March 12, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/change-and-update-values-of-hash/162628 "2009-03-12T17:07:29Z")

</div>

how would I do stuff to each value of a hash and return a modified hash? h = {“a”=\> 3, “b”=\> 5} multiply each value by 2 and return h = {“a”=\> 6, “b”=\> 10} this does what I need but does not modify the hash h.each {…

---

## [Net-ping and ruby on one-click-install](https://www.ruby-forum.com/t/net-ping-and-ruby-on-one-click-install/162638)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [March 12, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/net-ping-and-ruby-on-one-click-install/162638 "2009-03-12T15:20:39Z")

</div>

Hi, just in case someone has a solution for this, i just installed oneclickinstall(ruby186rc2) in windows, then installed net-ping. all fine, until i run a simple script that uses net-ping and i got the ff: ---------…

---

## [Generate pdf file with password protected](https://www.ruby-forum.com/t/generate-pdf-file-with-password-protected/162651)

<div class="topic-metadata">

**Author:** [@jprabu](https://www.ruby-forum.com/u/jprabu)\
**Replies:** 2\
**Last updated:** [March 12, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/generate-pdf-file-with-password-protected/162651 "2009-03-12T15:14:11Z")

</div>

Hi, I have small requirement to generate the pdf files with password protected. For that I have created pdf file using FPDF library. but i am unable to create a pdf file with password protected. kindly help me. Reg…

---

## [From Ruby: Calling a DOS batch file, waiting for it to finis](https://www.ruby-forum.com/t/from-ruby-calling-a-dos-batch-file-waiting-for-it-to-finis/75042)

<div class="topic-metadata">

**Author:** [@Glenn\_S](https://www.ruby-forum.com/u/Glenn_S)\
**Replies:** 2\
**Last updated:** [March 12, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/from-ruby-calling-a-dos-batch-file-waiting-for-it-to-finis/75042 "2009-03-12T15:12:44Z")

</div>

Help! Can somebody point me at the best way to call a DOS batch file, and wait for it to finish. The batch file itself will be running a number of commands, including sqlloader. Ruby needs to wait for it to finish…

---

## [Addressing to rb\_jmp\_buf](https://www.ruby-forum.com/t/addressing-to-rb-jmp-buf/162582)

<div class="topic-metadata">

**Author:** [@SSSBSSLnSSB\_SSBLwSS](https://www.ruby-forum.com/u/SSSBSSLnSSB_SSBLwSS)\
**Replies:** 2\
**Last updated:** [March 12, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/addressing-to-rb-jmp-buf/162582 "2009-03-12T14:57:09Z")

</div>

e$B$^$Ne(B e$B$H?=$7$^$9!"?7;2\<T$G$9!#$I$&$\>59$7$/$\*4j$$$$$?$7$^$9!#e(B gc.c:1976e$B9TL!"e(Bsave\_regs\_gc\_marke$B$ND\>A0$Ke(B\`&'e$B$rIU2C$7$F$$$?$@$/$3$H$O2DG=e(B e$B$G$7$g$&$+!)e(B \< (VALUE\*)save…

---

## [How to get all attributes in an element](https://www.ruby-forum.com/t/how-to-get-all-attributes-in-an-element/162459)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 4\
**Last updated:** [March 12, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-get-all-attributes-in-an-element/162459 "2009-03-12T12:42:58Z")

</div>

hi, I am using REXML I want to get all the attributes under an element. Just imagine that I know the element name but not the attribute names. say and so on as many attributes that can be. I need to get all the at…

---

## [Help with refactor and db/ar advice](https://www.ruby-forum.com/t/help-with-refactor-and-db-ar-advice/162619)

<div class="topic-metadata">

**Author:** [@ball](https://www.ruby-forum.com/u/ball)\
**Replies:** 1\
**Last updated:** [March 12, 2009, 9:52am UTC](https://www.ruby-forum.com/t/help-with-refactor-and-db-ar-advice/162619 "2009-03-12T09:52:46Z")

</div>

Hi all, I have a number of delimited data files that I would like to import into MySql. I am using ActiveRecord to create the schema and do the import of the data. Code snippets follows for how I am doing one of the …

---

## [Dhtml tooltip effect feds away after sorting data in table](https://www.ruby-forum.com/t/dhtml-tooltip-effect-feds-away-after-sorting-data-in-table/162635)

<div class="topic-metadata">

**Author:** [@radha](https://www.ruby-forum.com/u/radha)\
**Replies:** 0\
**Last updated:** [March 12, 2009, 8:30am UTC](https://www.ruby-forum.com/t/dhtml-tooltip-effect-feds-away-after-sorting-data-in-table/162635 "2009-03-12T08:30:25Z")

</div>

hello friends, i am using tooltip.js library in my rails application to implement tooltip effect on table data. my table contains column ‘project’. but when i sort the contents of the column ‘project’ using sort\_key …

---

## [Tournament 2.0.0](https://www.ruby-forum.com/t/tournament-2-0-0/162626)

<div class="topic-metadata">

**Author:** [@dougal](https://www.ruby-forum.com/u/dougal)\
**Replies:** 0\
**Last updated:** [March 12, 2009, 5:41am UTC](https://www.ruby-forum.com/t/tournament-2-0-0/162626 "2009-03-12T05:41:58Z")

</div>

tournament version 2.0.0 by Douglas A. Seifert Tournament: A Ruby Program For Managing NCAA Tournament Pools == DESCRIPTION Small library, command line program and Rails web GUI for managing a NCAA basketball tourn…

---

## [How to write packets on ethernet card](https://www.ruby-forum.com/t/how-to-write-packets-on-ethernet-card/162560)

<div class="topic-metadata">

**Author:** [@stalin](https://www.ruby-forum.com/u/stalin)\
**Replies:** 3\
**Last updated:** [March 12, 2009, 2:22am UTC](https://www.ruby-forum.com/t/how-to-write-packets-on-ethernet-card/162560 "2009-03-12T02:22:02Z")

</div>

Hi all, I want to write raw packets over the Ethernet card. I don’t how to do it in ruby. If anybody knows help me…

---

## [Code Review: interop3](https://www.ruby-forum.com/t/code-review-interop3/162234)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [March 11, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/code-review-interop3/162234 "2009-03-11T22:18:58Z")

</div>

tfpt review “/shelveset:interop3;REDMOND\\jdeville” Comment : Rearrange .NET tests according to the new test structure Add the csc method to inline C# fixtures into the Ruby code \*\* Should csc.bat be in a path’d scri…

---

## [Return doesn't always exit my method](https://www.ruby-forum.com/t/return-doesnt-always-exit-my-method/162579)

<div class="topic-metadata">

**Author:** [@bterkuile](https://www.ruby-forum.com/u/bterkuile)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 9:47pm UTC](https://www.ruby-forum.com/t/return-doesnt-always-exit-my-method/162579 "2009-03-11T21:47:43Z")

</div>

Hi, I’m new to Ruby and programming in general. I’m coding a little script to train on multiplication tables but something’s wrong: If I type ‘exit’, the function should normally exit, via a return statement. But thi…

---

## [Testing equality](https://www.ruby-forum.com/t/testing-equality/162376)

<div class="topic-metadata">

**Author:** [@haris](https://www.ruby-forum.com/u/haris)\
**Replies:** 3\
**Last updated:** [March 11, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/testing-equality/162376 "2009-03-11T21:40:43Z")

</div>

Hi. When I try to test equality of two strings, for example: if object1.string==object2.string then puts object1.string end I get nothing printed even though two strings are equal. Why ? Thanks

---

## [How many people are using Ruby?](https://www.ruby-forum.com/t/how-many-people-are-using-ruby/162549)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/how-many-people-are-using-ruby/162549 "2009-03-11T21:19:01Z")

</div>

I enjoyed the Linux Counter (http://counter.li.org/) in the early days of Linux adoption and so when we had some free time, one of my team tossed together a little app for registering and counting Ruby users. It’s at…

---

## [Unable to update gems](https://www.ruby-forum.com/t/unable-to-update-gems/162514)

<div class="topic-metadata">

**Author:** [@eswarv](https://www.ruby-forum.com/u/eswarv)\
**Replies:** 6\
**Last updated:** [March 11, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/unable-to-update-gems/162514 "2009-03-11T20:59:54Z")

</div>

I am trying to update the rails using gems update, and I am getting the following error: Updating installed gems GET 304 Not Modified: RubyGems.org | your community gem host Updating actionmailer GET 304 Not Modifie…

---

## [Hash of hashes w/defaults doesn't add keys as expected](https://www.ruby-forum.com/t/hash-of-hashes-w-defaults-doesnt-add-keys-as-expected/162588)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 11, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/hash-of-hashes-w-defaults-doesnt-add-keys-as-expected/162588 "2009-03-11T18:55:42Z")

</div>

Hey All, This surprised me: hash\_hash = Hash.new(Hash.new(0)) hash\_hash\[:foo\]\[:bar\] += 1 hash\_hash\[:foo\]\[:baz\] += 1 puts(hash\_hash\[:foo\].keys.inspect) # =\> \[:baz, :bar\] puts(hash\_hash.keys.inspect) # =\> \[\] …

---

## [Jruby java options not working?](https://www.ruby-forum.com/t/jruby-java-options-not-working/162577)

<div class="topic-metadata">

**Author:** [@David\_Christiansen](https://www.ruby-forum.com/u/David_Christiansen)\
**Replies:** 8\
**Last updated:** [March 11, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/jruby-java-options-not-working/162577 "2009-03-11T17:29:24Z")

</div>

Why doesn’t this work? $ jruby -J-Xmx1024m -S warble war:clean results in: jruby: unknown option -J-Xmx1024m I’m doing this because I keep getting this error when I run the command without the java option: Error: Y…

---

## [Sorting question](https://www.ruby-forum.com/t/sorting-question/162561)

<div class="topic-metadata">

**Author:** [@Miroslaw\_N](https://www.ruby-forum.com/u/Miroslaw_N)\
**Replies:** 3\
**Last updated:** [March 11, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/sorting-question/162561 "2009-03-11T15:27:07Z")

</div>

Hi, I have following log in simple format: – START - DATE (YYYY-MM-DD HH:MM:SS.sss) … – END - DATE (YYYY-MM-DD HH:MM:SS.sss) – START - DATE (YYYY-MM-DD HH:MM:SS.sss) … – END - DATE (YYYY-MM-DD HH:MM:SS.sss…

---

## [Ruby on Rails and Session issues](https://www.ruby-forum.com/t/ruby-on-rails-and-session-issues/162578)

<div class="topic-metadata">

**Author:** [@harish\_dew](https://www.ruby-forum.com/u/harish_dew)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-session-issues/162578 "2009-03-11T15:18:46Z")

</div>

Hi, I developed a small application using Ruby on rails and Flex. for designing i am using Flex application and for business logic i am using ruby on rails. i completed my development work and now i am testing my app…

---

## [MS$B$NJ}$H$NAjCL$K@hN)$C$F(B](https://www.ruby-forum.com/t/ms-b-nj-h-najcl-k-hn-c-f-b/162545)

<div class="topic-metadata">

**Author:** [@masayoshi\_takahashi](https://www.ruby-forum.com/u/masayoshi_takahashi)\
**Replies:** 6\
**Last updated:** [March 11, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/ms-b-nj-h-najcl-k-hn-c-f-b/162545 "2009-03-11T15:00:42Z")

</div>

e$B9b66@,5A$G$9!#$I$3$KEj$2$k$N$,%Y%9%H$+H=CG$D$+$J$+$C$?$N$G!"e(B ruby-deve$B$He(Brubye$B$N2qe(BMLe$B$KEj$2$^$9!#e(B e$B:#EY%^%$%/%m%=%U%H$G%3%%e%K%F%#$NC4Ev$r$5$l$F$$$kJ}$H!"0lEY$\*OC$r$5$;$Fe(B e$B$$$?$@$1$k\>l$r@$1$…

---

## [Computer software](https://www.ruby-forum.com/t/computer-software/162571)

<div class="topic-metadata">

**Author:** [@sasu](https://www.ruby-forum.com/u/sasu)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/computer-software/162571 "2009-03-11T14:35:52Z")

</div>

\################################################################################## Geniusfind.com categorizes thousands of the most useful, topic- specific search engines on the web. We personally review every search …

---

## [Rails - MethodNotAllowed Error](https://www.ruby-forum.com/t/rails-methodnotallowed-error/162446)

<div class="topic-metadata">

**Author:** [@Jayce\_M](https://www.ruby-forum.com/u/Jayce_M)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 1:49pm UTC](https://www.ruby-forum.com/t/rails-methodnotallowed-error/162446 "2009-03-11T13:49:28Z")

</div>

Hello all, I'm sorry, I'm having issues subscribing to the Rails mailing list, so I’m hoping someone here will be able to help me. Below is an error I continuously get whilst using Rails, however I do not know the ca…

---

## [Gtk+-2.0 problem](https://www.ruby-forum.com/t/gtk-2-0-problem/162546)

<div class="topic-metadata">

**Author:** [@rick\_2047](https://www.ruby-forum.com/u/rick_2047)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/gtk-2-0-problem/162546 "2009-03-11T13:43:13Z")

</div>

I am on arch linux and installed gtk-ruby from the pacman But when i require the lib from my script it gives me this error \[rick@Sophiya ~\]$ irb irb(main):001:0\> require ‘gtk2’ irb: symbol lookup error: /usr/lib/ruby…

---

## [Installing additional patches after 186-26 on Windows](https://www.ruby-forum.com/t/installing-additional-patches-after-186-26-on-windows/162564)

<div class="topic-metadata">

**Author:** [@Richard\_Quadling](https://www.ruby-forum.com/u/Richard_Quadling)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 1:24pm UTC](https://www.ruby-forum.com/t/installing-additional-patches-after-186-26-on-windows/162564 "2009-03-11T13:24:12Z")

</div>

Hi. I’m completely new to ruby. I’m installing Ruby to start playing with it. I’ve installed the Ruby 1.8.6 One-Click Installer from http://www.ruby-lang.org/en/downloads/ I also downloaded the 2 patches; Ruby 1.8.7…

---

## [\[Bug #1267\] DL::Handle#sym segfaults with nil](https://www.ruby-forum.com/t/bug-1267-dl-handle-sym-segfaults-with-nil/162554)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 12:29pm UTC](https://www.ruby-forum.com/t/bug-1267-dl-handle-sym-segfaults-with-nil/162554 "2009-03-11T12:29:39Z")

</div>

Bug #1267: DL::Handle#sym segfaults with nil http://redmine.ruby-lang.org/issues/show/1267 e$B5/I\<\<Te(B: Nobuyoshi N. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext, Target version: 1.9.1 ruby -v: …

---

## [Shell scripting & Windows/Linux Paths](https://www.ruby-forum.com/t/shell-scripting-windows-linux-paths/162507)

<div class="topic-metadata">

**Author:** [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Replies:** 7\
**Last updated:** [March 11, 2009, 11:10am UTC](https://www.ruby-forum.com/t/shell-scripting-windows-linux-paths/162507 "2009-03-11T11:10:58Z")

</div>

What’s the best way to launch executables with Ruby in a way that paths and other command line parameters work on both Windows and Linux? Juan

---

## [FasterCSV, Gruff and Large Data Import](https://www.ruby-forum.com/t/fastercsv-gruff-and-large-data-import/162495)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 9\
**Last updated:** [March 11, 2009, 11:06am UTC](https://www.ruby-forum.com/t/fastercsv-gruff-and-large-data-import/162495 "2009-03-11T11:06:12Z")

</div>

Hi all, I’ve got a CSV file which contains 18k items that I need to import to graph. I’m using FasterCSV and Gruff to import and graph the data. Obviously I’m going about this wrong as it’s overloading the Array cla…

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

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