# Ruby

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

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

---

## [How to add own blog to "Planet RubyOnRails"](https://www.ruby-forum.com/t/how-to-add-own-blog-to-planet-rubyonrails/102245)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 0\
**Last updated:** [August 13, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/how-to-add-own-blog-to-planet-rubyonrails/102245 "2006-08-13T22:00:29Z")

</div>

Hi. Could anybody tell me how to add own blog ( blog.pomozov.info is Expired or Suspended. ) to “Planet RubyOnRails” feed agregator. As I understand it should be “Add feed” somewhere on the right sidebar, but only t…

---

## [Gems, helpers and rails](https://www.ruby-forum.com/t/gems-helpers-and-rails/102240)

<div class="topic-metadata">

**Author:** [@ghost](https://www.ruby-forum.com/u/ghost)\
**Replies:** 2\
**Last updated:** [August 13, 2006, 9:38pm UTC](https://www.ruby-forum.com/t/gems-helpers-and-rails/102240 "2006-08-13T21:38:51Z")

</div>

Hi i’m trying to get the paypal library working in my rails app. I know this is the ruby forum but i think this might be half a ruby question. I installed the paypal gem. $ gem list \*\*\* LOCAL GEMS \*\*\* ##rails ones +…

---

## [Require FireRuby](https://www.ruby-forum.com/t/require-fireruby/102209)

<div class="topic-metadata">

**Author:** [@tomas](https://www.ruby-forum.com/u/tomas)\
**Replies:** 0\
**Last updated:** [August 12, 2006, 9:50pm UTC](https://www.ruby-forum.com/t/require-fireruby/102209 "2006-08-12T21:50:04Z")

</div>

Hi, following script: require ‘rubygems’ require ‘fireruby’ include FireRuby sql= “foo” db= Database.new(" … “) db\_fire= db.connect(” … ", " … ") tx= Transaction.new(db\_fire) tx= db\_fire.start\_transaction s= S…

---

## [\[ANN\] Cerberus 0.2.0 Released](https://www.ruby-forum.com/t/ann-cerberus-0-2-0-released/102208)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 0\
**Last updated:** [August 12, 2006, 9:37pm UTC](https://www.ruby-forum.com/t/ann-cerberus-0-2-0-released/102208 "2006-08-12T21:37:40Z")

</div>

Hi, all. I am glad to present you new version of Cerberus. What Cerberus is? Cerberus is a Continuous Builder software for Ruby. Cerberus could be periodically run from scheduler and check if application tests are bro…

---

## [Crazy gsub/regex scheme - can this be done better?](https://www.ruby-forum.com/t/crazy-gsub-regex-scheme-can-this-be-done-better/102158)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [August 12, 2006, 1:49am UTC](https://www.ruby-forum.com/t/crazy-gsub-regex-scheme-can-this-be-done-better/102158 "2006-08-12T01:49:05Z")

</div>

All, I have a method (that I believe to be working) that will take arbitrary HTML and quote all of the non-quoted attributes (so href=junk would become href=“junk”). The method is below. As you can see it’s a gsub w…

---

## [Code block confusion](https://www.ruby-forum.com/t/code-block-confusion/102126)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 1\
**Last updated:** [August 11, 2006, 4:14am UTC](https://www.ruby-forum.com/t/code-block-confusion/102126 "2006-08-11T04:14:27Z")

</div>

I am sifting through the Ruby bible “Pickaxe” and I am not sure how you figure out which methods can be passed a code block. I have seen them used in arrays \[1,2,3,4\].each{|x|puts x} ; which sort of makes sense, but t…

---

## [Gem rdoc failing](https://www.ruby-forum.com/t/gem-rdoc-failing/102112)

<div class="topic-metadata">

**Author:** [@dasil003](https://www.ruby-forum.com/u/dasil003)\
**Replies:** 0\
**Last updated:** [August 10, 2006, 10:23pm UTC](https://www.ruby-forum.com/t/gem-rdoc-failing/102112 "2006-08-10T22:23:24Z")

</div>

Previously upon installing gems with gem install -d rdocs would be generated and stored in the expected location /usr/lib/…/1.8/doc However I recently did some explicit gem installs and forgot to include the -d option…

---

## [Using YAML?](https://www.ruby-forum.com/t/using-yaml/102095)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [August 10, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/using-yaml/102095 "2006-08-10T20:20:06Z")

</div>

I have a spreadsheet with 3 columns in it, and 174 rows. I need to cross-reference the items in one column with their corresponding entry in the other column. Here is a sample with the first 3 entries in this table. F…

---

## [Strange (to me) dbi access statements](https://www.ruby-forum.com/t/strange-to-me-dbi-access-statements/102099)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 0\
**Last updated:** [August 10, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/strange-to-me-dbi-access-statements/102099 "2006-08-10T19:18:09Z")

</div>

Hi, I’m using unixODBC with ruby. When I pass a sql select statment like “Select custno,company from arcust where custno = ‘ARMFOO’” All works. But if I pass sql statement like “Select \* from arcust” I get the err…

---

## [\[BTS\] Dr Nic's Magic Models - Class creation](https://www.ruby-forum.com/t/bts-dr-nics-magic-models-class-creation/102093)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 0\
**Last updated:** [August 10, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/bts-dr-nics-magic-models-class-creation/102093 "2006-08-10T16:37:15Z")

</div>

\[Cross post on Ruby on Rails list\] For anyone interesting in some meta-programming ideas, I’ve written up a short explanation about the Class Creation feature of Dr Nic’s Magic Models. I know most forum posts start w…

---

## [Newbie: Symbol as array index error](https://www.ruby-forum.com/t/newbie-symbol-as-array-index-error/64566)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [August 10, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/newbie-symbol-as-array-index-error/64566 "2006-08-10T15:54:10Z")

</div>

Hi all I’m terrible sorry for this newbie question, but I really can’t figure it out. :open\_mouth: I want to create a method that accepts a hash of parameters: def write\_email \*args ‘’ end But when I call it… \<%=…

---

## [Job Offer: Agile Tapestry, Spring Webflow, Ruby (Prague, CR)](https://www.ruby-forum.com/t/job-offer-agile-tapestry-spring-webflow-ruby-prague-cr/102011)

<div class="topic-metadata">

**Author:** [@kajism](https://www.ruby-forum.com/u/kajism)\
**Replies:** 4\
**Last updated:** [August 10, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/job-offer-agile-tapestry-spring-webflow-ruby-prague-cr/102011 "2006-08-10T15:07:56Z")

</div>

Hi, We are searching for enthusisastic agile developers for full time job based in Prague. Let us know, if you like to write tests, trigger automatic builds, do refactoring, code reviews, create code generators, do m…

---

## [Signaling Ruby from C/C++](https://www.ruby-forum.com/t/signaling-ruby-from-c-c/100317)

<div class="topic-metadata">

**Author:** [@asterix](https://www.ruby-forum.com/u/asterix)\
**Replies:** 20\
**Last updated:** [August 10, 2006, 12:48pm UTC](https://www.ruby-forum.com/t/signaling-ruby-from-c-c/100317 "2006-08-10T12:48:52Z")

</div>

Hello, I would like to send a signal from c to ruby. So that ruby knows, that there is some new data in c that can be fetched and extracted. Currently I’m using ruby 1.8.5 on WindowsXP. Are there any possibilities li…

---

## [Tutorial on writing extensions for C++](https://www.ruby-forum.com/t/tutorial-on-writing-extensions-for-c/64541)

<div class="topic-metadata">

**Author:** [@rtijoriwala](https://www.ruby-forum.com/u/rtijoriwala)\
**Replies:** 2\
**Last updated:** [August 10, 2006, 3:44am UTC](https://www.ruby-forum.com/t/tutorial-on-writing-extensions-for-c/64541 "2006-08-10T03:44:46Z")

</div>

I am trying to find a tutorial for writing extensions for C++ libraries. I have my existing libraries which are C++ and want to use them in Ruby. I know SWIG generates an wrapper but am looking for other options. Any …

---

## [Ruby-VPI 0.9.1](https://www.ruby-forum.com/t/ruby-vpi-0-9-1/64577)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [August 10, 2006, 3:11am UTC](https://www.ruby-forum.com/t/ruby-vpi-0-9-1/64577 "2006-08-10T03:11:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Website: http://ruby-vpi.rubyforge.org Tutorial…

---

## [Enumerable#all? and empty arrays](https://www.ruby-forum.com/t/enumerable-all-and-empty-arrays/64518)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 7\
**Last updated:** [August 10, 2006, 1:56am UTC](https://www.ruby-forum.com/t/enumerable-all-and-empty-arrays/64518 "2006-08-10T01:56:42Z")

</div>

Hello I found this to be somewhat amusing: a = \[\] =\> \[\] a.all? =\> true a.all? { |i| i == 10 } =\> true Is there any reasoning for Enumerable#all? to always return true for empty arrays? Best regards, An…

---

## [Fedora core 5 and tcltklib](https://www.ruby-forum.com/t/fedora-core-5-and-tcltklib/64569)

<div class="topic-metadata">

**Author:** [@Ed\_Redman](https://www.ruby-forum.com/u/Ed_Redman)\
**Replies:** 0\
**Last updated:** [August 10, 2006, 1:20am UTC](https://www.ruby-forum.com/t/fedora-core-5-and-tcltklib/64569 "2006-08-10T01:20:41Z")

</div>

I have fedora Core 5 running on two machines (both pentium 4 dual boot machines). I have installed ruby (ruby 1.8.4 (2005-12-24) \[i386-linux\]) and ruby tk (ruby-tcltk-1.8.4). When I run irb and add require ‘tk’. This…

---

## [Unable to call Java from a Ruby Script](https://www.ruby-forum.com/t/unable-to-call-java-from-a-ruby-script/64515)

<div class="topic-metadata">

**Author:** [@trupti](https://www.ruby-forum.com/u/trupti)\
**Replies:** 1\
**Last updated:** [August 10, 2006, 1:11am UTC](https://www.ruby-forum.com/t/unable-to-call-java-from-a-ruby-script/64515 "2006-08-10T01:11:40Z")

</div>

I am trying to call a java class from my ruby script. I have installed JRuby and JRUBY\_HOME and JAVA\_HOME environment variables are pointing to the correct locations. However I am not able to run a ruby file which us…

---

## [Parse error, unexpected $, expecting kEND](https://www.ruby-forum.com/t/parse-error-unexpected-expecting-kend/101969)

<div class="topic-metadata">

**Author:** [@slain](https://www.ruby-forum.com/u/slain)\
**Replies:** 2\
**Last updated:** [August 10, 2006, 12:29am UTC](https://www.ruby-forum.com/t/parse-error-unexpected-expecting-kend/101969 "2006-08-10T00:29:38Z")

</div>

Does anyone have any techniques or tools that they use to help narrow these down in the code at all? I mean the current method of scanning/folding the code to see if I can tell where the missing ‘end’ is is a nightmar…

---

## [Question about "No such file to load -- rexml/encodings/ISO-](https://www.ruby-forum.com/t/question-about-no-such-file-to-load-rexml-encodings-iso/64559)

<div class="topic-metadata">

**Author:** [@Yaoyao\_Gu](https://www.ruby-forum.com/u/Yaoyao_Gu)\
**Replies:** 5\
**Last updated:** [August 10, 2006, 12:26am UTC](https://www.ruby-forum.com/t/question-about-no-such-file-to-load-rexml-encodings-iso/64559 "2006-08-10T00:26:38Z")

</div>

Hi all, I am new to Ruby, so forgave me if this question has been asked before. I am running a software on Windows XP which is written in Ruby . The script has been converted to exe. I kept getting the following error …

---

## [$SAFE == 4 $B$G$N(B toplevel $BDj?t%"%/%;%9(B](https://www.ruby-forum.com/t/safe-4-b-g-n-b-toplevel-bdj-t-9-b/101518)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 2\
**Last updated:** [August 9, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/safe-4-b-g-n-b-toplevel-bdj-t-9-b/101518 "2006-08-09T22:59:32Z")

</div>

e$B1J0fe(B@e$BCNG=!%6e9)Bg$G$9!%e(B e$BL$F’@.2LJs9p=\`Hw$KBP$9$k8=\<BF(Hre(B (^^; e$B$G9M$($F$$$?$N$G$9$,!$e(B $SAFE \>= 4 e$B$G$Ne(B :: e$B$K$h$ke(B toplevel e$BDj?t$ND\>@;XDj$re(B e$B6X;$9$k$N$O$I$&$G$7$g$&$+!)e(B e$B…

---

## [Simple looping question](https://www.ruby-forum.com/t/simple-looping-question/101947)

<div class="topic-metadata">

**Author:** [@aquafina](https://www.ruby-forum.com/u/aquafina)\
**Replies:** 4\
**Last updated:** [August 9, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/simple-looping-question/101947 "2006-08-09T22:57:12Z")

</div>

I have some data in a YAML file that looks like: 20060712: \[9.174, 131452\] 20060719: \[9.466, 131805\] 20060727: \[9.197, 132150\] 20060807: \[9.778, 132540\] It represents dates, gallons of gas, and mileage, respectively…

---

## [nextPowerOf2(n)](https://www.ruby-forum.com/t/nextpowerof2-n/101709)

<div class="topic-metadata">

**Author:** [@pixant](https://www.ruby-forum.com/u/pixant)\
**Replies:** 29\
**Last updated:** [August 9, 2006, 10:32pm UTC](https://www.ruby-forum.com/t/nextpowerof2-n/101709 "2006-08-09T22:32:28Z")

</div>

Hi, Can someone tell me if there’s a better way to do this? It takes a number and returns the next power of 2 up (or the original if it was already a power of 2) Specifically, are there features of Ruby that I should…

---

## [Installing narray on Windows](https://www.ruby-forum.com/t/installing-narray-on-windows/64549)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 1\
**Last updated:** [August 9, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/installing-narray-on-windows/64549 "2006-08-09T22:05:26Z")

</div>

I’m trying to install the narray package found here: http://codeforpeople.com/lib/ruby/rb-gsl-win/ And when I unzipped it I gather that it hasn’t been precompiled. Okay. So I ruby the extconf.rb and then try to make …

---

## [Re: Rails 1.1.5: Mandatory security patch (and other tidbits](https://www.ruby-forum.com/t/re-rails-1-1-5-mandatory-security-patch-and-other-tidbits/64539)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [August 9, 2006, 9:02pm UTC](https://www.ruby-forum.com/t/re-rails-1-1-5-mandatory-security-patch-and-other-tidbits/64539 "2006-08-09T21:02:20Z")

</div>

This is a MANDATORY upgrade for anyone not running on a very recent This seems misguided to me. One of the things that I have always appreaciated about the general open source environment is that when there is a se…

---

## [Re: Rails 1.1.5: Mandatory security patch (and other tidbits](https://www.ruby-forum.com/t/re-rails-1-1-5-mandatory-security-patch-and-other-tidbits/64536)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [August 9, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/re-rails-1-1-5-mandatory-security-patch-and-other-tidbits/64536 "2006-08-09T20:14:17Z")

</div>

\-----Original Message----- From: David Heinemeier H. \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, August 09, 2006 11:54 AM To: ruby-talk ML Subject: \[ANN\] Rails 1.1.5: Mandatory security patch (and …

---

## [Goto in Ruby?](https://www.ruby-forum.com/t/goto-in-ruby/101903)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 8\
**Last updated:** [August 9, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/goto-in-ruby/101903 "2006-08-09T19:47:15Z")

</div>

I have a simple web GUI that I would like to read a file and enter data into This is my class class Form def initialize @filename = “search.txt” end def enter\_data read\_in\_test\_data.each { |x| line = x.chomp #n…

---

## [Code structure and using "require"](https://www.ruby-forum.com/t/code-structure-and-using-require/64513)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 4\
**Last updated:** [August 9, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/code-structure-and-using-require/64513 "2006-08-09T18:50:09Z")

</div>

Hi I’m coming from a java world and I’m trying to understand the structure of a Ruby project and how 'require’s are resolved. In java we have this nice package routine where we put our .java files into a directory hi…

---

## [Why is this returning nil?](https://www.ruby-forum.com/t/why-is-this-returning-nil/64512)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 7\
**Last updated:** [August 9, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/why-is-this-returning-nil/64512 "2006-08-09T18:41:09Z")

</div>

class User def initialize(level, status) @level = level @status = status end def finda if @status == "active" print #{@level} else puts "user not exist" end end end user1 = User.new(1,…

---

## [\[SOC\] Ariel 0.0.1 released](https://www.ruby-forum.com/t/soc-ariel-0-0-1-released/64507)

<div class="topic-metadata">

**Author:** [@ASSSBradbury](https://www.ruby-forum.com/u/ASSSBradbury)\
**Replies:** 0\
**Last updated:** [August 9, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/soc-ariel-0-0-1-released/64507 "2006-08-09T17:43:57Z")

</div>

= Ariel release 0.0.1 == Install gem install ariel (if it’s not yet propagated either wait or grab the .gem from my rubyforge page and install that). == Announcement This is the first public release of Ariel - A Ru…

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

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