# Ruby

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

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

---

## [Preserve mtime when using FTP?](https://www.ruby-forum.com/t/preserve-mtime-when-using-ftp/75977)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [November 15, 2006, 10:31am UTC](https://www.ruby-forum.com/t/preserve-mtime-when-using-ftp/75977 "2006-11-15T10:31:24Z")

</div>

I am using Net::FTP to copy files, but the file stats are not preserved. In particular, I would like to preserve mtime (time of last modification). There is an FTP mtime method that can get the mtime of the remote fi…

---

## [Ruby GUI with IDE](https://www.ruby-forum.com/t/ruby-gui-with-ide/75634)

<div class="topic-metadata">

**Author:** [@aliasxneo](https://www.ruby-forum.com/u/aliasxneo)\
**Replies:** 32\
**Last updated:** [November 15, 2006, 10:05am UTC](https://www.ruby-forum.com/t/ruby-gui-with-ide/75634 "2006-11-15T10:05:17Z")

</div>

Hello all, I am currently looking for a good easy to use IDE that includes GUI development as well. Something like how C++ has DevC++ that suppots wxWidgets and allows you to code and create frames at the same time. I …

---

## [Directory\_watcher 0.1.1](https://www.ruby-forum.com/t/directory-watcher-0-1-1/75817)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 15\
**Last updated:** [November 15, 2006, 9:47am UTC](https://www.ruby-forum.com/t/directory-watcher-0-1-1/75817 "2006-11-15T09:47:15Z")

</div>

A class for watching files within a directory and generating events when those files change. The directory watcher operates by scanning a directory at some interval and generating a list of files based on a user supp…

---

## [1.8$BLdBj$^$H$a(B(2)](https://www.ruby-forum.com/t/1-8-bldbj-h-a-b-2/75715)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 5\
**Last updated:** [November 15, 2006, 7:47am UTC](https://www.ruby-forum.com/t/1-8-bldbj-h-a-b-2/75715 "2006-11-15T07:47:02Z")

</div>

e$BKNIt$G$9!#e(B \[ruby-core:9493\]e$B$G1Q8l7w$N$$J$5$s$N0U8+$bJ9$$$F$$?7k2L!“e(B1.8e$B$N3+H/%V%ie(B e$B%s%A$O!V26$K$OI,MW$J$$$+$b$7$l$J$$$,!”$\*$^$($i$,L4$r8+$k$?$a$OIT2D7g!W$He(B e$B$$$&7kO@$KC#$7$^$7$?!#=\>$C$F!"8=:\_$N…

---

## [Re: lib - generating a list of random number](https://www.ruby-forum.com/t/re-lib-generating-a-list-of-random-number/75960)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [November 15, 2006, 7:17am UTC](https://www.ruby-forum.com/t/re-lib-generating-a-list-of-random-number/75960 "2006-11-15T07:17:00Z")

</div>

From: Robert K. \[mailto:removed\_email\_address@domain.invalid\] On 14.11.2006 17:09, Josselin wrote: but I don’t understand very well how to coordinate the sue of srand and rand… I am not sure I understand you here…

---

## [First ruby program, how do I make it faster?](https://www.ruby-forum.com/t/first-ruby-program-how-do-i-make-it-faster/225930)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 15, 2006, 5:20am UTC](https://www.ruby-forum.com/t/first-ruby-program-how-do-i-make-it-faster/225930 "2006-11-15T05:20:54Z")

</div>

I wrote my first ruby program recently, a word-chain finder, and I would like some hints on how to speed it up. When I looked for a priority queue to use in the a-star search, I found that this problem was also a rub…

---

## [Enterprise Ruby Conference](https://www.ruby-forum.com/t/enterprise-ruby-conference/76011)

<div class="topic-metadata">

**Author:** [@Joe\_OBrien](https://www.ruby-forum.com/u/Joe_OBrien)\
**Replies:** 0\
**Last updated:** [November 15, 2006, 4:52am UTC](https://www.ruby-forum.com/t/enterprise-ruby-conference/76011 "2006-11-15T04:52:52Z")

</div>

erubycon: Columbus Ohio, Feburary 9 - 11, 2007 EdgeCase is proud to announce erubycon, the first conference specifically for demonstrating Ruby’s place in the Enterprise world. Many of you out there have stood back an…

---

## [Question about rspec assigns](https://www.ruby-forum.com/t/question-about-rspec-assigns/76002)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 2\
**Last updated:** [November 15, 2006, 2:26am UTC](https://www.ruby-forum.com/t/question-about-rspec-assigns/76002 "2006-11-15T02:26:37Z")

</div>

Hi folks, I’m using rspec for a Rails project and keep seeing the “assigns” method in the “writing specs” portion of the documentation, yet I don’t see “assigns” in the rdoc and I can’t seem to find an explicit defi…

---

## [Returning keyword](https://www.ruby-forum.com/t/returning-keyword/75753)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 11\
**Last updated:** [November 15, 2006, 2:20am UTC](https://www.ruby-forum.com/t/returning-keyword/75753 "2006-11-15T02:20:36Z")

</div>

What is the “returning” keyword? It’s usually used with a block, but I can’t find what it is.

---

## [FastRI 0.1.0: faster, smarter RI docs for Ruby, DRb-enabled](https://www.ruby-forum.com/t/fastri-0-1-0-faster-smarter-ri-docs-for-ruby-drb-enabled/75244)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 26\
**Last updated:** [November 15, 2006, 2:10am UTC](https://www.ruby-forum.com/t/fastri-0-1-0-faster-smarter-ri-docs-for-ruby-drb-enabled/75244 "2006-11-15T02:10:34Z")

</div>

FastRI 0.1.0: faster, smarter RI docs for Ruby, DRb-enabled FastRI can be installed with RubyGems: gem install fastri (if you get an old version/a 404 error, please allow some time after the release until the package…

---

## [Touch](https://www.ruby-forum.com/t/touch/75995)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 2\
**Last updated:** [November 15, 2006, 1:10am UTC](https://www.ruby-forum.com/t/touch/75995 "2006-11-15T01:10:29Z")

</div>

I need to “touch” a file from my ruby script. (This is a unix-based command that updates the timestamp on a file, creating it, if it doesn’t already exist.) I’m running on Windows. A collegue found a port of “touch” a…

---

## [\[ARRAYS\] Bidimensional Arrays? (opened)](https://www.ruby-forum.com/t/arrays-bidimensional-arrays-opened/75996)

<div class="topic-metadata">

**Author:** [@flaab](https://www.ruby-forum.com/u/flaab)\
**Replies:** 2\
**Last updated:** [November 15, 2006, 1:10am UTC](https://www.ruby-forum.com/t/arrays-bidimensional-arrays-opened/75996 "2006-11-15T01:10:28Z")

</div>

Hi there! I’m just new at ruby and I have a weird issue probably really dumb but i just haven’t been able to figure it out. Using arrays in C or whatever i could define an array using to indexing numbers, in order to…

---

## [Http://www.indianfunlife.com/ptnr.php?u=copyright](https://www.ruby-forum.com/t/http-www-indianfunlife-com-ptnr-php-u-copyright/75907)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 1\
**Last updated:** [November 14, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/http-www-indianfunlife-com-ptnr-php-u-copyright/75907 "2006-11-14T23:10:16Z")

</div>

http://www.indianfunlife.com/ptnr.php?u=copyright now u dont have to pay for sms packs click the link above and send the sms to anyone and anywhere that too absolutely free of cost and no hidden chargeds for sure ch…

---

## [Thread deadlock issue](https://www.ruby-forum.com/t/thread-deadlock-issue/75947)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [November 14, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/thread-deadlock-issue/75947 "2006-11-14T23:02:14Z")

</div>

can anyone interpret this deadlock 0xb7d8ff3c: sleep:T(1000000000000000019884624838656.000000) - /usr/local/ruby-1.8.4/lib/ruby/site\_ruby/slave.rb:306 deadlock 0xb7d90888: sleep:F(4) - /usr/local/ruby-1.8.4/lib/rub…

---

## [Rails problem with select](https://www.ruby-forum.com/t/rails-problem-with-select/75986)

<div class="topic-metadata">

**Author:** [@RaW](https://www.ruby-forum.com/u/RaW)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/rails-problem-with-select/75986 "2006-11-14T22:22:08Z")

</div>

A directory content: $ ls -la drwxr-xr-x 4 raw raw 4096 2006-11-14 00:00 . drwxr-xr-x 5 raw raw 4096 2006-09-25 20:34 … drwxr-xr-x 2 raw raw 4096 2006-10-25 08:57 200406 -rw-r–r-- 1 raw raw 7800 2006-11-01 09:40…

---

## [Excellent Ruby refactoring articles on rubyist magazine -- A](https://www.ruby-forum.com/t/excellent-ruby-refactoring-articles-on-rubyist-magazine-a/75985)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/excellent-ruby-refactoring-articles-on-rubyist-magazine-a/75985 "2006-11-14T22:12:07Z")

</div>

\---------- Forwarded message ---------- From: Dominic S. removed\_email\_address@domain.invalid Date: Nov 13, 2006 3:45 PM Subject: DBF file library analyzed and rubyfied on rubyist magazine To: removed\_email\_address@d…

---

## [Fwd: Re: Reminder: Meeting tonight 14 Nov 2006](https://www.ruby-forum.com/t/fwd-re-reminder-meeting-tonight-14-nov-2006/75984)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/fwd-re-reminder-meeting-tonight-14-nov-2006/75984 "2006-11-14T22:10:06Z")

</div>

Just in case there are folks here on ruby-talk that aren’t on our local mailing lists. By the way, if you’re visiting Salt Lake City or Utah on a Tuesday, we almost always have either a meeting or a hacking night goin…

---

## [Re: ruby indentantion](https://www.ruby-forum.com/t/re-ruby-indentantion/75958)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/re-ruby-indentantion/75958 "2006-11-14T21:13:58Z")

</div>

From: Trans \[mailto:removed\_email\_address@domain.invalid\] This is just an guestimation but I think Ruby went 2-space because the most common keyword that takes a block is only three letters long: ‘def’. What about …

---

## [Lib - generating a list of random number](https://www.ruby-forum.com/t/lib-generating-a-list-of-random-number/75944)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 7\
**Last updated:** [November 14, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/lib-generating-a-list-of-random-number/75944 "2006-11-14T21:11:58Z")

</div>

I try to generate an array of N random numbers in range between 2 integers min and max but I don’t understand very well how to coordinate the sue of srand and rand… is there an already written function for that ? …

---

## [Installing](https://www.ruby-forum.com/t/installing/75949)

<div class="topic-metadata">

**Author:** [@Dipen\_Narendra\_K](https://www.ruby-forum.com/u/Dipen_Narendra_K)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/installing/75949 "2006-11-14T20:25:44Z")

</div>

Hello!I have just started programming in Ruby as part of my University course.Now I am having trouble with installing ruby and freeride. I downloaded Ruby1.8.5 One click installer from www.ruby-lang.org but when I try…

---

## [Northern Virginia Ruby's user group meeting 11/15/06](https://www.ruby-forum.com/t/northern-virginia-rubys-user-group-meeting-11-15-06/75974)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 8:09pm UTC](https://www.ruby-forum.com/t/northern-virginia-rubys-user-group-meeting-11-15-06/75974 "2006-11-14T20:09:39Z")

</div>

Hi all - For those in the northern Virginia/DC area, there’s a Ruby user’s group meeting this Wednesday, Nov 15. We’ll be hosting a “Code Clinic/New bee Help” event, so bring your Ruby questions, Rails problems, 6502 …

---

## [Convert singel dimention array into grid](https://www.ruby-forum.com/t/convert-singel-dimention-array-into-grid/75964)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 4\
**Last updated:** [November 14, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/convert-singel-dimention-array-into-grid/75964 "2006-11-14T19:55:37Z")

</div>

Hi, I have been learning ruby for the past week and am completely hooked. Most of the code I am producing is elegant (ruby’s credit), although I am having trouble elegantly converting a single dimension array with 16 …

---

## [Installing Ruby](https://www.ruby-forum.com/t/installing-ruby/75972)

<div class="topic-metadata">

**Author:** [@dips](https://www.ruby-forum.com/u/dips)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/installing-ruby/75972 "2006-11-14T19:51:36Z")

</div>

I have had trouble installing Ruby version 1.8.5. This is supposed the stable verion. When I installed 1.8.5 it worked fine however FreeRide does not work. I reverted to installing 1.8.4 and in this version Ruby and …

---

## [Gruff: How to combine two charts in one image](https://www.ruby-forum.com/t/gruff-how-to-combine-two-charts-in-one-image/75956)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/gruff-how-to-combine-two-charts-in-one-image/75956 "2006-11-14T19:46:44Z")

</div>

Hi Folks, IÂ´m playing around with gruff and wonder if itÂ´s possible to combine two charts in one image. It works with scruffy, take a look: http://scruffy.rubyforge.org Because I had some problems with sruffy I wan…

---

## [Bfts 1.0.0 Released](https://www.ruby-forum.com/t/bfts-1-0-0-released/74541)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 24\
**Last updated:** [November 14, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/bfts-1-0-0-released/74541 "2006-11-14T18:45:22Z")

</div>

bfts version 1.0.0 has been released! http://rubyforge.org/projects/bfts BFTS is a branch of rubicon with the intent of auditing all of rubicon against the latest version of 1.8.x, stripping all the cruft, and gettin…

---

## [Re: Is 2.0 Integer or Float?](https://www.ruby-forum.com/t/re-is-2-0-integer-or-float/75957)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/re-is-2-0-integer-or-float/75957 "2006-11-14T18:43:22Z")

</div>

From: S. Robert J. \[mailto:removed\_email\_address@domain.invalid\] I’d like to be able to do: x = 2.0 assert x.integral? class Numeric def integral? round == self end end

---

## [Help installing](https://www.ruby-forum.com/t/help-installing/75950)

<div class="topic-metadata">

**Author:** [@Dipen\_Narendra\_K](https://www.ruby-forum.com/u/Dipen_Narendra_K)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/help-installing/75950 "2006-11-14T18:41:21Z")

</div>

Hello! I have just started programming in Ruby as part of my University course. Now I am having trouble with installing ruby and freeride. I downloaded Ruby 1.8.5 One click installer from www.ruby-lang.org but when I…

---

## [Ruby on win32 cannot handle certain filenames](https://www.ruby-forum.com/t/ruby-on-win32-cannot-handle-certain-filenames/75888)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [November 14, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/ruby-on-win32-cannot-handle-certain-filenames/75888 "2006-11-14T18:27:18Z")

</div>

Hello all! This is my first post in any one the ruby forums :slight\_smile: I have a serious ruby windows problem. When I use IO related calls (such as Dir.glob, File.open, etc) on my machine (WinXP), filenames are alw…

---

## [Immediate, Immutable, Singleton etc](https://www.ruby-forum.com/t/immediate-immutable-singleton-etc/75934)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 5\
**Last updated:** [November 14, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/immediate-immutable-singleton-etc/75934 "2006-11-14T17:43:01Z")

</div>

I’ve heard these terms used in various places, just wondering where I can find out more about what they mean and how knowing about them can help my programming

---

## [What's up with File.ctime?](https://www.ruby-forum.com/t/whats-up-with-file-ctime/75936)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 6\
**Last updated:** [November 14, 2006, 5:08pm UTC](https://www.ruby-forum.com/t/whats-up-with-file-ctime/75936 "2006-11-14T17:08:55Z")

</div>

Hello, I need to notate the date/time attributes of files. I’m using File.ctime and trimming it back to show just day, date, and time. filetime = File.ctime(txtfile) filetime = filetime.to\_s.gsub!(/ -.\*$/, “”) But, …

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

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