# Ruby

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

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

---

## [TCPSocket error](https://www.ruby-forum.com/t/tcpsocket-error/189548)

<div class="topic-metadata">

**Author:** [@theopon](https://www.ruby-forum.com/u/theopon)\
**Replies:** 10\
**Last updated:** [June 3, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/tcpsocket-error/189548 "2010-06-03T19:33:23Z")

</div>

Hi all, I am a student learning ruby and I am getting an error that I can’t figure out. It works on my teacher’s mac, however does not on my laptop. Windows Vista 64-bit My ruby version is: 1.9.1p378 (2010-01-10 revi…

---

## [Roots Module (code)](https://www.ruby-forum.com/t/roots-module-code/189600)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/roots-module-code/189600 "2010-06-03T19:01:47Z")

</div>

Module ‘Roots’ provides two methods ‘root’ and ‘roots’ which will find all the nth roots for all real, and complex , numerical types. View and download code here: Install process: Place module file ‘roots.rb’ into…

---

## [Permutations that include sub-arrays in ruby?](https://www.ruby-forum.com/t/permutations-that-include-sub-arrays-in-ruby/189595)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 7:00pm UTC](https://www.ruby-forum.com/t/permutations-that-include-sub-arrays-in-ruby/189595 "2010-06-03T19:00:01Z")

</div>

Ruby has a terrific implementation of single-valued permutations, but it doesn’t yield the results I expected when using arrays of arrays. For example: \[\[1, 2\], \[2, 3\]\].permutation.to\_a.include? \[2, 1\] =\> false The r…

---

## [Root Module (code)](https://www.ruby-forum.com/t/root-module-code/189598)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/root-module-code/189598 "2010-06-03T18:58:16Z")

</div>

Module ‘Roots’ provides two methods ‘root’ and ‘roots’ which will find all the nth roots for all real, and complex , numerical types. View and download code here: Install process: Place module file ‘roots.rb’ into…

---

## [Problem with Net::SSH::Gateway](https://www.ruby-forum.com/t/problem-with-net-gateway/189589)

<div class="topic-metadata">

**Author:** [@mly](https://www.ruby-forum.com/u/mly)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/problem-with-net-gateway/189589 "2010-06-03T16:40:05Z")

</div>

I am having a problem with Net::SSH::Gateway. It seems that when a connection fails and a rescue clause in used, the next connection attempted hangs forever. I am trying to walk through a list of systems that requir…

---

## [How to run a XAML file?](https://www.ruby-forum.com/t/how-to-run-a-xaml-file/172638)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 4\
**Last updated:** [June 3, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/how-to-run-a-xaml-file/172638 "2010-06-03T14:17:45Z")

</div>

Hi, I have a WPF xaml file and I’d like to execute it using IronRuby. I know I can use the System::Windows::Markup::XamlReader.parse method, but is there another way? Using the XamlReader class makes registering even…

---

## [Gsub with wildcard](https://www.ruby-forum.com/t/gsub-with-wildcard/189572)

<div class="topic-metadata">

**Author:** [@Reinhart\_V](https://www.ruby-forum.com/u/Reinhart_V)\
**Replies:** 5\
**Last updated:** [June 3, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/gsub-with-wildcard/189572 "2010-06-03T13:12:46Z")

</div>

Hello, I want to replace: id=“idxxxxxxx” with id=“id20” in a string I know this can be done with gsub but I don’t know how to use wildcards. The xxxxxxx can be of any length but only numbers Thx

---

## [\[Bug #3383\] static-linked-ext$B$,F0$+$J$$(B](https://www.ruby-forum.com/t/bug-3383-static-linked-ext-b-f0-j-b/189574)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 12:07pm UTC](https://www.ruby-forum.com/t/bug-3383-static-linked-ext-b-f0-j-b/189574 "2010-06-03T12:07:47Z")

</div>

Bug #3383: static-linked-exte$B$,F0$+$J$$e(B http://redmine.ruby-lang.org/issues/show/3383 e$B5/I\<\<Te(B: Nobuyoshi N. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High e$B%+%F%4%je(B: core ruby -v: ruby 1.9.3dev (2010-06-0…

---

## [Bug in mscorlib, IronRuby, NewtonSoft.json..... or my code?](https://www.ruby-forum.com/t/bug-in-mscorlib-ironruby-newtonsoft-json-or-my-code/189550)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 11:03am UTC](https://www.ruby-forum.com/t/bug-in-mscorlib-ironruby-newtonsoft-json-or-my-code/189550 "2010-06-03T11:03:57Z")

</div>

Hi, I’m trying to use a third party library which has a dependency on NewtonSoft.json. I create a class within IronRuby and attempt to serialise the object to Json however it throws a null reference exception from wi…

---

## [Installation issue with Ruby gems on Ubuntu 8.04](https://www.ruby-forum.com/t/installation-issue-with-ruby-gems-on-ubuntu-8-04/189517)

<div class="topic-metadata">

**Author:** [@santoshd](https://www.ruby-forum.com/u/santoshd)\
**Replies:** 13\
**Last updated:** [June 3, 2010, 10:29am UTC](https://www.ruby-forum.com/t/installation-issue-with-ruby-gems-on-ubuntu-8-04/189517 "2010-06-03T10:29:00Z")

</div>

Hi I am installing ruby gems on ubuntu 8.04 … while installing i got the following error. $wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz Error : Name or service could not be resolved Could you a…

---

## [ZenTest 4.3.2 Released](https://www.ruby-forum.com/t/zentest-4-3-2-released/189568)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 10:20am UTC](https://www.ruby-forum.com/t/zentest-4-3-2-released/189568 "2010-06-03T10:20:03Z")

</div>

ZenTest version 4.3.2 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools: zentest, unit\_dif…

---

## [Hoe 2.6.1 Released](https://www.ruby-forum.com/t/hoe-2-6-1-released/189569)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 10:03am UTC](https://www.ruby-forum.com/t/hoe-2-6-1-released/189569 "2010-06-03T10:03:05Z")

</div>

hoe version 2.6.1 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ http://seattlerb.rubyforge.org/hoe/Hoe.pdf http://github.com/jbarnette/hoe-plugin-examples Hoe is a rak…

---

## [Doubly Link List](https://www.ruby-forum.com/t/doubly-link-list/189562)

<div class="topic-metadata">

**Author:** [@jackmacokc](https://www.ruby-forum.com/u/jackmacokc)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 9:20am UTC](https://www.ruby-forum.com/t/doubly-link-list/189562 "2010-06-03T09:20:20Z")

</div>

How to do Doubly link list in ruby . -append(node) -search(node) -delete(node)

---

## [Ruby-1.9.1-p378 hangs on make ripper.c](https://www.ruby-forum.com/t/ruby-1-9-1-p378-hangs-on-make-ripper-c/189561)

<div class="topic-metadata">

**Author:** [@vanson](https://www.ruby-forum.com/u/vanson)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 7:44am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p378-hangs-on-make-ripper-c/189561 "2010-06-03T07:44:08Z")

</div>

The ruby-1.9.1-p378 compile hangs on make ripper.c. I am not sure why. Is anybody else seeing this?

---

## [\[Bug #3381\] test/io/nonblock/test\_flush.rb reports an error on Windows](https://www.ruby-forum.com/t/bug-3381-test-io-nonblock-test-flush-rb-reports-an-error-on-windows/189559)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 6:07am UTC](https://www.ruby-forum.com/t/bug-3381-test-io-nonblock-test-flush-rb-reports-an-error-on-windows/189559 "2010-06-03T06:07:47Z")

</div>

Bug #3381: test/io/nonblock/test\_flush.rb reports an error on Windows http://redmine.ruby-lang.org/issues/show/3381 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Nobuyosh…

---

## [\[Bug #3379\] test-all Segmentation fault on x64-mswin64](https://www.ruby-forum.com/t/bug-3379-test-all-segmentation-fault-on-x64-mswin64/189525)

<div class="topic-metadata">

**Author:** [@sakiyama\_shin](https://www.ruby-forum.com/u/sakiyama_shin)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 2:47am UTC](https://www.ruby-forum.com/t/bug-3379-test-all-segmentation-fault-on-x64-mswin64/189525 "2010-06-03T02:47:37Z")

</div>

Bug #3379: test-all Segmentation fault on x64-mswin64 http://redmine.ruby-lang.org/issues/show/3379 e$B5/I\<\<Te(B: sakiyama shin e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ruby -v: ruby 1.9.2d…

---

## [Pre determine the size of a string](https://www.ruby-forum.com/t/pre-determine-the-size-of-a-string/189535)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 3\
**Last updated:** [June 2, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/pre-determine-the-size-of-a-string/189535 "2010-06-02T22:51:06Z")

</div>

Hi all, please, is there a way to pre-determine the size (or capacity) of a string in ruby? i.e if a have a string “str” , i will set it to contain characters not more than 10.

---

## [Mod\_ruby and 1.9](https://www.ruby-forum.com/t/mod-ruby-and-1-9/189530)

<div class="topic-metadata">

**Author:** [@denno](https://www.ruby-forum.com/u/denno)\
**Replies:** 1\
**Last updated:** [June 2, 2010, 9:57pm UTC](https://www.ruby-forum.com/t/mod-ruby-and-1-9/189530 "2010-06-02T21:57:16Z")

</div>

It says it is supported experimentally on 1.9. Does anyone have any experience with this? Is it usable?

---

## [Webserver status, need better approach](https://www.ruby-forum.com/t/webserver-status-need-better-approach/189541)

<div class="topic-metadata">

**Author:** [@walle](https://www.ruby-forum.com/u/walle)\
**Replies:** 5\
**Last updated:** [June 2, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/webserver-status-need-better-approach/189541 "2010-06-02T21:53:50Z")

</div>

Hey, I need a better way of checking if a webserver is online and operational. The following code works ok, but it sometimes returns the wrong result. Does anyone have a better approach? //Walle def check\_http(serv…

---

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

<div class="topic-metadata">

**Author:** [@cyberjom](https://www.ruby-forum.com/u/cyberjom)\
**Replies:** 0\
**Last updated:** [June 2, 2010, 8:24pm UTC](https://www.ruby-forum.com/t/need-consult/189542 "2010-06-02T20:24:31Z")

</div>

I’m working on a rails 2.3.8 project that I need to deploy to JAVA production environment. Need a kind of online (chat/email/remote) consultant for short period of time. I’m familier with ROR for 2 years. And using M…

---

## [Having a class method called only one time?](https://www.ruby-forum.com/t/having-a-class-method-called-only-one-time/189532)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 11\
**Last updated:** [June 2, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/having-a-class-method-called-only-one-time/189532 "2010-06-02T20:15:25Z")

</div>

I’d like having a class method called only one time ? Is it possible ? suppose i do have a class “HFSFile” and i need to know the host ip. i don’t want to call the method giving host ip each time i need it but only t…

---

## [Can't make Warbler exclude test gems using Bundler](https://www.ruby-forum.com/t/cant-make-warbler-exclude-test-gems-using-bundler/189511)

<div class="topic-metadata">

**Author:** [@codemonkey](https://www.ruby-forum.com/u/codemonkey)\
**Replies:** 2\
**Last updated:** [June 2, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/cant-make-warbler-exclude-test-gems-using-bundler/189511 "2010-06-02T19:53:11Z")

</div>

We’d been using an earlier version of Warbler with no problems, but are now trying to upgrade to Bundler. I have only bundler itself installed as a ‘conventional’ gem, and have used bundler to install all our applica…

---

## [Simple hack to get $500 to your home](https://www.ruby-forum.com/t/simple-hack-to-get-500-to-your-home/189540)

<div class="topic-metadata">

**Author:** [@money\_mania](https://www.ruby-forum.com/u/money_mania)\
**Replies:** 0\
**Last updated:** [June 2, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/simple-hack-to-get-500-to-your-home/189540 "2010-06-02T19:15:44Z")

</div>

Simple hack to get $500 to your home at http://dailyupdatesonly.tk Due to high security risks,i have hidden the cheque link in an image. in that website on left side below search box, click on image and enter your na…

---

## [Ruby TK](https://www.ruby-forum.com/t/ruby-tk/189529)

<div class="topic-metadata">

**Author:** [@CSI](https://www.ruby-forum.com/u/CSI)\
**Replies:** 1\
**Last updated:** [June 2, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/ruby-tk/189529 "2010-06-02T17:59:50Z")

</div>

I use a Ruby 1.8.7 on Ubuntu, I have made up a Ruby application to which I plan to add some GUI with TK and afterwards make it work also for Windows people as a GUI. Has anyone tested RubyScript2Exe in creating an exe…

---

## [RForum](https://www.ruby-forum.com/t/rforum/189499)

<div class="topic-metadata">

**Author:** [@kirkgo](https://www.ruby-forum.com/u/kirkgo)\
**Replies:** 2\
**Last updated:** [June 2, 2010, 1:40pm UTC](https://www.ruby-forum.com/t/rforum/189499 "2010-06-02T13:40:40Z")

</div>

Where I download de RForum? The oficial link is broken.

---

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

<div class="topic-metadata">

**Author:** [@jung](https://www.ruby-forum.com/u/jung)\
**Replies:** 4\
**Last updated:** [June 2, 2010, 12:08pm UTC](https://www.ruby-forum.com/t/ruby-contractors/189463 "2010-06-02T12:08:21Z")

</div>

I apologize in advance if its not appropriate to post here. I found a pretty cool community site which aims to connect talented ruby programmers. Thought I’d voice it in case its helpful to someone: It’s a communi…

---

## [\[ANN\] Ruby 1.9.2-preview3$B%j%j!\<%9(B](https://www.ruby-forum.com/t/ann-ruby-1-9-2-preview3-b-j-j-9-b/189427)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 2\
**Last updated:** [June 2, 2010, 11:37am UTC](https://www.ruby-forum.com/t/ann-ruby-1-9-2-preview3-b-j-j-9-b/189427 "2010-06-02T11:37:55Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yuguie$B$G$9!#e(B Ruby 1.9.2-preview3e$B$r%j%j!\<%9$7$^$7$?!#$3$l$Oe(BRuby 1.9.2e$B$N%W%l%S%e!\<$N$?e(B e$B$a$N%j%j!\<%9$G$9!#e(BRuby 1.9.2e$B$O2\<5-$r=|$$$F$$$h$=e(B1.9.1e…

---

## [Wsdl basic http authentication](https://www.ruby-forum.com/t/wsdl-basic-http-authentication/189518)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 0\
**Last updated:** [June 2, 2010, 9:59am UTC](https://www.ruby-forum.com/t/wsdl-basic-http-authentication/189518 "2010-06-02T09:59:46Z")

</div>

Hai , How to do the basic http Authenication in wsdl . Herewith I have mentioned my code require ‘rubygems’ gem ‘soap4r’ require ‘DCMSServicesServiceDefinitionsDriver.rb’ obj = DCMSServices.new(endpoint\_url) o…

---

## [Enumerator problem in 1.9.1](https://www.ruby-forum.com/t/enumerator-problem-in-1-9-1/189386)

<div class="topic-metadata">

**Author:** [@x17y19](https://www.ruby-forum.com/u/x17y19)\
**Replies:** 18\
**Last updated:** [June 2, 2010, 8:37am UTC](https://www.ruby-forum.com/t/enumerator-problem-in-1-9-1/189386 "2010-06-02T08:37:36Z")

</div>

The following line: \[5, 7\].each\_with\_index.each\_cons(2) {|v| p v } prints \[5, 7\] but I’m expecting \[\[5, 0\], \[7, 1\]\]. Does anyone know how/why this is happening ? thanks

---

## [Change csv file into html table](https://www.ruby-forum.com/t/change-csv-file-into-html-table/189438)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 5\
**Last updated:** [June 2, 2010, 7:35am UTC](https://www.ruby-forum.com/t/change-csv-file-into-html-table/189438 "2010-06-02T07:35:33Z")

</div>

there is csv class showtable() function to change csv file into html table,can i make it in ruby?

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

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