# Ruby

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

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

---

## [Best Practice Advise for a Total Ruby Beginner](https://www.ruby-forum.com/t/best-practice-advise-for-a-total-ruby-beginner/49765)

<div class="topic-metadata">

**Author:** [@crosone](https://www.ruby-forum.com/u/crosone)\
**Replies:** 2\
**Last updated:** [December 8, 2005, 4:36pm UTC](https://www.ruby-forum.com/t/best-practice-advise-for-a-total-ruby-beginner/49765 "2005-12-08T16:36:10Z")

</div>

Hey, I’ve just started running through the first edition of “Programming Ruby” and I’m already enjoying this language. I’m not the best programmer in the world (self-taught) so I’m coming here to ask for advise. Her…

---

## [A small query](https://www.ruby-forum.com/t/a-small-query/95964)

<div class="topic-metadata">

**Author:** [@srinivas.j](https://www.ruby-forum.com/u/srinivas.j)\
**Replies:** 9\
**Last updated:** [December 8, 2005, 4:34pm UTC](https://www.ruby-forum.com/t/a-small-query/95964 "2005-12-08T16:34:03Z")

</div>

Dear all, Object Pascal (at least as provided by Delphi) has a facility to send a sequence of messages to the same receiver, using a construct called ‘with’. If ‘obj’ is an object with callable methods ‘meth1’, ‘meth2…

---

## [Re: increasing counter whithin loop?](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/96021)

<div class="topic-metadata">

**Author:** [@simon.kroeger.ext](https://www.ruby-forum.com/u/simon.kroeger.ext)\
**Replies:** 3\
**Last updated:** [December 8, 2005, 4:17pm UTC](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/96021 "2005-12-08T16:17:44Z")

</div>

able to use it. I’d probably have to create each\_with\_prev\_and\_next. It’s allready there: require ‘enumerator’ a=\[:a, :b, :b, :c, :b, :d, :e, :e\] (\[nil\] + a + \[nil\]).each\_cons(3) do |prv, this, nxt| next if prv…

---

## [Re: ArachnoRuby -- a professional Ruby IDE](https://www.ruby-forum.com/t/re-arachnoruby-a-professional-ruby-ide/96071)

<div class="topic-metadata">

**Author:** [@Patrick.Bennett](https://www.ruby-forum.com/u/Patrick.Bennett)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 4:13pm UTC](https://www.ruby-forum.com/t/re-arachnoruby-a-professional-ruby-ide/96071 "2005-12-08T16:13:35Z")

</div>

\-----Original Message----- From: zdennis \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, December 07, 2005 7:12 PM To: ruby-talk ML Subject: Re: ArachnoRuby – a professional Ruby IDE This isn’t a Ara…

---

## [Rails and PostgreSQL](https://www.ruby-forum.com/t/rails-and-postgresql/49718)

<div class="topic-metadata">

**Author:** [@colinfreas](https://www.ruby-forum.com/u/colinfreas)\
**Replies:** 5\
**Last updated:** [December 8, 2005, 4:00pm UTC](https://www.ruby-forum.com/t/rails-and-postgresql/49718 "2005-12-08T16:00:37Z")

</div>

I’m trying to get Rails up and running using a PostgreSQL database, and unfortunately I’m doing this on a machine I don’t administer directly. I can get Rails responding using the WEBrick server, and ‘hello, world’ pa…

---

## [Weird Numbers (#57)](https://www.ruby-forum.com/t/weird-numbers-57/96054)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 3:40pm UTC](https://www.ruby-forum.com/t/weird-numbers-57/96054 "2005-12-08T15:40:01Z")

</div>

In reading through all the interesting solutions to this quiz, I noticed two things. Some solutions were easy to follow and have clever ways to do the work. Others were very fast, thanks to good optimizations. Let’…

---

## [Weird Numbers (#57)](https://www.ruby-forum.com/t/weird-numbers-57/49311)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 24\
**Last updated:** [December 8, 2005, 3:40pm UTC](https://www.ruby-forum.com/t/weird-numbers-57/49311 "2005-12-08T15:40:00Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Gem errors](https://www.ruby-forum.com/t/gem-errors/96050)

<div class="topic-metadata">

**Author:** [@Gem\_errors](https://www.ruby-forum.com/u/Gem_errors)\
**Replies:** 1\
**Last updated:** [December 8, 2005, 3:35pm UTC](https://www.ruby-forum.com/t/gem-errors/96050 "2005-12-08T15:35:22Z")

</div>

I’m trying to get going with Rails, but gem is giving me errors with incredible frequency. I’ve tried this on WinXP and on RHEL. On both, I frequently get: ERROR: While executing gem … (SocketError) getaddrinfo: n…

---

## [Amrita2 1.9.6](https://www.ruby-forum.com/t/amrita2-1-9-6/95718)

<div class="topic-metadata">

**Author:** [@takunakajima](https://www.ruby-forum.com/u/takunakajima)\
**Replies:** 2\
**Last updated:** [December 8, 2005, 3:27pm UTC](https://www.ruby-forum.com/t/amrita2-1-9-6/95718 "2005-12-08T15:27:10Z")

</div>

Amrita2 is a XML/HTML template library for Ruby. I released a new version 1.9.6 as BETA1 for 2.0. Get it from http://amrita2.rubyforge.org/ I reduced undocumented features and refactored much to prepare the comming …

---

## [Running ruby within jEdit](https://www.ruby-forum.com/t/running-ruby-within-jedit/49702)

<div class="topic-metadata">

**Author:** [@davemontalvo](https://www.ruby-forum.com/u/davemontalvo)\
**Replies:** 2\
**Last updated:** [December 8, 2005, 2:30pm UTC](https://www.ruby-forum.com/t/running-ruby-within-jedit/49702 "2005-12-08T14:30:27Z")

</div>

is this possible? i’ve got the ruby plugin installed and I want to be able to run a script within jedit and capture the output similar to how it’s done with scite. any suggestions? dave

---

## [Require "../foo"](https://www.ruby-forum.com/t/require-foo/49689)

<div class="topic-metadata">

**Author:** [@boris](https://www.ruby-forum.com/u/boris)\
**Replies:** 3\
**Last updated:** [December 8, 2005, 1:33pm UTC](https://www.ruby-forum.com/t/require-foo/49689 "2005-12-08T13:33:00Z")

</div>

Hi, I have my code splitted up in several directories: … lib/foo.rb lib/bar.rb setttings/globalsettngs.rb setttings/othersettings.rb … If for example foo.rb want to use classes, modules or methods from “settings…

---

## [YAML hash of array (ruby \<-\> perl)](https://www.ruby-forum.com/t/yaml-hash-of-array-ruby-perl/49751)

<div class="topic-metadata">

**Author:** [@zhimin.wen](https://www.ruby-forum.com/u/zhimin.wen)\
**Replies:** 2\
**Last updated:** [December 8, 2005, 12:44pm UTC](https://www.ruby-forum.com/t/yaml-hash-of-array-ruby-perl/49751 "2005-12-08T12:44:05Z")

</div>

Hi, I am using yaml to pass data between ruby and perl. Given the data of h={“a”=\>\[1,2\]}, perl’s YAML gives the result of a: 1 2 while ruby gives the result of, by YAML.dump(h) a: 1 2 Note there is no space afte…

---

## [Re: increasing counter whithin loop?](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/49746)

<div class="topic-metadata">

**Author:** [@simon.kroeger.ext](https://www.ruby-forum.com/u/simon.kroeger.ext)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 10:48am UTC](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/49746 "2005-12-08T10:48:17Z")

</div>

The each\_with\_previous was a very nice hint, thanks, even if I wasn’t able to use it. I’d probably have to create each\_with\_prev\_and\_next. Hmm, I still don’t know exactly what you realy want/need. If you just want t…

---

## [Ruby pipe with arguments error](https://www.ruby-forum.com/t/ruby-pipe-with-arguments-error/49737)

<div class="topic-metadata">

**Author:** [@capitain](https://www.ruby-forum.com/u/capitain)\
**Replies:** 1\
**Last updated:** [December 8, 2005, 8:37am UTC](https://www.ruby-forum.com/t/ruby-pipe-with-arguments-error/49737 "2005-12-08T08:37:36Z")

</div>

i am newbie of ruby , but i met a strange problem when use #echo hello |ruby -ve ‘puts ARGF.readlines’ ruby 1.8.3 (2005-09-21) \[i686-linux\] hello it’s ok but when i append a argument with pipe echo hello |ruby -ve …

---

## [Wxruby and threads](https://www.ruby-forum.com/t/wxruby-and-threads/49664)

<div class="topic-metadata">

**Author:** [@kozlov.y](https://www.ruby-forum.com/u/kozlov.y)\
**Replies:** 9\
**Last updated:** [December 8, 2005, 7:28am UTC](https://www.ruby-forum.com/t/wxruby-and-threads/49664 "2005-12-08T07:28:18Z")

</div>

Hello. I trying to write a small GUI application. I choose wxruby library.(any gui library with unicode is good for me) My application use threads. Next example is not work as expecting. require ‘thread’ require ‘w…

---

## [SF Beer & Dim Sum SIG (12/28) - !change of venue!](https://www.ruby-forum.com/t/sf-beer-dim-sum-sig-12-28-change-of-venue/52909)

<div class="topic-metadata">

**Author:** [@rdm](https://www.ruby-forum.com/u/rdm)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 7:16am UTC](https://www.ruby-forum.com/t/sf-beer-dim-sum-sig-12-28-change-of-venue/52909 "2005-12-08T07:16:02Z")

</div>

It turns out that the Long Island Chinese Restaurant has (a) moved and (b) changed its name (to “Wild Pepper”). So, please visit the SIG’s page (http://cfcl/rdm/beer\_and\_pizza) for new directions! -r email: removed\_…

---

## [Interesting book sales news](https://www.ruby-forum.com/t/interesting-book-sales-news/52877)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 5:18am UTC](https://www.ruby-forum.com/t/interesting-book-sales-news/52877 "2005-12-08T05:18:19Z")

</div>

Ruby books are up over 1500% over last year, while Python books are up 20% (and Perl is down 3%). Several interesting comments as well.

---

## [Gems Install All Dependencies Option](https://www.ruby-forum.com/t/gems-install-all-dependencies-option/61899)

<div class="topic-metadata">

**Author:** [@transfire](https://www.ruby-forum.com/u/transfire)\
**Replies:** 9\
**Last updated:** [December 8, 2005, 4:54am UTC](https://www.ruby-forum.com/t/gems-install-all-dependencies-option/61899 "2005-12-08T04:54:01Z")

</div>

Is there a way, or can a way be made to install all dependencies without it asking for each an everyone? Thanks, T.

---

## [How to capture PrettyPrint output to string?](https://www.ruby-forum.com/t/how-to-capture-prettyprint-output-to-string/52849)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 4\
**Last updated:** [December 8, 2005, 4:45am UTC](https://www.ruby-forum.com/t/how-to-capture-prettyprint-output-to-string/52849 "2005-12-08T04:45:53Z")

</div>

I’d like to capture the output of pp (PrettyPrint) as a string, as opposed to putting it on stdout. Something like: dump = myvar.pp dump.class # =\> String (Using .pretty\_print\_inspect is not adequate, as it’s not th…

---

## [Where is the Content Assist of RDT?](https://www.ruby-forum.com/t/where-is-the-content-assist-of-rdt/49667)

<div class="topic-metadata">

**Author:** [@could.net](https://www.ruby-forum.com/u/could.net)\
**Replies:** 7\
**Last updated:** [December 8, 2005, 4:25am UTC](https://www.ruby-forum.com/t/where-is-the-content-assist-of-rdt/49667 "2005-12-08T04:25:36Z")

</div>

this url() said RDT HAS Content Assist. I use RDT 0.6.0, but I never found the code completion thing in it. please tell me, how to find out the Content Assist stuff in RDT? thanks.

---

## [Are my metaprogramming underpants showing?](https://www.ruby-forum.com/t/are-my-metaprogramming-underpants-showing/49549)

<div class="topic-metadata">

**Author:** [@M.B.Smillie](https://www.ruby-forum.com/u/M.B.Smillie)\
**Replies:** 8\
**Last updated:** [December 8, 2005, 4:09am UTC](https://www.ruby-forum.com/t/are-my-metaprogramming-underpants-showing/49549 "2005-12-08T04:09:20Z")

</div>

Hello all, I’ve done a quick little project to see if I can wrap my head around Ruby metaprogramming, and I’d like to run it by some more-experienced minds. I picked the quick little task of coding up the web API for…

---

## [Standard Library questions](https://www.ruby-forum.com/t/standard-library-questions/49719)

<div class="topic-metadata">

**Author:** [@joevandyk](https://www.ruby-forum.com/u/joevandyk)\
**Replies:** 12\
**Last updated:** [December 8, 2005, 3:00am UTC](https://www.ruby-forum.com/t/standard-library-questions/49719 "2005-12-08T03:00:27Z")

</div>

I’m spending an hour or two today going through Ruby’s standard library, seeing what’s in there. What the hell is WeakRef used for? How is that useful? Joe

---

## [Oniguruma -- when?](https://www.ruby-forum.com/t/oniguruma-when/49692)

<div class="topic-metadata">

**Author:** [@rubyhacker](https://www.ruby-forum.com/u/rubyhacker)\
**Replies:** 6\
**Last updated:** [December 8, 2005, 12:50am UTC](https://www.ruby-forum.com/t/oniguruma-when/49692 "2005-12-08T00:50:27Z")

</div>

When does Oniguruma go into Ruby? I thought it was “very soon” – perhaps “already” – but someone said something to make me think it was “later.” Thanks, Hal

---

## [Ruby newcomer](https://www.ruby-forum.com/t/ruby-newcomer/95758)

<div class="topic-metadata">

**Author:** [@b.trapp](https://www.ruby-forum.com/u/b.trapp)\
**Replies:** 8\
**Last updated:** [December 8, 2005, 12:30am UTC](https://www.ruby-forum.com/t/ruby-newcomer/95758 "2005-12-08T00:30:09Z")

</div>

Hi all! I’m totally new to ruby (and don’t have much experience with programming at all) and need to implement a program (for school) which shows a solution for the nQueensProblem. It should be able to show the solut…

---

## [Bluecloth 1.0.0 - Test contain trojan?](https://www.ruby-forum.com/t/bluecloth-1-0-0-test-contain-trojan/49330)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 11:24pm UTC](https://www.ruby-forum.com/t/bluecloth-1-0-0-test-contain-trojan/49330 "2005-12-07T23:24:55Z")

</div>

I just got a very peculiar warning from running McAfee virus scan (XP): BlueCloth-1.0.0\\tests\\15\_Contrib.tests.rb is infected by the JS\\Exploit-CrossSite trojan. Anything to be concerned about here? Or a total red-her…

---

## [Re: What's your opinion? ArachnoRuby, Komodo, Eclipse/RDT, R](https://www.ruby-forum.com/t/re-whats-your-opinion-arachnoruby-komodo-eclipse-rdt-r/49710)

<div class="topic-metadata">

**Author:** [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Replies:** 4\
**Last updated:** [December 7, 2005, 10:52pm UTC](https://www.ruby-forum.com/t/re-whats-your-opinion-arachnoruby-komodo-eclipse-rdt-r/49710 "2005-12-07T22:52:13Z")

</div>

\-----Original Message----- From: Curt H. \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, December 07, 2005 2:13 PM To: ruby-talk ML Subject: What’s your opinion? ArachnoRuby, Komodo, Eclipse/RDT, Rad…

---

## [Problem (probably newbie) with install (openssl)](https://www.ruby-forum.com/t/problem-probably-newbie-with-install-openssl/49705)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 10:26pm UTC](https://www.ruby-forum.com/t/problem-probably-newbie-with-install-openssl/49705 "2005-12-07T22:26:49Z")

</div>

Hi, Please can someone help. I’m trying to install Ruby (1.8.3, just downloaded), and it appears to compile and install just fine. But if I do: find /usr/local/lib/ruby -name “ssl” /usr/local/lib/ruby/1.8/drb/ssl.r…

---

## [Tutorials on accessing Java from Ruby?](https://www.ruby-forum.com/t/tutorials-on-accessing-java-from-ruby/49700)

<div class="topic-metadata">

**Author:** [@rdm](https://www.ruby-forum.com/u/rdm)\
**Replies:** 1\
**Last updated:** [December 7, 2005, 10:09pm UTC](https://www.ruby-forum.com/t/tutorials-on-accessing-java-from-ruby/49700 "2005-12-07T22:09:51Z")

</div>

There are several substantial Java packages that I’d like to use and/or extend by means of Ruby. Having no experience with Java, let alone RJNI, I find this to be a bit intimidating. Are there any tutorials on how to…

---

## [Where is RUBYOPT set?](https://www.ruby-forum.com/t/where-is-rubyopt-set/49680)

<div class="topic-metadata">

**Author:** [@williamerubin](https://www.ruby-forum.com/u/williamerubin)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 9:32pm UTC](https://www.ruby-forum.com/t/where-is-rubyopt-set/49680 "2005-12-07T21:32:55Z")

</div>

This is on Windows XP: Checking the RUBYOPT environment variable at a command prompt reveals that it is set to “rubygems”. However, looking at the list of environment variables in “My Computer/Properties/Advanced/Env…

---

## [Difference between rb\_define\_module\_function and rb\_define\_s](https://www.ruby-forum.com/t/difference-between-rb-define-module-function-and-rb-define-s/52760)

<div class="topic-metadata">

**Author:** [@drjflam](https://www.ruby-forum.com/u/drjflam)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 7:21pm UTC](https://www.ruby-forum.com/t/difference-between-rb-define-module-function-and-rb-define-s/52760 "2005-12-07T19:21:56Z")

</div>

Is there a difference between calling rb\_define\_module\_function and rb\_define\_singleton\_method on a module? Thanks -John

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

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