# Ruby

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

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

---

## [Re: Programmer Ping-Pong (#150)](https://www.ruby-forum.com/t/re-programmer-ping-pong-150/229167)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 3:35am UTC](https://www.ruby-forum.com/t/re-programmer-ping-pong-150/229167 "2007-12-19T03:35:11Z")

</div>

On 12/18/07, Adam S. wrote: I added test\_remove\_multiple\_nodes - there are definitely a few mistakes in the current remove :slight\_smile: Seems the only mistake was that remove was expecting AVLTree#each to return …

---

## [Self and private setter](https://www.ruby-forum.com/t/self-and-private-setter/123471)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 7\
**Last updated:** [December 19, 2007, 1:21am UTC](https://www.ruby-forum.com/t/self-and-private-setter/123471 "2007-12-19T01:21:56Z")

</div>

A private method cannot be called with an explicit receiver – even self – except when calling a private setter method, because otherwise an assignment to a local variable will be assumed. For example: class Q def a1 …

---

## [Ruby APIs for facebook questions & answers Mailing List/Forum Now Live - Join Us](https://www.ruby-forum.com/t/ruby-apis-for-facebook-questions-answers-mailing-list-forum-now-live-join-us/123558)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 1:20am UTC](https://www.ruby-forum.com/t/ruby-apis-for-facebook-questions-answers-mailing-list-forum-now-live-join-us/123558 "2007-12-19T01:20:46Z")

</div>

Hello, Developing Facebook social web apps or services in Ruby? Join us and post your ruby facebook API questions & answers, news & updates, and more to the new rfacebook mailing list/forum. Latest topics include: …

---

## [Marshal question](https://www.ruby-forum.com/t/marshal-question/123590)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 12:39am UTC](https://www.ruby-forum.com/t/marshal-question/123590 "2007-12-19T00:39:14Z")

</div>

hi, is there some character or sequence of characters which is guaranteed not to occur in a string produced by Marshal.dump on some arbitrary object hierarchy. thanks, \_c

---

## [Action + return + if on single line?](https://www.ruby-forum.com/t/action-return-if-on-single-line/123585)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 12:09am UTC](https://www.ruby-forum.com/t/action-return-if-on-single-line/123585 "2007-12-19T00:09:27Z")

</div>

Is it possible to have an if-statement that both do something and returns from a method - in one single line? I often have code where an action has to be performed conditionally and then exit/return/break, and an if/e…

---

## [DBI Download](https://www.ruby-forum.com/t/dbi-download/123574)

<div class="topic-metadata">

**Author:** [@skycube](https://www.ruby-forum.com/u/skycube)\
**Replies:** 3\
**Last updated:** [December 18, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/dbi-download/123574 "2007-12-18T22:49:14Z")

</div>

Hello all, Does anyone know where can I find the download for Ruby::DBI? I tried Ruby Forge, but there download only has a Ruby script inside, which doesn’t seem to do anything by itself. The download at sourceforge…

---

## [OLE - Python MakePy utility](https://www.ruby-forum.com/t/ole-python-makepy-utility/123581)

<div class="topic-metadata">

**Author:** [@zxem](https://www.ruby-forum.com/u/zxem)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/ole-python-makepy-utility/123581 "2007-12-18T22:46:18Z")

</div>

Hi, Is there an existing tool in Ruby OLE which does the same job as Python MakePy utility? Cheers! Xin

---

## [FW: Review of Peter Bacon Darwin's Fixnum patch](https://www.ruby-forum.com/t/fw-review-of-peter-bacon-darwins-fixnum-patch/123432)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/fw-review-of-peter-bacon-darwins-fixnum-patch/123432 "2007-12-18T21:50:40Z")

</div>

FYI We did this internal review last week (we had a ski day interfere with work on Friday :))- am working on some minor changes to the shelveset before checking in later today. Thanks! -John From: John M. Sent: Thu…

---

## [Multibyte characters in curses](https://www.ruby-forum.com/t/multibyte-characters-in-curses/122894)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/multibyte-characters-in-curses/122894 "2007-12-18T21:04:57Z")

</div>

Hello Am I the only one who wishes this worked? Or does it work for everybody and it’s broken only for me? I tried to look at a ncurses sample program, and made a simple patch that makes utf-8 sort of work with ncurs…

---

## [Multidimensional Possibilities](https://www.ruby-forum.com/t/multidimensional-possibilities/123554)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/multidimensional-possibilities/123554 "2007-12-18T21:02:37Z")

</div>

I recently had to solve a one-off problem for work, and the solution I came up with was about as non-DRY as you can imagine. I couldn’t figure out how to make it simple, however. In order to expand my knowledge, I’m h…

---

## [Confirm My Ruby/GUI investigation?](https://www.ruby-forum.com/t/confirm-my-ruby-gui-investigation/122590)

<div class="topic-metadata">

**Author:** [@wrishel](https://www.ruby-forum.com/u/wrishel)\
**Replies:** 13\
**Last updated:** [December 18, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/confirm-my-ruby-gui-investigation/122590 "2007-12-18T19:48:32Z")

</div>

I have been reviewing the copious old threads (and the various cited web sites) on this topic from the point of view of my needs. I think I have some conclusions and am hoping that some of you with actual experience c…

---

## [Calling different methods in a single file](https://www.ruby-forum.com/t/calling-different-methods-in-a-single-file/123563)

<div class="topic-metadata">

**Author:** [@rubist](https://www.ruby-forum.com/u/rubist)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/calling-different-methods-in-a-single-file/123563 "2007-12-18T19:42:40Z")

</div>

Hi All, I was able to successfully create a class file login and login into my application using ruby code. I have created one more class file which selects drop down values in my app. I am not able to call both the…

---

## [How to pass unkown length of parameters into a class method](https://www.ruby-forum.com/t/how-to-pass-unkown-length-of-parameters-into-a-class-method/123524)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/how-to-pass-unkown-length-of-parameters-into-a-class-method/123524 "2007-12-18T19:11:04Z")

</div>

\#!/usr/bin/ruby class Example def Examplemethod(var1) puts var1 end end Check = Example.new Check.Examplemethod(“Loftz”) Hey guys So this is just calling a method that prints out a name. Im just wondering can i…

---

## [Deleting files with Net/ftp](https://www.ruby-forum.com/t/deleting-files-with-net-ftp/123532)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/deleting-files-with-net-ftp/123532 "2007-12-18T18:37:56Z")

</div>

Hi, I’m having to go to a website every day to pull files for editors at my company. Unfortunately, the web site isn’t maintained that well–they keep old files. I have the power to, and I’d like to, delete any old fi…

---

## [Sending response headers with eRuby](https://www.ruby-forum.com/t/sending-response-headers-with-eruby/123551)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/sending-response-headers-with-eruby/123551 "2007-12-18T18:18:54Z")

</div>

I have a little Ruby program that runs over HTTP via eRuby. I need to be able to send custom HTTP status codes (and other headers) but it seems that they’re all set and flushed by the time my rhtml file is processed. …

---

## [Networked Marshal Questions](https://www.ruby-forum.com/t/networked-marshal-questions/123533)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 3\
**Last updated:** [December 18, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/networked-marshal-questions/123533 "2007-12-18T17:44:21Z")

</div>

hi all, what are the security implications of dumping/loading marshalled objects over the network if any? if i marshal a float or an array of floats, am i guaranteed to have the same exact floating point value upon l…

---

## [Activerecord-oracle-adapter missing in Rails 2.0.2](https://www.ruby-forum.com/t/activerecord-oracle-adapter-missing-in-rails-2-0-2/123540)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/activerecord-oracle-adapter-missing-in-rails-2-0-2/123540 "2007-12-18T16:41:32Z")

</div>

Subject line says it all. Was oracle support canceled? Delayed? Forgotten?

---

## [Convert a char into numbre](https://www.ruby-forum.com/t/convert-a-char-into-numbre/123537)

<div class="topic-metadata">

**Author:** [@Roberto\_Decurnex\_Go](https://www.ruby-forum.com/u/Roberto_Decurnex_Go)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/convert-a-char-into-numbre/123537 "2007-12-18T16:14:31Z")

</div>

I am have an String object like “12345678”, and an Array object like \[ 8,7,6,5,4,3,2,1\]. The main idea is: myStr = ‘12345678’ myArray = \[8,7,6,5,4,3,2,1\] total = 0 for i in 0…7 total+= myStr\[ i \].to\_i \* myArray\[ …

---

## [Bignum#to\_s doesn't check base](https://www.ruby-forum.com/t/bignum-to-s-doesnt-check-base/123542)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/bignum-to-s-doesnt-check-base/123542 "2007-12-18T15:53:22Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B Bignum#to\_s e$B$Ne(B base e$B$NHO0O%A%’%C%/$,F0$$$F$^$;$s!#e(B $ ./ruby -ve ‘(2\*\*30).to\_s(1)’ ruby 1.9.0 (2007-12-18 patchlevel 0) \[i686-linux\] -e:1:in to\_s': negative string size (or size too …

---

## [Language Popularity - PHP vs Ruby?](https://www.ruby-forum.com/t/language-popularity-php-vs-ruby/119381)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 25\
**Last updated:** [December 18, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/language-popularity-php-vs-ruby/119381 "2007-12-18T13:56:08Z")

</div>

Hi, I decided to make this rather short, because I think noone wants to read a lot of long stuff. It is still too long though. But please believe me, I thought some time about the content. On http://www.langpop.com/ …

---

## [SEGV by test/ruby/test\_fiber.rb](https://www.ruby-forum.com/t/segv-by-test-ruby-test-fiber-rb/122172)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 7\
**Last updated:** [December 18, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/segv-by-test-ruby-test-fiber-rb/122172 "2007-12-18T13:32:55Z")

</div>

test/ruby/test\_fiber.rb e$B$G$9$,!"0J2\<$N$h$&$Ke(B insnhelper.ci e$BFb$Ne(B rb\_ary\_new4 e$B8F$S=P$7$N$H$3$m$Ge(B GC e$B$rKh2s5/F0$9$k$h$&$Ke(B e$B$9$k$H?t2s$K0lEY$/$i$$$N3d9g$Ge(B SEGV e$B$9$k$h$&$K$J$j$^$9!#e(B Inde…

---

## [Creation string depends of variables](https://www.ruby-forum.com/t/creation-string-depends-of-variables/123502)

<div class="topic-metadata">

**Author:** [@enjo20](https://www.ruby-forum.com/u/enjo20)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/creation-string-depends-of-variables/123502 "2007-12-18T12:51:40Z")

</div>

I wanna create a full string depends on some variables. let me give example. def sayOddOrNot(aNum) sFullStr = \<\< END\_OF\_FULL\_STR the num is SOMETHING(ODD OR NOT) END\_FULL\_STR end how can I complete a full string d…

---

## [Curve fitting to data](https://www.ruby-forum.com/t/curve-fitting-to-data/123356)

<div class="topic-metadata">

**Author:** [@philippeqc](https://www.ruby-forum.com/u/philippeqc)\
**Replies:** 10\
**Last updated:** [December 18, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/curve-fitting-to-data/123356 "2007-12-18T12:26:26Z")

</div>

People, Does anyone know of a Ruby app that will fit a curve to data eg fitting a curve to: -10 0 -9 19 -8 36 -7 51 -6 64 -5 75 -4 84 -3 91 -2 96 -1 99 0 100 1 99 2 96 3 91 4 84 5 7…

---

## [Rss and base64](https://www.ruby-forum.com/t/rss-and-base64/123506)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 10:03am UTC](https://www.ruby-forum.com/t/rss-and-base64/123506 "2007-12-18T10:03:48Z")

</div>

lib/base64.rb e$B$,\>C$($^$7$?$,!"e(Blib/rss/atom.rb e$B$,e(B base64 e$B$r;H$Ce(B e$B$F$$$k$?$ae(B test-all e$B$,F0$+$J$/$J$C$F$$$^$9!#e(B % make test-all ./miniruby ./runruby.rb --extout=.ext – “./test/runner.rb” …

---

## [Programmer Ping-Pong (#150)](https://www.ruby-forum.com/t/programmer-ping-pong-150/123155)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 44\
**Last updated:** [December 18, 2007, 9:10am UTC](https://www.ruby-forum.com/t/programmer-ping-pong-150/123155 "2007-12-18T09:10:23Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Ruby $B$NCN$i$J$$(B encoding$B!"$"$l0J30$N(B encoding](https://www.ruby-forum.com/t/ruby-b-ncn-i-j-b-encoding-b-l0j30-n-b-encoding/122832)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 7\
**Last updated:** [December 18, 2007, 6:58am UTC](https://www.ruby-forum.com/t/ruby-b-ncn-i-j-b-encoding-b-l0j30-n-b-encoding/122832 "2007-12-18T06:58:08Z")

</div>

e$B@.@%$G$9!#e(B Yukihiro M. wrote: |\> Encoding.unknown? |\> |\> e$B$N$h$&$JBeMQIJ%U%i%0$rDs6!$9$k$3$H$G$9!#e(B | |e$B%l%W%j%+%(%s%3!\<%G%#%s%0$Oe(Bbased\_encodinge$B$,e(Bnon-nil e$B$rJV$7$^$9$+$i!"e(B |e$B0l1~$=$l$…

---

## [Trying to install rails 2.0.2 via gem](https://www.ruby-forum.com/t/trying-to-install-rails-2-0-2-via-gem/123482)

<div class="topic-metadata">

**Author:** [@hoodwink](https://www.ruby-forum.com/u/hoodwink)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 6:27am UTC](https://www.ruby-forum.com/t/trying-to-install-rails-2-0-2-via-gem/123482 "2007-12-18T06:27:45Z")

</div>

Host is Debian Sid (sidux) Installed Ruby 1.8.6 and related rubygems 0.9.5 rake 0.7.3 (via gem) When I tried 'gem install rails --include=dependancies. I got a selection of several choices, and I chose 2.0.2, but th…

---

## [WikiInclude on 0.11 - Noah Kantrowitz blocks bug-fix](https://www.ruby-forum.com/t/wikiinclude-on-0-11-noah-kantrowitz-blocks-bug-fix/123476)

<div class="topic-metadata">

**Author:** [@Ilias\_L](https://www.ruby-forum.com/u/Ilias_L)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 5:01am UTC](https://www.ruby-forum.com/t/wikiinclude-on-0-11-noah-kantrowitz-blocks-bug-fix/123476 "2007-12-18T05:01:17Z")

</div>

Essence: Deletion of valid defect reports on trac community resources The “WikiInclude” plugin is not recognised on trac 0.11, thus I took a look an made a small addition to the setup.py (the entry\_point). Other use…

---

## [Gem Build Flags](https://www.ruby-forum.com/t/gem-build-flags/123146)

<div class="topic-metadata">

**Author:** [@Jens\_Thiede](https://www.ruby-forum.com/u/Jens_Thiede)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 1:48am UTC](https://www.ruby-forum.com/t/gem-build-flags/123146 "2007-12-18T01:48:57Z")

</div>

I’m trying to build the rubysdl gem on my x86 iMac. Everything seems to be fine, except I get linking errors because I don’t use an sdl library with support for PPC. In short, I’d like to get rid of the “-arch ppc” fl…

---

## [Gem update --system, now my local gems are missing](https://www.ruby-forum.com/t/gem-update-system-now-my-local-gems-are-missing/123463)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 1:46am UTC](https://www.ruby-forum.com/t/gem-update-system-now-my-local-gems-are-missing/123463 "2007-12-18T01:46:01Z")

</div>

hi, I just did a “gem update --system” to 0.9.5, but now when I do “gem list” I get nothing. The gems are still there, I can “ls” them. I seem to recall seeing other people have this issue, but I don’t recall the fi…

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

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