# Ruby

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

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

---

## [Automating VS](https://www.ruby-forum.com/t/automating-vs/196891)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/automating-vs/196891 "2009-02-05T20:12:44Z")

</div>

Hi A while ago I remeber seeing a screencast where John L. shows how to use ironruby to automate visual studio. I can’t find the screencast anymore but I would be interested to know which API was used. Was that jus…

---

## [Scrubyt and selecting options](https://www.ruby-forum.com/t/scrubyt-and-selecting-options/159560)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/scrubyt-and-selecting-options/159560 "2009-02-05T20:11:33Z")

</div>

Has anyone gotten this to work successfully? When I try to run select\_option I get the following error: mechanize.rb:198:in select\_option': undefined methodclick’ for nil:NilClass (NoMethodError) I’m using Ruby 1.8.…

---

## [Native gem roundup!](https://www.ruby-forum.com/t/native-gem-roundup/159225)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 39\
**Last updated:** [February 5, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/native-gem-roundup/159225 "2009-02-05T19:54:54Z")

</div>

I’m curious what native gems/extensions people are typically using. In general it seems like most native extensions fall into two categories: They are wrappers around a C API/library, as in zlib, rmagick, nokogiri Th…

---

## [Dir.foreach() crash](https://www.ruby-forum.com/t/dir-foreach-crash/159465)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [February 5, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/dir-foreach-crash/159465 "2009-02-05T19:45:36Z")

</div>

I continue to have a crash with a script I’ve written that recurses through a disk calling foreach() as needed on directories. I am getting the following error: D:/BackupScripts/trimMachines.rb:130:in open': Invalid a…

---

## [1.9.1?](https://www.ruby-forum.com/t/1-9-1/159342)

<div class="topic-metadata">

**Author:** [@yuckysocks](https://www.ruby-forum.com/u/yuckysocks)\
**Replies:** 25\
**Last updated:** [February 5, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/1-9-1/159342 "2009-02-05T19:33:52Z")

</div>

Hi there, I’m about 2 weeks into my learning attempt at Ruby (1.8.6 is what I’ve cut my teeth on). Can someone give me a rational assessment of the differences between the two language versions, and which one I shoul…

---

## [Silverlight + Silverline](https://www.ruby-forum.com/t/silverlight-silverline/159351)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 6\
**Last updated:** [February 5, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/silverlight-silverline/159351 "2009-02-05T19:31:29Z")

</div>

Hi With the latest version of ironruby and rails; silverline doesn’t want to work. I haven’t really spent much time on it but a few months ago I did commit to doing a presentation on Rails + Silverline + IronRuby t…

---

## [How To? Set a watch breakpoint on a constant or variable](https://www.ruby-forum.com/t/how-to-set-a-watch-breakpoint-on-a-constant-or-variable/159557)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/how-to-set-a-watch-breakpoint-on-a-constant-or-variable/159557 "2009-02-05T19:12:57Z")

</div>

How does one watch a ruby constant or variable in rdebug so that if the value changes then the program interrupts?

---

## [Custom assertion message for unit tests](https://www.ruby-forum.com/t/custom-assertion-message-for-unit-tests/159483)

<div class="topic-metadata">

**Author:** [@will\_p](https://www.ruby-forum.com/u/will_p)\
**Replies:** 9\
**Last updated:** [February 5, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/custom-assertion-message-for-unit-tests/159483 "2009-02-05T18:35:41Z")

</div>

I’m having trouble trying to figure out how to customize an assertion message when running unit tests. In particular, I want to check the permissions on a file, so I have something like: assert\_equal(0755, File.stat(…

---

## [Connecting to an oracle database](https://www.ruby-forum.com/t/connecting-to-an-oracle-database/159523)

<div class="topic-metadata">

**Author:** [@ruud\_grosmann](https://www.ruby-forum.com/u/ruud_grosmann)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/connecting-to-an-oracle-database/159523 "2009-02-05T16:09:47Z")

</div>

hi group, I have problems connection to an oracle database using dbi. machine: debian lenny, ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) Using several descriptions on internet I have downloaded ruby-oci8-1.0.3.tar a…

---

## [Return actual files only not directories, using Pathname](https://www.ruby-forum.com/t/return-actual-files-only-not-directories-using-pathname/159510)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 5\
**Last updated:** [February 5, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/return-actual-files-only-not-directories-using-pathname/159510 "2009-02-05T16:05:06Z")

</div>

I’m very new to Ruby, but I’m learning pretty quickly …What i’m trying to do is fairly simple… I’d like to use Pathname, to return only actual filenames in the array… For instance , using FileList… You can just do t…

---

## [Array#choice always produce the same sequence](https://www.ruby-forum.com/t/array-choice-always-produce-the-same-sequence/159529)

<div class="topic-metadata">

**Author:** [@crocco](https://www.ruby-forum.com/u/crocco)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/array-choice-always-produce-the-same-sequence/159529 "2009-02-05T14:43:08Z")

</div>

I’ve just stumbled upon a strange behaviour of Array#choice (using ruby 1.8.7- p72). As far I understand, an\_array.choice should be (almost) the same as an\_array\[rand(an\_array.size)\]. Thus, the two following pieces o…

---

## [RDoc::Markup::ToHtmlCrossref dosen't recognize filepath including '-'](https://www.ruby-forum.com/t/rdoc-tohtmlcrossref-dosent-recognize-filepath-including/159515)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 9:12am UTC](https://www.ruby-forum.com/t/rdoc-tohtmlcrossref-dosent-recognize-filepath-including/159515 "2009-02-05T09:12:48Z")

</div>

e$B6a1J$H?=$7$^$9!#e(B trunk e$B$N%=!\<%9$Ge(B make test-all e$B$9$k$He(B test\_handle\_special\_CROSSREF\_no\_underscore e$B$,e(B Failure e$B$Ke(B e$B$J$k$3$H$,$"$j$^$9!#e(B e$B$I$&$d$i%=!\<%9%D%j!\<$rCV$/%G%#%l%/%H%j%Q%9$K…

---

## [A simple command that splits up a string into numbers and letters](https://www.ruby-forum.com/t/a-simple-command-that-splits-up-a-string-into-numbers-and-letters/159504)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 9\
**Last updated:** [February 5, 2009, 8:19am UTC](https://www.ruby-forum.com/t/a-simple-command-that-splits-up-a-string-into-numbers-and-letters/159504 "2009-02-05T08:19:28Z")

</div>

Hey all, i am looking for an easy way to split a string into letters and numbers. so if i had a string ‘34JKBY103’ i could get \[‘34’, ‘JKBY’, ‘103’\] I could write up something, but thought that if there was already s…

---

## [Git push](https://www.ruby-forum.com/t/git-push/159058)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 10\
**Last updated:** [February 5, 2009, 7:44am UTC](https://www.ruby-forum.com/t/git-push/159058 "2009-02-05T07:44:16Z")

</div>

Sorry for missing the past couple of days, but I have finally pushed a new revision to Github. As of this change (1ee05cdd), MERLIN\_ROOT is no longer required. You can now download it, get into a VS Command prompt, an…

---

## [Building 1.9.1 on Debian Lenny - gcc issue](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 3\
**Last updated:** [February 5, 2009, 4:42am UTC](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498 "2009-02-05T04:42:58Z")

</div>

Hello While building ruby 1.9.1 on a Debian Lenny box with gcc4.3 (the default) compiling parse.c might take several minutes on decent hardware. This problem happens on multiple x86 and x86\_64 boxes for me but does …

---

## [Is This Normal?](https://www.ruby-forum.com/t/is-this-normal/159452)

<div class="topic-metadata">

**Author:** [@orlick](https://www.ruby-forum.com/u/orlick)\
**Replies:** 10\
**Last updated:** [February 5, 2009, 2:35am UTC](https://www.ruby-forum.com/t/is-this-normal/159452 "2009-02-05T02:35:57Z")

</div>

When I reply to ruby-talk I get an extra copy of my reply. Is this normal? Thanks, -Alex

---

## [Gem & Classes](https://www.ruby-forum.com/t/gem-classes/159479)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 1:30am UTC](https://www.ruby-forum.com/t/gem-classes/159479 "2009-02-05T01:30:25Z")

</div>

I’m confused with the difference between gems and classes. Are they considered the same thing? I familiar with what a class is, but where do gems fall into place. Do you use them sort of like an include in C\\C++?. Can…

---

## [Writing to DBF](https://www.ruby-forum.com/t/writing-to-dbf/145122)

<div class="topic-metadata">

**Author:** [@gustin](https://www.ruby-forum.com/u/gustin)\
**Replies:** 2\
**Last updated:** [February 5, 2009, 1:25am UTC](https://www.ruby-forum.com/t/writing-to-dbf/145122 "2009-02-05T01:25:43Z")

</div>

Hey Gang, I am attempting to write to a DBF, Visual FoxPro specifically, in support of a legacy application. We are using the dbf gem with great success in reading, but need to write back to the dbf. Anyone have exp…

---

## [Ruby 1.9.1-p0 on NetBSD](https://www.ruby-forum.com/t/ruby-1-9-1-p0-on-netbsd/159390)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p0-on-netbsd/159390 "2009-02-04T23:48:33Z")

</div>

e$B$3$s$K$A$O!#e(B Ruby 1.9.1-p0e$B$re(BNetBSDe$B\>e$G$N%3%s%Q%$%ke(B & test e$B$r$7$F$$^$7$?!#e(B (e$B;~4VE\*$J@)Ls$b$"$je(B)e$B8D!9$N%P%0Js9p$K$^$GMn$H$79~$a$J$$$N$G!"\<h$j4:$($:!"e(B e$B7k2L$@$1=q$$$F$$^$9!#e(B o pk…

---

## [Http://ironruby.info](https://www.ruby-forum.com/t/http-ironruby-info/159405)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 3\
**Last updated:** [February 4, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/http-ironruby-info/159405 "2009-02-04T22:48:40Z")

</div>

Check out http://ironruby.info, a new site for tracking IronRuby perf, RubySpec results, and other random nuggets of info. Read more about it here: Jimmy Schementi \> ironruby.info ~Jimmy

---

## [Segmentation Fault while using WEBrick](https://www.ruby-forum.com/t/segmentation-fault-while-using-webrick/159476)

<div class="topic-metadata">

**Author:** [@Jayce\_M](https://www.ruby-forum.com/u/Jayce_M)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/segmentation-fault-while-using-webrick/159476 "2009-02-04T22:15:44Z")

</div>

=\> Booting WEBrick… \[2009-02-04 12:41:38\] INFO WEBrick 1.3.1 =\> Rails 2.2.2 application started on http://0.0.0.0:3000 =\> Ctrl-C to shutdown server; call with --help for options \[2009-02-04 12:41:38\] INFO ruby 1.8.…

---

## [Read this see if we could help each outher out :)](https://www.ruby-forum.com/t/read-this-see-if-we-could-help-each-outher-out/159472)

<div class="topic-metadata">

**Author:** [@marluigi](https://www.ruby-forum.com/u/marluigi)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/read-this-see-if-we-could-help-each-outher-out/159472 "2009-02-04T21:14:47Z")

</div>

first you should check out the link that is in this post, i have a great feeling that this could make our lives easier promise its good :slight\_smile: check me out people Registrant WHOIS contact information verificati…

---

## [\[ANN\] (testing/bdd) Speccify, the lightweight option](https://www.ruby-forum.com/t/ann-testing-bdd-speccify-the-lightweight-option/159473)

<div class="topic-metadata">

**Author:** [@mhennemeyer](https://www.ruby-forum.com/u/mhennemeyer)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/ann-testing-bdd-speccify-the-lightweight-option/159473 "2009-02-04T20:55:31Z")

</div>

Hi! I’m proud to release Speccify, the lightweight option. Please TRY IT OUT! Website: http://speccify.rubyforge.org Get it: $ sudo gem install speccify Use it: require ‘rubygems’ require ‘speccify’ GO L…

---

## [How can run a rake task via "ruby ...." (i.e. so I can then use debug features of my IDE)](https://www.ruby-forum.com/t/how-can-run-a-rake-task-via-ruby-i-e-so-i-can-then-use-debug-features-of-my-ide/159467)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/how-can-run-a-rake-task-via-ruby-i-e-so-i-can-then-use-debug-features-of-my-ide/159467 "2009-02-04T20:28:04Z")

</div>

Hi, Know how can run a rake task via “ruby …” (i.e. so I can then use debug features of my IDE)? For example the following doesn’t work: Macintosh-2:equity greg$ ruby lib/tasks/populate\_dummy\_data.rake lib/tasks/pop…

---

## [\[Bug #1104\] TZ and Time.now](https://www.ruby-forum.com/t/bug-1104-tz-and-time-now/159400)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/bug-1104-tz-and-time-now/159400 "2009-02-04T20:17:29Z")

</div>

Bug #1104: TZ and Time.now http://redmine.ruby-lang.org/issues/show/1104 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-02-03 trunk 22015) \[i686-linux\] ENV\[“TZ”…

---

## [RProperties 0.0.2 released](https://www.ruby-forum.com/t/rproperties-0-0-2-released/159456)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/rproperties-0-0-2-released/159456 "2009-02-04T18:58:04Z")

</div>

RProperties is a ruby implementation of java properties api. Added: The index/values are now added to instance\_eval too, making possible to use rproperties like: require ‘r\_properties’ a = RProperties.new(‘my.pro…

---

## [Stupid mkmf](https://www.ruby-forum.com/t/stupid-mkmf/159376)

<div class="topic-metadata">

**Author:** [@orlick](https://www.ruby-forum.com/u/orlick)\
**Replies:** 4\
**Last updated:** [February 4, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/stupid-mkmf/159376 "2009-02-04T17:59:14Z")

</div>

The mkmf gets the list of C source files to be used for the shared library from the current directory only. Is this the only stupid way to list C source files for ruby extensions?

---

## [Minor 1.8 \<-\> 1.9 performance comparison gotcha](https://www.ruby-forum.com/t/minor-1-8-1-9-performance-comparison-gotcha/159187)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 9\
**Last updated:** [February 4, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/minor-1-8-1-9-performance-comparison-gotcha/159187 "2009-02-04T17:58:04Z")

</div>

Excited and inspired by the Ruby 1.9.1 release, I wrote a blog post the other day talking about how much faster Prawn’s examples and tests run on Ruby 1.9 out of the box. Of course, this isn’t scientific benchmarking…

---

## [How to get a destination IP from a UDP packet?](https://www.ruby-forum.com/t/how-to-get-a-destination-ip-from-a-udp-packet/159447)

<div class="topic-metadata">

**Author:** [@gavinyap](https://www.ruby-forum.com/u/gavinyap)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/how-to-get-a-destination-ip-from-a-udp-packet/159447 "2009-02-04T17:45:14Z")

</div>

Hi there, I wanna to get the destination ip of a UDP packet, when it arrives at the server. I need this so that the server could inspect the packet whether it is a broadcast or unicast(to the server) packet and do di…

---

## [Ruby 1.9 + hpricot + merb](https://www.ruby-forum.com/t/ruby-1-9-hpricot-merb/140279)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/ruby-1-9-hpricot-merb/140279 "2009-02-04T16:55:56Z")

</div>

Has anybody had success getting the following to work with 1.9? hpricot merb ? esp. on Mac OS X Thanks! -R

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

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