# Ruby

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

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

---

## [Newb: setting up GNU Emacs for Ruby -- help](https://www.ruby-forum.com/t/newb-setting-up-gnu-emacs-for-ruby-help/65016)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 10\
**Last updated:** [August 16, 2006, 6:12pm UTC](https://www.ruby-forum.com/t/newb-setting-up-gnu-emacs-for-ruby-help/65016 "2006-08-16T18:12:25Z")

</div>

I’d like to get GNU Emacs set up for use with Ruby, and I’m hoping someone here might help. I’ve got emacs installed, and I found the \*.el files in …/src/ruby-1.8.4/misc, but I think the README in there assumes you a…

---

## [Temporary failure in name resolution](https://www.ruby-forum.com/t/temporary-failure-in-name-resolution/65149)

<div class="topic-metadata">

**Author:** [@hemant\_kumar](https://www.ruby-forum.com/u/hemant_kumar)\
**Replies:** 1\
**Last updated:** [August 16, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/temporary-failure-in-name-resolution/65149 "2006-08-16T16:35:34Z")

</div>

Within my rails application, I make exactly one connection to a drb server, using following code: def connect\_to\_drb DRb.start\_service #line no 29 of program begin @drb\_con = DRbObject.new(nil, ‘druby://’+@drb\_ip.s…

---

## [Newbie doubts about the quiz](https://www.ruby-forum.com/t/newbie-doubts-about-the-quiz/65061)

<div class="topic-metadata">

**Author:** [@marcelo\_a](https://www.ruby-forum.com/u/marcelo_a)\
**Replies:** 16\
**Last updated:** [August 16, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/newbie-doubts-about-the-quiz/65061 "2006-08-16T16:11:28Z")

</div>

Hey, People. I’m a newbie, as the subject implies, and some questions about Ruby raised when I was trying to solve this quiz. I’m not trying to create a very fast solution, I’m only trying to learn mor of the languag…

---

## [\[ANN\] Dr Nicâ?s Magic Models](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models/101783)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 18\
**Last updated:** [August 16, 2006, 4:00pm UTC](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models/101783 "2006-08-16T16:00:29Z")

</div>

\[Cross-posted on Ruby on Rails forum\] Welcome! Welcome! Welcome! Ladies and Gentlemen, today you shall be thrilled and dazzled by wonders of magical mystery. Dr Nicâ??s Magic Models will now be unveiled to all. Myster…

---

## [Php x ruby (64 bits em linux)](https://www.ruby-forum.com/t/php-x-ruby-64-bits-em-linux/65049)

<div class="topic-metadata">

**Author:** [@airmind](https://www.ruby-forum.com/u/airmind)\
**Replies:** 7\
**Last updated:** [August 16, 2006, 2:29pm UTC](https://www.ruby-forum.com/t/php-x-ruby-64-bits-em-linux/65049 "2006-08-16T14:29:07Z")

</div>

Boa tarde a todos. Trabalho basicamente com intranets, contas a pagar/receber, controle de estoque etc. Em produção atualmente utilizamos php, nosso servidor principal é Fedora Core 5 64 bits. Temos tido dificuldade…

---

## [Building a log by watching a file](https://www.ruby-forum.com/t/building-a-log-by-watching-a-file/65041)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 4\
**Last updated:** [August 16, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/building-a-log-by-watching-a-file/65041 "2006-08-16T13:53:04Z")

</div>

I’ve been paying attention to some mind-numbing chores I’ve been tasked to do lately, and I think Ruby might be able to help. Let me know what you think. We have many crusty Fortran (and FORTRAN) codes lying around …

---

## [Strange bit of code](https://www.ruby-forum.com/t/strange-bit-of-code/65104)

<div class="topic-metadata">

**Author:** [@Matthew\_J.son](https://www.ruby-forum.com/u/Matthew_J.son)\
**Replies:** 2\
**Last updated:** [August 16, 2006, 12:49pm UTC](https://www.ruby-forum.com/t/strange-bit-of-code/65104 "2006-08-16T12:49:58Z")

</div>

I came across an unusual behavior of remove\_method the other day. When I discovered that it didn’t work as I expected I experimented until I found a relatively simple example illustrating what happens. The show method…

---

## [Why Ruby doesn't have some xor operator?](https://www.ruby-forum.com/t/why-ruby-doesnt-have-some-xor-operator/65122)

<div class="topic-metadata">

**Author:** [@elgato](https://www.ruby-forum.com/u/elgato)\
**Replies:** 3\
**Last updated:** [August 16, 2006, 11:52am UTC](https://www.ruby-forum.com/t/why-ruby-doesnt-have-some-xor-operator/65122 "2006-08-16T11:52:54Z")

</div>

Hello, #{subj} — not only (False|True|Nil)Class#^, but some general one, like the and and or are. May be also ^^ with higher precedence. P.

---

## [1.9 proposal: remove Win32API.so](https://www.ruby-forum.com/t/1-9-proposal-remove-win32api-so/65124)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [August 16, 2006, 11:34am UTC](https://www.ruby-forum.com/t/1-9-proposal-remove-win32api-so/65124 "2006-08-16T11:34:52Z")

</div>

ã?ã??ã«ã¡ã¯ã?ãªã?ã??ã??(ã?)ã§ã?ã?? 1.9ã?ã??ext/dl/lib/dl/win32.rbã?ãªããªã£ã¦ä¹?ã?ã?ã?ã?ã§ã?ã?ã?ã ã®ã¾ã¾å¾©æ´»ã?ã?ã??ã®ã??ãªã??ãªã®ã§ã?ä»¥ä¸?ã®ã??ã?ã«ã?ã?ã?ã¨è??ã?ã¦ã? ã…

---

## [Problem with date.succ](https://www.ruby-forum.com/t/problem-with-date-succ/65004)

<div class="topic-metadata">

**Author:** [@Russ\_P](https://www.ruby-forum.com/u/Russ_P)\
**Replies:** 3\
**Last updated:** [August 16, 2006, 11:19am UTC](https://www.ruby-forum.com/t/problem-with-date-succ/65004 "2006-08-16T11:19:50Z")

</div>

I’m having difficulty with a small program I’m writing dealing with dates. I’ve written the calendar class below. It works just fine when calling getMonth for all months EXCEPT NOVEMBER. Interrupting the call while…

---

## [Is there some ruby equivalent of perl's /\\Q...\\E/?](https://www.ruby-forum.com/t/is-there-some-ruby-equivalent-of-perls-q-e/65113)

<div class="topic-metadata">

**Author:** [@elgato](https://www.ruby-forum.com/u/elgato)\
**Replies:** 1\
**Last updated:** [August 16, 2006, 11:16am UTC](https://www.ruby-forum.com/t/is-there-some-ruby-equivalent-of-perls-q-e/65113 "2006-08-16T11:16:49Z")

</div>

Hello, in Perl I have \\Q and \\E in regexps allowing me to “literally” insert variable containing special characters: $ perl -e ‘$a=".\*"; print “a”=~/$a/ || 0, “a”=~/\\Q$a\\E/ || 0, “\\n”’ 10 $ i.e., for nonperlists, i…

---

## [Block commenting-out](https://www.ruby-forum.com/t/block-commenting-out/64857)

<div class="topic-metadata">

**Author:** [@newyorkdolluk](https://www.ruby-forum.com/u/newyorkdolluk)\
**Replies:** 18\
**Last updated:** [August 16, 2006, 8:52am UTC](https://www.ruby-forum.com/t/block-commenting-out/64857 "2006-08-16T08:52:42Z")

</div>

hi, can anyone tell me how to bulk comment-out lines of code rather than #'ing each line? thanks

---

## [Strange problem with ruby-dbi and arrays](https://www.ruby-forum.com/t/strange-problem-with-ruby-dbi-and-arrays/65107)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 5\
**Last updated:** [August 16, 2006, 7:31am UTC](https://www.ruby-forum.com/t/strange-problem-with-ruby-dbi-and-arrays/65107 "2006-08-16T07:31:36Z")

</div>

No clue what I am doing wrong here. It’s hard to give a complete test case because it involves a database but maybe someone can spot what I’m doing wrong. with each fetch, tlist is growing by one, but all the elemen…

---

## [Spelunking in Ruby's Source](https://www.ruby-forum.com/t/spelunking-in-rubys-source/64875)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [August 16, 2006, 6:19am UTC](https://www.ruby-forum.com/t/spelunking-in-rubys-source/64875 "2006-08-16T06:19:31Z")

</div>

Ruby for Rails makes an interesting claim that object\_id(), send(), and respond\_to?() are defined on Kernel. I didn’t expect this, so I went into the source to verify and it does seem to be true in Ruby 1.8.x. These…

---

## [Debug tool?](https://www.ruby-forum.com/t/debug-tool/65093)

<div class="topic-metadata">

**Author:** [@krf](https://www.ruby-forum.com/u/krf)\
**Replies:** 2\
**Last updated:** [August 16, 2006, 4:28am UTC](https://www.ruby-forum.com/t/debug-tool/65093 "2006-08-16T04:28:18Z")

</div>

I just started Ruby so I am not going to ask any dumb howto questions (yet) but am looking for some information that googling is not getting (and a 24k dialup line isn’t helping much, either) With Perl I use the wonde…

---

## [Is there a Photoshop-like image handling library?](https://www.ruby-forum.com/t/is-there-a-photoshop-like-image-handling-library/65098)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 1\
**Last updated:** [August 16, 2006, 4:13am UTC](https://www.ruby-forum.com/t/is-there-a-photoshop-like-image-handling-library/65098 "2006-08-16T04:13:16Z")

</div>

Hi, My co-worker is trying to improve his application(in VB) which takes x-ray images. He needs to add a function to sharpen the images. He’s trying different techniques but haven’t found a good one yet. I want to t…

---

## [Semantics of VALUE](https://www.ruby-forum.com/t/semantics-of-value/65007)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 2\
**Last updated:** [August 16, 2006, 3:16am UTC](https://www.ruby-forum.com/t/semantics-of-value/65007 "2006-08-16T03:16:13Z")

</div>

First off, I’d like to check this observation with folks on the list: VALUEs today in Ruby are (sometimes) pointers to objects, and since those objects don’t (today) move in memory, we can assume that they are invaria…

---

## [How to access ruby app from rails](https://www.ruby-forum.com/t/how-to-access-ruby-app-from-rails/65094)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [August 16, 2006, 2:52am UTC](https://www.ruby-forum.com/t/how-to-access-ruby-app-from-rails/65094 "2006-08-16T02:52:11Z")

</div>

HI I have built a ruby app grabbing stock data. Now i want to integreate it with rails and use it within rails. lets say my app resides in c:\\data\\grabdata.rb my rails is in c:\\webdemo\\ How do i launch c:\\data\\grab…

---

## [Compile of Ruby fails on Ubuntu](https://www.ruby-forum.com/t/compile-of-ruby-fails-on-ubuntu/65053)

<div class="topic-metadata">

**Author:** [@jeet](https://www.ruby-forum.com/u/jeet)\
**Replies:** 10\
**Last updated:** [August 16, 2006, 1:34am UTC](https://www.ruby-forum.com/t/compile-of-ruby-fails-on-ubuntu/65053 "2006-08-16T01:34:08Z")

</div>

I recently upgraded my Ubuntu to Dapper. I am trying to compile ruby on it. After running configure I edit the ext/Setup file and uncomment the following lines: digest digest/md5 openssl readline stringio zlib a…

---

## [How to compile extensions in Visual Studio 2005](https://www.ruby-forum.com/t/how-to-compile-extensions-in-visual-studio-2005/64941)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 4\
**Last updated:** [August 16, 2006, 12:03am UTC](https://www.ruby-forum.com/t/how-to-compile-extensions-in-visual-studio-2005/64941 "2006-08-16T00:03:59Z")

</div>

Hi all, I found this a while ago (on an SAP mailing list, if I recall correctly) and I thought I share this. When compiling native extensions on windows using Visual Studio 2005, loading the resulting library results…

---

## [Consecutive sort on Array of Hashes](https://www.ruby-forum.com/t/consecutive-sort-on-array-of-hashes/102299)

<div class="topic-metadata">

**Author:** [@fifoo](https://www.ruby-forum.com/u/fifoo)\
**Replies:** 6\
**Last updated:** [August 15, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/consecutive-sort-on-array-of-hashes/102299 "2006-08-15T23:48:35Z")

</div>

Hi, Here my - strange - problem. To explain it, let’s take the example of football. I construct an array of hashes of the results with team\_id, total of pts, number of wins, number of draws and number of defeats such…

---

## [Re: Net::LDAP 0.0.4 released](https://www.ruby-forum.com/t/re-net-ldap-0-0-4-released/65059)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/re-net-ldap-0-0-4-released/65059 "2006-08-15T22:54:51Z")

</div>

I do two things with ldap - validation (does the user exist?) and don’t have any directories that permit one. So you could try ) if rs you’re in else you’re not end Does this work for you? Works perfectly, tha…

---

## [Two newbie questions](https://www.ruby-forum.com/t/two-newbie-questions/64992)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/two-newbie-questions/64992 "2006-08-15T22:48:50Z")

</div>

practical ruby here @ work means access to M$ACCESS97 and Hardcopy reports with column headings etc…so… i’ve search with this forum with the Keyword: ACCESS and have searched all of my Ruby PDF’s How does one access …

---

## [Hash.keys and hash.values](https://www.ruby-forum.com/t/hash-keys-and-hash-values/64811)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 14\
**Last updated:** [August 15, 2006, 10:45pm UTC](https://www.ruby-forum.com/t/hash-keys-and-hash-values/64811 "2006-08-15T22:45:50Z")

</div>

Hello, I know the order of the keys of a hash is arbitary. However, has the hash.keys and hash.values same order? Will they be consistent with each other? I found nothing in the manual about this. The @Agile Web Deve…

---

## [Pen and Paper (#90)](https://www.ruby-forum.com/t/pen-and-paper-90/102402)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 45\
**Last updated:** [August 15, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/pen-and-paper-90/102402 "2006-08-15T22:36:49Z")

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

---

## [Scripts framework](https://www.ruby-forum.com/t/scripts-framework/64980)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/scripts-framework/64980 "2006-08-15T22:30:47Z")

</div>

I’ve been writing a few unix scripts recently. I’m very much feeling the need for a framework that will let me build scripts and not worry about such common functionality as: providing parameters through the command …

---

## [Re: Net::LDAP 0.0.4 released](https://www.ruby-forum.com/t/re-net-ldap-0-0-4-released/65056)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/re-net-ldap-0-0-4-released/65056 "2006-08-15T22:15:45Z")

</div>

in comments, suggestions, feature requests, and patches. An even bigger thank-you to the folks who have made themselves available to help with testing. Net::LDAP has been quite stable for several months now, so we b…

---

## [Ruby will enter the top 10 within half a year and replace De](https://www.ruby-forum.com/t/ruby-will-enter-the-top-10-within-half-a-year-and-replace-de/64978)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/ruby-will-enter-the-top-10-within-half-a-year-and-replace-de/64978 "2006-08-15T21:48:41Z")

</div>

According to the TIOBE Programming Community index the chances are that Ruby will enter the top 10 within half a year and replace Delphi and that the dynamically typed languages are gradually getting back in the spotl…

---

## [Instance and Related Class Methods](https://www.ruby-forum.com/t/instance-and-related-class-methods/65043)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 9:24pm UTC](https://www.ruby-forum.com/t/instance-and-related-class-methods/65043 "2006-08-15T21:24:59Z")

</div>

I have a class with a lot of instance methods which are related to class methods from within the same class. Example: class A def initialize(start\_date, end\_date) @start\_date, @end\_date = start\_date, end\_date end d…

---

## [Organizational advocate for Ruby](https://www.ruby-forum.com/t/organizational-advocate-for-ruby/65047)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 9:12pm UTC](https://www.ruby-forum.com/t/organizational-advocate-for-ruby/65047 "2006-08-15T21:12:36Z")

</div>

I’m aware of the Perl Foundation and the Python Software Foundation: nonprofit corporations intended to further the interests of those languages, e.g., coordinating development, promotion, fundraising, teaching, or le…

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

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