# Ruby

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

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

---

## [Manage NET HTTP errors](https://www.ruby-forum.com/t/manage-net-http-errors/138125)

<div class="topic-metadata">

**Author:** [@qwerty73](https://www.ruby-forum.com/u/qwerty73)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/manage-net-http-errors/138125 "2008-05-20T13:06:13Z")

</div>

Hi to all, i’ve done a ruby script that restart a VoIP network device. The code i s below: url = URI.parse('http://192.168.0.111/dologin.htm') response=Net::HTTP.start(url.host, url.port) {|htt…

---

## [Primes in P?](https://www.ruby-forum.com/t/primes-in-p/133433)

<div class="topic-metadata">

**Author:** [@snarles](https://www.ruby-forum.com/u/snarles)\
**Replies:** 12\
**Last updated:** [May 20, 2008, 11:55am UTC](https://www.ruby-forum.com/t/primes-in-p/133433 "2008-05-20T11:55:59Z")

</div>

There is an algorithm that tests primes with a polynomial running time: http://fatphil.org/maths/AKS/ Has anyone coded it in Ruby?

---

## [Getting parameters from command prompt](https://www.ruby-forum.com/t/getting-parameters-from-command-prompt/138114)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 10:37am UTC](https://www.ruby-forum.com/t/getting-parameters-from-command-prompt/138114 "2008-05-20T10:37:13Z")

</div>

I want to run a ruby script.rb from command prompt with different parameters. Something like… script.rb pserver how can I get ‘pserver’ in script? like in Python I can use sys.argv\[1\]

---

## [Swig and Ruby - a nice way of using C/C++ code](https://www.ruby-forum.com/t/swig-and-ruby-a-nice-way-of-using-c-c-code/138104)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 10:30am UTC](https://www.ruby-forum.com/t/swig-and-ruby-a-nice-way-of-using-c-c-code/138104 "2008-05-20T10:30:55Z")

</div>

Hi guys, I was just messing around and discovered Swig \[http://www.swig.org/\] works fine with ruby! It allows you to use C/C++ code from Ruby and MANY other languages. I know we already have RubyInline, of course, wh…

---

## [Watir: Need help in defining a dynamic array](https://www.ruby-forum.com/t/watir-need-help-in-defining-a-dynamic-array/138106)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 10:09am UTC](https://www.ruby-forum.com/t/watir-need-help-in-defining-a-dynamic-array/138106 "2008-05-20T10:09:57Z")

</div>

Hi, I am new to ruby and hence need some help in defining a dynamic array. What I need to do is this: I have 5 browsers open in my desktop. I want to assign them browser id’s 1,2,3,4,5 (should be dynamic, since 5 br…

---

## [Watir: Facing problem with "IE.attach"](https://www.ruby-forum.com/t/watir-facing-problem-with-ie-attach/138103)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 9:19am UTC](https://www.ruby-forum.com/t/watir-facing-problem-with-ie-attach/138103 "2008-05-20T09:19:55Z")

</div>

Hi, I tried the following piece of code: require ‘watir’ ie = Watir::IE.new ie.attach(“www.yahoo.com”) Getting the following error: undefined method ‘attach’ for #Watir::IE:0x90edef0 (No Method Error) I know the g…

---

## [Vlad mailing list](https://www.ruby-forum.com/t/vlad-mailing-list/138069)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 8:30am UTC](https://www.ruby-forum.com/t/vlad-mailing-list/138069 "2008-05-20T08:30:57Z")

</div>

Francis pointed out that I forgot to make a mailing list for this project. Here ya go! http://www.zenspider.com/mailman/listinfo/vlad

---

## [Where to start?](https://www.ruby-forum.com/t/where-to-start/138063)

<div class="topic-metadata">

**Author:** [@pleiva](https://www.ruby-forum.com/u/pleiva)\
**Replies:** 5\
**Last updated:** [May 20, 2008, 8:11am UTC](https://www.ruby-forum.com/t/where-to-start/138063 "2008-05-20T08:11:35Z")

</div>

Does anyone have a good website or book, to start on Ruby and Rubyonrails ?

---

## [Code Review: RegexOptions](https://www.ruby-forum.com/t/code-review-regexoptions/138096)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 7:07am UTC](https://www.ruby-forum.com/t/code-review-regexoptions/138096 "2008-05-20T07:07:08Z")

</div>

tfpt review /shelveset:RegexOptions;REDMOND\\tomat We need to use RubyRegexOptions instead of BCL RegexOptions as they are incompatible with each other. Tomas

---

## [Sudo ruby loosing environment?](https://www.ruby-forum.com/t/sudo-ruby-loosing-environment/138051)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 4:01am UTC](https://www.ruby-forum.com/t/sudo-ruby-loosing-environment/138051 "2008-05-20T04:01:38Z")

</div>

My Ruby installation is from the Ubuntu package repository. Yesterday, I upgraded my system to Heron and since then one of my Ruby scripts stopped working. I traced the problem to this: $ ruby -e"p ENV\[‘ROLL\_PATH’\]" …

---

## [Win32-thread 0.0.2 and other stuff](https://www.ruby-forum.com/t/win32-thread-0-0-2-and-other-stuff/138083)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 2:21am UTC](https://www.ruby-forum.com/t/win32-thread-0-0-2-and-other-stuff/138083 "2008-05-20T02:21:32Z")

</div>

Hi everyone, This is just a quick announcement to let people know that a few of the Win32Utils libraries that previously required a compiler have now been gemified. These include win32-taskscheduler, win32-changejour…

---

## [Question about ruby web servers](https://www.ruby-forum.com/t/question-about-ruby-web-servers/138070)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 1:41am UTC](https://www.ruby-forum.com/t/question-about-ruby-web-servers/138070 "2008-05-20T01:41:46Z")

</div>

Usually when you want to archive more performance ex. in mongrel or thin( i dont know how the webrick, ebb,… works) in powerfull machines ppl start new process in other ports and direct the requests for each process. …

---

## [Instance Variable in Mixins](https://www.ruby-forum.com/t/instance-variable-in-mixins/138076)

<div class="topic-metadata">

**Author:** [@dale](https://www.ruby-forum.com/u/dale)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 1:37am UTC](https://www.ruby-forum.com/t/instance-variable-in-mixins/138076 "2008-05-20T01:37:04Z")

</div>

I am trying to get access to an instance variable. I have simplified my usage down to the following example. === start-of-code module A def A.a puts “A:#{@u}” end end module B def b puts “B:#{@u}” end end mo…

---

## [Problems using sqlite3 \[newbie\]](https://www.ruby-forum.com/t/problems-using-sqlite3-newbie/138037)

<div class="topic-metadata">

**Author:** [@kaizen](https://www.ruby-forum.com/u/kaizen)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/problems-using-sqlite3-newbie/138037 "2008-05-19T23:41:55Z")

</div>

Hi, I’m trying to make an script to transform an excel to sql using the ‘roo’ gem (http://roo.rubyforge.org/). After install it, I tried to install the ‘sqlite3-ruby’ gem, but it seems that it was already installed. …

---

## [Got questions about NetBeans Ruby/JRuby support?](https://www.ruby-forum.com/t/got-questions-about-netbeans-ruby-jruby-support/138066)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/got-questions-about-netbeans-ruby-jruby-support/138066 "2008-05-19T23:16:56Z")

</div>

Hey folks… Sun is running this “ask the experts” session all week where you can post questions and have me, Tor N. (guy behind the NetBeans Ruby support), or Brian Leonard (NetBeans evangelist) answer them. It seems …

---

## [Code Review: DlrAstChanges](https://www.ruby-forum.com/t/code-review-dlrastchanges/138061)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/code-review-dlrastchanges/138061 "2008-05-19T22:38:08Z")

</div>

tfpt review /shelveset:DlrAstChanges;REDMOND\\tomat Using new DLR AST factories: Ast.Property, Ast.Field, Ast.NewArrayInit. Tomas

---

## [Code Review: gsub\_classdup](https://www.ruby-forum.com/t/code-review-gsub-classdup/138056)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/code-review-gsub-classdup/138056 "2008-05-19T22:27:30Z")

</div>

tfpt review /shelveset:gsub\_classdup;REDMOND\\tomat Fixes bug #20199: Getting metaclass for nil causes a .NET exception Fixes bug #20137: gsub $n bug Fixes bug #19902: Regex global matching vars are not nil when they d…

---

## [Pounce Consulting JOBS](https://www.ruby-forum.com/t/pounce-consulting-jobs/138046)

<div class="topic-metadata">

**Author:** [@Yazmin\_Cardenas](https://www.ruby-forum.com/u/Yazmin_Cardenas)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/pounce-consulting-jobs/138046 "2008-05-19T20:11:14Z")

</div>

Hi!! My name is Yazmin Cardenas, I am a recent member of the community, I work in Pounce Consulting, as a Technical Recruiter. Right now I have a Ruby Project. Ideal Candidate: 3+ years web programming 1+ …

---

## [Select items in a VBOX?](https://www.ruby-forum.com/t/select-items-in-a-vbox/138029)

<div class="topic-metadata">

**Author:** [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Replies:** 5\
**Last updated:** [May 19, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/select-items-in-a-vbox/138029 "2008-05-19T18:52:47Z")

</div>

Hi, I would like to know how can I select items in a VBOX. Right now I have a vertical box inside a scrolled window, where I push items (I push progress bars into it). So if I push for example 20 progress bars, I can…

---

## [Code Review: RubyLibsAndYaml](https://www.ruby-forum.com/t/code-review-rubylibsandyaml/137914)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 10\
**Last updated:** [May 19, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/code-review-rubylibsandyaml/137914 "2008-05-19T18:13:20Z")

</div>

tfpt review /shelveset:RubyLibsAndYaml;REDMOND\\tomat Adjusts class-initializer generator to enable generating initializers for multiple libraries within a single assembly. Also enables extending existing Ruby modules …

---

## [Is there any net framework like ACE or Twisted implemented by ruby?](https://www.ruby-forum.com/t/is-there-any-net-framework-like-ace-or-twisted-implemented-by-ruby/137998)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/is-there-any-net-framework-like-ace-or-twisted-implemented-by-ruby/137998 "2008-05-19T18:03:16Z")

</div>

Hi,all: Is there any net framework like ACE or Twisted implemented by ruby?

---

## [Playing around with www.ironruby.net](https://www.ruby-forum.com/t/playing-around-with-www-ironruby-net/137107)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 4\
**Last updated:** [May 19, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/playing-around-with-www-ironruby-net/137107 "2008-05-19T17:50:17Z")

</div>

I’m trying to make http://ironruby.net take you to the same page as http://www.ironruby.net, but in the meantime both might be broken. If so, just go to http://ironruby.rubyforge.org. PS. Anyone know how to do this on…

---

## [How to use a class\_variable into a Module](https://www.ruby-forum.com/t/how-to-use-a-class-variable-into-a-module/138015)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [May 19, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/how-to-use-a-class-variable-into-a-module/138015 "2008-05-19T17:17:38Z")

</div>

Hi, I want to declare a class\_variable in class A. Class A includes a Module M and I want some methods in M using the class\_variable but I get some problem: module M def kk #puts (eval %{ #{send(‘class’).class\_vari…

---

## [Inserting hash data into email](https://www.ruby-forum.com/t/inserting-hash-data-into-email/138025)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/inserting-hash-data-into-email/138025 "2008-05-19T16:36:38Z")

</div>

Morning all, What is the best way to insert hash data into an email? I have tried several different ways and I either get can’t convert array to a string or private method â€˜chompâ€™. Below is the code I am current…

---

## [RMagick](https://www.ruby-forum.com/t/rmagick/138020)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/rmagick/138020 "2008-05-19T16:05:58Z")

</div>

hi, Can anybody tell me how to install rmagick on Ws(ruby version 1.8.6)? From where should i install ImageMagick ?

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/137950)

<div class="topic-metadata">

**Author:** [@Ali\_Mills](https://www.ruby-forum.com/u/Ali_Mills)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/unsubscribe/137950 "2008-05-19T16:05:58Z")

</div>

unsubscribe

---

## [Serial Number in Pagination Results](https://www.ruby-forum.com/t/serial-number-in-pagination-results/137984)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 3\
**Last updated:** [May 19, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/serial-number-in-pagination-results/137984 "2008-05-19T16:04:46Z")

</div>

Hi all, I want to display serial Number (s.no) for pagination results. Is any methods available to do that? Can any one tell me how to do that? Thanks in Advance Saravanan K

---

## [Using Xpath in Ruby](https://www.ruby-forum.com/t/using-xpath-in-ruby/138003)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/using-xpath-in-ruby/138003 "2008-05-19T15:48:48Z")

</div>

Dear friends, I want use xpath in my ruby program. could you please suggest some ways to proceed .?. Some links would help me to do… I need some some details regarding how its implemented in REXML and HPRICOT. Than…

---

## [Block\_given? in defined method](https://www.ruby-forum.com/t/block-given-in-defined-method/137974)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 3\
**Last updated:** [May 19, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/block-given-in-defined-method/137974 "2008-05-19T15:29:56Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bblock\_given? e$B$r!$e(Bdefine\_method e$B$GDj5A$5$l$?$b$N$KE,MQ$5$l$k$H$\*$+e(B e$B$7$J$3$H$K$J$k!$$H$$$&;XE&$K$D$$$F65$($F2\<$5$$!%e(B e$B!!$3$N;XE&$O!$e(Bbootstraptest/test\_knwonbug.rb e$…

---

## [Re: using Xpath in Ruby](https://www.ruby-forum.com/t/re-using-xpath-in-ruby/138016)

<div class="topic-metadata">

**Author:** [@McLaughlinS\_James\_T](https://www.ruby-forum.com/u/McLaughlinS_James_T)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/re-using-xpath-in-ruby/138016 "2008-05-19T15:08:07Z")

</div>

I use hpricot for all my XML - to access a node in a doc via XPath, you just do: node = (doc / “/path/to/node”) The / operator is overloaded to do XPath. Check out the docs first (use google) for the exact syntax. Y…

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

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