# Ruby

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

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

---

## [Question mark at end of method name](https://www.ruby-forum.com/t/question-mark-at-end-of-method-name/71175)

<div class="topic-metadata">

**Author:** [@pypypy](https://www.ruby-forum.com/u/pypypy)\
**Replies:** 11\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/question-mark-at-end-of-method-name/71175 "2006-10-18T10:43:47Z")

</div>

what does the question mark at the end of a method name represent? for example: x = “something” break if x.empty? i’ve seen what ! does…what is ? thanks

---

## [Rails for the Rubyist](https://www.ruby-forum.com/t/rails-for-the-rubyist/69972)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 20\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/rails-for-the-rubyist/69972 "2006-10-18T10:43:47Z")

</div>

It’s very nice that DAB has written “Ruby for Rails”, which (as I understand it) helps Rails developers learn Ruby. What’s the best source for the opposite? Learning Rails for those who already know Ruby? I’m frustrat…

---

## [Getting the name of the script in use](https://www.ruby-forum.com/t/getting-the-name-of-the-script-in-use/70596)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 17\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/getting-the-name-of-the-script-in-use/70596 "2006-10-18T10:43:39Z")

</div>

I’d like getting the name of the script in use, if i make use of $0 i get the whole path of the script, ie : /path/to/script/the\_script.rb no way to get only “the\_script.rb” (without using file basename ?)

---

## [Duration 0.0.4](https://www.ruby-forum.com/t/duration-0-0-4/70364)

<div class="topic-metadata">

**Author:** [@mhinton](https://www.ruby-forum.com/u/mhinton)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/duration-0-0-4/70364 "2006-10-18T10:43:38Z")

</div>

Hi, I’d like to happily introduce Duration, the package for managing timespan durations. Have you ever been in a situation where you wanted to print a human-readable representation of a duration, maybe something like…

---

## [cgi.rb$B$N(Bform$B$N5sF0(B](https://www.ruby-forum.com/t/cgi-rb-b-n-bform-b-n5sf0-b/69978)

<div class="topic-metadata">

**Author:** [@Fujioka](https://www.ruby-forum.com/u/Fujioka)\
**Replies:** 11\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/cgi-rb-b-n-bform-b-n5sf0-b/69978 "2006-10-18T10:43:34Z")

</div>

e$BF#2,$G$9!#e(B cgi.rbe$B$Ge(Bforme$B$Ke(Bmethode$B$^$?$Oe(Benctypee$B$rEO$9$H$-$Ke(B e$B\>.J8;z$G%-!\<$rEO$9$He(Bmethode$B$N9\`L$,=EJ#$7$^$9!#e(B e$B$3$l$O%P%0$G$9$h$M!)e(B $ echo |ruby -rcgi -e ‘puts CGI.new(“html3”)…

---

## [Locale depend time output?](https://www.ruby-forum.com/t/locale-depend-time-output/69929)

<div class="topic-metadata">

**Author:** [@kusako](https://www.ruby-forum.com/u/kusako)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/locale-depend-time-output/69929 "2006-10-18T10:43:33Z")

</div>

Hi All, Is there a way to change this: irb(main):005:0\> Time.new.strftime(’%A’) =\> “Monday” In this: irb(main):005:0\> Time.new.strftime(’%A’) =\> “Montag” This would be the ideal implementation: require ‘locale’ L…

---

## [Code to S-Exp (#95)](https://www.ruby-forum.com/t/code-to-s-exp-95/69697)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 29\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/code-to-s-exp-95/69697 "2006-10-18T10:43:33Z")

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

---

## [FileUtils.cp](https://www.ruby-forum.com/t/fileutils-cp/69752)

<div class="topic-metadata">

**Author:** [@Michael\_PSSoulier](https://www.ruby-forum.com/u/Michael_PSSoulier)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/fileutils-cp/69752 "2006-10-18T10:43:32Z")

</div>

Hey, It’s great to see that FileUtils has Unix friendly methods, so it feels like working in the shell. However, I’d prefer to just type cp and not FileUtils.cp. Is there a way to import those methods into Kernel so …

---

## [COmpile error with stable-snapshot of today](https://www.ruby-forum.com/t/compile-error-with-stable-snapshot-of-today/69760)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/compile-error-with-stable-snapshot-of-today/69760 "2006-10-18T10:43:29Z")

</div>

Hi, While compiling/installing ruby from the stable-snapshot of today, it fails with: make\[1\]: Entering directory /home/mccramer/ruby' gcc -g -O2 -fPIC -DRUBY\_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -Wl,-R -Wl…

---

## [Riddle me this (a question about expressions)](https://www.ruby-forum.com/t/riddle-me-this-a-question-about-expressions/69766)

<div class="topic-metadata">

**Author:** [@ptyler](https://www.ruby-forum.com/u/ptyler)\
**Replies:** 31\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/riddle-me-this-a-question-about-expressions/69766 "2006-10-18T10:43:29Z")

</div>

Hello all, I am new to Ruby and am toying around with the language to get a feel for the expression ubiquity in ruby. Anyway, explain to me the following. The below bits of code have no real relevance; they are mer…

---

## [Rejected Ruby book ideas by O'Reilly](https://www.ruby-forum.com/t/rejected-ruby-book-ideas-by-oreilly/69532)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 89\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/rejected-ruby-book-ideas-by-oreilly/69532 "2006-10-18T10:43:28Z")

</div>

Hi all, I’m curious how many people out there have had a Ruby book proposal rejected by O’Reilly & Associates in the last three years, what your subject was, when you proposed it, and the person whom you dealt with (…

---

## [Building readline on Tiger](https://www.ruby-forum.com/t/building-readline-on-tiger/69751)

<div class="topic-metadata">

**Author:** [@Jean-Michel\_LEON-FO](https://www.ruby-forum.com/u/Jean-Michel_LEON-FO)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/building-readline-on-tiger/69751 "2006-10-18T10:43:28Z")

</div>

Hi everyone, this is the first time I’ve posted to this group. And I am a ruby and programming newbie. (To give you an idea of my skills I am reading Chris P.'s book right now, I’ll move to the PickAxe later). I have…

---

## [Real IDE for os-x](https://www.ruby-forum.com/t/real-ide-for-os-x/69712)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/real-ide-for-os-x/69712 "2006-10-18T10:43:26Z")

</div>

hi - i just switched to a mac and was wondering about IDEs. this is not for rails dev, just plain ruby apps. people seem to rave about textmate, and while its awesome compared to notepad on windows, its not really an…

---

## [Please define these terms](https://www.ruby-forum.com/t/please-define-these-terms/69705)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 26\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/please-define-these-terms/69705 "2006-10-18T10:43:26Z")

</div>

(And add any you think might be missing from the set) Application Library Toolkit Framework Package Project Program Thanks, T.

---

## [Request for code review of beginning project](https://www.ruby-forum.com/t/request-for-code-review-of-beginning-project/69479)

<div class="topic-metadata">

**Author:** [@bensinc](https://www.ruby-forum.com/u/bensinc)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/request-for-code-review-of-beginning-project/69479 "2006-10-18T10:43:23Z")

</div>

Hello, I have some experience in programming ruby as well as java, (and certainly enjoy ruby more) but I don’t feel I am that great(eg I can build tree houses, but I’m no contract carpenter). Part of the solution is …

---

## [Regular expression for string.anotherstring](https://www.ruby-forum.com/t/regular-expression-for-string-anotherstring/68825)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 14\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/regular-expression-for-string-anotherstring/68825 "2006-10-18T10:43:22Z")

</div>

I’m trying to validate a user mail address for a fixed domain with the rule string =~ /\\w+.\\w+/ this matches firstname.lastname, which is what I want. But it also matches removed\_email\_address@domain.invalid, which i…

---

## [What does \*var mean?](https://www.ruby-forum.com/t/what-does-var-mean/66473)

<div class="topic-metadata">

**Author:** [@Chih-Chao\_Lam](https://www.ruby-forum.com/u/Chih-Chao_Lam)\
**Replies:** 12\
**Last updated:** [October 18, 2006, 10:42am UTC](https://www.ruby-forum.com/t/what-does-var-mean/66473 "2006-10-18T10:42:46Z")

</div>

Apologies for a newbie ruby question: I know an asterisk can precede a parameter in the argument list of a method definition as in def varargs(arg1, \*rest) But looking at the source code of Hpricot, I see that you ca…

---

## [Isolating non-unique items in an array](https://www.ruby-forum.com/t/isolating-non-unique-items-in-an-array/71943)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 15\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/isolating-non-unique-items-in-an-array/71943 "2006-10-18T10:40:59Z")

</div>

I’m basically trying to the opposite of .uniq Let’s say I have an array: \[“a”, “a”, “a”, “b”, “c”, “d”, “d”\] I would like to boil this down by first tossing the values that only appear once. Which leaves me with: \[“a…

---

## [Presenting a fully automated DVD authoring rakefile](https://www.ruby-forum.com/t/presenting-a-fully-automated-dvd-authoring-rakefile/72685)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/presenting-a-fully-automated-dvd-authoring-rakefile/72685 "2006-10-18T10:40:56Z")

</div>

As promised, here is the script I use to change a set of AVI files into a DVD disc image. It uses Rake and rmovie along with a whole bunch of Linux utilities, and doesn’t require any aditional input from the user beyo…

---

## [Re: New to ruby questions](https://www.ruby-forum.com/t/re-new-to-ruby-questions/72630)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/re-new-to-ruby-questions/72630 "2006-10-18T10:40:56Z")

</div>

From: Jeremy W. end but, this code doesn’t work. I was thinking it would work similar to this. If you or anyone else has any ideas please let me know. thanks. To start you off: def points case @value when ‘2’…‘9…

---

## [Any way to get lists to throw exceptions on incorrect access](https://www.ruby-forum.com/t/any-way-to-get-lists-to-throw-exceptions-on-incorrect-access/72646)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 9\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/any-way-to-get-lists-to-throw-exceptions-on-incorrect-access/72646 "2006-10-18T10:40:55Z")

</div>

I’m slowly doing more in Ruby (in addition to what I do in Python), as I like the cleanliness of the language. However, one thing that I really don’t like is the fact that an attempt to access a non-existent list item…

---

## [Binary-file module? (also, rubychess)](https://www.ruby-forum.com/t/binary-file-module-also-rubychess/69178)

<div class="topic-metadata">

**Author:** [@Glenn\_MSLewis](https://www.ruby-forum.com/u/Glenn_MSLewis)\
**Replies:** 11\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/binary-file-module-also-rubychess/69178 "2006-10-18T10:40:50Z")

</div>

In Ruby, do we have a module that makes reading/parsing/writing binary files super-easy? I’ve been reading Practical Common Lisp (ISBN 1-59059-239-5) (also available online: Practical Common Lisp ) and Chapter 24 has…

---

## [Trying to understand JavaScript from Ruby's view](https://www.ruby-forum.com/t/trying-to-understand-javascript-from-rubys-view/72624)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/trying-to-understand-javascript-from-rubys-view/72624 "2006-10-18T10:40:29Z")

</div>

Hi Rubyists, I have a question which is not directly about ruby but about other language (but from ruby’s view). I may have to post to other newsgroups. So if you think this posting is inappropriate, forgive me. I u…

---

## [Ruby to Applescript](https://www.ruby-forum.com/t/ruby-to-applescript/71960)

<div class="topic-metadata">

**Author:** [@devaulw](https://www.ruby-forum.com/u/devaulw)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/ruby-to-applescript/71960 "2006-10-18T10:40:25Z")

</div>

http://rb-appscript.rubyforge.org/ I thought this might be of interest to list readers. I used to do some Applescripting and wonder whether there are projects where I might use this.

---

## [Coffee shops in the area?](https://www.ruby-forum.com/t/coffee-shops-in-the-area/72667)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/coffee-shops-in-the-area/72667 "2006-10-18T10:40:17Z")

</div>

Can any locals recommend good coffee shops w/i walking distance of ruby conf? Preferably non-chain if possible…wireless a big plus, of course. Rob

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/72600)

<div class="topic-metadata">

**Author:** [@Majeed\_Mohammed\_ASS](https://www.ruby-forum.com/u/Majeed_Mohammed_ASS)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/unsubscribe/72600 "2006-10-18T10:40:07Z")

</div>

Unsubscribe please! Mohammed A. Majeed, Ph.D., P.E. State of Delaware, DNREC Air Quality Management Section 715 Grantham Lane New Castle, DE 19720 Phone: 302.323.4542 Fax: 302.323.4598

---

## [Ruby equivalent of assemble RE?](https://www.ruby-forum.com/t/ruby-equivalent-of-assemble-re/72637)

<div class="topic-metadata">

**Author:** [@John\_Ky](https://www.ruby-forum.com/u/John_Ky)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/ruby-equivalent-of-assemble-re/72637 "2006-10-18T10:40:03Z")

</div>

Is there a ruby equivalent of this? http://search.cpan.org/dist/Regexp-Assemble/Assemble.pm Thanks -John

---

## [Execution of rubyfile in remote machines](https://www.ruby-forum.com/t/execution-of-rubyfile-in-remote-machines/71748)

<div class="topic-metadata">

**Author:** [@sampurna](https://www.ruby-forum.com/u/sampurna)\
**Replies:** 12\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/execution-of-rubyfile-in-remote-machines/71748 "2006-10-18T10:39:56Z")

</div>

Hi All, I need to run ruby files in remote machine. Can anybody share their knowledge how to do this. Thanks in Advance. Sampurna.

---

## [Rs 0.1](https://www.ruby-forum.com/t/rs-0-1/71897)

<div class="topic-metadata">

**Author:** [@rue](https://www.ruby-forum.com/u/rue)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/rs-0-1/71897 "2006-10-18T10:39:50Z")

</div>

rs is a project to implement a non-traditional object-oriented shell in Ruby. The three main features will be the simple power of Ruby as the shell scripting language, an objectlike interface to files and object pipi…

---

## [Need help on: Linux Gnome2 Glade Cairo callback problem](https://www.ruby-forum.com/t/need-help-on-linux-gnome2-glade-cairo-callback-problem/71873)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/need-help-on-linux-gnome2-glade-cairo-callback-problem/71873 "2006-10-18T10:39:46Z")

</div>

Hi, I have a Glade project main app window with a toolbar and 4 'drawingarea’s, into which I draw some test images using Cairo. After anywhere between 50 and 100 drawingarea updates I get the following message when c…

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

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