# Ruby

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

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

---

## [An early farewell to optical media](https://www.ruby-forum.com/t/an-early-farewell-to-optical-media/66841)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [August 29, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/an-early-farewell-to-optical-media/66841 "2006-08-29T20:32:16Z")

</div>

Since it seems like such a slow day, I wrote a little piece on optical media if anyone’s interested: http://weblands.blogspot.com/. Anyway, no big deal, just thought some of you might be interested, esspecially the gr…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/102516 "2006-08-29T20:28:13Z")

</div>

I tried to send this before, but it didn’t seem to go through. Trying again. Sorry if this is a duplicate. James Edward G. II Begin forwarded message:

---

## [Fwd: Submission DayRange #92](https://www.ruby-forum.com/t/fwd-submission-dayrange-92/66850)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/fwd-submission-dayrange-92/66850 "2006-08-29T20:26:11Z")

</div>

I tried to send this before, but it didn’t seem to go through. Trying again. Sorry if this is a duplicate. James Edward G. II Begin forwarded message:

---

## [Re:](https://www.ruby-forum.com/t/re/66844)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 1\
**Last updated:** [August 29, 2006, 7:20pm UTC](https://www.ruby-forum.com/t/re/66844 "2006-08-29T19:20:00Z")

</div>

If you want to install Ruby (and Rails?) on Windows, check this http://ziodave.vox.com/library/post/ruby-on-rails-my-install-environment.html It’s about version 1.8.4, but should work with version 1.8.5 as well… David …

---

## [Error compiling rubygems 0.9.0](https://www.ruby-forum.com/t/error-compiling-rubygems-0-9-0/66845)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/error-compiling-rubygems-0-9-0/66845 "2006-08-29T19:18:00Z")

</div>

c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/package.rb:237: \[BUG\] Segmentation fault ruby 1.8.4 (2005-12-24) \[i386-mswin32\]

---

## [Meta.proposal.prepend\_with(Ruby Syntax)](https://www.ruby-forum.com/t/meta-proposal-prepend-with-ruby-syntax/66775)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 29, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/meta-proposal-prepend-with-ruby-syntax/66775 "2006-08-29T18:53:54Z")

</div>

Dear Rubytalkers, I was thinking that one of the reasons for my previous suggestion (combined with the suggestion of moving both inside the brackets) was deemed troublesome was due to it looking too Smalltalkish, so p…

---

## [Ruby gem quirk on Windoze](https://www.ruby-forum.com/t/ruby-gem-quirk-on-windoze/66840)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/ruby-gem-quirk-on-windoze/66840 "2006-08-29T18:31:51Z")

</div>

Considering gem spec file name “GothicInnovation.gemspec”: “gem build gothicinnovation.gemspec” executes perfectly. “gem install gothicinnovation” pukes. “gem install GothicInnovation” executes perfectly. “gem build”…

---

## [Help with ruby in chicago area](https://www.ruby-forum.com/t/help-with-ruby-in-chicago-area/66829)

<div class="topic-metadata">

**Author:** [@Joseph\_Alotta](https://www.ruby-forum.com/u/Joseph_Alotta)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/help-with-ruby-in-chicago-area/66829 "2006-08-29T17:35:38Z")

</div>

I want to sit down with someone in chicago area and help me get going with ruby. Help me to configure IRB and show me how to create a good debugging environment. I want to work with Mechanize, but I can’t see what i…

---

## [Fwd: DayRange (#92)](https://www.ruby-forum.com/t/fwd-dayrange-92/66826)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/fwd-dayrange-92/66826 "2006-08-29T17:19:30Z")

</div>

I thought I should post my original solution that got me wondering about better solutions and eventually got me to submit a quiz. Someone named their class DaySet, and I agree that’s a better name. I’ll probably cha…

---

## [Instance\_eval, yield, C extensions](https://www.ruby-forum.com/t/instance-eval-yield-c-extensions/66718)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [August 29, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/instance-eval-yield-c-extensions/66718 "2006-08-29T17:07:29Z")

</div>

Hi all, How do I write the code below within a C extension? I’ve seen a few threads about it (including ruby-talk: 86105) but I’m just not “getting it”. Assume Foo is a subclass of String module Kernel def my\_meth …

---

## [Extending class from other module](https://www.ruby-forum.com/t/extending-class-from-other-module/66790)

<div class="topic-metadata">

**Author:** [@subzero](https://www.ruby-forum.com/u/subzero)\
**Replies:** 3\
**Last updated:** [August 29, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/extending-class-from-other-module/66790 "2006-08-29T17:01:28Z")

</div>

1st question: If I got it right, modules in Ruby can be used as namespaces. Is it ok? Is there some other (preffered) way? 2nd question: I need to extend some class from one module in another one. Basically I do somet…

---

## [Including a class](https://www.ruby-forum.com/t/including-a-class/66786)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 3\
**Last updated:** [August 29, 2006, 4:43pm UTC](https://www.ruby-forum.com/t/including-a-class/66786 "2006-08-29T16:43:30Z")

</div>

Hi, As an extension on my earlier question of partial includes; I just noticed that you can’t include a Class, even though it is a Module. Anyone have a way of doing this? What I would like to do, is to be able to dy…

---

## [Sql Server 2005](https://www.ruby-forum.com/t/sql-server-2005/66611)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 29, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/sql-server-2005/66611 "2006-08-29T15:08:29Z")

</div>

I’m trying to follow the “rolling with ruby on rails” (http://shrinkster.com/hrp) tutorial, but want to get it working with SQL server express instead of mysql. I did all of the recommended steps I cound find: I copi…

---

## [Ruby-lang.org services are unstable](https://www.ruby-forum.com/t/ruby-lang-org-services-are-unstable/66799)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 12:38pm UTC](https://www.ruby-forum.com/t/ruby-lang-org-services-are-unstable/66799 "2006-08-29T12:38:54Z")

</div>

Hi, Services of ruby-lang.org are unstable because of hardware trouble. We are preparing an alternative machine. Sorry for inconvinience. Shugo

---

## [ruby-lang.org$B%5!\<%S%9ITD4(B](https://www.ruby-forum.com/t/ruby-lang-org-b-5-s-9itd4-b/66798)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/ruby-lang-org-b-5-s-9itd4-b/66798 "2006-08-29T12:36:54Z")

</div>

e$BA0ED$G$9!#e(B ruby-lang.orge$B$N%5!\<%S%9$rDs6!$7$F$$$k%5!\<%P$N%O!\<%I%&%’%"$Ne(B e$BITD4$N$?$a!"%5!\<%S%9$,IT0BDj$K$J$C$F$$$^$9!#e(B e$B$5$7$"$?$je(BMLe$B$OB\>$N%5!\<%P$K%5!\<%S%9$r0l;~E\*$K0$7$^$7$?!#e(B e$B8=:\_BeBX5!$…

---

## [Asymmetric encryption options](https://www.ruby-forum.com/t/asymmetric-encryption-options/66643)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 8\
**Last updated:** [August 29, 2006, 10:40am UTC](https://www.ruby-forum.com/t/asymmetric-encryption-options/66643 "2006-08-29T10:40:33Z")

</div>

Without going into too much detail, I’ve run into a roadblock using rsa. I need to encrypt data that is larger than the key size. Right now I am generating a random key, encrypting the data with it using AES, then …

---

## [So you want to make Ruby leak memory? Here's a simple way](https://www.ruby-forum.com/t/so-you-want-to-make-ruby-leak-memory-heres-a-simple-way/66758)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [August 29, 2006, 10:24am UTC](https://www.ruby-forum.com/t/so-you-want-to-make-ruby-leak-memory-heres-a-simple-way/66758 "2006-08-29T10:24:32Z")

</div>

Make a hash: h = {‘a’ =\> 1, ‘b’ =\> 2, ‘c’ =\> 3} And make another out of it: Hash\[h\] Do that a lot. Watch RAM vanish. GC cleans up the objects out of object space just fine, but RAM trickles away nonetheless. Her…

---

## [Error compiling with rubyinline](https://www.ruby-forum.com/t/error-compiling-with-rubyinline/66712)

<div class="topic-metadata">

**Author:** [@OliverMarchand](https://www.ruby-forum.com/u/OliverMarchand)\
**Replies:** 2\
**Last updated:** [August 29, 2006, 10:22am UTC](https://www.ruby-forum.com/t/error-compiling-with-rubyinline/66712 "2006-08-29T10:22:32Z")

</div>

Dear Rubyists, I am encountering trouble compiling with RubyInline. Inside rubyinline there is a construction of the command to create the library file: cmd = “#{Config::CONFIG\[‘LDSHARED’\]} #{flags} #{Config::CONFIG\[…

---

## [Partial append\_features?](https://www.ruby-forum.com/t/partial-append-features/66728)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 15\
**Last updated:** [August 29, 2006, 10:10am UTC](https://www.ruby-forum.com/t/partial-append-features/66728 "2006-08-29T10:10:31Z")

</div>

Hi, I’m looking for a way to copy methods from a Module, or specify more directly which methods get included in a class. More or less, I would like to be able to do something like this: module Foo def do\_one\_thing …

---

## [Ruby alias problem](https://www.ruby-forum.com/t/ruby-alias-problem/66780)

<div class="topic-metadata">

**Author:** [@subzero](https://www.ruby-forum.com/u/subzero)\
**Replies:** 2\
**Last updated:** [August 29, 2006, 9:12am UTC](https://www.ruby-forum.com/t/ruby-alias-problem/66780 "2006-08-29T09:12:24Z")

</div>

I have a class like this: class Control attr\_accessor :name, :parent, :children alias \[\] getChild def initialize(name) self.name = name @children = Hash.new end def addChild(child) child.parent = self @children\[…

---

## [Ruby 1.8.5: cannot use rdoc/usage from a gem executable](https://www.ruby-forum.com/t/ruby-1-8-5-cannot-use-rdoc-usage-from-a-gem-executable/66781)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 8:56am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-cannot-use-rdoc-usage-from-a-gem-executable/66781 "2006-08-29T08:56:22Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, In Ruby 1.8.5, RDoc::usage\_no\_exit parses usage information from the earliest file in the Kernel#caller list. This works well if you directly invoke the file cont…

---

## [Rubyforge hosted mailing lists](https://www.ruby-forum.com/t/rubyforge-hosted-mailing-lists/66779)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 0\
**Last updated:** [August 29, 2006, 7:53am UTC](https://www.ruby-forum.com/t/rubyforge-hosted-mailing-lists/66779 "2006-08-29T07:53:43Z")

</div>

Anyone else had issues the last couple of weeks with mailing lists hosted on rubyforge? Sometimes they go right through, sometimes it takes a couple of days, and some just disappear. Funny thing is I go to rubyforge…

---

## [A newbie question about case and ===](https://www.ruby-forum.com/t/a-newbie-question-about-case-and/66763)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 4\
**Last updated:** [August 29, 2006, 6:29am UTC](https://www.ruby-forum.com/t/a-newbie-question-about-case-and/66763 "2006-08-29T06:29:11Z")

</div>

Hey Guys, Let me apologize upfront if this is not the appropriate place to ask newbie questions. I can repost, if someone can point me to the correct location. Assuming no is offended, my question is: I read that t…

---

## [Problems compiling Ruby/Tk](https://www.ruby-forum.com/t/problems-compiling-ruby-tk/66409)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 7\
**Last updated:** [August 29, 2006, 5:41am UTC](https://www.ruby-forum.com/t/problems-compiling-ruby-tk/66409 "2006-08-29T05:41:35Z")

</div>

Hi, I am having problems getting Ruby/Tk to work. Below are the results of my attempts to get Tk working. My configure command: ./configure --prefix=/opt/ruby --enable-thread Results of make: compiling tk compili…

---

## [Should Array.new(n, obj) be deprecated?](https://www.ruby-forum.com/t/should-array-new-n-obj-be-deprecated/66764)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 10\
**Last updated:** [August 29, 2006, 5:27am UTC](https://www.ruby-forum.com/t/should-array-new-n-obj-be-deprecated/66764 "2006-08-29T05:27:34Z")

</div>

It seems well known that the Array constructor form Array.new(n, obj) causes a common gotcha for programmers new to ruby (see \* below for details). My question: is there ever any reason to use this form in favor of …

---

## [For performance, write it in C](https://www.ruby-forum.com/t/for-performance-write-it-in-c/99952)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 152\
**Last updated:** [August 29, 2006, 4:37am UTC](https://www.ruby-forum.com/t/for-performance-write-it-in-c/99952 "2006-08-29T04:37:30Z")

</div>

Whenever the question of performance comes up with scripting languages such as Ruby, Perl or Python there will be people whose response can be summarised as “Write it in C”. I am one such person. Some people take offe…

---

## [ActiveRecord, has\_many and \_count](https://www.ruby-forum.com/t/activerecord-has-many-and-count/66736)

<div class="topic-metadata">

**Author:** [@SSSSric\_DUMINIL](https://www.ruby-forum.com/u/SSSSric_DUMINIL)\
**Replies:** 3\
**Last updated:** [August 29, 2006, 4:35am UTC](https://www.ruby-forum.com/t/activerecord-has-many-and-count/66736 "2006-08-29T04:35:29Z")

</div>

Hi everybody! Here are trunks of models from a little rails app I’m developing: ########################### class Country \< ActiveRecord::Base has\_many :companies … ########################### class Category \< Act…

---

## [Rescue http Bad File Descriptor error (EBADF)](https://www.ruby-forum.com/t/rescue-http-bad-file-descriptor-error-ebadf/66644)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 2\
**Last updated:** [August 29, 2006, 4:13am UTC](https://www.ruby-forum.com/t/rescue-http-bad-file-descriptor-error-ebadf/66644 "2006-08-29T04:13:24Z")

</div>

I have a little web spider that scraps several web pages. Sometimes the script gets a Bad File Descriptor error and the script bails out. As far as I can understand this error is an OS (Windows XP) error and there is…

---

## [Version Check in C Extension](https://www.ruby-forum.com/t/version-check-in-c-extension/66693)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [August 29, 2006, 3:59am UTC](https://www.ruby-forum.com/t/version-check-in-c-extension/66693 "2006-08-29T03:59:23Z")

</div>

Hello! How can I check for the Ruby version inside a C extension? I found some constants in version.h, but I don’t think that file is included via ruby.h and it has a very common name that may conflicts with similar …

---

## [FasterCSV problem](https://www.ruby-forum.com/t/fastercsv-problem/66741)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 6\
**Last updated:** [August 29, 2006, 12:59am UTC](https://www.ruby-forum.com/t/fastercsv-problem/66741 "2006-08-29T00:59:08Z")

</div>

Is there any way to make the faster CSV library parse this line? 20 6" Multibrand Pricer Insert 2 4 I know i can use the :col\_sep options to change the column separator to a tab, but it fails to parse this because o…

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

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