# Ruby

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

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

---

## [Fwd: A\*](https://www.ruby-forum.com/t/fwd-a/72774)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/fwd-a/72774 "2006-10-18T21:06:55Z")

</div>

Begin forwarded message:

---

## [A\* (#98)](https://www.ruby-forum.com/t/a-98/102557)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/a-98/102557 "2006-10-18T19:15:55Z")

</div>

As was brought up in the discussion, the effectiveness of the A\* algorithm is very dependent on the estimate function used to gage distance remaining to the goal. The quiz recommended the Manhattan Distance function…

---

## [Changing uid](https://www.ruby-forum.com/t/changing-uid/72764)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/changing-uid/72764 "2006-10-18T18:59:53Z")

</div>

Hi all, I really should know this, but I can’t for the life of me remember how it goes. I want to change users within a Ruby script on Linux, but Process::uid= only to takes an integer. What’s the best way to odo th…

---

## [Newbie ftp problem](https://www.ruby-forum.com/t/newbie-ftp-problem/72762)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/newbie-ftp-problem/72762 "2006-10-18T18:31:44Z")

</div>

I was going to try and use ruby to transfer files to an FTP site so I figured I would try some simple code in the irb. ftp = Net::FTP::new(‘my.url.com’) ftp.login(‘login\_id’,‘login\_pass’,nil) ftp.chdir(‘data’) all g…

---

## [Re: Performance of ruby hashes](https://www.ruby-forum.com/t/re-performance-of-ruby-hashes/72757)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/re-performance-of-ruby-hashes/72757 "2006-10-18T17:49:33Z")

</div>

From: J2M \[mailto:removed\_email\_address@domain.invalid\] bad idea for big hashes - symbols are never gc’d and swapping is never fast! gc’d ? “Garbage Collected”

---

## [Re: My first feeling of Ruby](https://www.ruby-forum.com/t/re-my-first-feeling-of-ruby/72756)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/re-my-first-feeling-of-ruby/72756 "2006-10-18T17:43:32Z")

</div>

From: Florent G. \[mailto:removed\_email\_address@domain.invalid\] Today I’m learning Ruby. Welcome to Ruby! :slight\_smile: Why #test doesn’t work for local variables? It would be more logic. The general form for st…

---

## [RubyConf Ticket For Sale](https://www.ruby-forum.com/t/rubyconf-ticket-for-sale/72738)

<div class="topic-metadata">

**Author:** [@fin](https://www.ruby-forum.com/u/fin)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/rubyconf-ticket-for-sale/72738 "2006-10-18T17:06:55Z")

</div>

Hey all, I’ve got a RubyConf ticket for sale, $200 (face value). If interested email me at: aurequi -at- gmail.com Fin

---

## [Memcache...HELP..!](https://www.ruby-forum.com/t/memcache-help/72708)

<div class="topic-metadata">

**Author:** [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/memcache-help/72708 "2006-10-18T16:28:42Z")

</div>

require ‘memcache’ m=Memcache.new m.add\_server(“127.0.0.1:12345”) m.add(‘foobar’, ‘baz’) ERROR : mcm\_server\_connect\_next\_avail():2323 what should i do??

---

## [Building Ruby 1.8.4 interpreter for Windows](https://www.ruby-forum.com/t/building-ruby-1-8-4-interpreter-for-windows/66960)

<div class="topic-metadata">

**Author:** [@roey](https://www.ruby-forum.com/u/roey)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/building-ruby-1-8-4-interpreter-for-windows/66960 "2006-10-18T16:05:31Z")

</div>

Hi, I downloaded Ruby Version 1.8.4 and used it happily :-\> I would like to manually build the interpreter on my own but could not succed in that. Atleast not out-of-the-box style. I probably should start from buildi…

---

## [Merging files with CR as EOL?](https://www.ruby-forum.com/t/merging-files-with-cr-as-eol/72700)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/merging-files-with-cr-as-eol/72700 "2006-10-18T15:42:22Z")

</div>

i have to rewrite a script in order to be compatible with file lines ending by CR instead of unix \\n my script is simple, it take the content of a folder and merge the file all together in a unique file, those files h…

---

## [Seems so simple, but is this really the only way, or most di](https://www.ruby-forum.com/t/seems-so-simple-but-is-this-really-the-only-way-or-most-di/72561)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 1:51pm UTC](https://www.ruby-forum.com/t/seems-so-simple-but-is-this-really-the-only-way-or-most-di/72561 "2006-10-18T13:51:43Z")

</div>

9 digits in a string “123456789”, convert to individual Fixnums \[1,2,3,4,5,6,7,8,9\], or as below a, b, c, d, e, f, g, h, i = id.scan(/\\d/).map(&:to\_i) Simpler yet how about \[“1”, “2”, …\]. Is scan the only direct way? …

---

## [My .irbrc for console/irb](https://www.ruby-forum.com/t/my-irbrc-for-console-irb/71935)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 13\
**Last updated:** [October 18, 2006, 1:05pm UTC](https://www.ruby-forum.com/t/my-irbrc-for-console-irb/71935 "2006-10-18T13:05:16Z")

</div>

I recently discovered that I can create a .irbrc file to run setup for my irb/console. I am in love. My current .irbrc is: require ‘irb/completion’ require ‘map\_by\_method’ require ‘what\_methods’ require ‘pp’ IRB.c…

---

## [Pre-RubyConf Gathering](https://www.ruby-forum.com/t/pre-rubyconf-gathering/72614)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 8\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/pre-rubyconf-gathering/72614 "2006-10-18T10:44:16Z")

</div>

A small gathering is being planned for the RubyConf early arrivals. If you will be in Denver on Thursday evening, Oct 19, Ara and I were planning on getting together at the “Southern Sun” in Boulder (not too far from …

---

## [A\* (#98)](https://www.ruby-forum.com/t/a-98/102556)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 22\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/a-98/102556 "2006-10-18T10:44:13Z")

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

---

## [Debugging in the large, modern practice?](https://www.ruby-forum.com/t/debugging-in-the-large-modern-practice/71920)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 18\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/debugging-in-the-large-modern-practice/71920 "2006-10-18T10:44:11Z")

</div>

I think the following may be a badly formed question, but if you’d bear with me… I have a large application (which is actually a Rails app) which is behaving oddly (I can change items in a DB twice, but 4 times fails…

---

## [Unbalanced code snippet include](https://www.ruby-forum.com/t/unbalanced-code-snippet-include/72268)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/unbalanced-code-snippet-include/72268 "2006-10-18T10:44:11Z")

</div>

Is there a way to insert code which is unbalanced into Ruby source. For example, I have a condition which is checked in many places, but which i am not yet sure is the correct condition, so i want to keep only that co…

---

## [Digest'ifying OpenSSL::Digest](https://www.ruby-forum.com/t/digestifying-openssl-digest/72689)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/digestifying-openssl-digest/72689 "2006-10-18T10:44:09Z")

</div>

(e$B\<g$Ke(B)e$B$f$\>$5$se(B e$B!!e(BOpenSSL::Digest::\* e$B$re(B Digest::Base e$B$N%5%V%/%i%9$K$9$k$Y$/=$@5e(B e$B$7$F$$?$N$G!"%l%S%e!\<$r$\*4j$$$7$^$9!#$J$\*e(B openssl/digest.rb e$B$Ne(B e$B=hM}$Oe(B ossl\_digest.c e$B$…

---

## [Myspace meets tucows and planetsourcecode?](https://www.ruby-forum.com/t/myspace-meets-tucows-and-planetsourcecode/72626)

<div class="topic-metadata">

**Author:** [@Mad\_Scientist\_Jr](https://www.ruby-forum.com/u/Mad_Scientist_Jr)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/myspace-meets-tucows-and-planetsourcecode/72626 "2006-10-18T10:44:09Z")

</div>

Is there a myspace type site that is a place for programmers to post their apps for people to download? It would have to be user friendly like tucows but allow a programmer to create their own home page where they can…

---

## [Setup.rb test](https://www.ruby-forum.com/t/setup-rb-test/72665)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/setup-rb-test/72665 "2006-10-18T10:44:07Z")

</div>

Hi, I seem to be having a Friday afternoon brain-fade. I’m trying to get setup.rb to run some TestCases, but nothing seems to work. I thought that placing my tests in the ‘test’ directory was all that was required bu…

---

## [Large File Reading and Writing](https://www.ruby-forum.com/t/large-file-reading-and-writing/72659)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/large-file-reading-and-writing/72659 "2006-10-18T10:44:06Z")

</div>

Hi, A project that I’ve currently got at work consists of reading large files and writing another larger file. Unfortunately the machine I’m on is pretty lame and it runs out of RAM pretty quick and so takes a long…

---

## [Communicating with ruby debugger](https://www.ruby-forum.com/t/communicating-with-ruby-debugger/72589)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 8\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/communicating-with-ruby-debugger/72589 "2006-10-18T10:44:06Z")

</div>

For kicks I would like to write a minimalistic GUI interface to the debugger. I prefer C++ or C# for GUI applications (this is not to debate here). What is the best way to establish communication between my GUI and th…

---

## [Multiple values for the same key in a Hash](https://www.ruby-forum.com/t/multiple-values-for-the-same-key-in-a-hash/71954)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/multiple-values-for-the-same-key-in-a-hash/71954 "2006-10-18T10:44:06Z")

</div>

Hi. There’s got to be an easy way to do this. I simply want multiple iteams (etc, price, quantity, and name) appended to a key… There’s got to be a simple way (…right?)

---

## [YART - Yet Another Ruby Tutorial!](https://www.ruby-forum.com/t/yart-yet-another-ruby-tutorial/72690)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/yart-yet-another-ruby-tutorial/72690 "2006-10-18T10:44:06Z")

</div>

Hello to all in the Ruby world! \[James Edward G. II suggested I send this email to the list, as he thought some of you may be interested … so, here goes.\] I’ve spent the last few weeks putting together a classroom-bas…

---

## [Why does 'chroot' interfere with 'system'?](https://www.ruby-forum.com/t/why-does-chroot-interfere-with-system/72694)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 12\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/why-does-chroot-interfere-with-system/72694 "2006-10-18T10:44:03Z")

</div>

This always fails. Dir.chroot(Dir.pwd) Kernel.system(‘echo “new file” \> foo’) Kernel.system(‘rm -f bar’) Kernel.system(‘mv -f foo bar’) if File.exists?(“bar”) == true then puts “PASS” else puts “FAIL” end It’s the …

---

## [My Fellow Geeks](https://www.ruby-forum.com/t/my-fellow-geeks/72692)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/my-fellow-geeks/72692 "2006-10-18T10:44:01Z")

</div>

My wife pointed me at FoxTrot this morning: Seems pretty timely with RubyConf on the horizon. Just thought I would share. :wink: James Edward G. II

---

## [Attr\_reader + attr\_writer?](https://www.ruby-forum.com/t/attr-reader-attr-writer/71983)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/attr-reader-attr-writer/71983 "2006-10-18T10:44:01Z")

</div>

Is there a class method that combines attr\_reader and attr\_writer? I thought I remember seeing some “cattr\_\*” method, but don’t know what that was. Thanks, Joe

---

## [Hash & keys](https://www.ruby-forum.com/t/hash-keys/71982)

<div class="topic-metadata">

**Author:** [@sebw](https://www.ruby-forum.com/u/sebw)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/hash-keys/71982 "2006-10-18T10:44:00Z")

</div>

I’m having some trouble understanding how hashes work in Ruby. Consider the following test : irb(main):002:0\> v=Vector\[4,5\] =\> Vector\[4, 5\] irb(main):003:0\> v2=Vector\[4,5\] =\> Vector\[4, 5\] irb(main):004:0\> v==v2 =\> …

---

## [Rubyforge.org down](https://www.ruby-forum.com/t/rubyforge-org-down/71680)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 17\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/rubyforge-org-down/71680 "2006-10-18T10:43:58Z")

</div>

RubyForge is down… investigating now. Sigh, Tom

---

## [Silent out-of-index problems--how much of a problem are they](https://www.ruby-forum.com/t/silent-out-of-index-problems-how-much-of-a-problem-are-they/72655)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 7\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/silent-out-of-index-problems-how-much-of-a-problem-are-they/72655 "2006-10-18T10:43:58Z")

</div>

As a Python user starting to mess around with Ruby, one of my biggest concerns is the fact that so many operations on lists ‘fail silently’ (return nil) when given list indices that are out of bounds. In particular, I…

---

## [Double messages](https://www.ruby-forum.com/t/double-messages/71280)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 7\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/double-messages/71280 "2006-10-18T10:43:51Z")

</div>

I’m seeing all the messages I send to this list show up twice. Are you seeing the same thing? This message, for example, I am only sending once. I swear. Thanks, David

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

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