# Ruby

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

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

---

## ["Scripted GUI Testing with Ruby" book](https://www.ruby-forum.com/t/scripted-gui-testing-with-ruby-book/148050)

<div class="topic-metadata">

**Author:** [@idrysdale](https://www.ruby-forum.com/u/idrysdale)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/scripted-gui-testing-with-ruby-book/148050 "2008-09-08T18:09:44Z")

</div>

Hi, all. Been meaning to post this here, and the one-month milestone seems as good a time as any. The Pragmatic Programmers have recently released my book, “Scripted GUI Testing with Ruby,” which shows by example how …

---

## [Help Using LibCurl](https://www.ruby-forum.com/t/help-using-libcurl/147717)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 8, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/help-using-libcurl/147717 "2008-09-08T18:04:28Z")

</div>

HI, I’m new to ruby and have to use the libcurl library but my code don’t seem to work. @curl = curl\_init() curl\_setopt(@curl, CURLOPT\_RETURNTRANSFER, 1) curl\_setopt(@curl, CURLOPT\_URL, ‘url’); curl\_setopt(@curl, C…

---

## [Ruby Manor: Now with less vapour](https://www.ruby-forum.com/t/ruby-manor-now-with-less-vapour/148049)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/ruby-manor-now-with-less-vapour/148049 "2008-09-08T17:40:57Z")

</div>

About a month or so ago, James A. and I announced Ruby Manor. We’ve not been idle in this time, and there’s now a Google Group: http://groups.google.com/group/ruby-manor/ for people to sign up to if they want to pa…

---

## [Regular expression match and exclude](https://www.ruby-forum.com/t/regular-expression-match-and-exclude/147951)

<div class="topic-metadata">

**Author:** [@azalar](https://www.ruby-forum.com/u/azalar)\
**Replies:** 12\
**Last updated:** [September 8, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/regular-expression-match-and-exclude/147951 "2008-09-08T17:29:45Z")

</div>

I am parsing a web page full of image links that also contain links to the thumbnails for those images. Here is my test data… galleries/image1.jpg galleries/image1thumb.jpg galleries/image2.jpg galleries/image2thum…

---

## [\[ANN\] Mack Framework 0.7.1](https://www.ruby-forum.com/t/ann-mack-framework-0-7-1/148046)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/ann-mack-framework-0-7-1/148046 "2008-09-08T17:17:53Z")

</div>

The distributed web application framework has reached version 0.7.1. There are a lot of great bug fixes, XSS prevention, a new Session Store API, and much more! http://www.mackframework.com/2008/09/08/release-071/ En…

---

## [Can not use AR to save french and japanese](https://www.ruby-forum.com/t/can-not-use-ar-to-save-french-and-japanese/148044)

<div class="topic-metadata">

**Author:** [@feeling3\_4](https://www.ruby-forum.com/u/feeling3_4)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/can-not-use-ar-to-save-french-and-japanese/148044 "2008-09-08T17:09:58Z")

</div>

hi, all i had a strange problem that i can not use ActiveRecord to save french and japanese. i use Tmail and mms2r to parse a mail, and i have a mail model in the db, the mail model has a txt\_body column. After i ha…

---

## [\[Bug #543\](Closed) cgi.rb : obsolete regex "n" option except CGI#pretty](https://www.ruby-forum.com/t/bug-543-closed-cgi-rb-obsolete-regex-n-option-except-cgi-pretty/148039)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/bug-543-closed-cgi-rb-obsolete-regex-n-option-except-cgi-pretty/148039 "2008-09-08T15:42:35Z")

</div>

e$B%A%1%C%He(B #543 e$B$,99?7$5$l$^$7$?!#e(B (by Takeyuki F.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B Applied in changeset r19245. http://redmine.ruby-lang.org/issues/show/543

---

## [\[Bug #541\] cgi.rb : obsolete regex "n" option](https://www.ruby-forum.com/t/bug-541-cgi-rb-obsolete-regex-n-option/147595)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 1\
**Last updated:** [September 8, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/bug-541-cgi-rb-obsolete-regex-n-option/147595 "2008-09-08T15:37:52Z")

</div>

Bug #541: cgi.rb : obsolete regex “n” option http://redmine.ruby-lang.org/issues/show/541 e$B5/I\<\<Te(B: Takeyuki F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal CGI::prettye$B$N@55,I=8=ItJ,$Ke(Bne$B$,;H$o$l$F$$$k$N$…

---

## [Why :include?](https://www.ruby-forum.com/t/why-include/148030)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 2\
**Last updated:** [September 8, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/why-include/148030 "2008-09-08T14:59:48Z")

</div>

Hi, What is the use of :include in finding the results… for eg: c = Student.find(12,:include=\>:department) if anybody knows the solution plz reply

---

## [Problems with Restful resources with the same name](https://www.ruby-forum.com/t/problems-with-restful-resources-with-the-same-name/148032)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/problems-with-restful-resources-with-the-same-name/148032 "2008-09-08T13:56:05Z")

</div>

Hi all, I am trying to setup an application that has a management section and a client section with URLs as follows: http://mysite.com/manage/outlines/1 - Management section with outline #1 http://mysite.com/outlines…

---

## [Ruby tailcall optimizes?](https://www.ruby-forum.com/t/ruby-tailcall-optimizes/147993)

<div class="topic-metadata">

**Author:** [@cnb](https://www.ruby-forum.com/u/cnb)\
**Replies:** 2\
**Last updated:** [September 8, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/ruby-tailcall-optimizes/147993 "2008-09-08T13:54:15Z")

</div>

Hmm this was a nice surprise. it seems Ruby does tailcall- optimization? One up for Ruby on Python. Is there a way to have optional arguments in Ruby? Then I could make it one function instead of wrapping them. irb(m…

---

## [Request: arguments by reference](https://www.ruby-forum.com/t/request-arguments-by-reference/147855)

<div class="topic-metadata">

**Author:** [@pedro-silva](https://www.ruby-forum.com/u/pedro-silva)\
**Replies:** 8\
**Last updated:** [September 8, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/request-arguments-by-reference/147855 "2008-09-08T13:12:53Z")

</div>

Would be possible to include the option to pass arguments by reference instead of by value? def swap(a, b) tmp = a a = b b = a end a = “A” b = “B” swap(a, b) puts a, b # “A”, “B” Because Ruby passes arguments …

---

## [Good shipping library?](https://www.ruby-forum.com/t/good-shipping-library/147996)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [September 8, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/good-shipping-library/147996 "2008-09-08T12:55:41Z")

</div>

I’ve been doing a lot of searches and research. I need a library that can communicate with the major shipping carriers: fedex, ups, usps, etc. The best one I found was active\_shipping (GitHub - Shopify/active\_shipping…

---

## [Hash auto-true ({:a} == {:a =\> true})](https://www.ruby-forum.com/t/hash-auto-true-a-a-true/148020)

<div class="topic-metadata">

**Author:** [@woahdae](https://www.ruby-forum.com/u/woahdae)\
**Replies:** 6\
**Last updated:** [September 8, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/hash-auto-true-a-a-true/148020 "2008-09-08T12:39:23Z")

</div>

I have a unix-inspired desire to pass arguments to a method where some are toggle flags and some are values, aka “bash$ method --flag –config=/etc/method”. I can think of a few ways to do it that are close, but if I h…

---

## [\[Bug #466\] test\_str\_crypt(TestM17NComb) failed](https://www.ruby-forum.com/t/bug-466-test-str-crypt-testm17ncomb-failed/146469)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 7\
**Last updated:** [September 8, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/bug-466-test-str-crypt-testm17ncomb-failed/146469 "2008-09-08T12:31:38Z")

</div>

Bug #466: test\_str\_crypt(TestM17NComb) failed http://redmine.ruby-lang.org/issues/show/466 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal $ ruby-trunk -v ruby 1.9.0 (2008-08-21 revisio…

---

## [Idiomatic?](https://www.ruby-forum.com/t/idiomatic/147994)

<div class="topic-metadata">

**Author:** [@cnb](https://www.ruby-forum.com/u/cnb)\
**Replies:** 2\
**Last updated:** [September 8, 2008, 11:00am UTC](https://www.ruby-forum.com/t/idiomatic/147994 "2008-09-08T11:00:41Z")

</div>

which is more idiomatic? amazing how similar ruby and python are. and what does the guy mean with “pure” here: http://www.linuxjournal.com/article/4834 that it is purely OO and consequent? Would Python be impure in hi…

---

## [Sort date array without using ruby's built-in date class](https://www.ruby-forum.com/t/sort-date-array-without-using-rubys-built-in-date-class/148010)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 3\
**Last updated:** [September 8, 2008, 10:53am UTC](https://www.ruby-forum.com/t/sort-date-array-without-using-rubys-built-in-date-class/148010 "2008-09-08T10:53:15Z")

</div>

Say for instance I have an array of dates in string format dates = \[‘06/12/08’, ‘11/11/06’, ‘01/01/07’\] I want to sort this array in ascending order without using Ruby’s built-in date class. Is there a way of doing th…

---

## [Any way to write it in one line?](https://www.ruby-forum.com/t/any-way-to-write-it-in-one-line/147901)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 16\
**Last updated:** [September 8, 2008, 10:42am UTC](https://www.ruby-forum.com/t/any-way-to-write-it-in-one-line/147901 "2008-09-08T10:42:30Z")

</div>

works = Array.new session\[:cart\_works\].each\_pair {|key, value| works \<\< key if value == user\_id} how to initialize the works array in the bloc ? thanks for your lights erwin

---

## [Newb question](https://www.ruby-forum.com/t/newb-question/148002)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 7\
**Last updated:** [September 8, 2008, 10:01am UTC](https://www.ruby-forum.com/t/newb-question/148002 "2008-09-08T10:01:58Z")

</div>

Why does this p 3.times {|i| puts i} produce 0 1 2 3 ???

---

## [Thread#priority(=) will be obsolete](https://www.ruby-forum.com/t/thread-priority-will-be-obsolete/145634)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 4\
**Last updated:** [September 8, 2008, 9:39am UTC](https://www.ruby-forum.com/t/thread-priority-will-be-obsolete/145634 "2008-09-08T09:39:39Z")

</div>

Hi, We are planning to make Thread#priority(=) method as obsolete method from Ruby 1.9.x. This is due to implimentation/practical (maybe no one use it) reason. Any comments?

---

## [Deriving from framework class with Initialize method](https://www.ruby-forum.com/t/deriving-from-framework-class-with-initialize-method/147970)

<div class="topic-metadata">

**Author:** [@stefan8107](https://www.ruby-forum.com/u/stefan8107)\
**Replies:** 2\
**Last updated:** [September 8, 2008, 8:22am UTC](https://www.ruby-forum.com/t/deriving-from-framework-class-with-initialize-method/147970 "2008-09-08T08:22:51Z")

</div>

Hi guys, I was trying to run the following code: \*class MyObj \< DependencyObject end obj = MyObj.new\* Where DepenencyObject comes from the WPF stack (WindowsBase.dll). However this fails on the MyObj.new line with…

---

## [Assert\_latest now takes "polygamous" arguments](https://www.ruby-forum.com/t/assert-latest-now-takes-polygamous-arguments/147985)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 2:41am UTC](https://www.ruby-forum.com/t/assert-latest-now-takes-polygamous-arguments/147985 "2008-09-08T02:41:10Z")

</div>

Rubies: Those of you who dig ActiveRecord need this: It shows how to write tests like this: t, fz = assert\_latest T2, Foo do T2.create 2.times{ Foo.create } end assert do t.id \> …

---

## [Ruby 1.9 (win32$BHG(B) $B$G$N(B Process.ppid](https://www.ruby-forum.com/t/ruby-1-9-win32-bhg-b-b-g-n-b-process-ppid/147978)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 1:25am UTC](https://www.ruby-forum.com/t/ruby-1-9-win32-bhg-b-b-g-n-b-process-ppid/147978 "2008-09-08T01:25:45Z")

</div>

e$B5WJ\]$G$9!#e(B e$B%=!\<%9%3!\<%I$r8+$?\>e$G$NH=CG$G!"\<B:\]$K$OF0$+$7$F$J$$$N$G$9$,!"e(B win32/win32.c e$B$Ne(B rb\_w32\_getppid() e$B$O=i2s$N8F$S=P$7$N$?F%W%m%;%9e(BID e$B$rLa$9$,!"Fs2sL\\0J9$O\>o$Ke(B 0 e$B$K$J$C$F$^$;$s$…

---

## [Can't activate gem because diff version already activated](https://www.ruby-forum.com/t/cant-activate-gem-because-diff-version-already-activated/142896)

<div class="topic-metadata">

**Author:** [@levander](https://www.ruby-forum.com/u/levander)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/cant-activate-gem-because-diff-version-already-activated/142896 "2008-09-07T22:49:25Z")

</div>

I’ve just done a ‘gem install junebug-wiki’. The 1st step to using junebug is to create a wiki instance. Trying to do that, I get this error: =========================================== levander@judas:~$ junebug te…

---

## [Soap4r with digest authentication](https://www.ruby-forum.com/t/soap4r-with-digest-authentication/137305)

<div class="topic-metadata">

**Author:** [@rtq-ruby](https://www.ruby-forum.com/u/rtq-ruby)\
**Replies:** 8\
**Last updated:** [September 7, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/soap4r-with-digest-authentication/137305 "2008-09-07T21:12:12Z")

</div>

Hello all, I’ve been trying to get digest authentication working for soap calls for two weeks now. All the examples I find seem to be flawed. Here’s the code that I’m using which is right out of the httpclient docs. r…

---

## [I have been looking at this little anomoly ?A =\> 65](https://www.ruby-forum.com/t/i-have-been-looking-at-this-little-anomoly-a-65/147963)

<div class="topic-metadata">

**Author:** [@victorgrey](https://www.ruby-forum.com/u/victorgrey)\
**Replies:** 4\
**Last updated:** [September 7, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/i-have-been-looking-at-this-little-anomoly-a-65/147963 "2008-09-07T19:35:24Z")

</div>

I know that the reverse is 65.chr but I can find no documentation for this (aside from the above line) And I wanted to find out more about it, so am trying things like:\>\> ?A =\> 65 hi = “Hello World” =\> “Hello Worl…

---

## [Watir help in clearing security warnings](https://www.ruby-forum.com/t/watir-help-in-clearing-security-warnings/147961)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/watir-help-in-clearing-security-warnings/147961 "2008-09-07T17:55:46Z")

</div>

my watir script works till it hits this security warning and get stuck. appreciate any help in overcoming this window. $ie2 = Watir::IE.attach(:url, url) # it gets stuck here. $ie2.link(:text ,“Expand All”).click # ne…

---

## [Ruby-GNOME2 0.17.0](https://www.ruby-forum.com/t/ruby-gnome2-0-17-0/147942)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-0-17-0/147942 "2008-09-07T17:49:34Z")

</div>

Hi, The Ruby-GNOME2 project project has been released Ruby-GNOME2 0.17.0: Ruby-GNOME 2 - Browse Files at SourceForge.net Enjoy! == Highlights Support Ruby 1.8.7. Support GLib 2.14 and 2.16. Partially support GTK+ …

---

## [\[Bug #550\] irb$B$GF|K\\8l$rF~NO$G$-$J$$(B](https://www.ruby-forum.com/t/bug-550-irb-b-gf-k-8l-rf-no-g-j-b/147954)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 2\
**Last updated:** [September 7, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/bug-550-irb-b-gf-k-8l-rf-no-g-j-b/147954 "2008-09-07T16:35:21Z")

</div>

Bug #550: irbe$B$GF|K\\8l$rF~NO$G$-$J$$e(B http://redmine.ruby-lang.org/issues/show/550 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext Mac OS Xe$B\>e$Ne(Birbe$B$GF|K\\8lJ8;z$rF~…

---

## [Assemble many images files into one .mpeg or .mov](https://www.ruby-forum.com/t/assemble-many-images-files-into-one-mpeg-or-mov/147917)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 3\
**Last updated:** [September 7, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/assemble-many-images-files-into-one-mpeg-or-mov/147917 "2008-09-07T16:15:27Z")

</div>

I’m looking to use something like: http://gd2.rubyforge.org/ to generate several 100 images, and then run some other ruby program to combine the images into a video file (mpeg or mov or any standard format.) Is ther…

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

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