# Ruby

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

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

---

## [Fwd: Please Forward: Ruby Quiz Submission (88)](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-88/229066)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 9:18pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-88/229066 "2006-07-31T21:18:31Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission (88)](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-88/197326)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-88/197326 "2006-07-31T20:33:14Z")

</div>

Begin forwarded message:

---

## [Getting a precise timestamp](https://www.ruby-forum.com/t/getting-a-precise-timestamp/100719)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/getting-a-precise-timestamp/100719 "2006-07-31T20:23:27Z")

</div>

I am new to Ruby and am trying to get the precise time (down to a fraction of a second). For example, I did this: require ‘date’ now = DateTime.now puts sprintf (“The current time is: %2d:%2d:%5.2f”, now.hour, now.m…

---

## [Re: Setting precision in Ruby-GSL calculations?](https://www.ruby-forum.com/t/re-setting-precision-in-ruby-gsl-calculations/100740)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 8:11pm UTC](https://www.ruby-forum.com/t/re-setting-precision-in-ruby-gsl-calculations/100740 "2006-07-31T20:11:05Z")

</div>

Dear Ed, dear Yoshiki, thanks for your replies… I am now able to reproduce your results in Ruby-Gsl, (eliminating some typos), and I’ve learnt that there are some conflicting definitions of singular value decomposi…

---

## [Re: state of unicode support](https://www.ruby-forum.com/t/re-state-of-unicode-support/100379)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 19\
**Last updated:** [July 31, 2006, 7:44pm UTC](https://www.ruby-forum.com/t/re-state-of-unicode-support/100379 "2006-07-31T19:44:22Z")

</div>

like. I’m sure that’s a touch of hyperbole, but in any case: What’s the current state of Unicode support in Ruby? My recollection is of Unicode support somewhat lacking. Good grief, this was just covered ad naus…

---

## [TCPSocket and RFC 821](https://www.ruby-forum.com/t/tcpsocket-and-rfc-821/100568)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 16\
**Last updated:** [July 31, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/tcpsocket-and-rfc-821/100568 "2006-07-31T18:48:17Z")

</div>

I wanted to send an email from my desktop using a simple Ruby program. I installed 1st SMTP Server (1st SMTP Server : EmailArms.Com) - an easy to use SMTP mail relay server. It is used for relaying your email message…

---

## [Help with flexmock (please :-)](https://www.ruby-forum.com/t/help-with-flexmock-please/100712)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 4:18pm UTC](https://www.ruby-forum.com/t/help-with-flexmock-please/100712 "2006-07-31T16:18:54Z")

</div>

Hi All I suspect I am trying to misuse flexmock but I thought that I would ask anyway. Given the following 2 (somewhat contrived) test cases why does the second produce the error that follows: require ‘flexmock’ c…

---

## [Ruby "Module" Repository?](https://www.ruby-forum.com/t/ruby-module-repository/100705)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/ruby-module-repository/100705 "2006-07-31T16:09:30Z")

</div>

I’ve been a Perl programmer for over 15 years, and I’ve decided to start learning Ruby by doing all of my new scripts in Ruby. One of the Perl’s greatest strength is its expansive number of Perl modules. Perl’s standa…

---

## [Strange difference between irb and ruby](https://www.ruby-forum.com/t/strange-difference-between-irb-and-ruby/100607)

<div class="topic-metadata">

**Author:** [@naPOLeon](https://www.ruby-forum.com/u/naPOLeon)\
**Replies:** 3\
**Last updated:** [July 31, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/strange-difference-between-irb-and-ruby/100607 "2006-07-31T15:42:26Z")

</div>

Hello, I’m a just beginner to ruby and impressed by the possibility to test code in irb. Today I wrote a line of code in irb and it behaved as I expected. But when I inserted it in my program and executed with ruby, …

---

## [Unable to install Gems with RubyGems on Intel OSX with Darwi](https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637)

<div class="topic-metadata">

**Author:** [@Douglas\_T](https://www.ruby-forum.com/u/Douglas_T)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637 "2006-07-31T15:26:13Z")

</div>

I followed Duncan Davidson’s Sandboxing Rails with Darwin Ports guide and everything went fine up till the part where I had to install gems using gem install. I would get this stacktrace: Attempting local installati…

---

## [XCode 2.2.1 attaching to ruby process for debugging](https://www.ruby-forum.com/t/xcode-2-2-1-attaching-to-ruby-process-for-debugging/100692)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/xcode-2-2-1-attaching-to-ruby-process-for-debugging/100692 "2006-07-31T14:36:46Z")

</div>

Hi, I am developing an extension for Ruby and wish to debug it using XCode. I used mkmf.rb to generate the Makefile to compile the bundle. The extension works fine, I am adding more complicated features and would li…

---

## [DRB ruby ACL problems](https://www.ruby-forum.com/t/drb-ruby-acl-problems/100662)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 1\
**Last updated:** [July 31, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/drb-ruby-acl-problems/100662 "2006-07-31T14:23:51Z")

</div>

I have spent several hours trying to workout why drb ruby will not allow a remote pc to connect to my server to pull objects… Here’s where I stand with the problem: Debian server is on 192.168.0.2 running ruby 1.8.2 …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/104298)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [July 31, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/104298 "2006-07-31T13:58:53Z")

</div>

Begin forwarded message:

---

## [How to md5 a file?](https://www.ruby-forum.com/t/how-to-md5-a-file/100487)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 9\
**Last updated:** [July 31, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/how-to-md5-a-file/100487 "2006-07-31T13:58:20Z")

</div>

Basically I want to generate an md5 hash from considerably large files to determine if they are exactly the same. Is there a better way to do this besides comparing md5 hashes? Thanks for your help.

---

## [Earn money easily](https://www.ruby-forum.com/t/earn-money-easily/100691)

<div class="topic-metadata">

**Author:** [@toto](https://www.ruby-forum.com/u/toto)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 1:02pm UTC](https://www.ruby-forum.com/t/earn-money-easily/100691 "2006-07-31T13:02:29Z")

</div>

IF YOU EVER WONDERED IF IT IS POSSIBLE TO MAKE MONEY ONLINE AND DO SO SURPRISINGLY FAST-THEN YOU ARE GOING TO LOVE THIS. THIS CAN WORK FOR ANYONE. CAN TURN $12 INTO $25,000 or More USING EGOLD. READING THIS COULD CHAN…

---

## [Ruby Executable Issues](https://www.ruby-forum.com/t/ruby-executable-issues/100609)

<div class="topic-metadata">

**Author:** [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 12:44pm UTC](https://www.ruby-forum.com/t/ruby-executable-issues/100609 "2006-07-31T12:44:34Z")

</div>

hi all, i’m creating a program and i’d like it to run as a standalone executable on any of the various platforms. i dev in linux, but my first program is for a windows friend - yeah, i have some. :wink: i’d like to…

---

## [CHM files?](https://www.ruby-forum.com/t/chm-files/100665)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 4\
**Last updated:** [July 31, 2006, 10:45am UTC](https://www.ruby-forum.com/t/chm-files/100665 "2006-07-31T10:45:51Z")

</div>

In Debian Linux, there’s a group of “libchm” packages that offer an API and tools to unpack Windows Compiled Help Module files. A lot of EBooks are delivered this way, including the Ruby Book, and it’s always bugged m…

---

## [Ruby 1.8.5 on HP-UX 11.11 (PA-RISC) test result](https://www.ruby-forum.com/t/ruby-1-8-5-on-hp-ux-11-11-pa-risc-test-result/100451)

<div class="topic-metadata">

**Author:** [@MIYAMUKO\_Katsuyuki](https://www.ruby-forum.com/u/MIYAMUKO_Katsuyuki)\
**Replies:** 1\
**Last updated:** [July 31, 2006, 9:52am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-on-hp-ux-11-11-pa-risc-test-result/100451 "2006-07-31T09:52:19Z")

</div>

HP-UX 11.11 (PA-RISC) e$B$G$N%F%9%H7k2L$G$9!#e(B make test-all e$B$Ge(B 2 e$B$DLdBj$,$"$j$^$9$,:3:Y$J$b$N$G$9!#e(B == e$B4D6-e(B uname -srm HP-UX B.11.11 9000/861 what /usr/bin/cc /usr/bin/cc: LINT B.11.11.24830.G…

---

## [Custom Exception classes](https://www.ruby-forum.com/t/custom-exception-classes/100443)

<div class="topic-metadata">

**Author:** [@snowdall](https://www.ruby-forum.com/u/snowdall)\
**Replies:** 7\
**Last updated:** [July 31, 2006, 9:45am UTC](https://www.ruby-forum.com/t/custom-exception-classes/100443 "2006-07-31T09:45:57Z")

</div>

Hello, I’m new here so please be gentle (i.e. if I’m posting in the wrong place let me know). At any rate the team I’m working on is cooking up a ruby app and we want to implement some error handling by using a custo…

---

## [Howto Delete 3 Leftmost Characters](https://www.ruby-forum.com/t/howto-delete-3-leftmost-characters/100620)

<div class="topic-metadata">

**Author:** [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Replies:** 17\
**Last updated:** [July 31, 2006, 7:20am UTC](https://www.ruby-forum.com/t/howto-delete-3-leftmost-characters/100620 "2006-07-31T07:20:01Z")

</div>

i’m sure this is easy, but i’ve gone through Pickaxe’s string methods, searched the web and searched the groups, and i can’t figure out how to do this in Ruby. i grep a file and it returns the following string: #ip 1…

---

## [Proof if a File exsists](https://www.ruby-forum.com/t/proof-if-a-file-exsists/100598)

<div class="topic-metadata">

**Author:** [@jah](https://www.ruby-forum.com/u/jah)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 5:43am UTC](https://www.ruby-forum.com/t/proof-if-a-file-exsists/100598 "2006-07-31T05:43:28Z")

</div>

Hi, I want to proof if a File exsist. I just realize this by if(Dir.glob(file).length == 0) But I think there should be a better possibiliti like File.exsists?(file) Jonathan

---

## [Re: almost there](https://www.ruby-forum.com/t/re-almost-there/100646)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [July 31, 2006, 4:48am UTC](https://www.ruby-forum.com/t/re-almost-there/100646 "2006-07-31T04:48:20Z")

</div>

I installed in the following order and had no problems, and did no configuration of RadRails. Eclipse Ruby RDT Gems Rails RadRails plugin to existing Eclipse Did you remove the rubyopt=gems definition? Does RDT w…

---

## [Almost there](https://www.ruby-forum.com/t/almost-there/100631)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 3:28am UTC](https://www.ruby-forum.com/t/almost-there/100631 "2006-07-31T03:28:01Z")

</div>

So, after a little sweat and hair pulling, I almost have a functional Ruby/Rails/Mysql/OSX/RadRails setup. The only real problem now is trying to figure out why I can’t get RadRails to create new projects for me with…

---

## [1.8.4 broke my Rinda app](https://www.ruby-forum.com/t/1-8-4-broke-my-rinda-app/69187)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 2:20am UTC](https://www.ruby-forum.com/t/1-8-4-broke-my-rinda-app/69187 "2006-07-31T02:20:55Z")

</div>

At the bottom of this email is a contrived example of something I was able to do in 1.8.2, but results in a RuntimeError with either 1.8.3 or 1.8.4. Essentially, I’m registering a service with a ring “in-process”. Ca…

---

## [Setting precision in Ruby-GSL calculations?](https://www.ruby-forum.com/t/setting-precision-in-ruby-gsl-calculations/100621)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [July 31, 2006, 1:19am UTC](https://www.ruby-forum.com/t/setting-precision-in-ruby-gsl-calculations/100621 "2006-07-31T01:19:07Z")

</div>

Dear all, I’d like to use ruby-gsl for some singular value decompositions, i.e. a matrix m should be decomposed into a product of three matrices, m=usv.transposed, now,as the documentation says that this algorithm i…

---

## [What is the scope of this object](https://www.ruby-forum.com/t/what-is-the-scope-of-this-object/100585)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 6\
**Last updated:** [July 31, 2006, 1:15am UTC](https://www.ruby-forum.com/t/what-is-the-scope-of-this-object/100585 "2006-07-31T01:15:57Z")

</div>

Hi all, irb(main):001:0\> irb(main):002:0\* class A irb(main):003:1\> def secret;“you found me”;end irb(main):004:1\> end =\> nil irb(main):005:0\> class BlackHole irb(main):006:1\> a=A.new irb(main):007:1\> end =\> #\<A:…

---

## [Re: Setting precision in Ruby-GSL calculations?](https://www.ruby-forum.com/t/re-setting-precision-in-ruby-gsl-calculations/100624)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 31, 2006, 1:12am UTC](https://www.ruby-forum.com/t/re-setting-precision-in-ruby-gsl-calculations/100624 "2006-07-31T01:12:27Z")

</div>

Dear Ed, thank you for responding. Well, I tried transposing as you said too, but then I lost confidence in the algorithm implemented there, because for m=\[\[10,5,-10\],\[2,-11,10\]\].to\_gsl\_matrix, I then get a matrix u…

---

## [Re: Howto Delete 3 Leftmost Characters](https://www.ruby-forum.com/t/re-howto-delete-3-leftmost-characters/100625)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 31, 2006, 12:36am UTC](https://www.ruby-forum.com/t/re-howto-delete-3-leftmost-characters/100625 "2006-07-31T00:36:03Z")

</div>

You can delete white spaces at the start and at the end of a string like this: string=" a long string " string1=string.sub(/^ +/,‘’) string2=string.sub(/ +$/,‘’) The ^ stands for eliminating things at the s…

---

## [Heredocs and white space](https://www.ruby-forum.com/t/heredocs-and-white-space/100464)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 4\
**Last updated:** [July 30, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/heredocs-and-white-space/100464 "2006-07-30T23:54:22Z")

</div>

Is there some reason heredocs fail if there is white space after the closing string? Until I realized what was happening this caused me a good bit of trouble. Invisible characters shouldn’t cause stuff to fail. Exampl…

---

## [Re: For performance, write it in C](https://www.ruby-forum.com/t/re-for-performance-write-it-in-c/100623)

<div class="topic-metadata">

**Author:** [@Kloubakov\_Yura](https://www.ruby-forum.com/u/Kloubakov_Yura)\
**Replies:** 0\
**Last updated:** [July 30, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/re-for-performance-write-it-in-c/100623 "2006-07-30T23:44:34Z")

</div>

environment except insofar as it runs without that environment. Here’s all I’m saying: the environment is important, but it’s a variable that must be cancelled when talking about some piece of software that’s runn…

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

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