# Ruby

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

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

---

## [Problem with Net::SFTP](https://www.ruby-forum.com/t/problem-with-net-sftp/173987)

<div class="topic-metadata">

**Author:** [@robintw](https://www.ruby-forum.com/u/robintw)\
**Replies:** 1\
**Last updated:** [August 19, 2009, 3:25am UTC](https://www.ruby-forum.com/t/problem-with-net-sftp/173987 "2009-08-19T03:25:55Z")

</div>

I apologize if this is not the right place to post a message about a gem like Net::SFTP - if there is a more appropriate forum please let me know. When I try to connect to one SFTP server, everything works great. Thi…

---

## [Problem with Net::SFTP](https://www.ruby-forum.com/t/problem-with-net-sftp/173988)

<div class="topic-metadata">

**Author:** [@robintw](https://www.ruby-forum.com/u/robintw)\
**Replies:** 1\
**Last updated:** [August 19, 2009, 3:25am UTC](https://www.ruby-forum.com/t/problem-with-net-sftp/173988 "2009-08-19T03:25:28Z")

</div>

I apologize if this is not the right place to post a message about a gem like Net::SFTP - if there is a more appropriate forum please let me know. When I try to connect to one SFTP server, everything works great. Thi…

---

## [Problem with Net::SFTP](https://www.ruby-forum.com/t/problem-with-net-sftp/173985)

<div class="topic-metadata">

**Author:** [@robintw](https://www.ruby-forum.com/u/robintw)\
**Replies:** 1\
**Last updated:** [August 19, 2009, 3:24am UTC](https://www.ruby-forum.com/t/problem-with-net-sftp/173985 "2009-08-19T03:24:39Z")

</div>

I apologize if this is not the right place to post a message about a gem like Net::SFTP - if there is a more appropriate forum please let me know. When I try to connect to one SFTP server, everything works great. Thi…

---

## [MagickWand for Ruby 0.2.0](https://www.ruby-forum.com/t/magickwand-for-ruby-0-2-0/173982)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/magickwand-for-ruby-0-2-0/173982 "2009-08-18T23:29:41Z")

</div>

I’ve just uploaded the second beta release of MagickWand for Ruby, my new binding to ImageMagick. MagickWand for Ruby is a complete rethinking of RMagick. I call it “RMagick rebooted.” MagickWand for Ruby objects are …

---

## [Inconsistent Modal Dialog Error on IE7 and IE8](https://www.ruby-forum.com/t/inconsistent-modal-dialog-error-on-ie7-and-ie8/173979)

<div class="topic-metadata">

**Author:** [@arti\_singh](https://www.ruby-forum.com/u/arti_singh)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/inconsistent-modal-dialog-error-on-ie7-and-ie8/173979 "2009-08-18T23:20:15Z")

</div>

has anyone seen this error before? I get the error below when trying to open a modal dialog in IE7 and IE8 with Watir.Now the Bizarre thing about this error is that the code works fine on the machines where the code w…

---

## [Show a listing of methods unique to class](https://www.ruby-forum.com/t/show-a-listing-of-methods-unique-to-class/173978)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 4\
**Last updated:** [August 18, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/show-a-listing-of-methods-unique-to-class/173978 "2009-08-18T23:19:23Z")

</div>

Often I find myself in IRB wanting to see a list of methods available to me for the object I have. So I can do object.methods and get the list. But what if I only want to see the methods unique to the class I’m workin…

---

## [Q re nokogiri - searching Google and counting web pages with specific text](https://www.ruby-forum.com/t/q-re-nokogiri-searching-google-and-counting-web-pages-with-specific-text/173964)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 4\
**Last updated:** [August 18, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/q-re-nokogiri-searching-google-and-counting-web-pages-with-specific-text/173964 "2009-08-18T23:02:46Z")

</div>

People, I think using nokogiri with Ruby should be able to do what I want but I’m not sure how to do it - I want to search Google and list or count the number of web pages from a particular domain: http://www.unitedn…

---

## [Can't execute shell commands in CGI](https://www.ruby-forum.com/t/cant-execute-shell-commands-in-cgi/173822)

<div class="topic-metadata">

**Author:** [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Replies:** 6\
**Last updated:** [August 18, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/cant-execute-shell-commands-in-cgi/173822 "2009-08-18T22:39:52Z")

</div>

It is necessary to execute linux command in CGI(apache) def cmd(com) system("#{com}\>log.log") end cmd("pwd") There isn’t errors but log.log is empty Else: def cmd system("pwd\>log.log") end cmd there isn’t result t…

---

## [Gem installation oddity](https://www.ruby-forum.com/t/gem-installation-oddity/173951)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 5\
**Last updated:** [August 18, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/gem-installation-oddity/173951 "2009-08-18T21:39:16Z")

</div>

I have been totally puzzled by what I think is a misconfiguration of my gem environment. I’ve read and looked and experimented and tried to solve this. Maybe you can help… Here’s the top level symptom. I install a gem…

---

## [Logging into cisco intrusion prevention system](https://www.ruby-forum.com/t/logging-into-cisco-intrusion-prevention-system/173894)

<div class="topic-metadata">

**Author:** [@rubyhunter](https://www.ruby-forum.com/u/rubyhunter)\
**Replies:** 2\
**Last updated:** [August 18, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/logging-into-cisco-intrusion-prevention-system/173894 "2009-08-18T21:10:11Z")

</div>

Is there any gem module which can be used to login to the cisco intrusion prevention system and execute the commands on the IPS?..

---

## [Need help](https://www.ruby-forum.com/t/need-help/173969)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/need-help/173969 "2009-08-18T20:37:15Z")

</div>

when i type ri gc the ruby give me the details of gc class bu how to come out of it i am using terminal in mac thnx in advance

---

## [\[ANN\] Initial release of the desc\_method gem--a "run time RI for methods"](https://www.ruby-forum.com/t/ann-initial-release-of-the-desc-method-gem-a-run-time-ri-for-methods/173956)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [August 18, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/ann-initial-release-of-the-desc-method-gem-a-run-time-ri-for-methods/173956 "2009-08-18T18:58:37Z")

</div>

I am pleased to announce the release of desc\_method. A “run time RI for methods”, this gem allows you to query for information about objects’ methods within irb or a ruby-debug prompt. It reveals everything known abou…

---

## [Ruby language training in September w/ Black & Kastner!](https://www.ruby-forum.com/t/ruby-language-training-in-september-w-black-kastner/173957)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/ruby-language-training-in-september-w-black-kastner/173957 "2009-08-18T18:31:06Z")

</div>

Hi all – Don’t forget that Ruby Power and Light has some Ruby training coming up, taught by me and Erik Kastner. It’s ideal for: programmers who are new to Ruby Ruby programmers who want to review the language syst…

---

## [Rake and cucumber fails with ruby-1.9.1-p243 and polyglot 0.2.7](https://www.ruby-forum.com/t/rake-and-cucumber-fails-with-ruby-1-9-1-p243-and-polyglot-0-2-7/173954)

<div class="topic-metadata">

**Author:** [@oreng](https://www.ruby-forum.com/u/oreng)\
**Replies:** 1\
**Last updated:** [August 18, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/rake-and-cucumber-fails-with-ruby-1-9-1-p243-and-polyglot-0-2-7/173954 "2009-08-18T18:11:47Z")

</div>

rake and cucumber fails with ruby-1.9.1-p243 and polyglot 0.2.7. (btw, when commenting the require method (polyglot.rb:56) it’s passing) rake spec /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.7/lib/ p…

---

## [Release: a "which" command written in ruby--very useful for windows users at least](https://www.ruby-forum.com/t/release-a-which-command-written-in-ruby-very-useful-for-windows-users-at-least/173887)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [August 18, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/release-a-which-command-written-in-ruby-very-useful-for-windows-users-at-least/173887 "2009-08-18T17:54:12Z")

</div>

Announcing the release of “ruby which”\[1\] README: Ruby-which is the linux “which” command re-written in ruby \[and windows-friendly\]. – An executable locator (which command) for windows that actually works! There se…

---

## [Unit testing generated content](https://www.ruby-forum.com/t/unit-testing-generated-content/173925)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 18, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/unit-testing-generated-content/173925 "2009-08-18T17:20:13Z")

</div>

Hi, I’m writing unit test. I’ve programmed already an assert method, which purpose it to compare a string or a file with unix diff. The goal is to assert that a generated content multiline is exactly what I expect. …

---

## [How can I extract variables from a ruby snippet](https://www.ruby-forum.com/t/how-can-i-extract-variables-from-a-ruby-snippet/173857)

<div class="topic-metadata">

**Author:** [@laran](https://www.ruby-forum.com/u/laran)\
**Replies:** 2\
**Last updated:** [August 18, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/how-can-i-extract-variables-from-a-ruby-snippet/173857 "2009-08-18T17:15:32Z")

</div>

I have this text: \<%= params\['post'\]\['category\_id'\] %\> \<%= params\['post'\]\['title'\] %\> \<%= params\['post'\]\['body'\] %\> \<%= params\['post'\]\['extended\_body'\] %\> \<%= params\['post'\]\['private'\] %\> \<%…

---

## [ANN: ThirdBase 1.2.0](https://www.ruby-forum.com/t/ann-thirdbase-1-2-0/173899)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 4\
**Last updated:** [August 18, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/ann-thirdbase-1-2-0/173899 "2009-08-18T16:45:17Z")

</div>

ThirdBase is a replacement for Ruby’s standard Date/DateTime classes, with the following differences: ThirdBase is roughly 2-10 times faster depending on usage ThirdBase has a lower memory footprint ThirdBase supports…

---

## [Ri\_cal 0.8.1 Released](https://www.ruby-forum.com/t/ri-cal-0-8-1-released/173941)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/ri-cal-0-8-1-released/173941 "2009-08-18T15:46:32Z")

</div>

ri\_cal version 0.8.1 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

---

## [Refactoring in Ruby rough cut](https://www.ruby-forum.com/t/refactoring-in-ruby-rough-cut/173937)

<div class="topic-metadata">

**Author:** [@Kevin\_Rutherford](https://www.ruby-forum.com/u/Kevin_Rutherford)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/refactoring-in-ruby-rough-cut/173937 "2009-08-18T14:15:47Z")

</div>

Hi, I thought some of you might be interested in this… "Refactoring in Ruby is a refactoring workbook that gives you all the realistic, hands-on practice you need to refactor Ruby code quickly and effectively. You’ll…

---

## [Including a module in an included module](https://www.ruby-forum.com/t/including-a-module-in-an-included-module/173929)

<div class="topic-metadata">

**Author:** [@princenez](https://www.ruby-forum.com/u/princenez)\
**Replies:** 3\
**Last updated:** [August 18, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/including-a-module-in-an-included-module/173929 "2009-08-18T13:47:41Z")

</div>

module M1; end module M2; include M1; end module M1; DOG = :woof; end module M2; DOG; end # =\> :woof I can add to a module after it has been included. Neat. module M1; DOG = :woof; end module M2; include M1; end module…

---

## [Ruby\_parser 2.0.4 Released](https://www.ruby-forum.com/t/ruby-parser-2-0-4-released/173930)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 11:48am UTC](https://www.ruby-forum.com/t/ruby-parser-2-0-4-released/173930 "2009-08-18T11:48:17Z")

</div>

ruby\_parser version 2.0.4 has been released! http://parsetree.rubyforge.org/ ruby\_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same a…

---

## [While !file.eof?](https://www.ruby-forum.com/t/while-file-eof/173856)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 9\
**Last updated:** [August 18, 2009, 9:36am UTC](https://www.ruby-forum.com/t/while-file-eof/173856 "2009-08-18T09:36:34Z")

</div>

How can I use a while loop in such as way where I want to process the file until EOF? thank you! Here is my code: mailog="/tmp/maillog" last\_record=“Jul 15 22:09:10” File.open(mailog, ‘r+’).each { |line| while !ma…

---

## [Conditional logic in HAML](https://www.ruby-forum.com/t/conditional-logic-in-haml/173906)

<div class="topic-metadata">

**Author:** [@gnoll110](https://www.ruby-forum.com/u/gnoll110)\
**Replies:** 1\
**Last updated:** [August 18, 2009, 8:21am UTC](https://www.ruby-forum.com/t/conditional-logic-in-haml/173906 "2009-08-18T08:21:37Z")

</div>

In the Haml tutorial has this sample: ERB Welcome to our site! \<%= print\_information %\> \<%= render :partial =\> "sidebar" %\> Haml #content .left.column %h2 Welcome to our site! %p= print\_i…

---

## [Ruby/DL question](https://www.ruby-forum.com/t/ruby-dl-question/173691)

<div class="topic-metadata">

**Author:** [@grish](https://www.ruby-forum.com/u/grish)\
**Replies:** 5\
**Last updated:** [August 18, 2009, 6:46am UTC](https://www.ruby-forum.com/t/ruby-dl-question/173691 "2009-08-18T06:46:20Z")

</div>

Been trying to learn how to use ruby and Ruby/DL and I’m unsure how to implement this: I have a callback function in C which I want to implement in ruby void my\_callback(my\_struct resultList, DWORD count) { while (c…

---

## [Xxx.each {} callable only once: jirb feature or bug?](https://www.ruby-forum.com/t/xxx-each-callable-only-once-jirb-feature-or-bug/173889)

<div class="topic-metadata">

**Author:** [@jameslabocki](https://www.ruby-forum.com/u/jameslabocki)\
**Replies:** 2\
**Last updated:** [August 17, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/xxx-each-callable-only-once-jirb-feature-or-bug/173889 "2009-08-17T20:40:00Z")

</div>

I can call xxx.each {} in IRB/Ruby as many times as I want, and I get the same set of elements each time. I just tried the same in JIRB and was surprised to discover that it works as expected only on the first functio…

---

## [Task/work queue](https://www.ruby-forum.com/t/task-work-queue/173883)

<div class="topic-metadata">

**Author:** [@gurpal2000](https://www.ruby-forum.com/u/gurpal2000)\
**Replies:** 1\
**Last updated:** [August 17, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/task-work-queue/173883 "2009-08-17T19:46:31Z")

</div>

Hi I have created essentially a webapp using sinatra/webrick which allows a user to queue bits of work. These bits of work are essentially long running processes. So i was thinking of using the Queue class to queue t…

---

## [Net::SSH 2.0.13 Released](https://www.ruby-forum.com/t/net-ssh-2-0-13-released/173886)

<div class="topic-metadata">

**Author:** [@Delano\_Mandelbaum](https://www.ruby-forum.com/u/Delano_Mandelbaum)\
**Replies:** 0\
**Last updated:** [August 17, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/net-ssh-2-0-13-released/173886 "2009-08-17T18:48:33Z")

</div>

Net::SSH 2.0.13 – Pure Ruby implementation of an SSH (protocol 2) client NOTABLE FIXES arcfour128, arcfour256, and arcfour512 support Support for specifying a list of hosts in .ssh/config Fix for hanging in ServerVer…

---

## [Compiling Ruby for T5220 UltraSparc's](https://www.ruby-forum.com/t/compiling-ruby-for-t5220-ultrasparcs/173878)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 1\
**Last updated:** [August 17, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/compiling-ruby-for-t5220-ultrasparcs/173878 "2009-08-17T18:33:20Z")

</div>

Hi, I have to compile Ruby as a Operations requirement on a T5220 UltraSparc. I would like to use the same options that Sun uses for it’s version of Ruby but i can’t find a list of the options used by Sun. Does anyo…

---

## [Git Subprojects and Rubyforge](https://www.ruby-forum.com/t/git-subprojects-and-rubyforge/173880)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [August 17, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/git-subprojects-and-rubyforge/173880 "2009-08-17T18:11:05Z")

</div>

I was thinking about the issue of Rubyforge only supporting a single git repo per project, and the issue of subprojects with git in general. While certainly imperfect this idea occurred to me… Make each subproject it’…

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

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