# Ruby

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

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

---

## [How to create multiple different arrays using a loop](https://www.ruby-forum.com/t/how-to-create-multiple-different-arrays-using-a-loop/65651)

<div class="topic-metadata">

**Author:** [@chilaquil](https://www.ruby-forum.com/u/chilaquil)\
**Replies:** 4\
**Last updated:** [August 20, 2006, 10:16pm UTC](https://www.ruby-forum.com/t/how-to-create-multiple-different-arrays-using-a-loop/65651 "2006-08-20T22:16:59Z")

</div>

Hi list, I need to create a different array each time that I am going through a loop. I wonder how I can assign different names to the arrays based on the iteration count. For example first time that I go through th…

---

## [Is there a ruby cluster analysis tool?](https://www.ruby-forum.com/t/is-there-a-ruby-cluster-analysis-tool/65718)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/is-there-a-ruby-cluster-analysis-tool/65718 "2006-08-20T20:39:19Z")

</div>

Hi folks, Is there a ruby tool to perform cluster analyses and output the results in a dendrogram? Thanks Daniel

---

## [Trying to figure out whats wrong with ActiveLDAP](https://www.ruby-forum.com/t/trying-to-figure-out-whats-wrong-with-activeldap/65179)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 2\
**Last updated:** [August 20, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/trying-to-figure-out-whats-wrong-with-activeldap/65179 "2006-08-20T20:25:17Z")

</div>

Hi, Can I get help at this? The code: require ‘rubygems’ require ‘activeldap’ ActiveLDAP::Base.connect( :host =\> ‘127.0.0.1’, :base =\> ‘dc=test,dc=com’, :bind\_format =\> ‘cn=Manager,dc=test,dc=com’, :password\_blo…

---

## [Enzymatic ruby - sciruby talks with alex gutteridge](https://www.ruby-forum.com/t/enzymatic-ruby-sciruby-talks-with-alex-gutteridge/65714)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 7:59pm UTC](https://www.ruby-forum.com/t/enzymatic-ruby-sciruby-talks-with-alex-gutteridge/65714 "2006-08-20T19:59:13Z")

</div>

from hello world to enzymatic madness. sciruby chats with bioruby contributor and tea drinker alex gutteridge http://sciruby.codeforpeople.com/sr.cgi/SciRubyInterviews/AlexGutteridge http://sciruby.codeforpeople.com…

---

## [Metaprogramming: Dynamic class generation](https://www.ruby-forum.com/t/metaprogramming-dynamic-class-generation/65643)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 2\
**Last updated:** [August 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/metaprogramming-dynamic-class-generation/65643 "2006-08-20T19:29:08Z")

</div>

Hi all, I finally wrote up how I’m dynamically generating classes (and why), and I thought some of you might enjoy it: http://madstop.com/articles/2006/08/19/my-ruby-metaprogramming The article discusses a new method…

---

## [Newbie block question](https://www.ruby-forum.com/t/newbie-block-question/65676)

<div class="topic-metadata">

**Author:** [@Dave\_Snowdon](https://www.ruby-forum.com/u/Dave_Snowdon)\
**Replies:** 2\
**Last updated:** [August 20, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/newbie-block-question/65676 "2006-08-20T18:02:58Z")

</div>

Hi folks I’m working on some code that extracts data from a set of XML files using REXML stores this as arrays of arrays of floats (one array of floats per file), does some processing and then writes the results to 4 …

---

## [Ruby-oci8 0.1.16](https://www.ruby-forum.com/t/ruby-oci8-0-1-16/65697)

<div class="topic-metadata">

**Author:** [@KUBO\_Takehiro](https://www.ruby-forum.com/u/KUBO_Takehiro)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 5:56pm UTC](https://www.ruby-forum.com/t/ruby-oci8-0-1-16/65697 "2006-08-20T17:56:58Z")

</div>

ruby-oci8 0.1.16 is released. This is a Oracle module using OCI8 API. URL:http://rubyforge.org/projects/ruby-oci8/ What’s new. Add LONG and LONG RAW support longer than 65535 bytes. Use OCI8#long\_read\_len and OCI8…

---

## [Rails Project Story](https://www.ruby-forum.com/t/rails-project-story/65695)

<div class="topic-metadata">

**Author:** [@Rida\_Al\_Barazi](https://www.ruby-forum.com/u/Rida_Al_Barazi)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/rails-project-story/65695 "2006-08-20T17:52:58Z")

</div>

Hi All, Few days ago I announced a new tutorial “Rails Project Storyhttp://www.ridaalbarazi.com/blog/2006/08/16/rails-project-story/” that tells the life story of a regualr web app and today I pulished the first part…

---

## [Private and self](https://www.ruby-forum.com/t/private-and-self/65655)

<div class="topic-metadata">

**Author:** [@Marinho\_T](https://www.ruby-forum.com/u/Marinho_T)\
**Replies:** 1\
**Last updated:** [August 20, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/private-and-self/65655 "2006-08-20T17:32:55Z")

</div>

Why doesnÂ´t the call with self doesnÂ´t work ? I know that private means private to the object, but the private methode call is within the same object (at least itÂ´s what i think). DoesnÂ´t self mean “the object him…

---

## [2D DFT of an image?](https://www.ruby-forum.com/t/2d-dft-of-an-image/65694)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/2d-dft-of-an-image/65694 "2006-08-20T17:32:55Z")

</div>

Hi all, What’s the easiest way to get the 2D DFT of an image? I can take care of zero- or mean-padding via RMagick easily enough, and I presume ImageMagick uses the DFT internally to implement convolutions, but I ca…

---

## [Ruby, memory and speed](https://www.ruby-forum.com/t/ruby-memory-and-speed/65324)

<div class="topic-metadata">

**Author:** [@giom](https://www.ruby-forum.com/u/giom)\
**Replies:** 22\
**Last updated:** [August 20, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/ruby-memory-and-speed/65324 "2006-08-20T17:26:52Z")

</div>

I have a script that aggregates data from multiple file, store it all in a hash, and then emit a summary on standard input. The input files (text files) are fairly big, like 4 of about 50Mb and 4 of about 350Mb. The h…

---

## [The Brisbane Ruby Brigade](https://www.ruby-forum.com/t/the-brisbane-ruby-brigade/65691)

<div class="topic-metadata">

**Author:** [@paulodeon](https://www.ruby-forum.com/u/paulodeon)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/the-brisbane-ruby-brigade/65691 "2006-08-20T17:16:56Z")

</div>

The Brisbane Ruby Brigade has been set up to bring together local Ruby developers in Brisbane, Australia. We will be holding our first meeting this Wednesday night, August 23. See http://ruby.meetup.com/74/ for more d…

---

## [The Brisbane Ruby Brigade](https://www.ruby-forum.com/t/the-brisbane-ruby-brigade/65690)

<div class="topic-metadata">

**Author:** [@kef](https://www.ruby-forum.com/u/kef)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/the-brisbane-ruby-brigade/65690 "2006-08-20T17:16:51Z")

</div>

The Brisbane Ruby Brigade has been set up to bring together local Ruby developers in Brisbane, Australia. We will be holding our first meeting this Wednesday night, August 23. See http://ruby.meetup.com/74/ for more d…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 20, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/65689 "2006-08-20T17:12:51Z")

</div>

Begin forwarded message:

---

## [Perl Junkie: Bad form?](https://www.ruby-forum.com/t/perl-junkie-bad-form/65404)

<div class="topic-metadata">

**Author:** [@SSusrSceo](https://www.ruby-forum.com/u/SSusrSceo)\
**Replies:** 7\
**Last updated:** [August 20, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/perl-junkie-bad-form/65404 "2006-08-20T16:32:49Z")

</div>

Ok where do I start? :slight\_smile: A little background… I’ve been declaring up and down for 6 years now I’m going to stop using Perl and start using Ruby. One thing that has always held me back is not having librar…

---

## [Irb newbie question](https://www.ruby-forum.com/t/irb-newbie-question/65686)

<div class="topic-metadata">

**Author:** [@Nicholas\_Parsons](https://www.ruby-forum.com/u/Nicholas_Parsons)\
**Replies:** 3\
**Last updated:** [August 20, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/irb-newbie-question/65686 "2006-08-20T16:30:49Z")

</div>

Hello All! I’m new to Ruby and this group. I was hoping that someone could lend a helping hand involving the irb interpreter packaged with ruby version 1.8 on Mac OSX. I would like to import or load some classes th…

---

## [Remove from an array](https://www.ruby-forum.com/t/remove-from-an-array/65663)

<div class="topic-metadata">

**Author:** [@bincedecrabe](https://www.ruby-forum.com/u/bincedecrabe)\
**Replies:** 5\
**Last updated:** [August 20, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/remove-from-an-array/65663 "2006-08-20T14:42:42Z")

</div>

Hello, I have an array, let’s name it items\[\] I want to remove an object in a elegant way items.remove(3) does not work How should I do ? Thanks

---

## [Secure telnet and ftp?](https://www.ruby-forum.com/t/secure-telnet-and-ftp/65431)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 13\
**Last updated:** [August 20, 2006, 11:08am UTC](https://www.ruby-forum.com/t/secure-telnet-and-ftp/65431 "2006-08-20T11:08:30Z")

</div>

I’m rather ignorant of SSL and ssh… but I’m wishing for a “compatibility” layer of some kind so that I could use the old telnet and ftp interfaces (which I know) but do it securely. In other words, something like: r…

---

## [Bug in sprintf?](https://www.ruby-forum.com/t/bug-in-sprintf/65495)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 25\
**Last updated:** [August 20, 2006, 10:54am UTC](https://www.ruby-forum.com/t/bug-in-sprintf/65495 "2006-08-20T10:54:29Z")

</div>

All, Why does this fail? irb(main):009:0\> sprintf("%d", ‘08’) ArgumentError: invalid value for Integer: “08” from (irb):9:in \`sprintf’ from (irb):9 I assume it’s because the 08 is being as an octal number prior to …

---

## [Defining a method \[\]=](https://www.ruby-forum.com/t/defining-a-method/65656)

<div class="topic-metadata">

**Author:** [@kushboy](https://www.ruby-forum.com/u/kushboy)\
**Replies:** 3\
**Last updated:** [August 20, 2006, 8:56am UTC](https://www.ruby-forum.com/t/defining-a-method/65656 "2006-08-20T08:56:25Z")

</div>

I have used a method of \[\] with “def method”. But I can’t figure out how to use\[\]=. An array works with \[\]= such as array\[‘string1’\] = ‘string2’ so how would I write a method like that for my own class?

---

## [Dir.bitbucket?](https://www.ruby-forum.com/t/dir-bitbucket/65647)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [August 20, 2006, 7:12am UTC](https://www.ruby-forum.com/t/dir-bitbucket/65647 "2006-08-20T07:12:19Z")

</div>

Hi all, Occasionally I have to do something like this: bitbucket = RUBY\_PLATFORM.match(‘mswin’) ? ‘NUL’ : ‘/dev/null’ How about a Dir.bitbucket method? Or Dir.null, or whatever you want to call it. I think the code,…

---

## [Initializing $LOAD\_PATH manually? (embedding ruby)](https://www.ruby-forum.com/t/initializing-load-path-manually-embedding-ruby/65634)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 2\
**Last updated:** [August 20, 2006, 4:14am UTC](https://www.ruby-forum.com/t/initializing-load-path-manually-embedding-ruby/65634 "2006-08-20T04:14:08Z")

</div>

Hi, I am embedding ruby in an application and shipping it with app as well, so I need to setup the load path manually instead of calling ruby\_init\_loadpath(). Here is the code: NSBundle \*bundle = \[NSBundle mainBundle…

---

## [Machine sync](https://www.ruby-forum.com/t/machine-sync/65512)

<div class="topic-metadata">

**Author:** [@hakon](https://www.ruby-forum.com/u/hakon)\
**Replies:** 1\
**Last updated:** [August 20, 2006, 12:11am UTC](https://www.ruby-forum.com/t/machine-sync/65512 "2006-08-20T00:11:54Z")

</div>

Hi, I have two machines that I would like to make sure have identical ruby environments. Is it sufficient just to sync the /usr/local/lib/ruby directories and that will make sure the same gems, etc. are installed on …

---

## [SOS Taskable](https://www.ruby-forum.com/t/sos-taskable/65604)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [August 19, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/sos-taskable/65604 "2006-08-19T21:51:32Z")

</div>

I’m stuck. I can’t figure out how to implement Taskable. If you haven;t seen my rantings abut this before, Taskable is an emulation of Rake’s task syntax: desc “this and that” task ‘foo’ =\> \[ ‘bar’ \] do … end but …

---

## [Who's a newbie?](https://www.ruby-forum.com/t/whos-a-newbie/65600)

<div class="topic-metadata">

**Author:** [@BobJ](https://www.ruby-forum.com/u/BobJ)\
**Replies:** 2\
**Last updated:** [August 19, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/whos-a-newbie/65600 "2006-08-19T20:05:25Z")

</div>

(Note - I’ll fix the margins before I post again) Like many who post here I am new to ruby but not new to programming. Also like many - most, actually - I’m more enthusiastic about the language than I have been abou…

---

## [How to override RUBYLIB for soap4r on shared host?](https://www.ruby-forum.com/t/how-to-override-rubylib-for-soap4r-on-shared-host/65611)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 19, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/how-to-override-rubylib-for-soap4r-on-shared-host/65611 "2006-08-19T19:53:23Z")

</div>

Group, I need to override a default Ruby library for Rails, and I’m having some troubles. I’m trying to run a program that consumes a PayPal web service using soap4r. Soap4r’s last point release (1.5.5) has a bug t…

---

## [Fixing ruby on Mac OS X Tiger](https://www.ruby-forum.com/t/fixing-ruby-on-mac-os-x-tiger/65605)

<div class="topic-metadata">

**Author:** [@Krazy\_Man](https://www.ruby-forum.com/u/Krazy_Man)\
**Replies:** 1\
**Last updated:** [August 19, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/fixing-ruby-on-mac-os-x-tiger/65605 "2006-08-19T19:23:20Z")

</div>

Hey all, I’d greatly appreciate it if someone could help me with this problem. I’m running the latest Tiger update on a MacBook, and am trying to fix my ruby installation. I’ve installed ruby gems and the fixrbconfig …

---

## [Basics of eval?](https://www.ruby-forum.com/t/basics-of-eval/65590)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 6\
**Last updated:** [August 19, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/basics-of-eval/65590 "2006-08-19T19:11:18Z")

</div>

Hi all, I’m a ‘ruby nubie’ and otherwise unfamiliar with the ‘:eval’ technique it employs. Are there any decent reference guides to it’s use? Alternatively, can anyone give me a quick explanation of what, when and h…

---

## [Ruby + IMAP + Attachment](https://www.ruby-forum.com/t/ruby-imap-attachment/65609)

<div class="topic-metadata">

**Author:** [@stian](https://www.ruby-forum.com/u/stian)\
**Replies:** 1\
**Last updated:** [August 19, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/ruby-imap-attachment/65609 "2006-08-19T19:09:18Z")

</div>

I am trying read out attachments using Net::IMAP, but this seems to be going nowhere. Docs make no mention of such, and I am at a loss on where to actually begin. I can read messages and such using Net::IMAP, even got…

---

## [Match all occurance of double quotes in a string](https://www.ruby-forum.com/t/match-all-occurance-of-double-quotes-in-a-string/65601)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 2\
**Last updated:** [August 19, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/match-all-occurance-of-double-quotes-in-a-string/65601 "2006-08-19T18:17:41Z")

</div>

I have a string something like this… “Now is the time for all good men to blah, blah…” - Origin unknown I want to convert it to this… Now is the time for all good men to blah, blah… - Origin unknown With the first d…

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

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