# Ruby

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

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

---

## [Problem with ssh -\> authentication failed](https://www.ruby-forum.com/t/problem-with-ssh-authentication-failed/152957)

<div class="topic-metadata">

**Author:** [@iceman](https://www.ruby-forum.com/u/iceman)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/problem-with-ssh-authentication-failed/152957 "2008-11-10T14:48:44Z")

</div>

Hi, i have a very stupid and annoying problem;/ I wrote a simple script: require ‘rubygems’ require ‘net/ssh’ Net::SSH.start(‘host’,:username =\> ‘user’,:password =\> ‘pass’) do |session| shell=session.shell.open sh…

---

## [The London Fetish Week Survival Guide for North Americans](https://www.ruby-forum.com/t/the-london-fetish-week-survival-guide-for-north-americans/152948)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 11:15am UTC](https://www.ruby-forum.com/t/the-london-fetish-week-survival-guide-for-north-americans/152948 "2008-11-10T11:15:47Z")

</div>

Magazine BDSM http://magazin.byethost2.com Hands-down, London has some the best fetish party weekends around.

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/152946)

<div class="topic-metadata">

**Author:** [@HSSSSlio\_Rocha](https://www.ruby-forum.com/u/HSSSSlio_Rocha)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 11:02am UTC](https://www.ruby-forum.com/t/no-subject/152946 "2008-11-10T11:02:14Z")

</div>

unsubscribe

---

## [\[Backport #716\] Hash#key](https://www.ruby-forum.com/t/backport-716-hash-key/152724)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 7\
**Last updated:** [November 10, 2008, 10:19am UTC](https://www.ruby-forum.com/t/backport-716-hash-key/152724 "2008-11-10T10:19:52Z")

</div>

Backport #716: Hash#key http://redmine.ruby-lang.org/issues/show/716 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Ruby 1.9e$B$G$Oe(BHash#indexe$B$,e(Bdeprecatede$B$K$J$j$^$9$,!"$$$-$J$je(Bd…

---

## [What's easiest way to compare a Float & BigDecimal (i.e. like a equals mechanism)](https://www.ruby-forum.com/t/whats-easiest-way-to-compare-a-float-bigdecimal-i-e-like-a-equals-mechanism/152850)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 7\
**Last updated:** [November 10, 2008, 8:30am UTC](https://www.ruby-forum.com/t/whats-easiest-way-to-compare-a-float-bigdecimal-i-e-like-a-equals-mechanism/152850 "2008-11-10T08:30:47Z")

</div>

Hi, what’s easiest way to compare a Float & BigDecimal (i.e. like a equals mechanism)? It seems that “==” does NOT work as they are different types. Is there a way to do a comparison without having to convert types…

---

## [Please resubmit (old) outstanding core bugs to redmine](https://www.ruby-forum.com/t/please-resubmit-old-outstanding-core-bugs-to-redmine/152939)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 8:15am UTC](https://www.ruby-forum.com/t/please-resubmit-old-outstanding-core-bugs-to-redmine/152939 "2008-11-10T08:15:08Z")

</div>

As a note in case I missed sending one previously, if you have any ruby-core bugs that you’ve reported previously in the “old” tracker: http://rubyforge.org/tracker/?atid=1698&group\_id=426&func=browse please submit a …

---

## [About regexp](https://www.ruby-forum.com/t/about-regexp/152937)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 5:45am UTC](https://www.ruby-forum.com/t/about-regexp/152937 "2008-11-10T05:45:19Z")

</div>

“aaabbxccc”.sub(/bb(.)c/, “\\1.upcase”) =\> “aaax.upcasecc” # I expect ‘aaaXcc’ ############## Help Me^^ ##############

---

## [Paperclip plugin changing original image extension](https://www.ruby-forum.com/t/paperclip-plugin-changing-original-image-extension/152934)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 5:12am UTC](https://www.ruby-forum.com/t/paperclip-plugin-changing-original-image-extension/152934 "2008-11-10T05:12:58Z")

</div>

Hi guys, I got what I assume is a pretty simple question. I need to convert the original image filename from a paperclip plugin upload to be .png. So all files uploaded (.jpg or .gif) will be converted to .png WITHOU…

---

## [Mechanize 'stop button'](https://www.ruby-forum.com/t/mechanize-stop-button/152932)

<div class="topic-metadata">

**Author:** [@fozbaca](https://www.ruby-forum.com/u/fozbaca)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 3:28am UTC](https://www.ruby-forum.com/t/mechanize-stop-button/152932 "2008-11-10T03:28:44Z")

</div>

Hello, I’ve run into a bit of a situation with mechanize: def get\_page agent = WWW::Mechanize.new agent.read\_timeout = 150 page\_one = agent.get(www.foo.com) page\_two = agent.submit(form) # will timeout rescue Timeo…

---

## [Question about text\_field tag for collect](https://www.ruby-forum.com/t/question-about-text-field-tag-for-collect/152768)

<div class="topic-metadata">

**Author:** [@shoutao](https://www.ruby-forum.com/u/shoutao)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 3:18am UTC](https://www.ruby-forum.com/t/question-about-text-field-tag-for-collect/152768 "2008-11-10T03:18:05Z")

</div>

I have two class Question has\_many :options end How to write the page which create the Question together with the options?

---

## [Macruby next to Ruby](https://www.ruby-forum.com/t/macruby-next-to-ruby/152930)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 2:47am UTC](https://www.ruby-forum.com/t/macruby-next-to-ruby/152930 "2008-11-10T02:47:37Z")

</div>

I want to try MacRuby. Can I install that next to Ruby installed by Macports without disturbing Ruby and Rails there?

---

## [Shared-0.4.2](https://www.ruby-forum.com/t/shared-0-4-2/152918)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 8\
**Last updated:** [November 10, 2008, 1:43am UTC](https://www.ruby-forum.com/t/shared-0-4-2/152918 "2008-11-10T01:43:19Z")

</div>

NAME shared.rb DESCRIPTION super simple super power sharing of instance and class level code INSTALL gem install shared URIS http://rubyforge.org/projects/codeforpeople http://codeforpeople.com/lib/ruby/ HISTORY …

---

## [Rails book wanted for non Ruby programmer](https://www.ruby-forum.com/t/rails-book-wanted-for-non-ruby-programmer/152806)

<div class="topic-metadata">

**Author:** [@abg](https://www.ruby-forum.com/u/abg)\
**Replies:** 9\
**Last updated:** [November 10, 2008, 12:34am UTC](https://www.ruby-forum.com/t/rails-book-wanted-for-non-ruby-programmer/152806 "2008-11-10T00:34:06Z")

</div>

Hi, I am very interested to see what Rails is all about, and am looking for a good book that covers Rails well and possible has a reference for it too. I do not know Ruby but am familular with Javascript and PHP. I…

---

## [Formatting Ruby Text?](https://www.ruby-forum.com/t/formatting-ruby-text/152922)

<div class="topic-metadata">

**Author:** [@jearb](https://www.ruby-forum.com/u/jearb)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/formatting-ruby-text/152922 "2008-11-09T23:57:15Z")

</div>

Hello. I was wondering…Is it possible to format text in Ruby besides using the string literals like \\n or \\t? For example, can you make text bold?

---

## [Changing the value of a hash](https://www.ruby-forum.com/t/changing-the-value-of-a-hash/152921)

<div class="topic-metadata">

**Author:** [@manchoman](https://www.ruby-forum.com/u/manchoman)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/changing-the-value-of-a-hash/152921 "2008-11-09T23:14:51Z")

</div>

Hi I have an active record object collection. I want to change the value of the key called “mail”. @users.collect {|s|s.attributes.x\_method { if key == mail then replace @ something else (ex: value.gsub(/@/," (at) ")…

---

## [\[Bug #736\] Range#include? $B$,CY$$(B](https://www.ruby-forum.com/t/bug-736-range-include-b-cy-b/152924)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/bug-736-range-include-b-cy-b/152924 "2008-11-09T21:56:09Z")

</div>

Bug #736: Range#include? e$B$,CY$$e(B http://redmine.ruby-lang.org/issues/show/736 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Ruby 1.9e$B$Ge(BRange#include?e$B$,$b$N$9$4$$CY$$$h$&$G$9!#e(B …

---

## [Tar Libs](https://www.ruby-forum.com/t/tar-libs/152909)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/tar-libs/152909 "2008-11-09T21:27:18Z")

</div>

What’s the state of tar libraries for Ruby? What library would you recommend? Thanks, T.

---

## [Ruby on android?](https://www.ruby-forum.com/t/ruby-on-android/152504)

<div class="topic-metadata">

**Author:** [@Satish\_Srinivasan](https://www.ruby-forum.com/u/Satish_Srinivasan)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/ruby-on-android/152504 "2008-11-09T19:33:20Z")

</div>

Hi rubyists, Is there some porting effort going on to port ruby to android? I am trying to cross compile ruby statically with codesourcery GNU tool chain. So far I haven’t been successful (I am getting a lot of build …

---

## [Need help finding a pithy corouting example](https://www.ruby-forum.com/t/need-help-finding-a-pithy-corouting-example/152906)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 2\
**Last updated:** [November 9, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/need-help-finding-a-pithy-corouting-example/152906 "2008-11-09T17:50:05Z")

</div>

I’m looking for a concise but interesting example of corotuines to illustrate symmetrical fibers for the 1.9 edition of the PickAxe. Way back in the dim past, I remember a logic puzzle to do with laying down a path of…

---

## [Createing directories and moving files into it](https://www.ruby-forum.com/t/createing-directories-and-moving-files-into-it/151988)

<div class="topic-metadata">

**Author:** [@btard](https://www.ruby-forum.com/u/btard)\
**Replies:** 5\
**Last updated:** [November 9, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/createing-directories-and-moving-files-into-it/151988 "2008-11-09T17:10:47Z")

</div>

I have an undetermined list of directories. I am trying to loop through them all and in each one I want to make a directory called ‘images’. when i do this, I want o move all the imagges in that folder into it. so i …

---

## [Ruby's take on S.O.L.I.D](https://www.ruby-forum.com/t/rubys-take-on-s-o-l-i-d/152425)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 15\
**Last updated:** [November 9, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/rubys-take-on-s-o-l-i-d/152425 "2008-11-09T16:40:50Z")

</div>

I’m curious about everyone’s take on Bob Martin’s S.O.L.I.D. design principles. They seem to be getting a lot of traction with statically typed languages such as C# and Java but I haven’t heard much buzz about it in t…

---

## [Online Jobs](https://www.ruby-forum.com/t/online-jobs/152907)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/online-jobs/152907 "2008-11-09T16:10:56Z")

</div>

Click the website and click the inside image. Enjoy. +++++++++++++++++++++++ http://elecurrent.blogspot.com/ http://elecurrent.blogspot.com/ +++++++++++++++++++++++

---

## [Re: Re: a problem with warbler or maybe it's my problem or is it something in the jruby distn?](https://www.ruby-forum.com/t/re-re-a-problem-with-warbler-or-maybe-its-my-problem-or-is-it-something-in-the-jruby-distn/152905)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/re-re-a-problem-with-warbler-or-maybe-its-my-problem-or-is-it-something-in-the-jruby-distn/152905 "2008-11-09T15:22:11Z")

</div>

yep. I went through the gems ruby/gems/1.8/cache folder after I untared the 1.1.5 and I went through the tar file and couldn't find a sources.0.0.1.gem file. If other people have it then that's wierd :P I just gr…

---

## [Transliteration problems](https://www.ruby-forum.com/t/transliteration-problems/152885)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 2\
**Last updated:** [November 9, 2008, 11:11am UTC](https://www.ruby-forum.com/t/transliteration-problems/152885 "2008-11-09T11:11:56Z")

</div>

Dear all, I’d like to transliterate some accented text, just removing the accents. The encoding should be iso-8859-1 (source and destination). I am on Ubuntu 8.04, and I get the following: require “rubygems” require…

---

## [Memory implications for persistent Proc objects](https://www.ruby-forum.com/t/memory-implications-for-persistent-proc-objects/152886)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 9:11am UTC](https://www.ruby-forum.com/t/memory-implications-for-persistent-proc-objects/152886 "2008-11-09T09:11:45Z")

</div>

What are the memory implications for keeping a Proc/closure around especially those that are defined in a global scope? Is Ruby clever enough not to keep objects in the Proc closure that are never referenced in that c…

---

## [Test-unit 2.0.1 Released](https://www.ruby-forum.com/t/test-unit-2-0-1-released/152900)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 6:59am UTC](https://www.ruby-forum.com/t/test-unit-2-0-1-released/152900 "2008-11-09T06:59:55Z")

</div>

Hi, test-unit version 2.0.1 has been released! http://rubyforge.org/projects/test-unit/ Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby 1.8.x. Ruby 1.9.x bundles miniunit not Test::Unit. Test::Unit …

---

## [\[Bug:1.8\] $! = nil in at\_exit](https://www.ruby-forum.com/t/bug-1-8-nil-in-at-exit/152897)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 6:48am UTC](https://www.ruby-forum.com/t/bug-1-8-nil-in-at-exit/152897 "2008-11-09T06:48:49Z")

</div>

e$B1sF#$G$9!#e(B 1.8.5 e$B0JA0$G$O!"e(Bat\_exit e$B$NCf$Ge(B $! = nil e$B$r$9$k$3$H$G%9%?%C%/%H%l!\<%9$Ne(B e$B=PNO$r;\_$a$k$3$H$,$G$-$^$7$?!#e(B $ ruby -ve ‘at\_exit { $! = nil }; raise’ ruby 1.8.5 (2006-08-25) \[i486-l…

---

## [Can't install libxml-ruby](https://www.ruby-forum.com/t/cant-install-libxml-ruby/152893)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 5:48am UTC](https://www.ruby-forum.com/t/cant-install-libxml-ruby/152893 "2008-11-09T05:48:48Z")

</div>

I was getting errors thrown for the libxml-ruby lib when updating my gems, so I decided to install the gem causing the issue, hoping that a fresh install would solve the problems. I am now unable to install it. It se…

---

## [Re: Re: a problem with warbler or maybe it's my problem or is it something in the jruby distn?](https://www.ruby-forum.com/t/re-re-a-problem-with-warbler-or-maybe-its-my-problem-or-is-it-something-in-the-jruby-distn/152867)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 3:44am UTC](https://www.ruby-forum.com/t/re-re-a-problem-with-warbler-or-maybe-its-my-problem-or-is-it-something-in-the-jruby-distn/152867 "2008-11-09T03:44:44Z")

</div>

hey, I've just upgraded to jruby 1.1.5 and am using warbler 0.9.11 (and upgraded to rails 2.2) I am trying to war up my application and am getting the following error: Cannot load gem at \[/Users/home/Projects/bla…

---

## [CGIAlt 1.0.0 released - re-implementation of cgi.rb](https://www.ruby-forum.com/t/cgialt-1-0-0-released-re-implementation-of-cgi-rb/152890)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 2:50am UTC](https://www.ruby-forum.com/t/cgialt-1-0-0-released-re-implementation-of-cgi-rb/152890 "2008-11-09T02:50:40Z")

</div>

I have released CGIAlt 1.0.0. http://cgialt.rubyforge.org/ http://rubyforge.org/projects/cgialt/ CGIAlt is a re-implementation of ‘cgi.rb’. Features Compatible with ‘cgi.rb’ and CGI class Faster than ‘cgi.rb’ Avail…

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

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