# Ruby

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

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

---

## [Regexp challenge](https://www.ruby-forum.com/t/regexp-challenge/104901)

<div class="topic-metadata">

**Author:** [@Casimir\_P](https://www.ruby-forum.com/u/Casimir_P)\
**Replies:** 6\
**Last updated:** [May 23, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/regexp-challenge/104901 "2007-05-23T22:55:22Z")

</div>

Just out of curiosity, for fun: Whats the rubyest ruby program you can code for opening a directory of files and replacing a particular string in all files (if found) with another string? Lets suppose that all files …

---

## [Reading files with comments with FasterCSV](https://www.ruby-forum.com/t/reading-files-with-comments-with-fastercsv/104913)

<div class="topic-metadata">

**Author:** [@swabianeagle](https://www.ruby-forum.com/u/swabianeagle)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/reading-files-with-comments-with-fastercsv/104913 "2007-05-23T21:04:00Z")

</div>

Hi, I’m trying to read csv files using FasterCSV. I have two problems: Some of my files have a few lines of comments before the actual header. Is there a way to read the whole file at once, for example with csv =…

---

## [Small Ruby IDE (Debugging)](https://www.ruby-forum.com/t/small-ruby-ide-debugging/104812)

<div class="topic-metadata">

**Author:** [@jbucaran](https://www.ruby-forum.com/u/jbucaran)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/small-ruby-ide-debugging/104812 "2007-05-23T21:02:00Z")

</div>

Hi, As a project of mine I want to build a very simple and small IDE for Ruby. It will contain basically 4 key things I need and like: @Project organizing @Code completion @Syntax highlighting @Debugging All but t…

---

## [Rubyforge etiquette for dead projects](https://www.ruby-forum.com/t/rubyforge-etiquette-for-dead-projects/104433)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 11\
**Last updated:** [May 23, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/rubyforge-etiquette-for-dead-projects/104433 "2007-05-23T20:53:59Z")

</div>

Apologies if this is not the right forum for this, but this surely has the right audience. I have been using a few projects on rubyforge / sourceforge (ruby projects) which are now unfortunately dead (no SVN activity …

---

## [A very early Ruby problem](https://www.ruby-forum.com/t/a-very-early-ruby-problem/104854)

<div class="topic-metadata">

**Author:** [@Jonndailey](https://www.ruby-forum.com/u/Jonndailey)\
**Replies:** 5\
**Last updated:** [May 23, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/a-very-early-ruby-problem/104854 "2007-05-23T20:52:59Z")

</div>

In Chris P.'s book, “Learn to Program”, he asks you to write a small app. I’m having trouble writing this app and I was wondering if anyone could help me out. Here’s the excerpt: “I guess we could write a program whi…

---

## [Behavior of -rsomegem differs from require 'somegem'](https://www.ruby-forum.com/t/behavior-of-rsomegem-differs-from-require-somegem/104814)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 2\
**Last updated:** [May 23, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/behavior-of-rsomegem-differs-from-require-somegem/104814 "2007-05-23T19:43:49Z")

</div>

I just encountered something today and I’m not sure if this should be the expected behaviour. Most likely I’m doing something odd here. I believe this only affects items require’d as gems. \> ruby -v ruby 1.8.6 (2007-…

---

## [Problem appending to arrays in a hash of arrays](https://www.ruby-forum.com/t/problem-appending-to-arrays-in-a-hash-of-arrays/104841)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 4\
**Last updated:** [May 23, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/problem-appending-to-arrays-in-a-hash-of-arrays/104841 "2007-05-23T19:41:49Z")

</div>

I’m trying to create a hash with each element being an array (initially empty), and I’ve tried a few variations to get what I want. Why don’t the last 2 lines work? h = Hash.new ( Array.new ) h\[“abc”\] = h\[“abc”\] + \[…

---

## [Some Ruby Features missing](https://www.ruby-forum.com/t/some-ruby-features-missing/104330)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 20\
**Last updated:** [May 23, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/some-ruby-features-missing/104330 "2007-05-23T17:52:35Z")

</div>

To start a new Ruby Project I need some more features that I know partially from Java: Does Ruby support Annotations? Or is there another cool way to do this without changing the class itself? -\> I need to tell re…

---

## [Uniform Random Number Generator](https://www.ruby-forum.com/t/uniform-random-number-generator/104815)

<div class="topic-metadata">

**Author:** [@roland](https://www.ruby-forum.com/u/roland)\
**Replies:** 10\
**Last updated:** [May 23, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/uniform-random-number-generator/104815 "2007-05-23T17:09:29Z")

</div>

I need a random number generator that generates random numbers with a uniform distribution. I am not sure what rand does in ruby and I can’t seem to find it online either. My initial assumption is that it follows a un…

---

## [Ruby libnet](https://www.ruby-forum.com/t/ruby-libnet/104742)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 18\
**Last updated:** [May 23, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/ruby-libnet/104742 "2007-05-23T15:51:14Z")

</div>

hey, I’ve read anansi’s email on this. but i’m having different problems. when I run ‘ruby extconf.rb’, it says “ruby headers not found”. What does this mean? Also, do I need to download the original libnet files, an…

---

## [Coverage!](https://www.ruby-forum.com/t/coverage/131617)

<div class="topic-metadata">

**Author:** [@koustubh\_joshi](https://www.ruby-forum.com/u/koustubh_joshi)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/coverage/131617 "2007-05-23T14:36:59Z")

</div>

Hi, Am trying to run my ruby files in rcov task, here is the code, am using, begin require ‘rcov/rcovtask’ Rcov::RcovTask.new do |t| t.test\_files = FileList\["/\*\*/TestCase/\*.rb"\] t.verbose = true end rescue LoadEr…

---

## [Huntsville, Alabama area Ruby Users Group (hsv.rb)](https://www.ruby-forum.com/t/huntsville-alabama-area-ruby-users-group-hsv-rb/104877)

<div class="topic-metadata">

**Author:** [@Lyle\_J](https://www.ruby-forum.com/u/Lyle_J)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/huntsville-alabama-area-ruby-users-group-hsv-rb/104877 "2007-05-23T14:22:55Z")

</div>

All, I’m pleased to announce that we are organizing a user group for Ruby (and Rails) enthusiasts in the Huntsville, Alabama area: http://groups.google.com/group/hsvrb?hl=en We’re currently just trying to build up th…

---

## [Storing boolean flags in numbers](https://www.ruby-forum.com/t/storing-boolean-flags-in-numbers/104871)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [May 23, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/storing-boolean-flags-in-numbers/104871 "2007-05-23T14:03:04Z")

</div>

I might sound completely dumb asking this question, but well, I’ll risk it anyway! Some years ago I read about using a single number as a mechanism for storing flags (on/off values) in a Java magazine. By setting the…

---

## [Simulating single assignment in Ruby](https://www.ruby-forum.com/t/simulating-single-assignment-in-ruby/104444)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 7\
**Last updated:** [May 23, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/simulating-single-assignment-in-ruby/104444 "2007-05-23T12:59:42Z")

</div>

Hi, Is there a way to freeze instance variables in Ruby in order to make them single assignment? I’m just wondering if there’s a way to simulate Erlang in this regard as a way to avoid side effects. I don’t want to s…

---

## [How to unsubscribe?](https://www.ruby-forum.com/t/how-to-unsubscribe/104869)

<div class="topic-metadata">

**Author:** [@Nicolas\_Montessuit](https://www.ruby-forum.com/u/Nicolas_Montessuit)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/how-to-unsubscribe/104869 "2007-05-23T12:53:42Z")

</div>

Idle Question : How do I unsubscribe from this list ? Please help !!! — esc

---

## [Northern VA Ruby User's Group](https://www.ruby-forum.com/t/northern-va-ruby-users-group/104868)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 11:59am UTC](https://www.ruby-forum.com/t/northern-va-ruby-users-group/104868 "2007-05-23T11:59:34Z")

</div>

Hello world - If you’re in the northern Virginia area, drop by the NovaRUG meeting today, Wednesday May 23. We’ll be having sort of a RailsConf recap; directions and details are here: http://novarug.org/ Yours, To…

---

## [String -\> symbol, redux](https://www.ruby-forum.com/t/string-symbol-redux/104846)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 11:24am UTC](https://www.ruby-forum.com/t/string-symbol-redux/104846 "2007-05-23T11:24:30Z")

</div>

ok… i’m still not getting it. i want the elegant way to do the last two lines in my Server initialize. and please be kind - i’m just a programming hack, not a professional. =) module Toc44\_all def toc44\_all\_system…

---

## [Ruby and SDL](https://www.ruby-forum.com/t/ruby-and-sdl/104837)

<div class="topic-metadata">

**Author:** [@bino](https://www.ruby-forum.com/u/bino)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 10:31am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/104837 "2007-05-23T10:31:29Z")

</div>

Hi All … I want to learn more about Ruby and SDL … Found there is 3 “project” about it Ruby/SDL Rudl RubyGame But I found none of them have active user group forum/list Anyone know about the most active user group …

---

## [Can I open RAR files?](https://www.ruby-forum.com/t/can-i-open-rar-files/104760)

<div class="topic-metadata">

**Author:** [@xarc](https://www.ruby-forum.com/u/xarc)\
**Replies:** 5\
**Last updated:** [May 23, 2007, 9:08am UTC](https://www.ruby-forum.com/t/can-i-open-rar-files/104760 "2007-05-23T09:08:13Z")

</div>

Hi! How can I open .rar files from ruby?

---

## [Module problems](https://www.ruby-forum.com/t/module-problems/104831)

<div class="topic-metadata">

**Author:** [@Ogre](https://www.ruby-forum.com/u/Ogre)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 8:45am UTC](https://www.ruby-forum.com/t/module-problems/104831 "2007-05-23T08:45:15Z")

</div>

I’m new at Ruby/Rails, so must have missed something obvious. I’m trying to use the module “sortable\_column\_headers”, which I obtained from https://svn.elctech.com/svn/public/sortable\_column\_headers/. When I try to l…

---

## [Substituting variables in a method](https://www.ruby-forum.com/t/substituting-variables-in-a-method/104829)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 7\
**Last updated:** [May 23, 2007, 7:16am UTC](https://www.ruby-forum.com/t/substituting-variables-in-a-method/104829 "2007-05-23T07:16:08Z")

</div>

I am trying to figure out how to pass variables for the parameters to a method. I want to do something like b = a.tr({c}, {d}) where ‘c’ is the text to be matched and ‘d’ is the replacement text. Obviously the above …

---

## [Confusing array garbage collection, how to get valid heap sn](https://www.ruby-forum.com/t/confusing-array-garbage-collection-how-to-get-valid-heap-sn/197185)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 6:17am UTC](https://www.ruby-forum.com/t/confusing-array-garbage-collection-how-to-get-valid-heap-sn/197185 "2007-05-23T06:17:05Z")

</div>

We are working on tracking down a memory leak, and are hoping to use heap snapshotting to find the culprit. Using the neat bleak\_house library: I have got snapshotting working on my local machine. Note this library …

---

## [Test/unit autorun fails to set exit status on failure](https://www.ruby-forum.com/t/test-unit-autorun-fails-to-set-exit-status-on-failure/104840)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 6:15am UTC](https://www.ruby-forum.com/t/test-unit-autorun-fails-to-set-exit-status-on-failure/104840 "2007-05-23T06:15:05Z")

</div>

Consider the elementary unit test that fails… =try.rb=============================================================== require ‘test/unit’ class TC\_OurTest \< Test::Unit::TestCase def test\_fail assert(false, ‘Assertion…

---

## [SOAP Client -getting data from SOAP::Mapping::Object?](https://www.ruby-forum.com/t/soap-client-getting-data-from-soap-object/104839)

<div class="topic-metadata">

**Author:** [@masonbrown](https://www.ruby-forum.com/u/masonbrown)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 5:27am UTC](https://www.ruby-forum.com/t/soap-client-getting-data-from-soap-object/104839 "2007-05-23T05:27:01Z")

</div>

I’ve been staring at this for too long, and at this point my mind can’t think clearly enough to continue without help… I’ve never worked with SOAP before, so forgive me if I’m overlooking something simple. I’m using…

---

## [Confusing array garbage collection, how to get valid heap sn](https://www.ruby-forum.com/t/confusing-array-garbage-collection-how-to-get-valid-heap-sn/104833)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 5:13am UTC](https://www.ruby-forum.com/t/confusing-array-garbage-collection-how-to-get-valid-heap-sn/104833 "2007-05-23T05:13:00Z")

</div>

We are working on tracking down a memory leak, and are hoping to use heap snapshotting to find the culprit. Using the neat bleak\_house library: I have got snapshotting working on my local machine. Note this library …

---

## [Paper on mixins](https://www.ruby-forum.com/t/paper-on-mixins/104842)

<div class="topic-metadata">

**Author:** [@smokinn](https://www.ruby-forum.com/u/smokinn)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 4:57am UTC](https://www.ruby-forum.com/t/paper-on-mixins/104842 "2007-05-23T04:57:59Z")

</div>

Hi everyone, I’m writing a paper on ruby mixins and thought it might be interesting to some of you on this list. It’s not really done (only due at the end of the month) so any comments or criticisms are appreciated. I…

---

## [Confusing array garbage collection, how to get valid heap sn](https://www.ruby-forum.com/t/confusing-array-garbage-collection-how-to-get-valid-heap-sn/131060)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 3:57am UTC](https://www.ruby-forum.com/t/confusing-array-garbage-collection-how-to-get-valid-heap-sn/131060 "2007-05-23T03:57:55Z")

</div>

We are working on tracking down a memory leak, and are hoping to use heap snapshotting to find the culprit. Using the neat bleak\_house library: I have got snapshotting working on my local machine. Note this library …

---

## [Erubis 2.3.0 released - a fast and extensible eRuby implemen](https://www.ruby-forum.com/t/erubis-2-3-0-released-a-fast-and-extensible-eruby-implemen/104836)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 3:46am UTC](https://www.ruby-forum.com/t/erubis-2-3-0-released-a-fast-and-extensible-eruby-implemen/104836 "2007-05-23T03:46:54Z")

</div>

Hi all, I have just released Erubis 2.3.0. Erubis is another implementation of eRuby and it gives more speed to Ruby on Rails application. http://www.kuwata-lab.com/erubis http://www.kuwata-lab.com/erubis/CHANGES F…

---

## [String -\> symbol](https://www.ruby-forum.com/t/string-symbol/104813)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [May 23, 2007, 12:14am UTC](https://www.ruby-forum.com/t/string-symbol/104813 "2007-05-23T00:14:39Z")

</div>

ok - i’m officially an idiot. i want to dynamically alias the names of all methods in a module… i need to string-manipulate the original method name to get the new one. alias\_method only takes symbol names and the onl…

---

## [CGI#\[key\]$B$,B8:\_$7$J$$$H$-$N5sF0(B](https://www.ruby-forum.com/t/cgi-key-b-b8-7-j-h-n5sf0-b/93151)

<div class="topic-metadata">

**Author:** [@Kentaro\_KAWAMOTO](https://www.ruby-forum.com/u/Kentaro_KAWAMOTO)\
**Replies:** 1\
**Last updated:** [May 22, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/cgi-key-b-b8-7-j-h-n5sf0-b/93151 "2007-05-22T23:55:38Z")

</div>

e$B$3$s$K$A$O!#e(B e$B@nK$H?=$7$^$9!#e(B CGI e$B$Ne(B self\[key\] e$B$N5sF0$G$9$,!"e(B http://www.ruby-lang.org/ja/man/?cmd=view;name=cgi#class.20CGI e$B$r8+$k$H!"e(B ruby 1.8 feature: … e$B$^$?e(B key e$B$KBP1~$9$k%…

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

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