# Ruby

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

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

---

## [For loop decrementing?](https://www.ruby-forum.com/t/for-loop-decrementing/97605)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/for-loop-decrementing/97605 "2006-08-15T14:21:49Z")

</div>

the incrementing for loop : for i in 0…100 p i end gets 0 …\> 100 is their a syntax for a decrementing one like : for i in 100…0 (specifing the step to -1) p i end

---

## [About 1.9 #\_\_method\_\_ feature](https://www.ruby-forum.com/t/about-1-9-method-feature/96929)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 101\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/about-1-9-method-feature/96929 "2006-08-15T14:21:49Z")

</div>

I think the name method is probably a poor choice b/c “shadow methods” (as I call them) do the same thing as their non-shadow forms. Eg. #send and #send, #id and #id, etc. But #method is an exception since #method cu…

---

## [Why Ruby over Python?](https://www.ruby-forum.com/t/why-ruby-over-python/97604)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 101\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/why-ruby-over-python/97604 "2006-08-15T14:21:48Z")

</div>

Besides ROR, can you give me a reason why perfer ruby instead of python? seems to many users, they are very similar in nature… such as non C or Java style syntax focus on codes readability, not like Perl …

---

## [OT: Regexp buddy](https://www.ruby-forum.com/t/ot-regexp-buddy/97612)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/ot-regexp-buddy/97612 "2006-08-15T14:21:48Z")

</div>

Curious too know if anyone uses or has used the product Regex Buddy ? It supposedly supports Ruby regexp and is supposed to make the use of regular expressions a lot easier. btw, I’m not connected to the software or c…

---

## [Undefined method \`read' for](https://www.ruby-forum.com/t/undefined-method-read-for/75023)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/undefined-method-read-for/75023 "2006-08-15T14:21:16Z")

</div>

I got an error undefined method \`read’ for, why ? this is what I am doing @user = “new\_image” File.open("#{RAILS\_ROOT}/public/images/#{@user}.jpg", “wb”) do |f| f.write(@params\[‘image\_file’\].read) end thanks

---

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

<div class="topic-metadata">

**Author:** [@blackhedd](https://www.ruby-forum.com/u/blackhedd)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/net-ldap-0-0-4-released/64968 "2006-08-15T14:21:02Z")

</div>

Announcing version 0.0.4 of Net::LDAP, the pure-Ruby LDAP library. Thanks to the many people who have used this library and sent in comments, suggestions, feature requests, and patches. An even bigger thank-you to th…

---

## [Starting a business/web site, how to protect code?](https://www.ruby-forum.com/t/starting-a-business-web-site-how-to-protect-code/64932)

<div class="topic-metadata">

**Author:** [@surf](https://www.ruby-forum.com/u/surf)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/starting-a-business-web-site-how-to-protect-code/64932 "2006-08-15T14:21:02Z")

</div>

I have been working on some code for a dateing service in Ruby/Rails. I have talked to a guy who might be interested in being a business partner as I m not sure I can do everything on my own or that I want to. I would…

---

## [Re: block commenting-out](https://www.ruby-forum.com/t/re-block-commenting-out/64967)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/re-block-commenting-out/64967 "2006-08-15T14:21:01Z")

</div>

Have you tried Mondrian? Highlight and then Ctrl+Q to comment/uncomment. Very handy! Or of course there is eclipse with the ruby plugin… a lot slower though! Can’t remember the keyboard shorcut for commenting code but…

---

## [Ruby extension and static function in C++](https://www.ruby-forum.com/t/ruby-extension-and-static-function-in-c/64930)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-extension-and-static-function-in-c/64930 "2006-08-15T14:20:59Z")

</div>

HI, I am writing an extension for Ruby in C++ and as I have more and more functions, I need to separate them into individual C++ source for easier maintenance in the long run. From Programming Ruby, the section on Ex…

---

## [Problem getting gems/listing gems. EINVAL](https://www.ruby-forum.com/t/problem-getting-gems-listing-gems-einval/64954)

<div class="topic-metadata">

**Author:** [@Thaddeus\_L\_Olczyk](https://www.ruby-forum.com/u/Thaddeus_L_Olczyk)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/problem-getting-gems-listing-gems-einval/64954 "2006-08-15T14:20:54Z")

</div>

Environment: rubygems 0.9.0 ruby 1.8.4 OS NT 4 sp6 Problem: Upon trying to install a gem or list from either rubyforge or why’s site I recieve this error message Exception \`Errno::EINVAL’ at I:/PROGRAMS/Scriptin…

---

## [Using Ruby in a commercial application?](https://www.ruby-forum.com/t/using-ruby-in-a-commercial-application/102241)

<div class="topic-metadata">

**Author:** [@chanon](https://www.ruby-forum.com/u/chanon)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/using-ruby-in-a-commercial-application/102241 "2006-08-15T14:20:53Z")

</div>

Hi all, I just began learning Ruby a few hours ago, but it has been enough to convince me that it is the language I want to write in. I first decided to learn it because I wanted to learn Rails to create a web applic…

---

## [How do you use flock and clean up lock files?](https://www.ruby-forum.com/t/how-do-you-use-flock-and-clean-up-lock-files/64817)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 19\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/how-do-you-use-flock-and-clean-up-lock-files/64817 "2006-08-15T14:20:52Z")

</div>

So I’m using flock, but I have this noxious race condition when I try to clean up the lock files. I need a way of knowing if anything has a file open at the same time as me, or I must always leave lock files lying aro…

---

## [Text print y,x location?](https://www.ruby-forum.com/t/text-print-y-x-location/102303)

<div class="topic-metadata">

**Author:** [@sard](https://www.ruby-forum.com/u/sard)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/text-print-y-x-location/102303 "2006-08-15T14:20:51Z")

</div>

Is it possible to output text to specific coordinates at the command line in Ruby? If not how can command line apps such as Edit in Windows or vi in UNIX be written? Thanks.

---

## [RMagick 1.13.0 for Windows](https://www.ruby-forum.com/t/rmagick-1-13-0-for-windows/64922)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/rmagick-1-13-0-for-windows/64922 "2006-08-15T14:20:51Z")

</div>

Brett DiFrischia has prepared a new release of RMagick for Win32. This release is based on very latest versions of Ruby, RMagick, and ImageMagick. Specifically, this is RMagick 1.13.0 compiled for the Ruby One-Click I…

---

## [Maybe I can ask here](https://www.ruby-forum.com/t/maybe-i-can-ask-here/64891)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/maybe-i-can-ask-here/64891 "2006-08-15T14:20:43Z")

</div>

Sorry, because this is Rails related but it seems not answers are forthcoming from the Rails list. I am working from the Ruby for Rails book , the r4rmusic app. All the code is already completed. However I want to kn…

---

## [Still no love on ubuntu](https://www.ruby-forum.com/t/still-no-love-on-ubuntu/64606)

<div class="topic-metadata">

**Author:** [@chet](https://www.ruby-forum.com/u/chet)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/still-no-love-on-ubuntu/64606 "2006-08-15T14:20:35Z")

</div>

I posted last week about some trouble I was having getting Ruby (not rails; just ruby) to function properly on either OS X (10.4) or Ubuntu. A kind soul pointed out my mistake, which got Ruby working fine on the Mac, …

---

## [How to keep proceeding if one command fails (in Rake)?](https://www.ruby-forum.com/t/how-to-keep-proceeding-if-one-command-fails-in-rake/101206)

<div class="topic-metadata">

**Author:** [@luc](https://www.ruby-forum.com/u/luc)\
**Replies:** 8\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/how-to-keep-proceeding-if-one-command-fails-in-rake/101206 "2006-08-15T14:20:34Z")

</div>

Hi All, Could you tell me how I could do to have rake to run all the tasks no matter the result of the previous one(s)? ex: file ‘xxx.c’ =\> \[‘xxx.h’\] do if(sh(blablabla)) puts “do this” else puts “do this” end e…

---

## [Get formal parameter names of a method?](https://www.ruby-forum.com/t/get-formal-parameter-names-of-a-method/102289)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/get-formal-parameter-names-of-a-method/102289 "2006-08-15T14:20:33Z")

</div>

Is there a way to reflect on a method to get the declard names of the parameters? class Equipment def install(tool, packaging) end end I can do this: m = Equipment.new.method(:install) m.arity # =\> 2 I want to …

---

## [Ruby questions!](https://www.ruby-forum.com/t/ruby-questions/64911)

<div class="topic-metadata">

**Author:** [@fabsy](https://www.ruby-forum.com/u/fabsy)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-questions/64911 "2006-08-15T14:20:26Z")

</div>

Hey, I have some questions I hope someone can answer… Im new to Ruby and I was wondering if anyone have any good newbie/tutorials on how to get started? And im wondering what the differences(if there are any?) there a…

---

## [Ruby Reports 0.4.99](https://www.ruby-forum.com/t/ruby-reports-0-4-99/64917)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-99/64917 "2006-08-15T14:20:21Z")

</div>

== Ruport 0.4.99 : The “Snakes on a Plane” Edition == This is the 10th and last release of Ruport in Google’s Summer of Code Program Because there is a lot of project news in this release, i’ve saved it to the end fo…

---

## [Re: South African Ruby Programmers](https://www.ruby-forum.com/t/re-south-african-ruby-programmers/64900)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/re-south-african-ruby-programmers/64900 "2006-08-15T14:20:15Z")

</div>

register at my web page: http://mobeus.homelinux.org/eclectica/show/RubySouthAfrica (or the alias, since the first will be phased out:) http://www.lesismore.co.za/eclectica/show/RubySouthAfrica I am hoping to recomm…

---

## [South African Ruby Programmers](https://www.ruby-forum.com/t/south-african-ruby-programmers/64899)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/south-african-ruby-programmers/64899 "2006-08-15T14:20:13Z")

</div>

Hello people! Again, I am asking that any South African Ruby programmers register at my web page: http://mobeus.homelinux.org/eclectica/show/RubySouthAfrica (or the alias, since the first will be phased out:) http:/…

---

## [Calling non-existing methods works! (little magic?)](https://www.ruby-forum.com/t/calling-non-existing-methods-works-little-magic/64860)

<div class="topic-metadata">

**Author:** [@Martin\_SSWeber](https://www.ruby-forum.com/u/Martin_SSWeber)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/calling-non-existing-methods-works-little-magic/64860 "2006-08-15T14:20:13Z")

</div>

Hoi Rubyists. I am kind of … confused. Up till now I had the illusion you could only call methods on an object which you could also find via methods or via the included modules. Fine… Why does this output what it does…

---

## [Gem install ajax\_grid\_generator --\> parse error](https://www.ruby-forum.com/t/gem-install-ajax-grid-generator-parse-error/64855)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/gem-install-ajax-grid-generator-parse-error/64855 "2006-08-15T14:20:08Z")

</div>

Rubies: (ruby 1.8.2 here…) The command line in the Subject produces this: …\>“c:\\ruby\\bin\\ruby.exe” “c:\\ruby\\bin\\gem” install ajax\_grid\_generator Attempting local installation of ‘ajax\_grid\_generator’ Local gem file …

---

## [Northern Virginia Ruby user's group meeting 8/16/06](https://www.ruby-forum.com/t/northern-virginia-ruby-users-group-meeting-8-16-06/64892)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/northern-virginia-ruby-users-group-meeting-8-16-06/64892 "2006-08-15T14:20:06Z")

</div>

Hi all - For those in the northern Virginia/DC area, there’s a Ruby user’s group meeting on Wednesday. Paul Stadig will give a presentation on connecting Ruby to Java with YAJB and Devin M. will present on the cross…

---

## [Re: Setting Windows Environment Variables](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/64873)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/64873 "2006-08-15T14:20:03Z")

</div>

Thanks a lot Jan. Think I’ll stick to the original idea of using NSIS to set up the machine… Regards Gem

---

## [No such file to load -- stringio (LoadError)?](https://www.ruby-forum.com/t/no-such-file-to-load-stringio-loaderror/64886)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-stringio-loaderror/64886 "2006-08-15T14:20:02Z")

</div>

I recently installed Ruby 1.8.4 on Mac OS X 10.4.7, following the instructions in Dan Benjamin Although irb starts up and runs OK, I am unable to get ri to work (either within irb or as an external command). It says…

---

## [Setting Windows Environment Variables](https://www.ruby-forum.com/t/setting-windows-environment-variables/64868)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/setting-windows-environment-variables/64868 "2006-08-15T14:20:01Z")

</div>

Hi all! I’m another Ruby noob and wondered if any of you can help me with my problem. I’ve have been tasked with writing some rake files to automate parts of our project and to begin I’m trying to automate the setup …

---

## [Posting bug report for "make install-doc"?](https://www.ruby-forum.com/t/posting-bug-report-for-make-install-doc/64885)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/posting-bug-report-for-make-install-doc/64885 "2006-08-15T14:20:01Z")

</div>

While running “sudo make install-doc” on Mac OS X 10.4.7, I got a nastygram about ‘.’ not being readable. I was able to get around this by opening up the permissions on the current directory (it was mode 750; I made …

---

## [Multiple assignment in a hash](https://www.ruby-forum.com/t/multiple-assignment-in-a-hash/64819)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/multiple-assignment-in-a-hash/64819 "2006-08-15T14:20:00Z")

</div>

Anyone know of any ruby shortcuts for multiply assigning elements in a hash? What I need to do is set up a hash like this… { “one” =\> “A”, “two”=\>“A”, “three” =\> “A” } What I would like to do is something like this… …

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

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