# Ruby

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

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

---

## [Run 'some' code as a different user? NET::SSH?](https://www.ruby-forum.com/t/run-some-code-as-a-different-user-net-ssh/103019)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 7\
**Last updated:** [May 1, 2007, 10:08am UTC](https://www.ruby-forum.com/t/run-some-code-as-a-different-user-net-ssh/103019 "2007-05-01T10:08:38Z")

</div>

Hello, I’m working on a ROR app that allows users to track batch computing jobs submitted to our high performance computing clusters. Anyway, a piece of functionality to that application is an online file browser to t…

---

## [DBI, native extensions, etcetera](https://www.ruby-forum.com/t/dbi-native-extensions-etcetera/103057)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 9:44am UTC](https://www.ruby-forum.com/t/dbi-native-extensions-etcetera/103057 "2007-05-01T09:44:36Z")

</div>

I want to do some databasey stuff. DBI/DBD looks to be unmaintained (or at least, has a large and apparently untouched bug list). The native ruby-postgresql driver I found, while it does work, is massively underdoc…

---

## [Rails 1.1.6 & 1.2.2 compatibility](https://www.ruby-forum.com/t/rails-1-1-6-1-2-2-compatibility/103050)

<div class="topic-metadata">

**Author:** [@Artit\_S](https://www.ruby-forum.com/u/Artit_S)\
**Replies:** 1\
**Last updated:** [May 1, 2007, 8:38am UTC](https://www.ruby-forum.com/t/rails-1-1-6-1-2-2-compatibility/103050 "2007-05-01T08:38:32Z")

</div>

I setup a rails with apache2 + mod\_fcgid Rails version 1.1.6 is work fine but version 1.2.x is a problem. I saw log, it told like RoutingError It’s possible to run 2 app with 2 rails verion? and How? ThankYou – Art…

---

## [LONG2NUM vs LONG2FIX](https://www.ruby-forum.com/t/long2num-vs-long2fix/93267)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 7:47am UTC](https://www.ruby-forum.com/t/long2num-vs-long2fix/93267 "2007-05-01T07:47:17Z")

</div>

what’s the difference about “LONG2NUM and LONG2FIX” in ruby c api? why not “return LONG2FIX after FIX2LONG”?? thanks. ruby source file(numeric.c): /\* call-seq: fix.abs -\> aFixnum Returns the absolute value of f…

---

## [Ruby scripting on microsoft active directory plus exchange](https://www.ruby-forum.com/t/ruby-scripting-on-microsoft-active-directory-plus-exchange/92401)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 15\
**Last updated:** [May 1, 2007, 6:28am UTC](https://www.ruby-forum.com/t/ruby-scripting-on-microsoft-active-directory-plus-exchange/92401 "2007-05-01T06:28:26Z")

</div>

Hi All, Just want to ask anyone in this list doing ruby scripting on active directory plus exchange server. Basically i want to query all ad users who have mailboxes and for each mailbox also display all the other use…

---

## [Http-access/2.0.7 RC](https://www.ruby-forum.com/t/http-access-2-0-7-rc/102999)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 6:17am UTC](https://www.ruby-forum.com/t/http-access-2-0-7-rc/102999 "2007-05-01T06:17:24Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I posted a release candidate version of http-access/2.0.7. (named 2.0.6.99.20070430) http://dev.ctor.org/http-access2/wiki#a2007-04-29:version2.0.7-rc http-access2 …

---

## [How to represent Date before epoch as a integer](https://www.ruby-forum.com/t/how-to-represent-date-before-epoch-as-a-integer/93251)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 6\
**Last updated:** [May 1, 2007, 5:54am UTC](https://www.ruby-forum.com/t/how-to-represent-date-before-epoch-as-a-integer/93251 "2007-05-01T05:54:24Z")

</div>

Hi, I provide a people search function that a user can specify a age range. I use acts\_as\_ferret for the search. I’d like to represent a user’s birth date as a integer number, so that I can tell Ferret to do the comp…

---

## [Class Level Variables](https://www.ruby-forum.com/t/class-level-variables/93248)

<div class="topic-metadata">

**Author:** [@cory](https://www.ruby-forum.com/u/cory)\
**Replies:** 22\
**Last updated:** [May 1, 2007, 5:11am UTC](https://www.ruby-forum.com/t/class-level-variables/93248 "2007-05-01T05:11:21Z")

</div>

Alright, I’m missing some core ruby concept here that I just can’t figure out; any assistance would be excellent and welcome: Long story short, I’m attempting to modify class level variables @@foo, @@bar from an actio…

---

## [Windows new user cheat sheet?](https://www.ruby-forum.com/t/windows-new-user-cheat-sheet/93245)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 10\
**Last updated:** [May 1, 2007, 3:58am UTC](https://www.ruby-forum.com/t/windows-new-user-cheat-sheet/93245 "2007-05-01T03:58:16Z")

</div>

Just throwing this out there… Periodically I am made aware that not all Windows users are familiar with cmd.com and the Windows command line. It seems to me that it would be very helpful if somebody who is familiar wi…

---

## [ZenTest 3.5.2 Released](https://www.ruby-forum.com/t/zentest-3-5-2-released/103037)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 1:30am UTC](https://www.ruby-forum.com/t/zentest-3-5-2-released/103037 "2007-05-01T01:30:09Z")

</div>

ZenTest version 3.5.2 has been released! http://rubyforge.org/projects/zentest zentest | software projects | by ryan davis ZenTest provides 4 different tools and 1 library: zentest, unit\_diff, autotest, multiruby, an…

---

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

<div class="topic-metadata">

**Author:** [@Terrance\_Mok](https://www.ruby-forum.com/u/Terrance_Mok)\
**Replies:** 1\
**Last updated:** [May 1, 2007, 1:03am UTC](https://www.ruby-forum.com/t/unsubscribe/103022 "2007-05-01T01:03:05Z")

</div>

unsubscribe

---

## [Re: Checking Credit Cards (#122)](https://www.ruby-forum.com/t/re-checking-credit-cards-122/103029)

<div class="topic-metadata">

**Author:** [@Bartosz\_Blimke](https://www.ruby-forum.com/u/Bartosz_Blimke)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/re-checking-credit-cards-122/103029 "2007-04-30T23:42:58Z")

</div>

class CreditCardNumberValidator CARD\_TYPE = { :amex =\> 'AMEX', :discover =\> 'DISCOVER', :master\_card =\> 'MASTER CARD', :visa =\> 'VISA', :unknown =\> 'UNKNOWN' } CARD\_NUMBER\_PATTERN = { :amex =\> …

---

## [Rails Web services (in general), HTTP GET and JSON and other](https://www.ruby-forum.com/t/rails-web-services-in-general-http-get-and-json-and-other/103017)

<div class="topic-metadata">

**Author:** [@dtdtdt](https://www.ruby-forum.com/u/dtdtdt)\
**Replies:** 3\
**Last updated:** [April 30, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/rails-web-services-in-general-http-get-and-json-and-other/103017 "2007-04-30T23:25:57Z")

</div>

Hi, I like SOA, I like Ajax, I like Ruby/Rails, but I am in doubt how to make some things. There are always solutions, but my idea is not solving the problem, but learning the best way to solve it. I didn’t find near…

---

## [Isi-1.1.2 is released!](https://www.ruby-forum.com/t/isi-1-1-2-is-released/103025)

<div class="topic-metadata">

**Author:** [@NISHIMATSU\_Takeshi](https://www.ruby-forum.com/u/NISHIMATSU_Takeshi)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/isi-1-1-2-is-released/103025 "2007-04-30T23:04:54Z")

</div>

Dear Rubies and TeXnichians, isi-1.1.2 is released. isi converts ISI Export Format to BibTeX Format. This is a Ruby script. You can use isi as a library. (Its former names were isi.rb or isi2bibtex.rb.) ISI Web of S…

---

## [Rdoc markup question](https://www.ruby-forum.com/t/rdoc-markup-question/93258)

<div class="topic-metadata">

**Author:** [@pfharlock](https://www.ruby-forum.com/u/pfharlock)\
**Replies:** 3\
**Last updated:** [April 30, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/rdoc-markup-question/93258 "2007-04-30T22:54:54Z")

</div>

Is there a way to disable rdoc’s automatic cross referencing of method names? I’ve got a method named ‘null’ but I don’t want every instance of the word ‘null’ in the comments to be hyperlinked to the method definiti…

---

## [FW: Fml status report (ruby-talk ML)](https://www.ruby-forum.com/t/fw-fml-status-report-ruby-talk-ml/103024)

<div class="topic-metadata">

**Author:** [@Elliott\_Hughes](https://www.ruby-forum.com/u/Elliott_Hughes)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/fw-fml-status-report-ruby-talk-ml/103024 "2007-04-30T22:33:53Z")

</div>

silly question, because anyone who could answer “yes” won’t read this, but has anyone been able to unsubscribe lately? it seems that whatever command i send to ruby-talk-ctl, i get the response below. i tried mailing…

---

## [Checking Credit Cards (#122)](https://www.ruby-forum.com/t/checking-credit-cards-122/93233)

<div class="topic-metadata">

**Author:** [@Ruy\_DSSS\_az\_Jara](https://www.ruby-forum.com/u/Ruy_DSSS_az_Jara)\
**Replies:** 1\
**Last updated:** [April 30, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/checking-credit-cards-122/93233 "2007-04-30T22:08:49Z")

</div>

Hi everyone, like most of the other quiz solvers, I am also new to Ruby and the mailing list. This is my second Ruby program, so I am eagerly awaiting any comments on improvements, flaws, etc. Without further ado, my…

---

## [How do I prevent ruby on windows from automatically converti](https://www.ruby-forum.com/t/how-do-i-prevent-ruby-on-windows-from-automatically-converti/103012)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 1\
**Last updated:** [April 30, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/how-do-i-prevent-ruby-on-windows-from-automatically-converti/103012 "2007-04-30T21:40:28Z")

</div>

I have a Windows batch file (mytest.bat) that calls a Ruby script (mytest). The mytest.bat looks like this: ruby %TOOLDIR%\\bin\\mytest %\* When the batch file is called using “call mytest” from another Ruby script, it…

---

## [Problem replacing newlines in regexp](https://www.ruby-forum.com/t/problem-replacing-newlines-in-regexp/93256)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 5\
**Last updated:** [April 30, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/problem-replacing-newlines-in-regexp/93256 "2007-04-30T21:15:24Z")

</div>

I’m trying to do a gsub ( “\\n” , " " ) but none of the newlines are replaced. Is there something special I have to do for newlines? (If it makes a difference, I’m running under Windows.) Thanks, Mike S.

---

## [Cfp: ismm'07](https://www.ruby-forum.com/t/cfp-ismm07/103013)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/cfp-ismm07/103013 "2007-04-30T21:06:23Z")

</div>

ISMM’07 CALL FOR PAPERS ABSTRACTS DUE 7 MAY 2007 2007 ACM International Symposium on Memory Management To be co-located with OOPSLA 2007 in Montreal http://www.eecs.harvard.edu/~greg/ismm07/ I…

---

## [DHH vs. WHY style](https://www.ruby-forum.com/t/dhh-vs-why-style/92934)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 34\
**Last updated:** [April 30, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/dhh-vs-why-style/92934 "2007-04-30T19:29:13Z")

</div>

Like to know others general opinions on having a comprehensive library vs. independent libraries. In my quest to make Facets’ functionality available in some smaller parts, I am left with hard choice. I think of it as…

---

## [No such file to load -- openssl (MissingSourceFile)](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-missingsourcefile/103011)

<div class="topic-metadata">

**Author:** [@eddy](https://www.ruby-forum.com/u/eddy)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-missingsourcefile/103011 "2007-04-30T19:28:16Z")

</div>

I’m on a CentOs, and that’s what it says when it tries to load my rails app. i figure it’s more appropriate here, since openssl should be included with ruby. installing from source, (twice on Ruby 1.8.6), got despera…

---

## [Why is 0x7FFFFFFF Bignum and not Fixnum?](https://www.ruby-forum.com/t/why-is-0x7fffffff-bignum-and-not-fixnum/93261)

<div class="topic-metadata">

**Author:** [@magpie](https://www.ruby-forum.com/u/magpie)\
**Replies:** 9\
**Last updated:** [April 30, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/why-is-0x7fffffff-bignum-and-not-fixnum/93261 "2007-04-30T18:42:06Z")

</div>

According to the Pickaxe book : “A Fixnum holds Integer values that can be represented in a native machine word (minus 1 bit). If any operation on a Fixnum exceeds this range, the value is automatically converted to a…

---

## [\[QUIZ\] Checking Credit Cards (#122)](https://www.ruby-forum.com/t/quiz-checking-credit-cards-122/103009)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/quiz-checking-credit-cards-122/103009 "2007-04-30T18:40:05Z")

</div>

This is my first submission to Ruby Q… I have all the credit card rules in an external YAML file. I also think that my luhn() and type() implementations could be cleaner, but it is what it is. :slight\_smile: cca…

---

## [Ways to change the behavior of a block](https://www.ruby-forum.com/t/ways-to-change-the-behavior-of-a-block/93266)

<div class="topic-metadata">

**Author:** [@Brian\_Guthrie](https://www.ruby-forum.com/u/Brian_Guthrie)\
**Replies:** 7\
**Last updated:** [April 30, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/ways-to-change-the-behavior-of-a-block/93266 "2007-04-30T17:43:59Z")

</div>

I’d like to be able to change the behavior of a call to a block (I’m working on a design-by-contract system and would like to be able to check the block’s signature, filtering each call through some contract check) an…

---

## [How To Delete An Email's Attachment?](https://www.ruby-forum.com/t/how-to-delete-an-emails-attachment/93272)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 1\
**Last updated:** [April 30, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-delete-an-emails-attachment/93272 "2007-04-30T16:01:47Z")

</div>

Hello, Does anybody know whether or not it is possible to delete attachments from an email stored on an IMAP server? I have looked at TMail and Net::IMAP but wasn’t able to see how to do it. Furthermore I couldn’t t…

---

## [Something\_test.rb instead of test\_something.rb with autotest](https://www.ruby-forum.com/t/something-test-rb-instead-of-test-something-rb-with-autotest/93236)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 4\
**Last updated:** [April 30, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/something-test-rb-instead-of-test-something-rb-with-autotest/93236 "2007-04-30T15:21:41Z")

</div>

I recently swapped Ruport’s tests to be named something\_test.rb instead of test\_something.rb Is there a quick config option I can throw in so this doesn’t break autotest? Warm Regards, gregory

---

## [\[QUIZ\] Checking Credit Cards (#122)](https://www.ruby-forum.com/t/quiz-checking-credit-cards-122/93249)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 5\
**Last updated:** [April 30, 2007, 2:45pm UTC](https://www.ruby-forum.com/t/quiz-checking-credit-cards-122/93249 "2007-04-30T14:45:36Z")

</div>

I was trying to go for “most compact and obfuscated version of the Luhn algorithm”, but unfortunately the complications of the algorithm meant that I had to debug my implementation, which left it slightly more readabl…

---

## [Class Method never call](https://www.ruby-forum.com/t/class-method-never-call/93284)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 0\
**Last updated:** [April 30, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/class-method-never-call/93284 "2007-04-30T13:55:35Z")

</div>

Hello, I don’t understand why ma méthode validates\_as\_attachment is never call when the object is save or update Can you help me Thanks class Enseignant \< ActiveRecord::Base self.keep\_translations\_in\_model = true …

---

## [Ruby date conversion](https://www.ruby-forum.com/t/ruby-date-conversion/93279)

<div class="topic-metadata">

**Author:** [@Singeo](https://www.ruby-forum.com/u/Singeo)\
**Replies:** 1\
**Last updated:** [April 30, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/ruby-date-conversion/93279 "2007-04-30T12:48:29Z")

</div>

Hi, I have a text file with dates stored in the following format: 30/04/07 16:52:00 +0800 I need to convert these dates to RFC-822 so the above would become: Mon, 30 Apr 2002 16:52:00 +0800 Can someone help me with t…

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

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