# Ruby

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

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

---

## [Connecting to MS SQL Server 2000](https://www.ruby-forum.com/t/connecting-to-ms-sql-server-2000/170149)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 4\
**Last updated:** [June 13, 2009, 3:08am UTC](https://www.ruby-forum.com/t/connecting-to-ms-sql-server-2000/170149 "2009-06-13T03:08:30Z")

</div>

I need to be able to querry the database on a Microsoft SQL Server 2000 from my Ruby script. My only experience has been to connect to a MySQL database and I’m hoping that someone from this august forum might be able …

---

## [Bug in FileUtils.ln\_s?](https://www.ruby-forum.com/t/bug-in-fileutils-ln-s/170155)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 1\
**Last updated:** [June 13, 2009, 12:12am UTC](https://www.ruby-forum.com/t/bug-in-fileutils-ln-s/170155 "2009-06-13T00:12:07Z")

</div>

FileUtils.ln\_s is supposed to do this: ln\_s(old, new, options = {}) Creates a symbolic link new which points to old. If new already exists and it is a directory, creates a symbolic link +new/old+. If new alread…

---

## [Registration and CFP Now Open for Ruby Hoedown 2009](https://www.ruby-forum.com/t/registration-and-cfp-now-open-for-ruby-hoedown-2009/170146)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/registration-and-cfp-now-open-for-ruby-hoedown-2009/170146 "2009-06-12T21:24:54Z")

</div>

Hello all, I just opened registration and the CFP for the Ruby Hoedown 2009. In previous years we’ve hosted great speakers like Bruce Tate, Chad Fowler, Marcel Molina, Jr., Jim W., and Joe O’Brien. This year we’re …

---

## [Remove double backslash in string "c:\\\\test"](https://www.ruby-forum.com/t/remove-double-backslash-in-string-c-test/170139)

<div class="topic-metadata">

**Author:** [@ptriller](https://www.ruby-forum.com/u/ptriller)\
**Replies:** 7\
**Last updated:** [June 12, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/remove-double-backslash-in-string-c-test/170139 "2009-06-12T21:19:19Z")

</div>

Hi, after lots of trying and searching, I still cant figure out how to remove the second backslash in a string: “c:\\test” I need it with one backslash for a comparison in my db. Can anyone do it? thanks! Niels

---

## [Good books on TDD](https://www.ruby-forum.com/t/good-books-on-tdd/170127)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 6\
**Last updated:** [June 12, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/good-books-on-tdd/170127 "2009-06-12T21:10:49Z")

</div>

Generally, I really love reading books. I love reading good books even more. It gives me this pleasant feeling of learning something new while using my time optimally. Therefore I spend quite some time finding the goo…

---

## [Rails, WEBrick, refresh issue](https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116)

<div class="topic-metadata">

**Author:** [@Janos\_S](https://www.ruby-forum.com/u/Janos_S)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116 "2009-06-12T21:09:04Z")

</div>

This list may not be the perfect choice to ask this question, but I have difficulties posting to Rails talk yet, and my issue might not be Rails related, so can you please take a look? I am a newbie to rails, and I’m …

---

## [Calling super in virtual method implementation](https://www.ruby-forum.com/t/calling-super-in-virtual-method-implementation/170144)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/calling-super-in-virtual-method-implementation/170144 "2009-06-12T20:21:56Z")

</div>

Hi, I’m trying to implement a CLR virtual method in IronRuby and call super within it (so the default implementation will be executed as well). I then get this error: mscorlib:0:in \`get\_MethodHandle’: The requested o…

---

## [engine.ExecuteFile gives errors](https://www.ruby-forum.com/t/engine-executefile-gives-errors/169962)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 5\
**Last updated:** [June 12, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/engine-executefile-gives-errors/169962 "2009-06-12T20:14:56Z")

</div>

I am using the following code to execute a Ruby file from C# but it gives me the error: var runtime = IronRuby.Ruby.CreateRuntime(); var engine = runtime.GetEngine(“rb”); engine.ExecuteFile("../../HelloWorld.…

---

## [Code Review: FixNonPublicNested](https://www.ruby-forum.com/t/code-review-fixnonpublicnested/170081)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/code-review-fixnonpublicnested/170081 "2009-06-12T20:11:30Z")

</div>

tfpt review “/shelveset:FixNonPublicNested;REDMOND\\tomat” Comment : Fixes bug http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1506: -X:PrivateBinding does not enable referring to classes that have intern…

---

## [ANN: ConfigToolkit 2.3.0 Released](https://www.ruby-forum.com/t/ann-configtoolkit-2-3-0-released/170134)

<div class="topic-metadata">

**Author:** [@tonys](https://www.ruby-forum.com/u/tonys)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/ann-configtoolkit-2-3-0-released/170134 "2009-06-12T18:55:36Z")

</div>

Version 2.3.0 of the ConfigToolkit has been released. The ConfigToolkit is a Ruby Gem that allows configuration files to be parsed and used within programs easily and robustly. It allows programmers to specify the d…

---

## [BitTorrent Idea, thoughts?](https://www.ruby-forum.com/t/bittorrent-idea-thoughts/170066)

<div class="topic-metadata">

**Author:** [@jphastings](https://www.ruby-forum.com/u/jphastings)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/bittorrent-idea-thoughts/170066 "2009-06-12T18:42:04Z")

</div>

(Bear with me, there’s a reason this is on ruby-forum) Bittorrent downloads can be a pain when there are no seeders at all. I propose a special client, run in tandem with any bittorrent client (there are some requirem…

---

## [How to fire IronRuby Method from C#](https://www.ruby-forum.com/t/how-to-fire-ironruby-method-from-c/169882)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 14\
**Last updated:** [June 12, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/how-to-fire-ironruby-method-from-c/169882 "2009-06-12T18:33:01Z")

</div>

Hi, I am returning an IronRuby object to C#. It is returned as a RubyClass object. I can debug and see that it also has greet() method attached to it but I am having difficulty in calling the greet() method from C#. …

---

## [How to get contents of word file page by page](https://www.ruby-forum.com/t/how-to-get-contents-of-word-file-page-by-page/155487)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 9\
**Last updated:** [June 12, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/how-to-get-contents-of-word-file-page-by-page/155487 "2009-06-12T16:53:59Z")

</div>

Hi, I have a 3 paged document, I want to read contents of each page. How cn i do that. TIA, Talib H.

---

## [Saurabh purnaye wants to chat](https://www.ruby-forum.com/t/saurabh-purnaye-wants-to-chat/170124)

<div class="topic-metadata">

**Author:** [@saurabh\_purnaye](https://www.ruby-forum.com/u/saurabh_purnaye)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/saurabh-purnaye-wants-to-chat/170124 "2009-06-12T16:51:39Z")

</div>

saurabh purnaye wants to stay in better touch using some of Google’s coolest new products. If you already have Gmail or Google Talk, visit: You’ll need to click this link to be able to chat with saurabh purnaye. T…

---

## [Parsing word document](https://www.ruby-forum.com/t/parsing-word-document/170114)

<div class="topic-metadata">

**Author:** [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/parsing-word-document/170114 "2009-06-12T16:32:16Z")

</div>

Hi friends Can anyone there pls suggest me that whether getopt long or optionparser can be used to parse word document to upload the data from word doc to d/b. Thanks in advance

---

## [Idiomatic way to detect first/last iteration?](https://www.ruby-forum.com/t/idiomatic-way-to-detect-first-last-iteration/170052)

<div class="topic-metadata">

**Author:** [@zettabyte](https://www.ruby-forum.com/u/zettabyte)\
**Replies:** 19\
**Last updated:** [June 12, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/idiomatic-way-to-detect-first-last-iteration/170052 "2009-06-12T16:31:05Z")

</div>

Hi there, is there any recognized ruby idiomatic way for detecting when you’re on the first and/or last iteration over a collection? Or, if not, anyone know of any tricky ways? Specifically, I’m trying to avoid using …

---

## [Ruby-Watit](https://www.ruby-forum.com/t/ruby-watit/170017)

<div class="topic-metadata">

**Author:** [@uthpala2002](https://www.ruby-forum.com/u/uthpala2002)\
**Replies:** 7\
**Last updated:** [June 12, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/ruby-watit/170017 "2009-06-12T16:19:22Z")

</div>

Hi, I am using Watir to automate our regression test suite. I have following question. In watir I canot expand widgets.Could you please explan me the way to expand the widgets using watir tool. Please refer the scre…

---

## [How to set $\_ in a method?](https://www.ruby-forum.com/t/how-to-set-in-a-method/170101)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/how-to-set-in-a-method/170101 "2009-06-12T15:55:45Z")

</div>

Hi all, I like to set caller’s $\_ variable in a method, but it did’t work for me. Consider this: def foo puts "$\_ = #{$.inspect} enter foo" $ = ‘def’ puts “$\_ = #{$\_.inspect} exit foo” end $\_ = ‘abc’ puts “$\_ =…

---

## [Marshal data too short by Marshal.load(Marshal.dump(Marshal.load(Marshal.dump(""))))](https://www.ruby-forum.com/t/marshal-data-too-short-by-marshal-load-marshal-dump-marshal-load-marshal-dump/170104)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 2:17pm UTC](https://www.ruby-forum.com/t/marshal-data-too-short-by-marshal-load-marshal-dump-marshal-load-marshal-dump/170104 "2009-06-12T14:17:11Z")

</div>

e$B0J2\<$N$h$&$K!“e(B”" e$B$re(B 2e$B2se(B marshal e$B$9$k$He(B ArgumentError e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘Marshal.load(Marshal.dump(Marshal.load(Marshal.dump(""))))’ ruby 1.9.2dev (2009-06-12 trunk 23669) \[i686-l…

---

## [Serial Port Control with Ruby](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105)

<div class="topic-metadata">

**Author:** [@super141](https://www.ruby-forum.com/u/super141)\
**Replies:** 5\
**Last updated:** [June 12, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105 "2009-06-12T13:40:14Z")

</div>

Hi All, I am facing problem with serial port acees in windows-xp system c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in gem\_original\_re quire': no such file to load -- ../Win32Serial (LoadError) from c…

---

## [Naming suggestion required](https://www.ruby-forum.com/t/naming-suggestion-required/170097)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/naming-suggestion-required/170097 "2009-06-12T12:12:10Z")

</div>

Hello, I am writing a program that will fetch me lyrics from any one of a possible number of sites. For this I have the following setup: class AbstractLyricFooBarSomething(this is the name suggestion I require) def…

---

## [Sockets Communication on Server to active process](https://www.ruby-forum.com/t/sockets-communication-on-server-to-active-process/170045)

<div class="topic-metadata">

**Author:** [@Mistress\_Janna\_Bros](https://www.ruby-forum.com/u/Mistress_Janna_Bros)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 11:31am UTC](https://www.ruby-forum.com/t/sockets-communication-on-server-to-active-process/170045 "2009-06-12T11:31:32Z")

</div>

I have a (java-based) server running on the same machine as JRuby. So the problem is not simply one of calling a class from Jruby. I need to have JRuby communicate with the server, in as rapid a manner as possible. I…

---

## [About 'dup'](https://www.ruby-forum.com/t/about-dup/170100)

<div class="topic-metadata">

**Author:** [@kyoichi886](https://www.ruby-forum.com/u/kyoichi886)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 10:25am UTC](https://www.ruby-forum.com/t/about-dup/170100 "2009-06-12T10:25:29Z")

</div>

Hello, mainarray=Hash.new(0) subarray=Hash.new(0) thirdarray={ ‘a’ =\> ‘0’, ‘b’ =\> ‘0’, ‘c’ =\> ‘0’, } subarray\[‘first’\]=thirdarray.dup subarray\[‘second’\]=thirdarray.dup mainarray\[‘x’\]=subarray.dup mainarray\[‘y’…

---

## [Creating a .Net Array in IR](https://www.ruby-forum.com/t/creating-a-net-array-in-ir/170099)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 9:56am UTC](https://www.ruby-forum.com/t/creating-a-net-array-in-ir/170099 "2009-06-12T09:56:33Z")

</div>

Hi, I’d like to create a .Net array of a certain type inside IronRuby. It’s needed, for example, for the overloads method. For instance, try to retrieve the String.Trim(Char\[\]) method overload from IronRuby… how do y…

---

## [Ruby-talk best practices](https://www.ruby-forum.com/t/ruby-talk-best-practices/169988)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [June 12, 2009, 8:35am UTC](https://www.ruby-forum.com/t/ruby-talk-best-practices/169988 "2009-06-12T08:35:39Z")

</div>

A bit of self-promotion, but this is a discussion worth having for this list. I’ve posted my ideas on ruby-talk best practices over on the Ruby Best Practices blog Comments wanted. http://blog.rubybestpractices.com/…

---

## [Firewatir question](https://www.ruby-forum.com/t/firewatir-question/170072)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 4:06am UTC](https://www.ruby-forum.com/t/firewatir-question/170072 "2009-06-12T04:06:12Z")

</div>

Dear all, I am trying to automate some javascript website using Firewatir. I use the following code : require ‘rubygems’ require ‘firewatir’ include FireWatir test\_site=“Englische Verbkonjugation: Zukunft, Perfekt,…

---

## [Code Review: DoKwdFix](https://www.ruby-forum.com/t/code-review-dokwdfix/170080)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 3:18am UTC](https://www.ruby-forum.com/t/code-review-dokwdfix/170080 "2009-06-12T03:18:10Z")

</div>

tfpt review “/shelveset:DoKwdFix;REDMOND\\tomat” Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1502: alias\_method fails for :do. Tomas

---

## [Rails-2.3.2/warbler-0.9.13](https://www.ruby-forum.com/t/rails-2-3-2-warbler-0-9-13/170048)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 2:55am UTC](https://www.ruby-forum.com/t/rails-2-3-2-warbler-0-9-13/170048 "2009-06-12T02:55:18Z")

</div>

We’re attempting to upgrade our apps from Jruby-1.2.0/Rails-2.1.0 to Jruby-1.3.0/Rails-2.3.2 with multithreading on. We use Warbler and deploy into Tomcat-6(BTW initial tests showed significant reduction in memory an…

---

## [Ruby 1.8.6-pl369 released](https://www.ruby-forum.com/t/ruby-1-8-6-pl369-released/169912)

<div class="topic-metadata">

**Author:** [@kirkhoward](https://www.ruby-forum.com/u/kirkhoward)\
**Replies:** 11\
**Last updated:** [June 12, 2009, 2:24am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-pl369-released/169912 "2009-06-12T02:24:18Z")

</div>

We have released Ruby 1.8.6-pl369. This is primarily a security release. A flaw was found with BigDecimal that could be exploited to cause the interpreter to segfault because it mishandled certain large input values…

---

## [Rendering html on pdf](https://www.ruby-forum.com/t/rendering-html-on-pdf/170070)

<div class="topic-metadata">

**Author:** [@twittwit](https://www.ruby-forum.com/u/twittwit)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 1:34am UTC](https://www.ruby-forum.com/t/rendering-html-on-pdf/170070 "2009-06-12T01:34:37Z")

</div>

Hi all, i want to render some html text into pdf using ruby’s pdf writer. however, the pdf.text cannot deliver that. does anybody has a solution for that? thanks in advance!

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

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