# Ruby

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

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

---

## [RUBY on 64-bit Windows PCs](https://www.ruby-forum.com/t/ruby-on-64-bit-windows-pcs/94634)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 0\
**Last updated:** [May 9, 2006, 5:56pm UTC](https://www.ruby-forum.com/t/ruby-on-64-bit-windows-pcs/94634 "2006-05-09T17:56:21Z")

</div>

I can’t seem to get Ruby’s ftp to work on a new 64-bit Intel box I just got. It simply freezes up. Has anyone heard of such problems? I’m having to copy my files over to garden variety 32-bit boxes to get my ftp’ing d…

---

## [Adwords4: access the Google Adwords API in ruby](https://www.ruby-forum.com/t/adwords4-access-the-google-adwords-api-in-ruby/59734)

<div class="topic-metadata">

**Author:** [@Patrick\_Chanezon](https://www.ruby-forum.com/u/Patrick_Chanezon)\
**Replies:** 18\
**Last updated:** [May 9, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/adwords4-access-the-google-adwords-api-in-ruby/59734 "2006-05-09T16:54:03Z")

</div>

For those of you who want to access the AdWords API from ruby. http://blog.chanezon.com/articles/2006/05/03/adwords4r-0-4-released I consider it beta quality. It’s a gem but I also provide an installer if you don’t wa…

---

## [Re: A major ruby annoyance!](https://www.ruby-forum.com/t/re-a-major-ruby-annoyance/60027)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [May 9, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/re-a-major-ruby-annoyance/60027 "2006-05-09T16:36:13Z")

</div>

I prefer a language that loudly shouts at with discriptive information when I do something wrong instead of running but producing erroneous results. Probably the #1 reason why, having tried using C, I have no int…

---

## [Non-static way to get the filename?](https://www.ruby-forum.com/t/non-static-way-to-get-the-filename/60021)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 2\
**Last updated:** [May 9, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/non-static-way-to-get-the-filename/60021 "2006-05-09T15:52:56Z")

</div>

Hello all, I am new to Ruby etc. etc. (all the usual disclaimer about how i can not code in Ruby yet etc), so probably because of this i was not able to find something like myFile.basename resp myFile.anything\_whic…

---

## [Print Out Code in Program](https://www.ruby-forum.com/t/print-out-code-in-program/59979)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 5\
**Last updated:** [May 9, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/print-out-code-in-program/59979 "2006-05-09T15:43:34Z")

</div>

class Ab def code a = 5 b = 2 end end Is there a way to store the actual code of a class or definition as a string without manually doing it? Such as if you were doing a tutorial on how something works. So basica…

---

## [Ruby Quiz Contest Winner!](https://www.ruby-forum.com/t/ruby-quiz-contest-winner/59937)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 6\
**Last updated:** [May 9, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/ruby-quiz-contest-winner/59937 "2006-05-09T15:27:21Z")

</div>

Ross B. has submitted a quiz that exceeded the mark I said I would give a book to. Way to go Ross! (Thanks to everyone else who entered as well.) Ross, if you will send me your address off-list, I’ll get a book on …

---

## [Re: Bracket Packing (#78)](https://www.ruby-forum.com/t/re-bracket-packing-78/59964)

<div class="topic-metadata">

**Author:** [@stuart\_holden](https://www.ruby-forum.com/u/stuart_holden)\
**Replies:** 2\
**Last updated:** [May 9, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/re-bracket-packing-78/59964 "2006-05-09T14:20:16Z")

</div>

Here is my attempt. Go easy… my first quiz entry, and my first Ruby script. Regards, Stu class Packaging attr\_accessor :opening, :closing, :description def initialize (o,c,desc) @opening = o @closing = c @descr…

---

## [Re: Q about the FasterCSV](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94300)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 4\
**Last updated:** [May 9, 2006, 10:17am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94300 "2006-05-09T10:17:50Z")

</div>

Gregory B. \[mailto:removed\_email\_address@domain.invalid\] : I think both CSV and FasterCSV can do this. Same rules apply though, just different delimiters. great! thanks, Greg. kind regards -botp

---

## [How to display online users with ruby](https://www.ruby-forum.com/t/how-to-display-online-users-with-ruby/94621)

<div class="topic-metadata">

**Author:** [@snvi](https://www.ruby-forum.com/u/snvi)\
**Replies:** 0\
**Last updated:** [May 9, 2006, 10:02am UTC](https://www.ruby-forum.com/t/how-to-display-online-users-with-ruby/94621 "2006-05-09T10:02:07Z")

</div>

i have a problem that how to display online user with ruby

---

## [How to display online users with ruby](https://www.ruby-forum.com/t/how-to-display-online-users-with-ruby/59993)

<div class="topic-metadata">

**Author:** [@snvi](https://www.ruby-forum.com/u/snvi)\
**Replies:** 0\
**Last updated:** [May 9, 2006, 10:01am UTC](https://www.ruby-forum.com/t/how-to-display-online-users-with-ruby/59993 "2006-05-09T10:01:09Z")

</div>

how to display online user with ruby

---

## [Modifying Hash Default Value](https://www.ruby-forum.com/t/modifying-hash-default-value/59952)

<div class="topic-metadata">

**Author:** [@ljscoras](https://www.ruby-forum.com/u/ljscoras)\
**Replies:** 4\
**Last updated:** [May 9, 2006, 9:41am UTC](https://www.ruby-forum.com/t/modifying-hash-default-value/59952 "2006-05-09T09:41:28Z")

</div>

Don’t do this…This one bit me hard =) hash = Hash.new( \[ \] ) hash\[:new\_key\] \<\< 3 hash.length # =\> 0 ouch hash.keys # =\> \[ \] doh! # this why this was painful... hash\[:new\_key\] # =\> \[ 3 \] has…

---

## [Irb crash](https://www.ruby-forum.com/t/irb-crash/94622)

<div class="topic-metadata">

**Author:** [@curi](https://www.ruby-forum.com/u/curi)\
**Replies:** 1\
**Last updated:** [May 9, 2006, 7:58am UTC](https://www.ruby-forum.com/t/irb-crash/94622 "2006-05-09T07:58:04Z")

</div>

I’m new so I don’t know if/where I should report this… if I type: String = Hash in irb twice it crashes. it crashed with other stuff besides Hash, too. just doing it twice at once with a semicolon doesn’t crash imme…

---

## [Ruby ide?](https://www.ruby-forum.com/t/ruby-ide/94570)

<div class="topic-metadata">

**Author:** [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Replies:** 8\
**Last updated:** [May 9, 2006, 7:54am UTC](https://www.ruby-forum.com/t/ruby-ide/94570 "2006-05-09T07:54:58Z")

</div>

What do you lot code ruby into? Anything like and of bloodshed’s or visual studio?

---

## [Win32utils tail eventlog error upon change](https://www.ruby-forum.com/t/win32utils-tail-eventlog-error-upon-change/59975)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [May 9, 2006, 6:32am UTC](https://www.ruby-forum.com/t/win32utils-tail-eventlog-error-upon-change/59975 "2006-05-09T06:32:23Z")

</div>

Hi win32 team, I have the ff code. C:\\ruby\\win-eventlog\>cat test4.rb require ‘win32/eventlog’ include Win32 Tail the event logs EventLog.open(‘Security’).tail{ |log| p ‘changed noted!’ if /account (changed|disabled…

---

## [Ruby Recursion](https://www.ruby-forum.com/t/ruby-recursion/94574)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 10\
**Last updated:** [May 9, 2006, 3:57am UTC](https://www.ruby-forum.com/t/ruby-recursion/94574 "2006-05-09T03:57:30Z")

</div>

Hi all, I am new to Ruby, and I have only known it through rails. I was wondering if it’s a good idea to use recursion sparingly in Ruby? How efficiently is it implemented? Do recursive calls only store local varia…

---

## [How are you locating method signatures and sources?](https://www.ruby-forum.com/t/how-are-you-locating-method-signatures-and-sources/59969)

<div class="topic-metadata">

**Author:** [@vijay](https://www.ruby-forum.com/u/vijay)\
**Replies:** 1\
**Last updated:** [May 9, 2006, 3:11am UTC](https://www.ruby-forum.com/t/how-are-you-locating-method-signatures-and-sources/59969 "2006-05-09T03:11:00Z")

</div>

hello all, given there is a method say, “save” within a ruby class, how are you going about finding what type arguments it takes, what it returns and then perhaps, its source code (if you want to learn by example)? i…

---

## [Rb2c modern](https://www.ruby-forum.com/t/rb2c-modern/94558)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 3\
**Last updated:** [May 8, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/rb2c-modern/94558 "2006-05-08T23:43:23Z")

</div>

Hello all. Is there something like rb2c, but more modern? Last rb2c last version (0.6.1) seems to be intended for Ruby 1.6 :frowning: BTW, have somebody used it for real tasks? Can you share your experience? Victor. …

---

## [Bracket Packing (#78)](https://www.ruby-forum.com/t/bracket-packing-78/59685)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 22\
**Last updated:** [May 8, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/bracket-packing-78/59685 "2006-05-08T23:37:00Z")

</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: …

---

## [IO#puts and arrays](https://www.ruby-forum.com/t/io-puts-and-arrays/94611)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [May 8, 2006, 11:33pm UTC](https://www.ruby-forum.com/t/io-puts-and-arrays/94611 "2006-05-08T23:33:44Z")

</div>

Exactly how does IO#puts determine if an argument is an array? That is, how do I construct an object that is treated like an Array object by IO#puts, preferably without inheriting from Array – I had hoped a #to\_arr me…

---

## [Question about instance\_eval](https://www.ruby-forum.com/t/question-about-instance-eval/94608)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 4\
**Last updated:** [May 8, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/question-about-instance-eval/94608 "2006-05-08T23:27:14Z")

</div>

I’m trying to use instance\_eval in a project I’m doing, and I extracted a very simple example: class IETest attr\_accessor :foo end t = IETest.new t.instance\_eval { self.foo = ‘foo’ } puts t.foo This works as expe…

---

## ["load"ing a file and keeping the current scope?](https://www.ruby-forum.com/t/load-ing-a-file-and-keeping-the-current-scope/94605)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 7\
**Last updated:** [May 8, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/load-ing-a-file-and-keeping-the-current-scope/94605 "2006-05-08T22:25:10Z")

</div>

Hi - For a variety of reasons I have the following situation: ---- file\_a.rb -------------------------------------- class A … magic loading goes here… end ---- file\_b.rb -------------------------------------- class…

---

## [Rough idea regarding modification of core classes](https://www.ruby-forum.com/t/rough-idea-regarding-modification-of-core-classes/59748)

<div class="topic-metadata">

**Author:** [@Tanner\_B](https://www.ruby-forum.com/u/Tanner_B)\
**Replies:** 3\
**Last updated:** [May 8, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/rough-idea-regarding-modification-of-core-classes/59748 "2006-05-08T22:21:52Z")

</div>

After reading the sharp knives and glue thread, my head started spinning around some ways to minimize or localize the modifications to core classes. This is what I came up with, it’s obviously rough, not-all-inclusive…

---

## [Ml style 'let' impl - fun with metaprogramming](https://www.ruby-forum.com/t/ml-style-let-impl-fun-with-metaprogramming/94604)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 8, 2006, 9:42pm UTC](https://www.ruby-forum.com/t/ml-style-let-impl-fun-with-metaprogramming/94604 "2006-05-08T21:42:58Z")

</div>

i was just playing with this - an ml style let for ruby: harp:~ \> cat a.rb require 'let' # # let allows you to setup local variables that will only be in scope for the # following block in an ml style # let :li…

---

## [How can I write the awesome kind of code?](https://www.ruby-forum.com/t/how-can-i-write-the-awesome-kind-of-code/59932)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 7\
**Last updated:** [May 8, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/how-can-i-write-the-awesome-kind-of-code/59932 "2006-05-08T21:14:40Z")

</div>

I’m writing a small app to do poker simulations. I read a lot of blogs in which the author shows off his cool DSL. I decided I want to be able to specify a poker hand in my app like hand “my\_hand” do players 10 ch…

---

## [Re: Question about soap/wsdlDriver](https://www.ruby-forum.com/t/re-question-about-soap-wsdldriver/59935)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 8, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/re-question-about-soap-wsdldriver/59935 "2006-05-08T21:14:36Z")

</div>

pickaxe. I checked google, but did not see this specific problem, {}specialEncoding=#SOAP::Mapping::Object:0xb0e5b0\> but, if I do the following, I get an error: irb(main):022:0\> p result.resultElements\[0\].methods.so…

---

## [Question about soap/wsdlDriver](https://www.ruby-forum.com/t/question-about-soap-wsdldriver/59934)

<div class="topic-metadata">

**Author:** [@Matt\_Long](https://www.ruby-forum.com/u/Matt_Long)\
**Replies:** 0\
**Last updated:** [May 8, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/question-about-soap-wsdldriver/59934 "2006-05-08T20:49:36Z")

</div>

Hi all, I ran into an oddity the other day as I was chunking through pickaxe. I checked google, but did not see this specific problem, nor did I see it in the errata for the book. I am doing the Google query example…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229054)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 8, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229054 "2006-05-08T20:36:54Z")

</div>

Begin forwarded message:

---

## [Custom serialization scheme](https://www.ruby-forum.com/t/custom-serialization-scheme/94601)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [May 8, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/custom-serialization-scheme/94601 "2006-05-08T20:31:59Z")

</div>

I have an object with one attribute that is unserializable (due to it’s containing a Proc). I am trying to figure out how to do the customized serialization routines for it. Assume that my attribute that I don’t want…

---

## [Propagating exceptions from File.new](https://www.ruby-forum.com/t/propagating-exceptions-from-file-new/59786)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 2\
**Last updated:** [May 8, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/propagating-exceptions-from-file-new/59786 "2006-05-08T20:02:07Z")

</div>

Hello, Suppose I have a class with a constructor that accepts a configuration file (in XML format). Part of an object’s initialization is to read some data from the XML file. However, sometimes the file passed into t…

---

## [More Proc Beauty](https://www.ruby-forum.com/t/more-proc-beauty/59908)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 2\
**Last updated:** [May 8, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/more-proc-beauty/59908 "2006-05-08T19:52:54Z")

</div>

The madness continues! This is getting out of hand! First, a recap: class Symbol def to\_proc # leave out the \`&block’ unless # you’re using Ruby 1.9 proc{|obj, \*args, &block| obj.send(self, \*args, &block) } end e…

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

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