# Ruby

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

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

---

## [Ruby-talk mail server blacklisted in spamcop](https://www.ruby-forum.com/t/ruby-talk-mail-server-blacklisted-in-spamcop/76575)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 6:31am UTC](https://www.ruby-forum.com/t/ruby-talk-mail-server-blacklisted-in-spamcop/76575 "2006-03-04T06:31:19Z")

</div>

Has anyone else noticed this? Anyone looking into it? Mar 3 21:19:53 gateway postfix/smtpd\[78501\]: NOQUEUE: reject: RCPT from beryllium.ruby-lang.org\[210.163.138.100\]: 554 Service unavailable; Client host \[210.163.1…

---

## [Advice for general-purpose programming with Ruby](https://www.ruby-forum.com/t/advice-for-general-purpose-programming-with-ruby/76380)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 5\
**Last updated:** [March 4, 2006, 5:52am UTC](https://www.ruby-forum.com/t/advice-for-general-purpose-programming-with-ruby/76380 "2006-03-04T05:52:01Z")

</div>

Hey guys, I’m going to buy a Ruby book this evening. I’m not a Web developer. I’m a general-purpose programmer well-versed in Python and C. I want to learn Ruby better. I have no interest in Rails. What book should I …

---

## [Thinking out of the box](https://www.ruby-forum.com/t/thinking-out-of-the-box/73904)

<div class="topic-metadata">

**Author:** [@Tsume](https://www.ruby-forum.com/u/Tsume)\
**Replies:** 7\
**Last updated:** [March 4, 2006, 5:15am UTC](https://www.ruby-forum.com/t/thinking-out-of-the-box/73904 "2006-03-04T05:15:21Z")

</div>

Time to get out of my little Linux/BSD/win2k3 comfort zone and make programs for end users. I’m now confronted with an interesting project. I never thought I’d have to write software which needs to work well on Window…

---

## [Write up on hazards of instance\_eval?](https://www.ruby-forum.com/t/write-up-on-hazards-of-instance-eval/54414)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 2\
**Last updated:** [March 4, 2006, 5:00am UTC](https://www.ruby-forum.com/t/write-up-on-hazards-of-instance-eval/54414 "2006-03-04T05:00:19Z")

</div>

Is there any good write up on the hazards of instance\_eval? Or do you happen to have your top-10 on the tip of your fingers? Thanks.

---

## [Mr. Guid 0.2.5](https://www.ruby-forum.com/t/mr-guid-0-2-5/76525)

<div class="topic-metadata">

**Author:** [@mitchell](https://www.ruby-forum.com/u/mitchell)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 4:51am UTC](https://www.ruby-forum.com/t/mr-guid-0-2-5/76525 "2006-03-04T04:51:16Z")

</div>

Mr. Guid 0.2.5 includes an all new object view which lists instance variables and methods an object posesses. Also, this release offers the ability for the user to manually load files into the debugger instead of wait…

---

## [Pandora 0.4.0 Public Release](https://www.ruby-forum.com/t/pandora-0-4-0-public-release/76493)

<div class="topic-metadata">

**Author:** [@Julian\_ISKamil](https://www.ruby-forum.com/u/Julian_ISKamil)\
**Replies:** 0\
**Last updated:** [March 4, 2006, 1:41am UTC](https://www.ruby-forum.com/t/pandora-0-4-0-public-release/76493 "2006-03-04T01:41:37Z")

</div>

I am happy to announce that Pandora 0.4.0 has been made available to the general public. Since the last limited beta release, the code has been updated to include administrative pages for managing library contents, us…

---

## [Ugly bug with one-click installer and postgres-pr](https://www.ruby-forum.com/t/ugly-bug-with-one-click-installer-and-postgres-pr/70033)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [March 4, 2006, 12:55am UTC](https://www.ruby-forum.com/t/ugly-bug-with-one-click-installer-and-postgres-pr/70033 "2006-03-04T00:55:37Z")

</div>

Windows XP Pro dbi 0.0.23 postgres-pr 0.4.0 Ruby one-click installer, p3 I’m getting a rather ugly bug when I try to connect to a PostgreSQL database using the one click installer. Any ideas? If I don’t include th…

---

## [ASP.NET 2.0 vs Ruby On Rails](https://www.ruby-forum.com/t/asp-net-2-0-vs-ruby-on-rails/54309)

<div class="topic-metadata">

**Author:** [@moni](https://www.ruby-forum.com/u/moni)\
**Replies:** 10\
**Last updated:** [March 4, 2006, 12:44am UTC](https://www.ruby-forum.com/t/asp-net-2-0-vs-ruby-on-rails/54309 "2006-03-04T00:44:20Z")

</div>

Hi, I’ve spent the past few weeks desperately looking for good comparisons on ASP.NET 2.0 vs Ruby on Rails. At the moment I’m considering migrating from ASP.NET 1.1 to ASP.NET 2.0. I’m excited about ASP.NET 2.0 and i…

---

## [Python for Ruby programmers](https://www.ruby-forum.com/t/python-for-ruby-programmers/76330)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 3\
**Last updated:** [March 4, 2006, 12:20am UTC](https://www.ruby-forum.com/t/python-for-ruby-programmers/76330 "2006-03-04T00:20:14Z")

</div>

Hi, I need to write a GUI for a vanilla RHEL3 box (with no extra software installed on it). I figure Python / pygtk2 is a good choice for this, as it’s installed by default. (Ruby is 1.6.8 on that box, and ruby-gno…

---

## [Taking screen shots](https://www.ruby-forum.com/t/taking-screen-shots/76335)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 11:16pm UTC](https://www.ruby-forum.com/t/taking-screen-shots/76335 "2006-03-03T23:16:31Z")

</div>

Hello, I am using ruby for a month now and loving it. Is it possible to take screen shots from a windows screen? If so could somebody point me to a tutorial or code on how to do that? Thanks, Bernd

---

## [Windows and http servers on ruby](https://www.ruby-forum.com/t/windows-and-http-servers-on-ruby/76424)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 11:13pm UTC](https://www.ruby-forum.com/t/windows-and-http-servers-on-ruby/76424 "2006-03-03T23:13:28Z")

</div>

Hi, I wrote custom webrick servlet which parses \*.html files with embedded ruby code. It works fine on Linux, but on Windows it doesn’t work properly because pictures that are supposed to be on a web page do not show…

---

## [Closure & local\_variables](https://www.ruby-forum.com/t/closure-local-variables/54409)

<div class="topic-metadata">

**Author:** [@Marcin\_MielSSS\_ySSS](https://www.ruby-forum.com/u/Marcin_MielSSS_ySSS)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/closure-local-variables/54409 "2006-03-03T23:10:13Z")

</div>

Hello, given: l=lambda{p local\_variables;p a} a=:whatever l\[\] I know that ‘a’ variable shoud not be visible for closure, but why local\_variables reports that it exists ? Is this behaviour intended ? lopex

---

## [Fwd: Launching Ruby scripts and the future of MVM](https://www.ruby-forum.com/t/fwd-launching-ruby-scripts-and-the-future-of-mvm/72566)

<div class="topic-metadata">

**Author:** [@Charles\_O\_Nutter](https://www.ruby-forum.com/u/Charles_O_Nutter)\
**Replies:** 9\
**Last updated:** [March 3, 2006, 11:07pm UTC](https://www.ruby-forum.com/t/fwd-launching-ruby-scripts-and-the-future-of-mvm/72566 "2006-03-03T23:07:24Z")

</div>

I tossed this message off to the Ruby-core list about a month ago, and sent a follow-up email today. The basic idea is that if there were a Kernel#run\_script method or similar, all Ruby apps that want to launch extern…

---

## [Lib for loading jpeg images](https://www.ruby-forum.com/t/lib-for-loading-jpeg-images/54408)

<div class="topic-metadata">

**Author:** [@RaphAstronome](https://www.ruby-forum.com/u/RaphAstronome)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/lib-for-loading-jpeg-images/54408 "2006-03-03T22:34:00Z")

</div>

Hello ! I am searching a lib for loading images (jpeg and if possible png and gif). In C++ I use SDL\_Image but I don’t found any port on ruby. Where I can found a lib (windows and linux) ? RaphAstronome

---

## [Cleaner Ruby in a rails view](https://www.ruby-forum.com/t/cleaner-ruby-in-a-rails-view/75614)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 32\
**Last updated:** [March 3, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/cleaner-ruby-in-a-rails-view/75614 "2006-03-03T22:00:42Z")

</div>

Hi, I think this is a pure Ruby question. I seem to be writing this nested structure constantly \<% unless item.cart\_item\_optional\_variations.empty? %\> \<% item.cart\_item\_option\_values.each do |ov| %\> \<% end %\> \<% en…

---

## [Refactor sentencelength solution](https://www.ruby-forum.com/t/refactor-sentencelength-solution/76036)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/refactor-sentencelength-solution/76036 "2006-03-03T21:28:23Z")

</div>

Hello, This is my solution to the Sentence length solution on the StartProblems page of the RubyGarden wiki. I learned a few things from doing this simple exercise and I was just wondering if anyone would be willing …

---

## [Seeking tech reviewers for the O'Reilly Ruby Cookbook](https://www.ruby-forum.com/t/seeking-tech-reviewers-for-the-oreilly-ruby-cookbook/76241)

<div class="topic-metadata">

**Author:** [@Leonard\_Richardson](https://www.ruby-forum.com/u/Leonard_Richardson)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/seeking-tech-reviewers-for-the-oreilly-ruby-cookbook/76241 "2006-03-03T21:09:08Z")

</div>

With a huge amount of help from the Ruby community at large, Lucas Carlson and I have nearly completed the first draft of the Ruby Cookbook. To revise the draft, we need even more help, in the form of feedback: people…

---

## [String slice elegant way](https://www.ruby-forum.com/t/string-slice-elegant-way/76237)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 9\
**Last updated:** [March 3, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/string-slice-elegant-way/76237 "2006-03-03T21:09:08Z")

</div>

Hello, suppose that: a = ‘hello there’ and I need ‘llo there’ a\[2,a.size\] works, but I find it ugly because the given length is larger than the real length of the result. a\[2,a.size - 2\] is okay, but it is not DRY. …

---

## [Strange problem with rb-postgres](https://www.ruby-forum.com/t/strange-problem-with-rb-postgres/75809)

<div class="topic-metadata">

**Author:** [@ngw](https://www.ruby-forum.com/u/ngw)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/strange-problem-with-rb-postgres/75809 "2006-03-03T20:41:57Z")

</div>

Hi \*, I’m using rb-postgres: require ‘postgres’ begin dbh = PGconn.new(“127.0.0.1”, 5432, “”, “”, “test”, “usertest”, “passwdtest”) puts dbh.server\_version dbh.close rescue PGError =\> e puts e.message end This…

---

## [Re: Taking screen shots](https://www.ruby-forum.com/t/re-taking-screen-shots/54405)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-taking-screen-shots/54405 "2006-03-03T20:41:57Z")

</div>

If so could somebody point me to a tutorial or code on how to do that? Thanks, Bernd I don’t think anyone has ported this yet: It would be trivial to port. Hey, Shanko, are you listening? :wink: Regards, Dan

---

## [Require just in a context?](https://www.ruby-forum.com/t/require-just-in-a-context/54389)

<div class="topic-metadata">

**Author:** [@cap](https://www.ruby-forum.com/u/cap)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/require-just-in-a-context/54389 "2006-03-03T20:02:14Z")

</div>

Can I make some libraray just work in a context ? I add a new ruby file into my app using “require ‘mathn’” but i don’t want every ruby file to use the ‘mathn’, how can I do it?

---

## [Ruby: no such file to load -- ubygems (LoadError)](https://www.ruby-forum.com/t/ruby-no-such-file-to-load-ubygems-loaderror/76327)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 7:44pm UTC](https://www.ruby-forum.com/t/ruby-no-such-file-to-load-ubygems-loaderror/76327 "2006-03-03T19:44:29Z")

</div>

Greetings, After having used Ruby for some time, first on Windows and Linux, my colleague and I together decided to upgrade our WinXP systems to Ruby 1.8.4. He used the Window’s installer version while I decided to b…

---

## [Dynamic Object Instantiation](https://www.ruby-forum.com/t/dynamic-object-instantiation/75530)

<div class="topic-metadata">

**Author:** [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/dynamic-object-instantiation/75530 "2006-03-03T19:17:18Z")

</div>

I’m sure this question has been asked and answered in the past, but googling and searching the list archives isn’t getting me much. It’s probably a case of me not searching correctly. So, if someone has a pointer o…

---

## [Confused about != operator overloading](https://www.ruby-forum.com/t/confused-about-operator-overloading/54371)

<div class="topic-metadata">

**Author:** [@Chris\_Parker](https://www.ruby-forum.com/u/Chris_Parker)\
**Replies:** 4\
**Last updated:** [March 3, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/confused-about-operator-overloading/54371 "2006-03-03T18:31:51Z")

</div>

Hi, I want to overload the != operator. I can overload the == operator. I get this error when I try to run the code without commenting out the != operator overloading function: CSP.rb:72: syntax error def !=(other…

---

## [Running JRuby](https://www.ruby-forum.com/t/running-jruby/76195)

<div class="topic-metadata">

**Author:** [@peterk](https://www.ruby-forum.com/u/peterk)\
**Replies:** 2\
**Last updated:** [March 3, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/running-jruby/76195 "2006-03-03T16:42:46Z")

</div>

Im trying to set up java and jruby on Windows, great work with the recent developments. In some of the recent examples of irb running on jruby it is ran like: C:\\rails\>jruby C:\\ruby\\bin\\irb If I run this I get: c:\\r…

---

## [Re: Array comparison returning nil](https://www.ruby-forum.com/t/re-array-comparison-returning-nil/76283)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/re-array-comparison-returning-nil/76283 "2006-03-03T16:24:32Z")

</div>

Could it be that some of the elements in your arrays cannot be compared, like “a” and 1 ? You can help this by mapping all these elements to numbers or strings, which can be sorted, as in this example a = \[“three”…

---

## [Re: string slice elegant way](https://www.ruby-forum.com/t/re-string-slice-elegant-way/76236)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 2:38pm UTC](https://www.ruby-forum.com/t/re-string-slice-elegant-way/76236 "2006-03-03T14:38:12Z")

</div>

You can use a=“hello there” b=a\[2…-1\] p b =\> “llo there” a\[2…-2\] chops off from the end. Best regards, Axel

---

## [Mutual require problem](https://www.ruby-forum.com/t/mutual-require-problem/54367)

<div class="topic-metadata">

**Author:** [@rdelbru](https://www.ruby-forum.com/u/rdelbru)\
**Replies:** 4\
**Last updated:** [March 3, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/mutual-require-problem/54367 "2006-03-03T13:28:46Z")

</div>

Hi, I have a problem with the require method. First file ‘main.rb’: require ‘test’ class A def self.print p “test” end end Test.print Second file ‘test.rb’: require ‘main’ class Test \< A end And the res…

---

## [Static v. dynamic typing](https://www.ruby-forum.com/t/static-v-dynamic-typing/76037)

<div class="topic-metadata">

**Author:** [@Christopher\_Dunn](https://www.ruby-forum.com/u/Christopher_Dunn)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 1:01pm UTC](https://www.ruby-forum.com/t/static-v-dynamic-typing/76037 "2006-03-03T13:01:30Z")

</div>

Ruby is SLOW! Even compared to Python. i’ve never had a problem with this and am routinely process files ranging from 40mb to 3gb - one only has to use c extensions. That’s true. You can always fall back on an ext…

---

## [Tryruby](https://www.ruby-forum.com/t/tryruby/76193)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 11:09am UTC](https://www.ruby-forum.com/t/tryruby/76193 "2006-03-03T11:09:49Z")

</div>

Hi, i tried http://tryruby.hobix.com and it is really beautifully done tutorial. i would just like to ask if the source is free for download. thank you and kind regards -botp Remember.understand.believe.yield

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

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