# Ruby

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

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

---

## [Immutable Ruby](https://www.ruby-forum.com/t/immutable-ruby/147174)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 8\
**Last updated:** [August 30, 2008, 12:51am UTC](https://www.ruby-forum.com/t/immutable-ruby/147174 "2008-08-30T00:51:53Z")

</div>

I was thinking about Erlang a bit today, the fact that it’s objects are all immutable and it’s usefulness to concurrency. So I began to wonder, what would an Immutable Ruby look like? Would it make setter methods eff…

---

## [Writing a method to handle a code block?](https://www.ruby-forum.com/t/writing-a-method-to-handle-a-code-block/147138)

<div class="topic-metadata">

**Author:** [@circlefusion](https://www.ruby-forum.com/u/circlefusion)\
**Replies:** 8\
**Last updated:** [August 29, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/writing-a-method-to-handle-a-code-block/147138 "2008-08-29T23:26:25Z")

</div>

From Beginning Ruby: def each\_vowel(&code\_block) %w{a e i o u}.each { |vowel| code\_block.call(vowel) } end each\_vowel { |vowel| puts vowel } I am trying to figure out how that works but I’m still having a bit of tr…

---

## [Gems disapeared after port install of a package](https://www.ruby-forum.com/t/gems-disapeared-after-port-install-of-a-package/147124)

<div class="topic-metadata">

**Author:** [@tomtoday](https://www.ruby-forum.com/u/tomtoday)\
**Replies:** 3\
**Last updated:** [August 29, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/gems-disapeared-after-port-install-of-a-package/147124 "2008-08-29T22:23:28Z")

</div>

Hi, I am new to Mac, tried to set up MSSQL connection and broke gems on Leopard. tb-imac:~ tb$ irb irb(main):001:0\> require ‘rubygems’ LoadError: no such file to load – rubygems from (irb):1:in require' from (irb):…

---

## [Mysterious behavior of mixins](https://www.ruby-forum.com/t/mysterious-behavior-of-mixins/147245)

<div class="topic-metadata">

**Author:** [@i3d](https://www.ruby-forum.com/u/i3d)\
**Replies:** 4\
**Last updated:** [August 29, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/mysterious-behavior-of-mixins/147245 "2008-08-29T22:20:47Z")

</div>

I am trying to learn how mixins are behaved and encountered a strange behavior and got me even confused… irb(main):151:0\> module A irb(main):152:1\> def self.showself irb(main):153:2\> puts “self is #{self.inspec…

---

## [Ruby/Watchcat 1.0.2 and Ruby/Watchcat-pure 1.1.0](https://www.ruby-forum.com/t/ruby-watchcat-1-0-2-and-ruby-watchcat-pure-1-1-0/147259)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/ruby-watchcat-1-0-2-and-ruby-watchcat-pure-1-1-0/147259 "2008-08-29T22:04:57Z")

</div>

Hello I’m pleased to announce new releases of Ruby/Watchcat. The new ruby-watchcat-pure version adds FreeBSD support (tested on i386 and amd64) to Ruby/Watchcat. The C extension automatically supports FreeBSD if you …

---

## [Parsing PBX console outputs](https://www.ruby-forum.com/t/parsing-pbx-console-outputs/147243)

<div class="topic-metadata">

**Author:** [@jrgutier](https://www.ruby-forum.com/u/jrgutier)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/parsing-pbx-console-outputs/147243 "2008-08-29T21:36:03Z")

</div>

I have a problem. I need to parse the following output into something I can put in a table or two from an old PBX. Each PAD has 1 or more extensions assigned to it. Extensions should be unique. Here are two records: …

---

## [How can I debug treetop grammar?](https://www.ruby-forum.com/t/how-can-i-debug-treetop-grammar/147202)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 3\
**Last updated:** [August 29, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/how-can-i-debug-treetop-grammar/147202 "2008-08-29T20:53:33Z")

</div>

Hi guys ! Parse::RecDescent has RD\_TRACE , which when is set to 1 , tells you which rule the parser it’s trying , what it matches , what part of the input consumes , and so on . Does treetop have an equivalent to this…

---

## [Class ===](https://www.ruby-forum.com/t/class/147171)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 19\
**Last updated:** [August 29, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/class/147171 "2008-08-29T20:47:39Z")

</div>

I need help with === and Objects 270 Array === Array \] false \[\< 290 Array == Array \] true \[\< 300 Object === Object \] true \[\< 310 Object.class \] Class \[\< 320 Object === Class \] true \[\< I would think that Arr…

---

## [How to use log4r to generate xml format log file?](https://www.ruby-forum.com/t/how-to-use-log4r-to-generate-xml-format-log-file/147236)

<div class="topic-metadata">

**Author:** [@oliviabean](https://www.ruby-forum.com/u/oliviabean)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/how-to-use-log4r-to-generate-xml-format-log-file/147236 "2008-08-29T20:36:44Z")

</div>

Hi, I want to use log4r to generate xml formatted log file, but I’m not familiar with it and thus have no idea how to do. In my program, there’s some log output in each function, and I want the xml log file similar t…

---

## [Rails and GlassFish projects for RailsConf](https://www.ruby-forum.com/t/rails-and-glassfish-projects-for-railsconf/147120)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 6\
**Last updated:** [August 29, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/rails-and-glassfish-projects-for-railsconf/147120 "2008-08-29T20:10:43Z")

</div>

I’m preparing my slides for Rails Conf next week and the topic is “Rails powered by GlassFish”. If you are working/aware of on any project that is deploying Rails application on GlassFish then let me know. I’ll be hap…

---

## [Random undefined method error](https://www.ruby-forum.com/t/random-undefined-method-error/147170)

<div class="topic-metadata">

**Author:** [@ythu](https://www.ruby-forum.com/u/ythu)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/random-undefined-method-error/147170 "2008-08-29T17:58:19Z")

</div>

Hi, I have the following nested loop, it gives undefine method “radio” sometimes. its wierd because the error occurs randomly.sometimes it runs fine, sometimes at start of execution and sometimes half way through. I…

---

## [Computing folder size - do you have something cleaner than this?](https://www.ruby-forum.com/t/computing-folder-size-do-you-have-something-cleaner-than-this/147215)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 10\
**Last updated:** [August 29, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/computing-folder-size-do-you-have-something-cleaner-than-this/147215 "2008-08-29T17:06:09Z")

</div>

Hi guys, I’m computing an approximate folder size by summing the sizes of its files, recursively, with the following code: def item\_size(name) if File.directory?(name) (Dir.entries(name) - \[’.’,’…’\]).inject(0) { |su…

---

## [Picture](https://www.ruby-forum.com/t/picture/147097)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [August 29, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/picture/147097 "2008-08-29T16:54:05Z")

</div>

How to download picture from the particular url ? THanks Much

---

## [Bigdivmod](https://www.ruby-forum.com/t/bigdivmod/147226)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/bigdivmod/147226 "2008-08-29T16:15:07Z")

</div>

— bignum.c.org +++ bignum.c @@ -1795,7 +1795,6 @@ if (modp) \*modp = bigadd(mod, y, 1); } else { if (divp) \*divp = \*divp; if (modp) \*modp = mod; } } e$B$G$9$h$M!#e(B

---

## [A general doubt](https://www.ruby-forum.com/t/a-general-doubt/147140)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 27\
**Last updated:** [August 29, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/a-general-doubt/147140 "2008-08-29T16:11:01Z")

</div>

If I am developing a Windows application in Ruby using FxRuby or WxRuby, compile and create the executable, will i need ruby in another computer in order to run the standalone application? Sorry if my question is so s…

---

## [Parameter Type Checking in methods.Q?](https://www.ruby-forum.com/t/parameter-type-checking-in-methods-q/147216)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 5\
**Last updated:** [August 29, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/parameter-type-checking-in-methods-q/147216 "2008-08-29T15:49:54Z")

</div>

Again…just wondering…(and you can probably tell I’m comparing Ruby with Java/C here again, following on from the “++” discussion…) def MyObject def my\_method(obj) if obj.class!=String then raise “Wrong Type!” end ……

---

## [Standards when using WIN32OLE](https://www.ruby-forum.com/t/standards-when-using-win32ole/147219)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/standards-when-using-win32ole/147219 "2008-08-29T15:00:05Z")

</div>

Hi, If I use WIN32OLE in Ruby should the method names be Ruby standard name\_space = outlook.GetNameSpace(“MAPI”) or should I follow the MS convention objNameSpace = objOutlook.GetNameSpace(“MAPI”) Thanks Aidy

---

## [Re: Proc and lambda](https://www.ruby-forum.com/t/re-proc-and-lambda/147217)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/re-proc-and-lambda/147217 "2008-08-29T13:22:35Z")

</div>

Is there any super easy explanation or tutorial for proc and lamda? myfun = lambda { |x,y| x+y } myfun.call(3,4) #=\> 7 myfun\[3,4\] #alternative syntax Can’t get much easier than that really. The interest…

---

## [Unraveling binary data out of the proc filesystem on Solaris](https://www.ruby-forum.com/t/unraveling-binary-data-out-of-the-proc-filesystem-on-solaris/146829)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 12\
**Last updated:** [August 29, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/unraveling-binary-data-out-of-the-proc-filesystem-on-solaris/146829 "2008-08-29T12:38:34Z")

</div>

Hi all, Ruby 1.8.6 Solaris 10 I’m trying to get process information on a Solaris using pure Ruby. For the basic information, this is fairly straightforward, as I read out of /proc//psinfo. However, where I’m having…

---

## [Backgroundrb Problem running twice?](https://www.ruby-forum.com/t/backgroundrb-problem-running-twice/145530)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/backgroundrb-problem-running-twice/145530 "2008-08-29T12:10:20Z")

</div>

My experience through Backgroundrb is good it’s working fine for me but i got one issue in this pls help me out?I hope some problem in scheduling the task? my config port: “3333” timer\_sleep: 60 load\_rails: true e…

---

## [Beginner help: Problem installing sqlite3 on Windows XP](https://www.ruby-forum.com/t/beginner-help-problem-installing-sqlite3-on-windows-xp/147116)

<div class="topic-metadata">

**Author:** [@champ](https://www.ruby-forum.com/u/champ)\
**Replies:** 10\
**Last updated:** [August 29, 2008, 10:29am UTC](https://www.ruby-forum.com/t/beginner-help-problem-installing-sqlite3-on-windows-xp/147116 "2008-08-29T10:29:39Z")

</div>

Hi Everyone, I am new to Ruby, and i keep getting stuck in the same place getting started. I hope someone is able to help me. I am trying to install sqlite3 and have been following several tutorials, and it all looke…

---

## [\[Bug #513\] Tempfile yields \[BUG\] Stack consistency error](https://www.ruby-forum.com/t/bug-513-tempfile-yields-bug-stack-consistency-error/147060)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 5\
**Last updated:** [August 29, 2008, 10:27am UTC](https://www.ruby-forum.com/t/bug-513-tempfile-yields-bug-stack-consistency-error/147060 "2008-08-29T10:27:45Z")

</div>

Bug #513: Tempfile yields \[BUG\] Stack consistency error http://redmine.ruby-lang.org/issues/show/513 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, e$B%+%F%4%je(B:…

---

## [Problem with video uploading](https://www.ruby-forum.com/t/problem-with-video-uploading/147194)

<div class="topic-metadata">

**Author:** [@rizwana](https://www.ruby-forum.com/u/rizwana)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 9:29am UTC](https://www.ruby-forum.com/t/problem-with-video-uploading/147194 "2008-08-29T09:29:42Z")

</div>

Hi all, I have to upload videos to youtube via a form in my application. I dont have much idea about Youtube API. Can anyone of u suggest some idea for implementing this video uploading. Waiting for suggestions. Th…

---

## [Parceexcel and fields in xls file](https://www.ruby-forum.com/t/parceexcel-and-fields-in-xls-file/146859)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 9:25am UTC](https://www.ruby-forum.com/t/parceexcel-and-fields-in-xls-file/146859 "2008-08-29T09:25:11Z")

</div>

I am having a problem in reading the columns from an xls file. Following is the code: workbook = Spreadsheet::ParseExcel.parse(params\[:dump\]\[:file\]) worksheet = workbook.worksheet(0) skip=0 worksheet.each(ski…

---

## [Sequence 0.2.0](https://www.ruby-forum.com/t/sequence-0-2-0/147197)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 8:53am UTC](https://www.ruby-forum.com/t/sequence-0-2-0/147197 "2008-08-29T08:53:58Z")

</div>

Subject: \[ANN\] sequence 0.2.0 Released sequence version 0.2.0 has been released! http://sequence.rubyforge.org/ A unified wrapper api for accessing data in Strings, Arrays, Files, IOs, and Enumerations. Each sequenc…

---

## [Switching from Webrick-\>Mongrel (not rails)](https://www.ruby-forum.com/t/switching-from-webrick-mongrel-not-rails/147156)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 8:35am UTC](https://www.ruby-forum.com/t/switching-from-webrick-mongrel-not-rails/147156 "2008-08-29T08:35:10Z")

</div>

Hi, For performance reason, I’m thinking of migrating my webapp (not rails) from Webrick-\>Mongrel. Couple of questions if anybody could quickly answer them ! Do I really have to re-write my Servlets ? - the example…

---

## [Geoip 0.8.0 Released](https://www.ruby-forum.com/t/geoip-0-8-0-released/147192)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 7:41am UTC](https://www.ruby-forum.com/t/geoip-0-8-0-released/147192 "2008-08-29T07:41:52Z")

</div>

geoip version 0.8.0 has been released! http://geoip.rubyforge.org GeoIP searches a GeoIP database for a given host or IP address, and returns information about the country where the IP address is allocated, and the …

---

## [Jruby JIT question](https://www.ruby-forum.com/t/jruby-jit-question/147149)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 4\
**Last updated:** [August 29, 2008, 6:01am UTC](https://www.ruby-forum.com/t/jruby-jit-question/147149 "2008-08-29T06:01:15Z")

</div>

Let’s say I have a pair of objects setup in a publish-subscribe manner. Object A communicates to Object B by creating and sending a new instance of class C for every publish. class A include Observable def publish …

---

## [\[ANN\] JRuby 1.1.4 Released](https://www.ruby-forum.com/t/ann-jruby-1-1-4-released/147188)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 5:56am UTC](https://www.ruby-forum.com/t/ann-jruby-1-1-4-released/147188 "2008-08-29T05:56:34Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.4! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.4 is the fourth point release of JRuby 1.1. The fixes in this …

---

## [NoMethodError?](https://www.ruby-forum.com/t/nomethoderror/147178)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 4:48am UTC](https://www.ruby-forum.com/t/nomethoderror/147178 "2008-08-29T04:48:15Z")

</div>

In the following code I am trying to print out the value of the variable @symbol from an array of instances of the MapSector class. I don’t understand why I’m getting “NoMethodError: undefined method \`symbol’ for #Arr…

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

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