# Ruby

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

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

---

## [Re: rubyforge.org down](https://www.ruby-forum.com/t/re-rubyforge-org-down/71717)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 11, 2006, 4:25am UTC](https://www.ruby-forum.com/t/re-rubyforge-org-down/71717 "2006-10-11T04:25:30Z")

</div>

From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] the machine seems to be just halting without writing anything to the system log. I’m somewhat flummoxed. full parition? A…

---

## [Where to download ruby latest stable snapshot](https://www.ruby-forum.com/t/where-to-download-ruby-latest-stable-snapshot/71594)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 3\
**Last updated:** [October 11, 2006, 3:35am UTC](https://www.ruby-forum.com/t/where-to-download-ruby-latest-stable-snapshot/71594 "2006-10-11T03:35:29Z")

</div>

the new ruby-lang site is cool. thanks and congratulations to JLong et al. have small problem though. i cannot find the latest stable snapshot. so i have to refer back to the old site here http://www2.ruby-lang.org/e…

---

## [Newbie problem of Class attributes](https://www.ruby-forum.com/t/newbie-problem-of-class-attributes/71710)

<div class="topic-metadata">

**Author:** [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Replies:** 7\
**Last updated:** [October 11, 2006, 2:15am UTC](https://www.ruby-forum.com/t/newbie-problem-of-class-attributes/71710 "2006-10-11T02:15:24Z")

</div>

I am trying to create a class level attribute which can read and write. I am doing something like this: def self.selected\_client – my code – end def self.selected\_client=(value) – my code – end but its seems that…

---

## [Printing to USB printer in Windows2000](https://www.ruby-forum.com/t/printing-to-usb-printer-in-windows2000/71601)

<div class="topic-metadata">

**Author:** [@Norman\_Belssner](https://www.ruby-forum.com/u/Norman_Belssner)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 12:35am UTC](https://www.ruby-forum.com/t/printing-to-usb-printer-in-windows2000/71601 "2006-10-11T00:35:17Z")

</div>

I have been printing to a HP printer in windows2000 using $stdout = File.open(“LPT1”, “W”) print “Line 1 \\n” I can even control the HP deskjet using Ascii control codes. I just got a new printer that interfaces using…

---

## [Equivalent of unix "file \<filename\>" in ruby?](https://www.ruby-forum.com/t/equivalent-of-unix-file-filename-in-ruby/71685)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 5\
**Last updated:** [October 10, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/equivalent-of-unix-file-filename-in-ruby/71685 "2006-10-10T22:03:02Z")

</div>

Hi all, I’m trying to find out what is the equivalent of file from unix in ruby. Basically this command gives the file type - ASCII, BINARY etc. Please help! -Thanks

---

## [Using configuration files (replacing shellscripts)](https://www.ruby-forum.com/t/using-configuration-files-replacing-shellscripts/71232)

<div class="topic-metadata">

**Author:** [@Karl\_V](https://www.ruby-forum.com/u/Karl_V)\
**Replies:** 6\
**Last updated:** [October 10, 2006, 10:01pm UTC](https://www.ruby-forum.com/t/using-configuration-files-replacing-shellscripts/71232 "2006-10-10T22:01:02Z")

</div>

Hi! I want to use configuration files in order to save values, directories, and files. I did some googeling to find out that the ruby community often suggests ruby-files (hashes) to save configurations. These rb-file…

---

## [WMP WIN32OLE in Ruby/IRB problem](https://www.ruby-forum.com/t/wmp-win32ole-in-ruby-irb-problem/71352)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/wmp-win32ole-in-ruby-irb-problem/71352 "2006-10-10T21:48:43Z")

</div>

The following code plays the playlist thourgh IRB in FXRI, but playback doesn’t start when using IRB from the command line. oPlayer = WIN32OLE.new(“WMPlayer.ocx.7”) oPlayer.Settings.autoStart = 1 oPlayListCollection …

---

## [Ruby web ap FUD](https://www.ruby-forum.com/t/ruby-web-ap-fud/71689)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 3\
**Last updated:** [October 10, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/ruby-web-ap-fud/71689 "2006-10-10T21:40:59Z")

</div>

I got the following internal email this morning; and because I’ve only dabbled in Camping, Rails, and web aps in general–I’m a floating-point number cruncher guy–I thought I’d run it pass you before responding: I’m w…

---

## [Need help with $end vs kEND error](https://www.ruby-forum.com/t/need-help-with-end-vs-kend-error/71676)

<div class="topic-metadata">

**Author:** [@highlander872](https://www.ruby-forum.com/u/highlander872)\
**Replies:** 8\
**Last updated:** [October 10, 2006, 9:12pm UTC](https://www.ruby-forum.com/t/need-help-with-end-vs-kend-error/71676 "2006-10-10T21:12:53Z")

</div>

I have been trying to write a program for my class assignment but everytime i do i get an error on the last line of the code that says ‘unexpected $end, expecting kEND’ this happens on every program i try to run any …

---

## [Ruby IMAP with Cyrus server](https://www.ruby-forum.com/t/ruby-imap-with-cyrus-server/71632)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/ruby-imap-with-cyrus-server/71632 "2006-10-10T19:46:28Z")

</div>

Hi All, I’m trying to authenticate to my imap server using the Net::IMAP library. i’m doing this: require ‘net/imap’ imap = Net::IMAP.new(‘my.server.com’) #i get an imap object back imap.authenticate(‘LOGIN’,‘user…

---

## [Rubyforge.org](https://www.ruby-forum.com/t/rubyforge-org/71270)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 5\
**Last updated:** [October 10, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/rubyforge-org/71270 "2006-10-10T19:18:48Z")

</div>

Hello all - rubyforge.org is offline; we’re investigating and will post more information as we get it. Yours, Tom

---

## [(NEWBIE) Reading folders from a directory into an array](https://www.ruby-forum.com/t/newbie-reading-folders-from-a-directory-into-an-array/71668)

<div class="topic-metadata">

**Author:** [@rbr](https://www.ruby-forum.com/u/rbr)\
**Replies:** 3\
**Last updated:** [October 10, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/newbie-reading-folders-from-a-directory-into-an-array/71668 "2006-10-10T19:02:17Z")

</div>

I am a newbie looking to use Ruby to create a maintenance script for my MySQL database server. There are several things I would need to do. First and foremost, I would like to read in the folder names from the MySQL d…

---

## [|| explanation in ruby... in pseudolanguage](https://www.ruby-forum.com/t/explanation-in-ruby-in-pseudolanguage/71448)

<div class="topic-metadata">

**Author:** [@tuka](https://www.ruby-forum.com/u/tuka)\
**Replies:** 19\
**Last updated:** [October 10, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/explanation-in-ruby-in-pseudolanguage/71448 "2006-10-10T18:50:15Z")

</div>

Hi, I am trying to get my head around the || symbol used extensively in ruby. To me it is somewhat foreign still and I am trying a few exercise to make it click. Can anyone suggest a phrase (pseudolanguage) that accu…

---

## [Newbie question Canvas or frame](https://www.ruby-forum.com/t/newbie-question-canvas-or-frame/71624)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 5\
**Last updated:** [October 10, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/newbie-question-canvas-or-frame/71624 "2006-10-10T18:13:56Z")

</div>

In ruby-tk Do you need a canvas to show a picture or is it ok to show a picture on a frame? When should you use a canvas?

---

## [RubyGem download stats have returned](https://www.ruby-forum.com/t/rubygem-download-stats-have-returned/71638)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [October 10, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/rubygem-download-stats-have-returned/71638 "2006-10-10T17:59:50Z")

</div>

Yay! http://tomcopeland.blogs.com/juniordeveloper/2006/10/rubygem\_downloa.html Yours, Tom

---

## [Removing Duplicate Objects from Object List](https://www.ruby-forum.com/t/removing-duplicate-objects-from-object-list/71495)

<div class="topic-metadata">

**Author:** [@Jeff\_Nyman](https://www.ruby-forum.com/u/Jeff_Nyman)\
**Replies:** 9\
**Last updated:** [October 10, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/removing-duplicate-objects-from-object-list/71495 "2006-10-10T17:45:46Z")

</div>

Greetings all. Does anyone have a good idea of how to write a loop that checks if two objects are equal? By “equal” here I refer to the ‘eql’ method, to test if the objects have the same value. I have set of Rule ob…

---

## ["def self.method" vs "class \<\< self; def method"](https://www.ruby-forum.com/t/def-self-method-vs-class-self-def-method/71569)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [October 10, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/def-self-method-vs-class-self-def-method/71569 "2006-10-10T17:35:45Z")

</div>

What’s the difference between class Foo class \<\< self def foo; end end end and class Foo def self.foo; end end Joe

---

## [Webpage to RSS](https://www.ruby-forum.com/t/webpage-to-rss/71550)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 6\
**Last updated:** [October 10, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/webpage-to-rss/71550 "2006-10-10T17:31:43Z")

</div>

Does anyone have a ruby based script lying around that would transform updates to a webpage to RSS or some other feed format? We don’t use a CMS for our website but there are items that are updated often and RSS feeds…

---

## [Stable \*source\* RPM for Ruby?](https://www.ruby-forum.com/t/stable-source-rpm-for-ruby/71661)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 3\
**Last updated:** [October 10, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/stable-source-rpm-for-ruby/71661 "2006-10-10T17:27:42Z")

</div>

Is there a source RPM for the latest stable Ruby somewhere on the Internet? A quick check of Google didn’t turn anything up, and I didn’t see it on the new web site either. I need the source RPM; I have found binary R…

---

## [Accessing LDAP jpegPhoto attribute in Ruby](https://www.ruby-forum.com/t/accessing-ldap-jpegphoto-attribute-in-ruby/69665)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [October 10, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/accessing-ldap-jpegphoto-attribute-in-ruby/69665 "2006-10-10T17:21:40Z")

</div>

Hi everyone, In writing my Ruby LDAP application, I’m able (with activeldap) to access any ldap attribute I need - except binary ones. user.uid, for instance would get me the userid of the user. But user.jpegPhoto yie…

---

## [Posting over https](https://www.ruby-forum.com/t/posting-over-https/71515)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 6\
**Last updated:** [October 10, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/posting-over-https/71515 "2006-10-10T17:15:33Z")

</div>

Hello Rubyists, I am struggling to post data over https and would be grateful for any help. I know the server works because I can hit it with curl and get the response I expect: curl -d url When I try to do the sa…

---

## [Net::IMAP](https://www.ruby-forum.com/t/net-imap/71603)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/net-imap/71603 "2006-10-10T17:01:29Z")

</div>

What’s the difference between AUTH=PLAIN and AUTH=LOGIN (besides the fact that LOGIN doesn’t work on my server and PLAIN does)

---

## [Net::FTP.new silently failing in block form](https://www.ruby-forum.com/t/net-ftp-new-silently-failing-in-block-form/71659)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [October 10, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/net-ftp-new-silently-failing-in-block-form/71659 "2006-10-10T16:57:26Z")

</div>

Hi all, Ruby 1.8.5 I’m hitting some odd behavior with Net::FTP.new. I’m connecting to a Win2k3 server (running IIS 6, if that matters). The directory style is set to “UNIX”, and the ftp server is in passive mode. I…

---

## [Help with LOAD\_PATH](https://www.ruby-forum.com/t/help-with-load-path/71646)

<div class="topic-metadata">

**Author:** [@Eduardo\_YSSSSSSSSez](https://www.ruby-forum.com/u/Eduardo_YSSSSSSSSez)\
**Replies:** 2\
**Last updated:** [October 10, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/help-with-load-path/71646 "2006-10-10T16:47:24Z")

</div>

Hi, I’m in troubles with this variable. I’m running a Linux OS, after logging in, if I type: echo $LOAD\_PATH .:/home/eyp/Desarrollo/ruby/lib:/home/eyp/Desarrollo/ruby/lib/sybase:/usr/lib/ruby then I go into irb: irb …

---

## [\*args to Hash](https://www.ruby-forum.com/t/args-to-hash/71643)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [October 10, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/args-to-hash/71643 "2006-10-10T16:25:06Z")

</div>

def foo(\*args) h = (Hash === args.last ? args.pop : {}) args.each{|m| h\[m\]=m} args = h #… end T.

---

## [Testing for timeout while downloading a website using rio](https://www.ruby-forum.com/t/testing-for-timeout-while-downloading-a-website-using-rio/71647)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 10, 2006, 4:13pm UTC](https://www.ruby-forum.com/t/testing-for-timeout-while-downloading-a-website-using-rio/71647 "2006-10-10T16:13:00Z")

</div>

Dear all, I need to download several websites from the internet using Rio. But sometimes, these are unavailable. Then, it takes several minutes for the program to say that the connection timed out. Now, I would like…

---

## [Reciving Packets](https://www.ruby-forum.com/t/reciving-packets/71630)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/reciving-packets/71630 "2006-10-10T14:14:37Z")

</div>

Hello, I’m working on a game made in python and it now sends out packetes to my IP:PORT I desicgnate, but any way I thought it would be ALOT eaiser if I did the server in ruby over python since I don’t even now all th…

---

## [Ruby, Windows or Rmagick error?](https://www.ruby-forum.com/t/ruby-windows-or-rmagick-error/71605)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 1:40pm UTC](https://www.ruby-forum.com/t/ruby-windows-or-rmagick-error/71605 "2006-10-10T13:40:27Z")

</div>

Hi. Well i´ve written a little program on my linux machine which uses my\_image = “20061002\_122234\_No\_1.jpg” Image.read(my\_image) This isn´t really complicated… and it works (at least on my linux machine). On window…

---

## [Useful at\_exit idiom](https://www.ruby-forum.com/t/useful-at-exit-idiom/71591)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 9:13am UTC](https://www.ruby-forum.com/t/useful-at-exit-idiom/71591 "2006-10-10T09:13:58Z")

</div>

i’m constantly struggling with the fact that children need to use exit! to prevent exit handlers registered in the parent being called twice, for example: harp:~ \> cat a.rb at\_exit{ puts ‘parent’ } fork{ at\_exit{ …

---

## [Nil being empty](https://www.ruby-forum.com/t/nil-being-empty/71156)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 59\
**Last updated:** [October 10, 2006, 7:47am UTC](https://www.ruby-forum.com/t/nil-being-empty/71156 "2006-10-10T07:47:51Z")

</div>

Show of hands - who thinks this is bad form? class NilClass def empty?; true; end end

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

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