# Ruby

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

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

---

## [Net::SFTP 1.0.1](https://www.ruby-forum.com/t/net-sftp-1-0-1/49602)

<div class="topic-metadata">

**Author:** [@jamis](https://www.ruby-forum.com/u/jamis)\
**Replies:** 0\
**Last updated:** [December 6, 2005, 7:52pm UTC](https://www.ruby-forum.com/t/net-sftp-1-0-1/49602 "2005-12-06T19:52:02Z")

</div>

Net::SFTP is an implementation of SFTP (SSH File Transfer Protocol), versions 1-5. It is dependent upon the Net::SSH library. This release fixes problems with the implementation of version 4 of the SFTP protocol. Spec…

---

## [Good Ruby Examples?](https://www.ruby-forum.com/t/good-ruby-examples/49217)

<div class="topic-metadata">

**Author:** [@hcatlin](https://www.ruby-forum.com/u/hcatlin)\
**Replies:** 18\
**Last updated:** [December 6, 2005, 6:50pm UTC](https://www.ruby-forum.com/t/good-ruby-examples/49217 "2005-12-06T18:50:39Z")

</div>

I’m planning on doing a tutorial about Ruby for Ryerson University’s CS Majors group. No one here knows anything about Ruby, so I thought it’d be a great way to evangelize a bit. I’m always surprised how few students …

---

## [CLOSING SHOP! XML:Tools, bindings for libxml and libxslt](https://www.ruby-forum.com/t/closing-shop-xml-tools-bindings-for-libxml-and-libxslt/52467)

<div class="topic-metadata">

**Author:** [@transfire](https://www.ruby-forum.com/u/transfire)\
**Replies:** 8\
**Last updated:** [December 6, 2005, 6:46pm UTC](https://www.ruby-forum.com/t/closing-shop-xml-tools-bindings-for-libxml-and-libxslt/52467 "2005-12-06T18:46:34Z")

</div>

It my sad task to inform all those interested that I will no long be able to host libxml and libxslt bindings for Ruby. I feel these are very important bindings, but I am simply not the appropriate person for this tas…

---

## [Getting around access control](https://www.ruby-forum.com/t/getting-around-access-control/61838)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 16\
**Last updated:** [December 6, 2005, 6:14pm UTC](https://www.ruby-forum.com/t/getting-around-access-control/61838 "2005-12-06T18:14:02Z")

</div>

i know there is a way to do this - but how class C protected def meth 42 end end c = C::new c.instance\_eval{ p meth } this throws an error, of course, but i’m too tired to remember how to work around it. -a

---

## [How can I find \_\_LINE\_\_ on the execution stack?](https://www.ruby-forum.com/t/how-can-i-find-line-on-the-execution-stack/49583)

<div class="topic-metadata">

**Author:** [@christer](https://www.ruby-forum.com/u/christer)\
**Replies:** 4\
**Last updated:** [December 6, 2005, 6:06pm UTC](https://www.ruby-forum.com/t/how-can-i-find-line-on-the-execution-stack/49583 "2005-12-06T18:06:33Z")

</div>

I would like to be able to display the line number in my simple assert. 1 def assert(expect, actual, \*msg) 2 expect==actual ? print(".") : print("\\nAssert at line #{LINE} failed: #{expect.inspect} \<\> #{actual.inspect…

---

## [Overloaded constructors in Ruby](https://www.ruby-forum.com/t/overloaded-constructors-in-ruby/49558)

<div class="topic-metadata">

**Author:** [@kheon](https://www.ruby-forum.com/u/kheon)\
**Replies:** 6\
**Last updated:** [December 6, 2005, 6:05pm UTC](https://www.ruby-forum.com/t/overloaded-constructors-in-ruby/49558 "2005-12-06T18:05:42Z")

</div>

I have a class that I want to have a number of overloaded constructors for. I tried doing something like this: class GravPoint def initialize() this(0, 0, 0, 0, 0) end def initialize(x, y, strength) this(x, y,…

---

## [Ruby compiler question](https://www.ruby-forum.com/t/ruby-compiler-question/49585)

<div class="topic-metadata">

**Author:** [@mccarthyjames](https://www.ruby-forum.com/u/mccarthyjames)\
**Replies:** 3\
**Last updated:** [December 6, 2005, 4:52pm UTC](https://www.ruby-forum.com/t/ruby-compiler-question/49585 "2005-12-06T16:52:14Z")

</div>

Hey just wondering, is there a plan to add a compiler to the future versions of ruby, ala java compiling into bitecode for speed gains?

---

## [Re: Iterating over test data in unit tests](https://www.ruby-forum.com/t/re-iterating-over-test-data-in-unit-tests/49586)

<div class="topic-metadata">

**Author:** [@schmitt](https://www.ruby-forum.com/u/schmitt)\
**Replies:** 1\
**Last updated:** [December 6, 2005, 4:40pm UTC](https://www.ruby-forum.com/t/re-iterating-over-test-data-in-unit-tests/49586 "2005-12-06T16:40:00Z")

</div>

Hi, I’m looking for a module for accessing newsgroups via nntp. google told me http://www02.so-net.ne.jp/~greentea/ruby/nntp/. but this link is broken. Any hints ? Greetings, Uwe

---

## [Need some Ruby magic](https://www.ruby-forum.com/t/need-some-ruby-magic/49255)

<div class="topic-metadata">

**Author:** [@hammed](https://www.ruby-forum.com/u/hammed)\
**Replies:** 45\
**Last updated:** [December 6, 2005, 4:07pm UTC](https://www.ruby-forum.com/t/need-some-ruby-magic/49255 "2005-12-06T16:07:28Z")

</div>

I’d like to sort collections randomly. This is what I tried first: my\_array.sort { |a,b| rand(2) } but the results weren’t very random. I then tried the following: class Array def random\_copy b = Array.new while …

---

## [Looking for a PostScript or EPS module](https://www.ruby-forum.com/t/looking-for-a-postscript-or-eps-module/49584)

<div class="topic-metadata">

**Author:** [@kibleur.christophe](https://www.ruby-forum.com/u/kibleur.christophe)\
**Replies:** 0\
**Last updated:** [December 6, 2005, 3:47pm UTC](https://www.ruby-forum.com/t/looking-for-a-postscript-or-eps-module/49584 "2005-12-06T15:47:01Z")

</div>

Hi, I’m looking for a ps (or eps module) in Ruby, like EpsGraphics2D in java or PS::Simple in Perl …I’ve found nothing on RAA or RubyForge but a lot of graphics libraries like RMagick, but the resulting ps files are …

---

## [Re: Random gauss numbers? ( and other distributions of rando](https://www.ruby-forum.com/t/re-random-gauss-numbers-and-other-distributions-of-rando/49124)

<div class="topic-metadata">

**Author:** [@Nuralanur](https://www.ruby-forum.com/u/Nuralanur)\
**Replies:** 4\
**Last updated:** [December 6, 2005, 3:34pm UTC](https://www.ruby-forum.com/t/re-random-gauss-numbers-and-other-distributions-of-rando/49124 "2005-12-06T15:34:34Z")

</div>

Dear Daniel, the GNU Scientific Library (GSL) includes pseudo random number generation methods. There is a Ruby binding for this library (Ruby-GSL). Best regards, Axel

---

## [A todo list](https://www.ruby-forum.com/t/a-todo-list/95296)

<div class="topic-metadata">

**Author:** [@stevanicus](https://www.ruby-forum.com/u/stevanicus)\
**Replies:** 10\
**Last updated:** [December 6, 2005, 2:41pm UTC](https://www.ruby-forum.com/t/a-todo-list/95296 "2005-12-06T14:41:37Z")

</div>

did a tutorial on ruby on rails site, however the edit isnt working heres the template My Todo List My Todo List \<% @tasklists.each do |tasklist| %\> \<%= check\_box(“task”, “done”) %\> \<%= tasklist.task %\> \<%= …

---

## [Speed Golf - Remove Early Dups](https://www.ruby-forum.com/t/speed-golf-remove-early-dups/225893)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 11\
**Last updated:** [December 6, 2005, 2:37pm UTC](https://www.ruby-forum.com/t/speed-golf-remove-early-dups/225893 "2005-12-06T14:37:32Z")

</div>

SUMMARY What’s the fastest and/or shortest you can turn this: in = \[“i”, “v”, “w”, “e”, “l”, “d”, “u”, “f”, “e”, “v”, “f”, “e”, “d”, “e”, “w”, “d”\] into this: \[“i”, “l”, “u”, “v”, “f”, “e”, “w”, “d”\] ? DETAILS Th…

---

## [Colorized Ruby Source Listings/Printing](https://www.ruby-forum.com/t/colorized-ruby-source-listings-printing/49528)

<div class="topic-metadata">

**Author:** [@phurley](https://www.ruby-forum.com/u/phurley)\
**Replies:** 10\
**Last updated:** [December 6, 2005, 11:12am UTC](https://www.ruby-forum.com/t/colorized-ruby-source-listings-printing/49528 "2005-12-06T11:12:48Z")

</div>

I guess I am just old fashion, but sometimes when I am working on piece of code (or just examining a nice bit of code), I like to print it out so I can mark it up with fancy tools like my Pentel RSVP and take it to th…

---

## [Ruby-mp3info 0.5](https://www.ruby-forum.com/t/ruby-mp3info-0-5/49573)

<div class="topic-metadata">

**Author:** [@moumarSAT\_rubyfor](https://www.ruby-forum.com/u/moumarSAT_rubyfor)\
**Replies:** 0\
**Last updated:** [December 6, 2005, 11:04am UTC](https://www.ruby-forum.com/t/ruby-mp3info-0-5/49573 "2005-12-06T11:04:34Z")

</div>

ruby-mp3info gives you access to low level informations on mp3 files (bitrate, length, samplerate, etc…). It can read, write, remove id3v1 and id3v2 tags. It is written in pure ruby. This new version add the ability …

---

## [Rote 0.2.4 (Textual templating, Doco)](https://www.ruby-forum.com/t/rote-0-2-4-textual-templating-doco/49515)

<div class="topic-metadata">

**Author:** [@rosco](https://www.ruby-forum.com/u/rosco)\
**Replies:** 4\
**Last updated:** [December 6, 2005, 11:00am UTC](https://www.ruby-forum.com/t/rote-0-2-4-textual-templating-doco/49515 "2005-12-06T11:00:28Z")

</div>

Hi, Well, I’ve been learning a lot from this group, and of course I’ve kept working on my first real Ruby project to exercise my new skills, and now I’d like to just let you know that Rote is up to 0.2.4 as of today…

---

## [Ruby Weekly News 28th November - 4th December 2005](https://www.ruby-forum.com/t/ruby-weekly-news-28th-november-4th-december-2005/49575)

<div class="topic-metadata">

**Author:** [@timsuth](https://www.ruby-forum.com/u/timsuth)\
**Replies:** 1\
**Last updated:** [December 6, 2005, 10:44am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-28th-november-4th-december-2005/49575 "2005-12-06T10:44:09Z")

</div>

Ruby Weekly News 28th November - 4th December 2005 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup, brought to you by Tim S… \[Contribute to the next ne…

---

## [String split drops the delimiter](https://www.ruby-forum.com/t/string-split-drops-the-delimiter/49536)

<div class="topic-metadata">

**Author:** [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Replies:** 8\
**Last updated:** [December 6, 2005, 9:14am UTC](https://www.ruby-forum.com/t/string-split-drops-the-delimiter/49536 "2005-12-06T09:14:16Z")

</div>

Hello: string.split drops the delimiter. Thus: data = " This is a declarative sentence. And is this a question? Yes! " for sentence in data.split(/\[.!?\] /) puts sentence end gives This is a declarative sentence A…

---

## [Qt Ruby Bindings in Ubuntu?](https://www.ruby-forum.com/t/qt-ruby-bindings-in-ubuntu/52468)

<div class="topic-metadata">

**Author:** [@ghuntress](https://www.ruby-forum.com/u/ghuntress)\
**Replies:** 4\
**Last updated:** [December 6, 2005, 8:17am UTC](https://www.ruby-forum.com/t/qt-ruby-bindings-in-ubuntu/52468 "2005-12-06T08:17:23Z")

</div>

I know this is more of an ubuntu and apt-get problem but I thought maybe someone here has run across this already. I want to use Qt bindings in ruby and I’ve been told that I need to install the package libqt0-ruby1…

---

## [Getting Over Symbols](https://www.ruby-forum.com/t/getting-over-symbols/49449)

<div class="topic-metadata">

**Author:** [@gwtmp01](https://www.ruby-forum.com/u/gwtmp01)\
**Replies:** 13\
**Last updated:** [December 6, 2005, 5:03am UTC](https://www.ruby-forum.com/t/getting-over-symbols/49449 "2005-12-06T05:03:24Z")

</div>

When I was first learning Ruby, symbols were a bit of a mystery. I understand them now, and in hindsight, I don’t really understand why they were so confusing. In teaching other people about Ruby and in reading ruby-…

---

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

<div class="topic-metadata">

**Author:** [@simon.kroeger.ext](https://www.ruby-forum.com/u/simon.kroeger.ext)\
**Replies:** 1\
**Last updated:** [December 6, 2005, 4:25am UTC](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/95242 "2005-12-06T04:25:45Z")

</div>

perhaps: a.inject(false) do |skip, elt| puts elt if !skip elt==“b” end (no, I don’t think this is realy nice) cheers Simon

---

## [Xmlrpc: 500 internal server error](https://www.ruby-forum.com/t/xmlrpc-500-internal-server-error/49561)

<div class="topic-metadata">

**Author:** [@fugalh](https://www.ruby-forum.com/u/fugalh)\
**Replies:** 0\
**Last updated:** [December 6, 2005, 3:49am UTC](https://www.ruby-forum.com/t/xmlrpc-500-internal-server-error/49561 "2005-12-06T03:49:12Z")

</div>

I wrote this little server, and a simple client remote using Tk, using the fabulous XMLRPC: #!/usr/bin/ruby require “xmlrpc/server” require ‘xmms’ s = XMLRPC::Server.new(8080, ‘172.17.0.3’) s.add\_handler(XMLRPC::iP…

---

## [Problem with method that starts process, yields pid then yie](https://www.ruby-forum.com/t/problem-with-method-that-starts-process-yields-pid-then-yie/49310)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 11\
**Last updated:** [December 6, 2005, 3:08am UTC](https://www.ruby-forum.com/t/problem-with-method-that-starts-process-yields-pid-then-yie/49310 "2005-12-06T03:08:35Z")

</div>

I’m trying to create a method that will kick off a new process, return it’s pid… while allowing the return code to also be captured for later examination… \[on windows platform\] class Exec def process\_handler # if I…

---

## [Perl's DBI::quote functionality?](https://www.ruby-forum.com/t/perls-dbi-quote-functionality/49545)

<div class="topic-metadata">

**Author:** [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Replies:** 5\
**Last updated:** [December 6, 2005, 1:47am UTC](https://www.ruby-forum.com/t/perls-dbi-quote-functionality/49545 "2005-12-06T01:47:29Z")

</div>

hello, does anyone know of any modules that would allow me to “prepare” sql strings? something similar to perl’s DBI::quote? thanks konstantin

---

## [Re: a todo list](https://www.ruby-forum.com/t/re-a-todo-list/49541)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [December 5, 2005, 10:15pm UTC](https://www.ruby-forum.com/t/re-a-todo-list/49541 "2005-12-05T22:15:39Z")

</div>

Hi steven, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription…

---

## [Desktop apps vs. web applications (was Re: What a response!)](https://www.ruby-forum.com/t/desktop-apps-vs-web-applications-was-re-what-a-response/49529)

<div class="topic-metadata">

**Author:** [@joevandyk](https://www.ruby-forum.com/u/joevandyk)\
**Replies:** 3\
**Last updated:** [December 5, 2005, 9:47pm UTC](https://www.ruby-forum.com/t/desktop-apps-vs-web-applications-was-re-what-a-response/49529 "2005-12-05T21:47:12Z")

</div>

On 12/5/05, Jules removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid wrote: it locally. So here’s a somewhat related question: When should an application be a web application (that could be d…

---

## [RDOC for Ruby standard libs](https://www.ruby-forum.com/t/rdoc-for-ruby-standard-libs/49534)

<div class="topic-metadata">

**Author:** [@asivitz](https://www.ruby-forum.com/u/asivitz)\
**Replies:** 1\
**Last updated:** [December 5, 2005, 9:30pm UTC](https://www.ruby-forum.com/t/rdoc-for-ruby-standard-libs/49534 "2005-12-05T21:30:43Z")

</div>

I think I have RDOC installed fine (Gentoo Linux), as the command “ri String” works fine. However, I can’t read doumentation on any of the standard libraries. For instance, “ri Socket” returns an error. Are the stdlib…

---

## [Add a task to todo](https://www.ruby-forum.com/t/add-a-task-to-todo/102412)

<div class="topic-metadata">

**Author:** [@stevanicus](https://www.ruby-forum.com/u/stevanicus)\
**Replies:** 2\
**Last updated:** [December 5, 2005, 9:14pm UTC](https://www.ruby-forum.com/t/add-a-task-to-todo/102412 "2005-12-05T21:14:28Z")

</div>

hmm no i cant get something else to work in my controller def add\_tasklist tasklist = Tasklist.new tasklist.attributes = @params\["new\_tasklist"\] if tasklist.save redirect\_to(:action =\> "list") else render\_text…

---

## [POP3 and SMTP with SSL support](https://www.ruby-forum.com/t/pop3-and-smtp-with-ssl-support/49378)

<div class="topic-metadata">

**Author:** [@zimba.tm](https://www.ruby-forum.com/u/zimba.tm)\
**Replies:** 1\
**Last updated:** [December 5, 2005, 8:58pm UTC](https://www.ruby-forum.com/t/pop3-and-smtp-with-ssl-support/49378 "2005-12-05T20:58:09Z")

</div>

Hello ruby-talk, recently, I wanted to use ruby to connect to my gmail accout. Gmail supports POP3S and SMTP with TLS authentication. Ruby’s stdlib don’t support OpenSSL for those protocols. It was pretty easy to add…

---

## [Http://www.inkdroid.org/journal/2005/12/02/code4lib-2006/](https://www.ruby-forum.com/t/http-www-inkdroid-org-journal-2005-12-02-code4lib-2006/49532)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 3\
**Last updated:** [December 5, 2005, 8:37pm UTC](https://www.ruby-forum.com/t/http-www-inkdroid-org-journal-2005-12-02-code4lib-2006/49532 "2005-12-05T20:37:42Z")

</div>

For those of you working on Library or Library related stuff, this link might be of interest. http://www.inkdroid.org/journal/2005/12/02/code4lib-2006/ Andy L. (Inkdroid) points out that there’s going to be a code4lib …

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

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