# Ruby

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

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

---

## [Porting a .java to a .rb to learn both Java and JRuby](https://www.ruby-forum.com/t/porting-a-java-to-a-rb-to-learn-both-java-and-jruby/192857)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/porting-a-java-to-a-rb-to-learn-both-java-and-jruby/192857 "2010-08-12T21:12:35Z")

</div>

Hiya List, In my previous e-mail I described how I want to use JRuby to learn Java (in order to used a kewl Java-API). Also I expressed some thoughts about how I can mentally relate the Java package declaration to my…

---

## [Newb: How do I debug a NameError?](https://www.ruby-forum.com/t/newb-how-do-i-debug-a-nameerror/192865)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 6\
**Last updated:** [August 12, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/newb-how-do-i-debug-a-nameerror/192865 "2010-08-12T21:02:38Z")

</div>

Hello List. I am trying to port a simple Java demo to a JRuby file. The Java demo is listed here: gist:512429 · GitHub Currently I have written this: gist:512430 · GitHub Here is what I see when I run my JRuby file…

---

## [Script Validation](https://www.ruby-forum.com/t/script-validation/193169)

<div class="topic-metadata">

**Author:** [@Thorsten\_Hans](https://www.ruby-forum.com/u/Thorsten_Hans)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/script-validation/193169 "2010-08-12T18:05:15Z")

</div>

Hi, I’m currently hosting IronRuby within a C# Application. Is there any way to validate the IronRuby scripts that will be invoked by the DLR? For example I’d like to prevent users from executing scripts that includ…

---

## [AVG Internet Security 9.0 key till 2018](https://www.ruby-forum.com/t/avg-internet-security-9-0-key-till-2018/193181)

<div class="topic-metadata">

**Author:** [@erin\_adel](https://www.ruby-forum.com/u/erin_adel)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 5:03pm UTC](https://www.ruby-forum.com/t/avg-internet-security-9-0-key-till-2018/193181 "2010-08-12T17:03:46Z")

</div>

AVG Internet Security 9.0 key till 2018! DOWNLOAD http://www.softizers.com/showthread.php/avg-internet-security-9-0-19789.html

---

## [Test/unit.rb:44: warning: instance variable @init\_hook not initialized](https://www.ruby-forum.com/t/test-unit-rb-warning-instance-variable-init-hook-not-initialized/193049)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [August 12, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/test-unit-rb-warning-instance-variable-init-hook-not-initialized/193049 "2010-08-12T16:41:31Z")

</div>

e$B0J2\<$N$h$&$K$9$k$H!"e(Btest/unit.rb:44 e$B$G7Y9p$,=P$k$s$G$9$,!"e(B e$B$I$&$d$C$?$i$&$^$/\>C$;$^$9$+$M!#e(B % ./ruby -Ilib -v test/ruby/test\_condition.rb ruby 1.9.3dev (2010-08-10 trunk 28953) \[i686-linux\] /home/ru…

---

## [Multithreading problem](https://www.ruby-forum.com/t/multithreading-problem/193148)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 7\
**Last updated:** [August 12, 2010, 11:37am UTC](https://www.ruby-forum.com/t/multithreading-problem/193148 "2010-08-12T11:37:40Z")

</div>

probem1: the following program can only run in irb console,it can’t run with command : ruby /home/test.rb,why? require ‘rubygems’ require ‘net/http’ threads = \[\] open(“/home/pt/test/data”,“a+”) do |wfile| str=%w…

---

## [Can't change the value of self - II](https://www.ruby-forum.com/t/cant-change-the-value-of-self-ii/193135)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 6\
**Last updated:** [August 12, 2010, 9:56am UTC](https://www.ruby-forum.com/t/cant-change-the-value-of-self-ii/193135 "2010-08-12T09:56:19Z")

</div>

I’m still not “getting it.” Consider class DirectoryString \< String def initialize(arg) super arg end def convert\_forward\_slash\_to\_back\_slash self.gsub(///, “\\”) end def convert\_forward\_slash\_to\_back\_slash! se…

---

## [Sqlite3-ruby install error on Ubuntu](https://www.ruby-forum.com/t/sqlite3-ruby-install-error-on-ubuntu/193155)

<div class="topic-metadata">

**Author:** [@stel](https://www.ruby-forum.com/u/stel)\
**Replies:** 1\
**Last updated:** [August 12, 2010, 8:59am UTC](https://www.ruby-forum.com/t/sqlite3-ruby-install-error-on-ubuntu/193155 "2010-08-12T08:59:59Z")

</div>

I have the following error during sqlite3-ruby install: Building native extensions. This could take a while… ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extco…

---

## [IOError when using jruby + soap4r](https://www.ruby-forum.com/t/ioerror-when-using-jruby-soap4r/190904)

<div class="topic-metadata">

**Author:** [@Thor\_Henrichsen](https://www.ruby-forum.com/u/Thor_Henrichsen)\
**Replies:** 1\
**Last updated:** [August 12, 2010, 8:44am UTC](https://www.ruby-forum.com/t/ioerror-when-using-jruby-soap4r/190904 "2010-08-12T08:44:58Z")

</div>

Hi, we’re trying to connect to a web service over https. Most of the requests returns ok, but every once in a while we get a “IOError: Connection reset by peer” This only occurs when using JRuby, when running MRI (…

---

## [Using List boxes and Combo Boxes in Ruby on Steel](https://www.ruby-forum.com/t/using-list-boxes-and-combo-boxes-in-ruby-on-steel/193154)

<div class="topic-metadata">

**Author:** [@navin](https://www.ruby-forum.com/u/navin)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 8:32am UTC](https://www.ruby-forum.com/t/using-list-boxes-and-combo-boxes-in-ruby-on-steel/193154 "2010-08-12T08:32:34Z")

</div>

I have just started using Ruby on Steel to create GUI When I simply drag and drop a list box and add some items in the Form and then click Ruby Run Menu, I get the following error message :0:in InitializeComponent': …

---

## [Does jason convert to hash?](https://www.ruby-forum.com/t/does-jason-convert-to-hash/193151)

<div class="topic-metadata">

**Author:** [@shortnose](https://www.ruby-forum.com/u/shortnose)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 7:24am UTC](https://www.ruby-forum.com/t/does-jason-convert-to-hash/193151 "2010-08-12T07:24:50Z")

</div>

I am trying to work with the Etsy API. I make a HTTP request and get data back in json format. I call JSON.parse(table) and the parse method returns the data in something that appears to be a hash. Here is a simplifie…

---

## [Ruby update from 1.8.6 to 1.8.7](https://www.ruby-forum.com/t/ruby-update-from-1-8-6-to-1-8-7/192918)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 6:56am UTC](https://www.ruby-forum.com/t/ruby-update-from-1-8-6-to-1-8-7/192918 "2010-08-12T06:56:25Z")

</div>

I have instantrails installed, updated rails to 2.3.8, but can’t get ruby updated from 1.8.6 to 1.8.7. I have ruby 1.8.7 on a different directory which I can use, but under instantrails… there is a ruby directory with…

---

## [Updating percent completed - single line](https://www.ruby-forum.com/t/updating-percent-completed-single-line/193150)

<div class="topic-metadata">

**Author:** [@fartbagxp](https://www.ruby-forum.com/u/fartbagxp)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 6:53am UTC](https://www.ruby-forum.com/t/updating-percent-completed-single-line/193150 "2010-08-12T06:53:28Z")

</div>

I’m rather new to Ruby and I’m trying to figure out how to print out percentage completed message on a single line instead of printing out massive amount of messages like the following: Percentage completed: 1%, Perc…

---

## [Please unsubscribe](https://www.ruby-forum.com/t/please-unsubscribe/193142)

<div class="topic-metadata">

**Author:** [@Fabian\_Ryf](https://www.ruby-forum.com/u/Fabian_Ryf)\
**Replies:** 1\
**Last updated:** [August 12, 2010, 5:28am UTC](https://www.ruby-forum.com/t/please-unsubscribe/193142 "2010-08-12T05:28:54Z")

</div>

Hello, Please Unsubscribe me from the Ruby T.!!! Thanks for help. greetings from switzerland fabian

---

## [Xslt param with libxslt ....errr!](https://www.ruby-forum.com/t/xslt-param-with-libxslt-errr/193145)

<div class="topic-metadata">

**Author:** [@jtzero](https://www.ruby-forum.com/u/jtzero)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 3:24am UTC](https://www.ruby-forum.com/t/xslt-param-with-libxslt-errr/193145 "2010-08-12T03:24:52Z")

</div>

this one is driving me up a wall, I cant seem to pass a param to the xslt what is wrong here? I keep getting nothingness… \<?xml version="1.0" encoding="UTF-8"?\> \<xsl:stylesheet xmlns:xsl=“XSLT Namespace” version=“1.0”\>…

---

## [\[ANN\] Rumai 3.3.1](https://www.ruby-forum.com/t/ann-rumai-3-3-1/193140)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 2:42am UTC](https://www.ruby-forum.com/t/ann-rumai-3-3-1/193140 "2010-08-12T02:42:44Z")

</div>

Rumai Ruby interface to the wmii window manager http://snk.tuxfamily.org/lib/rumai/ Rumai is a pure \[Ruby\] interface to the \[wmii\] window manager. Its name is a portman…

---

## [Nokogiri help](https://www.ruby-forum.com/t/nokogiri-help/192930)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 4\
**Last updated:** [August 12, 2010, 2:42am UTC](https://www.ruby-forum.com/t/nokogiri-help/192930 "2010-08-12T02:42:40Z")

</div>

I am trying to access some particular children in a document. I find myself having to loop (several levels) through children checking name == “xxx”. I am wondering whething there is more direct way of getting the same…

---

## [How to develop a chat server with Ruby?](https://www.ruby-forum.com/t/how-to-develop-a-chat-server-with-ruby/193103)

<div class="topic-metadata">

**Author:** [@Eva](https://www.ruby-forum.com/u/Eva)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 1:34am UTC](https://www.ruby-forum.com/t/how-to-develop-a-chat-server-with-ruby/193103 "2010-08-12T01:34:12Z")

</div>

Do you have any example for reference? Thanks.

---

## [How to print an array](https://www.ruby-forum.com/t/how-to-print-an-array/193116)

<div class="topic-metadata">

**Author:** [@cisco](https://www.ruby-forum.com/u/cisco)\
**Replies:** 4\
**Last updated:** [August 12, 2010, 12:27am UTC](https://www.ruby-forum.com/t/how-to-print-an-array/193116 "2010-08-12T00:27:26Z")

</div>

Hi, I have done this method in order to put the content of a txt file into an array. Now I should have to construct a bucle out of the method to print the content of the array in the screen but I dont’t know what to d…

---

## [Crunching Text Not Working in a Loop](https://www.ruby-forum.com/t/crunching-text-not-working-in-a-loop/193014)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 4\
**Last updated:** [August 12, 2010, 12:23am UTC](https://www.ruby-forum.com/t/crunching-text-not-working-in-a-loop/193014 "2010-08-12T00:23:02Z")

</div>

Greetings, folks! I need to be able to capitalize words inside quote marks, as part of a string of words. I need to use proper publishing capitalization protocols which is more involved than simply making the first le…

---

## [Syntax error, unexpected '}', expecting kEND](https://www.ruby-forum.com/t/syntax-error-unexpected-expecting-kend/193134)

<div class="topic-metadata">

**Author:** [@rainyglade](https://www.ruby-forum.com/u/rainyglade)\
**Replies:** 4\
**Last updated:** [August 12, 2010, 12:22am UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-expecting-kend/193134 "2010-08-12T00:22:09Z")

</div>

I’m using ruby 1.8.6 (2010-02-04 patchlevel 398) \[i386-mingw32\], WinXP and Notepad++ in the Unix mode (for line endings) I have the following code: q = \[1.0, 4.0, 10.0, 27.0, 50.0, 600.0, 1000.0, 5833.0, 6250.0, 1500…

---

## [Camera\_Project](https://www.ruby-forum.com/t/camera-project/193066)

<div class="topic-metadata">

**Author:** [@kkirancbn](https://www.ruby-forum.com/u/kkirancbn)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 12:12am UTC](https://www.ruby-forum.com/t/camera-project/193066 "2010-08-12T00:12:56Z")

</div>

Hi, Im doing a proj on a camera that monitors the chest movements when breath. I need help on this proj. can any one help me??? As i have very low knowledge on Ruby i cant really play with this proj since i had to ta…

---

## [Safari display problems](https://www.ruby-forum.com/t/safari-display-problems/193125)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 4\
**Last updated:** [August 11, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/safari-display-problems/193125 "2010-08-11T20:58:26Z")

</div>

Hello, my problem today is not directly linked to Ruby (well, don’t think so at least). I’m developping a website using RubyOnRails framework. Everythings works just fine with IE and FF but in Safari some code is disp…

---

## [Hel;p with Tip Calculator](https://www.ruby-forum.com/t/hel-p-with-tip-calculator/192929)

<div class="topic-metadata">

**Author:** [@humandictionary](https://www.ruby-forum.com/u/humandictionary)\
**Replies:** 8\
**Last updated:** [August 11, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/hel-p-with-tip-calculator/192929 "2010-08-11T20:15:42Z")

</div>

puts “What is the total?” input = gets.chomp.to\_i puts “What percent do you want to tip?” input2 = gets.chomp.to\_i percent = 100 tip = input2 \* input \* 0.01 puts “You should tip $#{tip}” This is a tip calculator. …

---

## ["NaN".to\_f revisited](https://www.ruby-forum.com/t/nan-to-f-revisited/193088)

<div class="topic-metadata">

**Author:** [@Ryo](https://www.ruby-forum.com/u/Ryo)\
**Replies:** 6\
**Last updated:** [August 11, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/nan-to-f-revisited/193088 "2010-08-11T18:16:52Z")

</div>

Hi all, I thought “.to\_s.to\_f” should be an identity operation on any floating point number, apart from a potential truncation error. On Ruby 1.8.7, a = 0.0/0.0 a.to\_s # =\> “NaN” “NaN”.to\_f #=\> 0.0 Therefore, a.t…

---

## [Activerecord-jdbc trouble persisting Oracle DATE columns](https://www.ruby-forum.com/t/activerecord-jdbc-trouble-persisting-oracle-date-columns/193121)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 5:52pm UTC](https://www.ruby-forum.com/t/activerecord-jdbc-trouble-persisting-oracle-date-columns/193121 "2010-08-11T17:52:51Z")

</div>

Yesterday I had run into a problem with :date attributes on Oracle/ activerecord-jdbc. I created this ticket: http://jira.codehaus.org/browse/JRUBY-5003 I realize now that should have been created on http://kenai.com…

---

## [Cucumber](https://www.ruby-forum.com/t/cucumber/193117)

<div class="topic-metadata">

**Author:** [@arihan](https://www.ruby-forum.com/u/arihan)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 4:59pm UTC](https://www.ruby-forum.com/t/cucumber/193117 "2010-08-11T16:59:28Z")

</div>

Hi All, I am using ruby+watir for agile testing since long time. I was trying to use cucumber . As I am new to Cucumber so can anyone please guide me step by step how to run a sample cucumber test. if this is not the…

---

## [Db migration error](https://www.ruby-forum.com/t/db-migration-error/193101)

<div class="topic-metadata">

**Author:** [@linuxawy](https://www.ruby-forum.com/u/linuxawy)\
**Replies:** 1\
**Last updated:** [August 11, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/db-migration-error/193101 "2010-08-11T16:39:05Z")

</div>

thanks to you all i was able to connect to the db at last but the driver gives me an error i cant understand. It looks like this. \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) \*\* Execute enviro…

---

## [Error: Bignum too big to convert into \`long'](https://www.ruby-forum.com/t/error-bignum-too-big-to-convert-into-long/193012)

<div class="topic-metadata">

**Author:** [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Replies:** 11\
**Last updated:** [August 11, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/error-bignum-too-big-to-convert-into-long/193012 "2010-08-11T16:27:56Z")

</div>

Hi, I’ve got a bit of code that I borrowed from here Re: Microsoft Timestamp (Active Directory) - Ruby - Ruby-Forum. I use it to convert MS timestamps into a ruby Time object. It works fine on Mac/Linux, but not on …

---

## [\[Bug #3650\] NEWS$B$NIT@09g(B](https://www.ruby-forum.com/t/bug-3650-news-b-nit-09g-b/192647)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 4\
**Last updated:** [August 11, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/bug-3650-news-b-nit-09g-b/192647 "2010-08-11T14:07:26Z")

</div>

Bug #3650: NEWSe$B$NIT@09ge(B http://redmine.ruby-lang.org/issues/show/3650 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: DOC, Target version: 1.9.2 ruby -v: r28846 g…

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

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