# Ruby

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

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

---

## [Newbie Metchanize Question](https://www.ruby-forum.com/t/newbie-metchanize-question/152190)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 4\
**Last updated:** [October 31, 2008, 2:31am UTC](https://www.ruby-forum.com/t/newbie-metchanize-question/152190 "2008-10-31T02:31:23Z")

</div>

Hello. I have a page that I get in mechanize. I can view all of the links on the page, but I actually only want to get some of the links on the page. How can I grab only what I need? The source code looks like this: …

---

## [How to sort this array](https://www.ruby-forum.com/t/how-to-sort-this-array/152182)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 8\
**Last updated:** [October 31, 2008, 2:24am UTC](https://www.ruby-forum.com/t/how-to-sort-this-array/152182 "2008-10-31T02:24:56Z")

</div>

Hi, I have an array containing files names. How do I sort them so that I can get the expected results? Thanks, Li ############# files=\[ “c:/ruby/self/2004/20.txt”, “c:/ruby/self/2004/3.txt”, “c:/ruby/self/2004/2…

---

## [Code Review: Contexts3](https://www.ruby-forum.com/t/code-review-contexts3/152192)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [October 31, 2008, 2:19am UTC](https://www.ruby-forum.com/t/code-review-contexts3/152192 "2008-10-31T02:19:05Z")

</div>

tfpt review “/shelveset:Contexts3;REDMOND\\tomat” Contains the changes from previously reviewed shelveset IDO2 + following changes (I needed to merge these due to TFS shutdown): DLR, Python changes: Replaces CodeConte…

---

## [The encoding alias named internal when Encoding.default\_internal is nil](https://www.ruby-forum.com/t/the-encoding-alias-named-internal-when-encoding-default-internal-is-nil/152146)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [October 31, 2008, 1:28am UTC](https://www.ruby-forum.com/t/the-encoding-alias-named-internal-when-encoding-default-internal-is-nil/152146 "2008-10-31T01:28:13Z")

</div>

Yuguie$B$G$9!#e(B default\_internale$B$,;XDj$5$l$F$$$J$$\>l9g$K$O%(%$%j%"%9e(Binternale$B$ODj5A$5$l$Je(B e$B$$$h$&$G$9$,!"$3$l$O;EMM$G$7$g$&$+!#e(B e$B$^$?!"0lJ}$Ge(BEncoding.aliasese$B$Oe(Binternale$B$r\>o$K4^$\`$h$&$G$9…

---

## [NotNaughty 0.6.2](https://www.ruby-forum.com/t/notnaughty-0-6-2/152193)

<div class="topic-metadata">

**Author:** [@Florian\_ASSSSmann](https://www.ruby-forum.com/u/Florian_ASSSSmann)\
**Replies:** 0\
**Last updated:** [October 31, 2008, 1:11am UTC](https://www.ruby-forum.com/t/notnaughty-0-6-2/152193 "2008-10-31T01:11:49Z")

</div>

Hi folks, I released NotNaughty version 0.6.2. NotNaughty is a validation framework. It’s main purpose was to provide more customizable validations to Ruby-Sequel but it can be used for all things you might want to v…

---

## [\[Bug:1.9\] $: includes "." when taint mode](https://www.ruby-forum.com/t/bug-1-9-includes-when-taint-mode/152130)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [October 31, 2008, 12:17am UTC](https://www.ruby-forum.com/t/bug-1-9-includes-when-taint-mode/152130 "2008-10-31T00:17:59Z")

</div>

e$B$J$+$@$G$9!#e(B -Te$B$r;XDj$7$F$be(B$:e$B$Ke(B"."e$B$,4^$^$l$F$$$^$9!#e(B $ RUBYOPT=-T ruby18 -e ‘p $:.include?(".")’ false $ RUBYOPT=-T ruby19 -e ‘p $:.include?(".")’ true Index: ruby.c — ruby.c (revision 2005…

---

## [Why doesn't this "belongs\_to" line of code, using options override, not work? (need help using bel](https://www.ruby-forum.com/t/why-doesnt-this-belongs-to-line-of-code-using-options-override-not-work-need-help-using-bel/152184)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/why-doesnt-this-belongs-to-line-of-code-using-options-override-not-work-need-help-using-bel/152184 "2008-10-30T23:45:22Z")

</div>

Hi, Anyone able to help out in how you use “belongs\_to” options so that I can have a 2nd attribute that also belongs to an associated table. My recurring items class belongs to a “transaction”, however I also want a…

---

## [Problem with copying array](https://www.ruby-forum.com/t/problem-with-copying-array/124090)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [October 30, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/problem-with-copying-array/124090 "2008-10-30T21:57:06Z")

</div>

Hi, I’m a total newbie with Ruby and I was trying to make this function that would get a (multidimensional) array, make a copy, make some changes to the copy and then return the copy, without altering the original arr…

---

## [Learning with projects](https://www.ruby-forum.com/t/learning-with-projects/152175)

<div class="topic-metadata">

**Author:** [@rushenaly](https://www.ruby-forum.com/u/rushenaly)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/learning-with-projects/152175 "2008-10-30T21:45:01Z")

</div>

Hi everybody, jedis of ruby… I want to learn ruby as a non experienced human organisma that never made any programming. I need to learn ruby and i want to find a tutorial which makes it possible to learn ruby with rea…

---

## [Nobody knows shoes, in pdf and html](https://www.ruby-forum.com/t/nobody-knows-shoes-in-pdf-and-html/130707)

<div class="topic-metadata">

**Author:** [@S\_why](https://www.ruby-forum.com/u/S_why)\
**Replies:** 10\
**Last updated:** [October 30, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/nobody-knows-shoes-in-pdf-and-html/130707 "2008-10-30T21:35:00Z")

</div>

Many hellos. Just a small footnote to add to this vast catalogue of e-mail. The futile zine Nobody Knows Shoes is today released into the public domain, as promised. PDF and HTML versions of the book are here: http…

---

## [Using Expect in Ruby](https://www.ruby-forum.com/t/using-expect-in-ruby/152159)

<div class="topic-metadata">

**Author:** [@stephan.zimmer](https://www.ruby-forum.com/u/stephan.zimmer)\
**Replies:** 6\
**Last updated:** [October 30, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/using-expect-in-ruby/152159 "2008-10-30T20:16:40Z")

</div>

I’m using Expect inside of a ruby script to control an external program. So far I have only used libexpect from a C program and would have several questions regarding the Ruby interface of Expect, maybe someone alread…

---

## [I'm having problems with fonts and RMagic/ImageMagic](https://www.ruby-forum.com/t/im-having-problems-with-fonts-and-rmagic-imagemagic/152161)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/im-having-problems-with-fonts-and-rmagic-imagemagic/152161 "2008-10-30T18:01:06Z")

</div>

I am getting this error: RMagick: unable to read font /usr/local/lib/ ImageMagick-6.3.7/config//usr/share/type1/gsfonts/n019003l.pfb I’ve checked and the font ‘does’ exist in that directory. I’ve read in several foru…

---

## [Code Review: LexicalScopes2](https://www.ruby-forum.com/t/code-review-lexicalscopes2/152106)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/code-review-lexicalscopes2/152106 "2008-10-30T17:52:54Z")

</div>

tfpt review “/shelveset:LexicalScopes2;REDMOND\\tomat” The actual shelveset :slight\_smile: Refactors and simplifies LexicalScope and allocation of local variables. Previously a LocalVariable instance was created per ea…

---

## [Question about method call](https://www.ruby-forum.com/t/question-about-method-call/151798)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 6\
**Last updated:** [October 30, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/question-about-method-call/151798 "2008-10-30T17:41:45Z")

</div>

Hi all, I copy a working script from the website. I wonder if method “create” defined in this class is ever called? Thanks, Li #########script############## require ‘fox16’ include Fox class HelloWindow \< FXMainW…

---

## [Question about case statement and lambdas](https://www.ruby-forum.com/t/question-about-case-statement-and-lambdas/152092)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 6\
**Last updated:** [October 30, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/question-about-case-statement-and-lambdas/152092 "2008-10-30T14:42:48Z")

</div>

I fear this has an obvious answer that I’m just not figuring out. Sometimes I dive into the Rails source code to see how something works (don’t worry, this isn’t a Rails question). I have been looking at the implemen…

---

## [Simple LDAP query](https://www.ruby-forum.com/t/simple-ldap-query/152023)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [October 30, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/simple-ldap-query/152023 "2008-10-30T14:15:16Z")

</div>

I’m using ruby-1.8.6 and trying to query my Windows Active Directory LDAP server. But I’m getting connection failed. I can ping the AD server, I can resolve the host name or the IP address and I know the LDAP authenti…

---

## [Sorting Array Of Dates](https://www.ruby-forum.com/t/sorting-array-of-dates/152089)

<div class="topic-metadata">

**Author:** [@chandu4ruby](https://www.ruby-forum.com/u/chandu4ruby)\
**Replies:** 8\
**Last updated:** [October 30, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/sorting-array-of-dates/152089 "2008-10-30T13:48:54Z")

</div>

Hi, Everyone I am a newbie to ruby… just started with some examples i have array date = \[‘12/09/2007’,‘06/06/2004’,‘10/06/2005’\] i wanted to sort dates in ascending order i.e \[‘06/06/2004’,‘10/06/2005’,‘12/09/2007’\] …

---

## [Rubot looks sketchy](https://www.ruby-forum.com/t/rubot-looks-sketchy/149683)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/rubot-looks-sketchy/149683 "2008-10-30T13:42:26Z")

</div>

Anyone know about this project? http://rubyforge.org/projects/rubot/ I found if odd that this v0.0.1 lib would be #3 all time top download at Rubyforge. Looking at what it’s does got me thinking it’s probably not bei…

---

## [Bug or not a bug? array\*=int](https://www.ruby-forum.com/t/bug-or-not-a-bug-array-int/152059)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 6\
**Last updated:** [October 30, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/bug-or-not-a-bug-array-int/152059 "2008-10-30T13:23:50Z")

</div>

So I’m wondering, is this a bug, or not a bug, or a type-o in the docs? According to class Array - RDoc Documentation array\*int “\[R\]eturns a new array built by concatenating the int copies of self.” Copies should be…

---

## [Rails gem site seems borked](https://www.ruby-forum.com/t/rails-gem-site-seems-borked/134735)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 8\
**Last updated:** [October 30, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/rails-gem-site-seems-borked/134735 "2008-10-30T13:12:51Z")

</div>

$ gem install rails Bulk updating Gem source index for: http://gems.rubyonrails.org/ Bulk updating Gem source index for: http://gems.rubyforge.org/ Bulk updating Gem source index for: http://gems.rubyonrails.org/ ERR…

---

## [\[Fw: Ruby question about irb\]](https://www.ruby-forum.com/t/fw-ruby-question-about-irb/151939)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 10:00am UTC](https://www.ruby-forum.com/t/fw-ruby-question-about-irb/151939 "2008-10-30T10:00:30Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. e$B0J2\<$Ne(BURLe$B$Ge(B Why is irb different from script file? - Ruby - Ruby-Forum e$B2\<5-$N$h$&$J\<ALd$,\>e$,$C$F$$$^$9e(B: – in irb def why? end =\> nil Object.public\_instance\_meth…

---

## [Passing block to CLS method via Action](https://www.ruby-forum.com/t/passing-block-to-cls-method-via-action/152119)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 8:16am UTC](https://www.ruby-forum.com/t/passing-block-to-cls-method-via-action/152119 "2008-10-30T08:16:10Z")

</div>

Will this ever be supported? // c# public void Tag(Action action) { action(); } // rb tag do puts ‘yay!’ end Cheers, Andrew.

---

## [Calling super from CLS override](https://www.ruby-forum.com/t/calling-super-from-cls-override/152104)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 7:53am UTC](https://www.ruby-forum.com/t/calling-super-from-cls-override/152104 "2008-10-30T07:53:55Z")

</div>

Hi, Was wondering if this is currently possible as I’m currently getting: System.ArgumentException : wrong number or type of arguments for Render' at \_stub\_$19##19(Closure , CallSite , RubyMethodScope , Object , Proc …

---

## [Hosting for Ruby Latinoamerica](https://www.ruby-forum.com/t/hosting-for-ruby-latinoamerica/152078)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 7:44am UTC](https://www.ruby-forum.com/t/hosting-for-ruby-latinoamerica/152078 "2008-10-30T07:44:06Z")

</div>

Hi all, Does anyone know any cheep rails hosting service for “Ruby Latinoamerica”? Each day more and more people are using ruby in Latin America so I guess it is necessary to stimulate this community. I’m building…

---

## [Hash.merge\_add! extension - how does this code look?](https://www.ruby-forum.com/t/hash-merge-add-extension-how-does-this-code-look/151825)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 17\
**Last updated:** [October 30, 2008, 6:08am UTC](https://www.ruby-forum.com/t/hash-merge-add-extension-how-does-this-code-look/151825 "2008-10-30T06:08:03Z")

</div>

Hi, I wanted a way to be able to “add” values to a Hash such that it keeps the old and the new values. For examples example adding an item to a hash for which the keys are dates. Here’s a first cut. Any feedback…

---

## [Code Review: LexicalScope2](https://www.ruby-forum.com/t/code-review-lexicalscope2/152102)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 4:37am UTC](https://www.ruby-forum.com/t/code-review-lexicalscope2/152102 "2008-10-30T04:37:24Z")

</div>

tfpt review “/shelveset:LexicalScope2;REDMOND\\tomat” Refactors and simplifies LexicalScope and allocation of local variables. Previously a LocalVariable instance was created per each local variable access, which is un…

---

## [Code Review: IDO2](https://www.ruby-forum.com/t/code-review-ido2/152101)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 4:35am UTC](https://www.ruby-forum.com/t/code-review-ido2/152101 "2008-10-30T04:35:38Z")

</div>

tfpt review “/shelveset:IDO2;REDMOND\\tomat” Comment : Implements more of IDO in Ruby. Adds InvokeMember action to DynamicOperations and ObjectOperations. Tomas

---

## [John Lam's IronRuby talk at PDC (video)](https://www.ruby-forum.com/t/john-lams-ironruby-talk-at-pdc-video/152099)

<div class="topic-metadata">

**Author:** [@Oleg\_T](https://www.ruby-forum.com/u/Oleg_T)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 4:34am UTC](https://www.ruby-forum.com/t/john-lams-ironruby-talk-at-pdc-video/152099 "2008-10-30T04:34:27Z")

</div>

Here is a video of John’s PDC talk “IronRuby: The Right Language for the Right Job” - Shows | Microsoft Learn

---

## [Arbitrary depth access yml with method\_missing help](https://www.ruby-forum.com/t/arbitrary-depth-access-yml-with-method-missing-help/152093)

<div class="topic-metadata">

**Author:** [@2tcreative](https://www.ruby-forum.com/u/2tcreative)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 3:51am UTC](https://www.ruby-forum.com/t/arbitrary-depth-access-yml-with-method-missing-help/152093 "2008-10-30T03:51:44Z")

</div>

Hi All, Say I have a class named \*TrackCompany , \*I want to recursively get some value from yml, like TrackCompany.instance.company01.log\_file, I use the methoding missing to implement it, so currently it will not …

---

## [Question concerning ruby file access](https://www.ruby-forum.com/t/question-concerning-ruby-file-access/152088)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 3\
**Last updated:** [October 30, 2008, 2:40am UTC](https://www.ruby-forum.com/t/question-concerning-ruby-file-access/152088 "2008-10-30T02:40:54Z")

</div>

Question concerning ruby file access from a novice: I have seen following code fragment from http://www.rubycentral.com/pickaxe/tut\_io.html File.open(“testfile”, “r”) do |aFile| … process the file end Advantage of …

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

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