# Ruby

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

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

---

## [Libxsl-Ruby 0.3.6](https://www.ruby-forum.com/t/libxsl-ruby-0-3-6/55869)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 5:51pm UTC](https://www.ruby-forum.com/t/libxsl-ruby-0-3-6/55869 "2006-03-27T17:51:38Z")

</div>

Gems: gem install libxsl-ruby Download: http://rubyforge.org/frs/?group\_id=495 Docs: http://libxsl.rubyforge.org/ Brief description: Libxsl-Ruby provides libxslt bindings for Ruby. libxslt is a very fast XSLT engine…

---

## [Duck typing bunches of strings](https://www.ruby-forum.com/t/duck-typing-bunches-of-strings/56008)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 8\
**Last updated:** [March 27, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/duck-typing-bunches-of-strings/56008 "2006-03-27T17:44:36Z")

</div>

In my quest to master the fine art of duck typing / overloading, I’ve run into this probem: How can I identify a collection? The problem is: String mixes in Enumerable, although it ain’t a collection. My method want…

---

## [Help with tkHTML (specifically, require 'tkextlib/tkHTML' fa](https://www.ruby-forum.com/t/help-with-tkhtml-specifically-require-tkextlib-tkhtml-fa/87177)

<div class="topic-metadata">

**Author:** [@randy\_k](https://www.ruby-forum.com/u/randy_k)\
**Replies:** 11\
**Last updated:** [March 27, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/help-with-tkhtml-specifically-require-tkextlib-tkhtml-fa/87177 "2006-03-27T17:38:49Z")

</div>

(Ruby 1.8.4 on Mandriva2006) I need some help with tkHTML. The current problem is that, if I try to follow this example (from http://groups.google.com/group/comp.lang.ruby/msg/667a7e153dabd20f ): require ‘tk’ requ…

---

## [ANN: Watir WebRecorder for Ruby](https://www.ruby-forum.com/t/ann-watir-webrecorder-for-ruby/53665)

<div class="topic-metadata">

**Author:** [@Marcus\_Tettmar](https://www.ruby-forum.com/u/Marcus_Tettmar)\
**Replies:** 7\
**Last updated:** [March 27, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/ann-watir-webrecorder-for-ruby/53665 "2006-03-27T17:37:37Z")

</div>

Hi, We have released a free Watir version of our WebRecorder product that creates Ruby Watir code. WebRecorder is an IE based tabbed browser which records activity to create Ruby/Watir scripts for automating/testing…

---

## [Basic YAML help - collection of objects with attributes](https://www.ruby-forum.com/t/basic-yaml-help-collection-of-objects-with-attributes/86897)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 3\
**Last updated:** [March 27, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/basic-yaml-help-collection-of-objects-with-attributes/86897 "2006-03-27T17:06:29Z")

</div>

Hi everyone, I’m trying to output a YAML file that will list users and some of their LDAP attributes. For instance (non-YAML): uid: seanhussey dn: uid=seanhussey,dc=company,dc=com anotherattr: 39392:12341 The last…

---

## [Re: win32/taskscheduler : Segmentation fault error](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/56045)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/56045 "2006-03-27T16:42:59Z")

</div>

include Win32 for more information. Taskscheduler version : 0.0.3 David Hi David, I’m not sure what’s happening. I’ll try to take a look at it this week. Note that win32-taskscheduler is one of the packages I in…

---

## [Variables in REXML](https://www.ruby-forum.com/t/variables-in-rexml/56033)

<div class="topic-metadata">

**Author:** [@54Sandgroper](https://www.ruby-forum.com/u/54Sandgroper)\
**Replies:** 3\
**Last updated:** [March 27, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/variables-in-rexml/56033 "2006-03-27T15:59:08Z")

</div>

Real nuby question. This works fine… irb\> puts root.elements\[‘foo/bar\[3\]’\].text three I can’t work out how to do this… irb\> i = 3 irb\> puts root.elements\[‘foo/bar\[i\]’\].text I keep getting error message NoMethodEr…

---

## [Update\_attributes not saving data](https://www.ruby-forum.com/t/update-attributes-not-saving-data/87367)

<div class="topic-metadata">

**Author:** [@Carl\_Brown](https://www.ruby-forum.com/u/Carl_Brown)\
**Replies:** 3\
**Last updated:** [March 27, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/update-attributes-not-saving-data/87367 "2006-03-27T15:53:58Z")

</div>

The run logs all look good and the data seems to be pre-set but the SQL generated has none of the changed data… This 'doesn’t work: id = session\[:customer\_id\] @customer = Customer.find( id ) @customer.updates\_attri…

---

## [Regexp strip html](https://www.ruby-forum.com/t/regexp-strip-html/87283)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 27, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/regexp-strip-html/87283 "2006-03-27T15:29:06Z")

</div>

i have a regexp able to strip html : /\<\[^\>\]\*\>/ however, between \<script and all the "text is preserved, tjen i’ve tried : def stripHTML self.gsub(/\<\\S\[^\>\<\]\*\>/, ‘’) self.gsub(/\\A.\*\<body \[^\>\]\*\>(.\*)\<\\/body\>\\s\*\\Z/, '\\1…

---

## [New release of Rockit?](https://www.ruby-forum.com/t/new-release-of-rockit/87228)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/new-release-of-rockit/87228 "2006-03-27T15:13:47Z")

</div>

According to this blog entry: there’s a new version of Rockit out, but I don’t see anything about it on Rubyforge or RAA. Phil

---

## [%x and mswin32: missing output (from binary character)](https://www.ruby-forum.com/t/x-and-mswin32-missing-output-from-binary-character/56036)

<div class="topic-metadata">

**Author:** [@Jerome\_Zago](https://www.ruby-forum.com/u/Jerome_Zago)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/x-and-mswin32-missing-output-from-binary-character/56036 "2006-03-27T14:19:59Z")

</div>

$ cat write.rb puts “ab\\032cd” $ cat execute.rb print %x{ruby write.rb} $ ruby execute.rb ab \[I expected “ab&#8594;cd”\] $ ruby --version # I could reproduce with: ruby 1.8.4 (2005-12-24) \[i386-mswin32\] ruby 1.…

---

## [Informix driver for Ruby](https://www.ruby-forum.com/t/informix-driver-for-ruby/75649)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 2\
**Last updated:** [March 27, 2006, 12:09pm UTC](https://www.ruby-forum.com/t/informix-driver-for-ruby/75649 "2006-03-27T12:09:46Z")

</div>

I’m writing a Ruby extension for accessing an Informix database server. It isn’t finished yet, but is already usable. It can run any query, prepare statements, create cursors and supports some data types. More inform…

---

## [Shift\_jis encoding issue?](https://www.ruby-forum.com/t/shift-jis-encoding-issue/56015)

<div class="topic-metadata">

**Author:** [@Kev\_J](https://www.ruby-forum.com/u/Kev_J)\
**Replies:** 1\
**Last updated:** [March 27, 2006, 11:49am UTC](https://www.ruby-forum.com/t/shift-jis-encoding-issue/56015 "2006-03-27T11:49:37Z")

</div>

Not sure what’s happening here: I have a yml file with the following address\_1: ‘e$BOB2N;38)OB2N;3;Te(B’ I’m loading this into a structure (@test\_data) and then accessing it to insert the values into text\_fields in i…

---

## [Regexp and stack overflow](https://www.ruby-forum.com/t/regexp-and-stack-overflow/87538)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 9:54am UTC](https://www.ruby-forum.com/t/regexp-and-stack-overflow/87538 "2006-03-27T09:54:21Z")

</div>

i’ve a regexp : SCRIPT\_RE=Regexp.new(’\<script\[^\>\]\>((.|\\n)(?!/script))’, Regexp::EXTENDED, ‘N’) which is supposed to strip out everything being inside : it works well for some html file but crash over other with the …

---

## [Compile in static library with mkmf](https://www.ruby-forum.com/t/compile-in-static-library-with-mkmf/87452)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 6:29am UTC](https://www.ruby-forum.com/t/compile-in-static-library-with-mkmf/87452 "2006-03-27T06:29:59Z")

</div>

I have the following directory structure. ~/pyastman/ruby/ #ruby build dir ~/pyastman/ #code and library to wrap The library is libast\_man.a, which I want to link into my ruby extensi…

---

## [Ruby and RoR Book Roundup](https://www.ruby-forum.com/t/ruby-and-ror-book-roundup/55779)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 6:18am UTC](https://www.ruby-forum.com/t/ruby-and-ror-book-roundup/55779 "2006-03-27T06:18:59Z")

</div>

Hello, I’m a big bookworm, so I decided to round up all the upcoming Ruby books in the market in one big blog post. At my count, there are sixteen books to be released (in print) for the upcoming year, with some ava…

---

## [Downloading ActiveTCL](https://www.ruby-forum.com/t/downloading-activetcl/55431)

<div class="topic-metadata">

**Author:** [@randy\_k](https://www.ruby-forum.com/u/randy_k)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 4:59am UTC](https://www.ruby-forum.com/t/downloading-activetcl/55431 "2006-03-27T04:59:37Z")

</div>

I’m trying (I’ve tried) to download ActiveTCL to use with Ruby. (IIUC, it either includes the KtHTML widget or I need ActiveTCL to make the widget work.) Anyway, I’ve tried with both Konqueror and mozilla-firefox. …

---

## [RB + RMagick = cd Crash](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988)

<div class="topic-metadata">

**Author:** [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Replies:** 7\
**Last updated:** [March 27, 2006, 3:22am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988 "2006-03-27T03:22:16Z")

</div>

Hi, I had to reinstall RMagick on my windows box. I am using cygwin and installed ImageMagick 6.2.6 from binary and then rmagick 1.10.1 from the gem install. Then I run irb \> require ‘RMagick’ and boom no errors noth…

---

## [Re: Which Rails book is good?](https://www.ruby-forum.com/t/re-which-rails-book-is-good/87410)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 2:37am UTC](https://www.ruby-forum.com/t/re-which-rails-book-is-good/87410 "2006-03-27T02:37:39Z")

</div>

Hi, 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 and po…

---

## [Which Rails book is good?](https://www.ruby-forum.com/t/which-rails-book-is-good/87282)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 27, 2006, 2:34am UTC](https://www.ruby-forum.com/t/which-rails-book-is-good/87282 "2006-03-27T02:34:00Z")

</div>

Any suggestions on which book for Rails is better (I have no prior experience in Rails, though I’ve done lots of web development in Perl/Ruby and MySQL): Ruby on Rails: Up and Running: Rough Cuts Version from O’Reill…

---

## [Brazilian Portuguese Ruby Book](https://www.ruby-forum.com/t/brazilian-portuguese-ruby-book/87093)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 8\
**Last updated:** [March 27, 2006, 2:21am UTC](https://www.ruby-forum.com/t/brazilian-portuguese-ruby-book/87093 "2006-03-27T02:21:00Z")

</div>

Hi there! I released a Brazilian Portuguese Ruby book, hope that it helps spreading the language. :slight\_smile: Here is the publisher’s book URL: http://www.brasport.com.br/index.php?Escolha=8&Livro=L00187 It’s my …

---

## [Object methods](https://www.ruby-forum.com/t/object-methods/87091)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 13\
**Last updated:** [March 27, 2006, 1:27am UTC](https://www.ruby-forum.com/t/object-methods/87091 "2006-03-27T01:27:48Z")

</div>

Hello there. :slight\_smile: Ok, I know I can do this to add a method (and a class) to an object: irb(main):001:0\> s = “Testing!” =\> “Testing!” irb(main):002:0\> class \<\<s irb(main):003:1\> def says irb(main):004:…

---

## [Win32/taskscheduler : Segmentation fault error](https://www.ruby-forum.com/t/win32-taskscheduler-segmentation-fault-error/87370)

<div class="topic-metadata">

**Author:** [@yeman13](https://www.ruby-forum.com/u/yeman13)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 12:19am UTC](https://www.ruby-forum.com/t/win32-taskscheduler-segmentation-fault-error/87370 "2006-03-27T00:19:38Z")

</div>

I’m trying to make something like this: require ‘win32/taskscheduler’ include Win32 puts xcopy "D:\\\\ATest A" "D:\\\\ATest B" /c /d /e /i /h /l /r /y I get the following error : \[BUG\] Segmentation fault ruby 1.8.2 (200…

---

## [Ruby-esque approaches to adding a line at the beginning of a](https://www.ruby-forum.com/t/ruby-esque-approaches-to-adding-a-line-at-the-beginning-of-a/87368)

<div class="topic-metadata">

**Author:** [@randy\_k](https://www.ruby-forum.com/u/randy_k)\
**Replies:** 3\
**Last updated:** [March 27, 2006, 12:09am UTC](https://www.ruby-forum.com/t/ruby-esque-approaches-to-adding-a-line-at-the-beginning-of-a/87368 "2006-03-27T00:09:06Z")

</div>

On our local lug mail list a discussion came up about using Ruby (as opposed to Perl) for an application that involved inserting a new line at the front of an existing file. (As a newbie), I proposed an approach lik…

---

## [Whats the rail?](https://www.ruby-forum.com/t/whats-the-rail/87325)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 3\
**Last updated:** [March 26, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/whats-the-rail/87325 "2006-03-26T23:06:09Z")

</div>

I am an extreme beginer to ruby on rails, but not to PHP, Java … etc and other OO-like languages. So I have a good understanding of the principles, just new to Ruby. I have two simple questions here: 1.) I get tha…

---

## [Check for expiry in Shareware applications?](https://www.ruby-forum.com/t/check-for-expiry-in-shareware-applications/87286)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 26, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/check-for-expiry-in-shareware-applications/87286 "2006-03-26T23:05:37Z")

</div>

Dear all, sometimes software that is not released as open source comes as shareware or demo, which has limited time functionality. How can this be achieved in Ruby in some way that it cannot be trivially circumven…

---

## [Re: Check for expiry in Shareware applications?](https://www.ruby-forum.com/t/re-check-for-expiry-in-shareware-applications/87324)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 26, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/re-check-for-expiry-in-shareware-applications/87324 "2006-03-26T22:25:12Z")

</div>

Hey Manveru, well thanks for your nice thoughts! I was thinking about Erik V.'s rubyscript2exe programs when I wrote about non-open source software … I like what you wrote about komodo licenses. Maybe one can use so…

---

## [Web site development methodology](https://www.ruby-forum.com/t/web-site-development-methodology/87230)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 26, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/web-site-development-methodology/87230 "2006-03-26T22:17:13Z")

</div>

I’m starting a new web site project to support a few thousand concurrent users and am searching for a development methodology that will help me work with another firm which will be doing the graphic design on the site…

---

## [Verifying keyword arguments](https://www.ruby-forum.com/t/verifying-keyword-arguments/55839)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 7\
**Last updated:** [March 26, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/verifying-keyword-arguments/55839 "2006-03-26T21:29:35Z")

</div>

Hello all, I’m now writing my first real Ruby module, and on the second function I already run into a pattern that seems to be very common. I like using keyword arguments for methods, as follows: def method(args) … …

---

## [Wsdl parsing fails: Unknown attr {}mixed. (save me from doi](https://www.ruby-forum.com/t/wsdl-parsing-fails-unknown-attr-mixed-save-me-from-doi/55984)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/wsdl-parsing-fails-unknown-attr-mixed-save-me-from-doi/55984 "2006-03-26T21:14:35Z")

</div>

I’m using SOAP::WSDLDriverFactory.new(WSDL\_URL).createDriver to retrieve a WSDL and (hopefully) use the particular methods defined there, but when the Ruby script tries to read the WSDL returned from the initial GET G…

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

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