# Ruby

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

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

---

## [Confused about tmail gem](https://www.ruby-forum.com/t/confused-about-tmail-gem/166606)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 4\
**Last updated:** [April 29, 2009, 11:53am UTC](https://www.ruby-forum.com/t/confused-about-tmail-gem/166606 "2009-04-29T11:53:34Z")

</div>

Hi, I use a ruby gem that depends on tmail. tmail has native extensions. I want to use the gem with jruby, so I thought I’d replace tmail, as and where. However… Googling around, I notice that jruby has a fix against…

---

## [No such file to load -- hpricot\_scan](https://www.ruby-forum.com/t/no-such-file-to-load-hpricot-scan/166762)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 10:27am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-hpricot-scan/166762 "2009-04-29T10:27:23Z")

</div>

Hi All, I have a problem while using the hpricot gem. i install it in my machine and i unpack it to the vendor/gems folder of my application but it gives me the follwing error. no such file to load – hpricot\_scan Re…

---

## [If error occurs should not copy again from the beginning](https://www.ruby-forum.com/t/if-error-occurs-should-not-copy-again-from-the-beginning/166757)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 9:04am UTC](https://www.ruby-forum.com/t/if-error-occurs-should-not-copy-again-from-the-beginning/166757 "2009-04-29T09:04:02Z")

</div>

Hi… I try to copy folders recursively… my\_dir = Dir.glob( Dir.glob("#{@source}/\*\*/\*") my\_dir.each do |f| File.copy(f,@@dest) end For example @source = e:/test\_dir If that test\_dir has 10 files.if some error occurs…

---

## [I want to automate this text field](https://www.ruby-forum.com/t/i-want-to-automate-this-text-field/166747)

<div class="topic-metadata">

**Author:** [@ashacta](https://www.ruby-forum.com/u/ashacta)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 8:15am UTC](https://www.ruby-forum.com/t/i-want-to-automate-this-text-field/166747 "2009-04-29T08:15:44Z")

</div>

Hi I want to automate this text field. ie.text\_field(:name, “JMSText”).set(‘TEST’). Instead of TEST i want to copy content from text file and paste it in text filed. if i change the text in notepad …it shoudl take t…

---

## [\[ANN\] Dfect 0.1.0](https://www.ruby-forum.com/t/ann-dfect-0-1-0/166750)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 7:22am UTC](https://www.ruby-forum.com/t/ann-dfect-0-1-0/166750 "2009-04-29T07:22:58Z")

</div>

Dfect 0.1.0 Assertion testing library for Ruby http://snk.tuxfamily.org/lib/dfect Dfect is an assertion testing library for Ruby that emphasizes a simple assertion voca…

---

## [Recently on irc](https://www.ruby-forum.com/t/recently-on-irc/166617)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 7:02am UTC](https://www.ruby-forum.com/t/recently-on-irc/166617 "2009-04-29T07:02:23Z")

</div>

I just think this is worthy of record: (22:05:19) headius\_\_ left the room (quit: Remote closed the connection). (22:05:37) slyphon: headius\_: running from the new oracle overlords? (22:05:54) nicksieger: you can’t hid…

---

## [Code Review: RubyScopes2](https://www.ruby-forum.com/t/code-review-rubyscopes2/166745)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 5:31am UTC](https://www.ruby-forum.com/t/code-review-rubyscopes2/166745 "2009-04-29T05:31:00Z")

</div>

tfpt review “/shelveset:RubyScopes2;REDMOND\\tomat” DLR Deletes IDynamicObject and GlobalsDictionary types and Scope.GetKeys method. Adds a default implementation for ScriptCode.Run that creates a new scope and calls…

---

## [Question on Jruby 1.2 and Rails 2.3.2](https://www.ruby-forum.com/t/question-on-jruby-1-2-and-rails-2-3-2/166476)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 11\
**Last updated:** [April 29, 2009, 4:52am UTC](https://www.ruby-forum.com/t/question-on-jruby-1-2-and-rails-2-3-2/166476 "2009-04-29T04:52:25Z")

</div>

I believe I saw arun mention this once but I am using jruby 1.2 adn 2.3.2 with mysql (and latest AR jdbcmysql adapter). When I do a rake db:create:all. I only get the test and production dbs to be created … the deve…

---

## [Dynamically calling methods that require a block](https://www.ruby-forum.com/t/dynamically-calling-methods-that-require-a-block/166733)

<div class="topic-metadata">

**Author:** [@barunio](https://www.ruby-forum.com/u/barunio)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 3:14am UTC](https://www.ruby-forum.com/t/dynamically-calling-methods-that-require-a-block/166733 "2009-04-29T03:14:41Z")

</div>

Is it possible to call methods that require block inputs dynamically without resorting to “eval”? For example, consider: a = \[1,2,3\] a.detect{|x| x \> 2} I want to know if it’s possible to do something like the follo…

---

## [Fantasdic](https://www.ruby-forum.com/t/fantasdic/166736)

<div class="topic-metadata">

**Author:** [@blackie](https://www.ruby-forum.com/u/blackie)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 3:08am UTC](https://www.ruby-forum.com/t/fantasdic/166736 "2009-04-29T03:08:50Z")

</div>

Hello, I’m a student and i’m a newbie. I want to ask if anyone can help me. Is about fantasdic applcation. Actually, i’m doing my assignment about fantasdic. I need to change the title bar because i don’t want use “f…

---

## [jRuby on Rails on Weblogic - best practice sharing](https://www.ruby-forum.com/t/jruby-on-rails-on-weblogic-best-practice-sharing/166721)

<div class="topic-metadata">

**Author:** [@joern\_hartmann](https://www.ruby-forum.com/u/joern_hartmann)\
**Replies:** 2\
**Last updated:** [April 28, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-on-weblogic-best-practice-sharing/166721 "2009-04-28T23:08:53Z")

</div>

Hello, I’m maintaining a Rails application which is hosted on a Bea Weblogic 9.2 application server. The server’s CPU is a Sun UltraSPARC T1. I am experiencing serious performances issues compared to running the appl…

---

## [JRuby and GlassFish Deployments](https://www.ruby-forum.com/t/jruby-and-glassfish-deployments/166720)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/jruby-and-glassfish-deployments/166720 "2009-04-28T22:21:24Z")

</div>

I’m collecting current production deployments, quotes, or any other data that involves JRuby and GlassFish (Rails, Merb, Sinatra, Ramaze, etc.) together for my RailsConf preso next week: http://blogs.sun.com/arungupta…

---

## [RMagick help](https://www.ruby-forum.com/t/rmagick-help/166713)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/rmagick-help/166713 "2009-04-28T20:21:22Z")

</div>

I can run the ImageMagick command (convert /path/to/file/temp.pdf /path/to/file/temp.jpg) and it works fine. I can run script/console and do this - image = Magick::ImageList.new /path/to/file/temp.pdf, and it works fi…

---

## [File I/O from threads](https://www.ruby-forum.com/t/file-i-o-from-threads/166701)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 2\
**Last updated:** [April 28, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/file-i-o-from-threads/166701 "2009-04-28T18:57:22Z")

</div>

Hi, I was writing a quick Relay class and ran into a problem. Objects of this class act between two ports and log every TCP/IP that is sent between those ports - according to a specific protocol (in this simple exampl…

---

## [IronRuby Question](https://www.ruby-forum.com/t/ironruby-question/166685)

<div class="topic-metadata">

**Author:** [@bex3000](https://www.ruby-forum.com/u/bex3000)\
**Replies:** 2\
**Last updated:** [April 28, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/ironruby-question/166685 "2009-04-28T16:28:17Z")

</div>

Hey folks, I’m sure this is just something I’ve missed but I’ve been looking into the Ruby.Net and IronRuby and I just wanted to check that IronRuby is basically a way to compile ruby code into a dll for use with a VB…

---

## [\[Bug #1417\] sleep$B$9$k$HH?1~$,$J$/$J$k(B](https://www.ruby-forum.com/t/bug-1417-sleep-b-9-k-hh-1-j-j-k-b/166666)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/bug-1417-sleep-b-9-k-hh-1-j-j-k-b/166666 "2009-04-28T16:07:33Z")

</div>

Bug #1417: sleepe$B$9$k$HH?1~$,$J$/$J$ke(B http://redmine.ruby-lang.org/issues/show/1417 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.8dev (2009-04-26 revision 23283…

---

## [Internal server error while trying to load active\_record](https://www.ruby-forum.com/t/internal-server-error-while-trying-to-load-active-record/166629)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 3\
**Last updated:** [April 28, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/internal-server-error-while-trying-to-load-active-record/166629 "2009-04-28T16:06:00Z")

</div>

Hi The following is my configuration - OS - OS X 10.4.11 Ruby version - 1.8.6 gem version - 1.3.1 Active record version - 2.3.2 (the old versions still exist on the machine if that matter) mod\_ruby version - 1.3 I…

---

## [Using Scrubyt on bad markup pages](https://www.ruby-forum.com/t/using-scrubyt-on-bad-markup-pages/166650)

<div class="topic-metadata">

**Author:** [@rolinster](https://www.ruby-forum.com/u/rolinster)\
**Replies:** 2\
**Last updated:** [April 28, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/using-scrubyt-on-bad-markup-pages/166650 "2009-04-28T15:48:33Z")

</div>

I am having trouble scrubbing a page that has bad markup. After fetching the page, the Scrubyt::Extractor exits while parsing the document. The Apple Safari web inspector shows numerous errors from the page: is no…

---

## [Array to Hash in 1.8.6 vs 1.8.7](https://www.ruby-forum.com/t/array-to-hash-in-1-8-6-vs-1-8-7/166675)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [April 28, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/array-to-hash-in-1-8-6-vs-1-8-7/166675 "2009-04-28T15:43:58Z")

</div>

I’m damn toast! My dev machine runs a manually compiled 1.8.7 version of Ruby. My server runs a Debian Etch with Ruby 1.8.6 version. From a string: 1:2\_5:6 I want to convert it to a hash: {“1” =\> “2”, “5” =\> “6”} O…

---

## [Toronto RoR Project Night returns May 7th](https://www.ruby-forum.com/t/toronto-ror-project-night-returns-may-7th/166684)

<div class="topic-metadata">

**Author:** [@Corina](https://www.ruby-forum.com/u/Corina)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/toronto-ror-project-night-returns-may-7th/166684 "2009-04-28T15:07:27Z")

</div>

Toronto’s Ruby on Rails Project Night returns May 7th to the Rich Media Institute. Please join us as we look at: The Careerious.com rewrite (now clearfit.com) and show some seriously WTF C# code (and how to fix it) …

---

## [Gui library suggestion based on my needs?](https://www.ruby-forum.com/t/gui-library-suggestion-based-on-my-needs/166576)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 13\
**Last updated:** [April 28, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/gui-library-suggestion-based-on-my-needs/166576 "2009-04-28T14:42:43Z")

</div>

Any recommendation on which ‘gui’ package I should use to build a ruby client application? Here are some of my needs, some of which have bearing on the package I choose: Should run on windows, mac and linux I don’t …

---

## [Reformatting a text file that has some binary in it](https://www.ruby-forum.com/t/reformatting-a-text-file-that-has-some-binary-in-it/165585)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 19\
**Last updated:** [April 28, 2009, 11:59am UTC](https://www.ruby-forum.com/t/reformatting-a-text-file-that-has-some-binary-in-it/165585 "2009-04-28T11:59:05Z")

</div>

I have never worked with binary before and after trying to solve this problem for 3 hours im turning to the community for help i have a text file which has entries comprised of a key written in binary and its values w…

---

## [Cannot parseWikipedia Atom feed](https://www.ruby-forum.com/t/cannot-parsewikipedia-atom-feed/166663)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 11:01am UTC](https://www.ruby-forum.com/t/cannot-parsewikipedia-atom-feed/166663 "2009-04-28T11:01:25Z")

</div>

Hi, I’m using net/http to parse the rss and atom feeds of various sites. So far I was successful in that process except for wikipedia. When I try to access the feed url related to a particular topic, a wikipedia eror …

---

## [Block Style](https://www.ruby-forum.com/t/block-style/166531)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 15\
**Last updated:** [April 28, 2009, 9:59am UTC](https://www.ruby-forum.com/t/block-style/166531 "2009-04-28T09:59:21Z")

</div>

I hate to be the guy to start another { … } vs. do … end thread, but I have some questions I would love to hear opinions on. I use to just use the rule of { … } for one-liners and do … end for the longer stuff. Howev…

---

## [KaraokeSong#to\_s example in book](https://www.ruby-forum.com/t/karaokesong-to-s-example-in-book/166583)

<div class="topic-metadata">

**Author:** [@Clifford\_L](https://www.ruby-forum.com/u/Clifford_L)\
**Replies:** 4\
**Last updated:** [April 28, 2009, 9:58am UTC](https://www.ruby-forum.com/t/karaokesong-to-s-example-in-book/166583 "2009-04-28T09:58:45Z")

</div>

Hi, I’m reading the online eBook of Programming Ruby, it’s an excellent resource for learning Ruby. I am having some trouble understanding the KaraokeSong#to\_s example. Quoting the text: " class KaraokeSong … def …

---

## [News site for ruby developers released](https://www.ruby-forum.com/t/news-site-for-ruby-developers-released/166656)

<div class="topic-metadata">

**Author:** [@logan](https://www.ruby-forum.com/u/logan)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 9:45am UTC](https://www.ruby-forum.com/t/news-site-for-ruby-developers-released/166656 "2009-04-28T09:45:53Z")

</div>

You’re invited to be one of the first users to try out Newsforwhatyoudo.com - now in private beta. The site includes a news group specifically for Ruby and Rails developers - try it out with this ticket, good for the…

---

## [Downloading directories from a website](https://www.ruby-forum.com/t/downloading-directories-from-a-website/166654)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 9:36am UTC](https://www.ruby-forum.com/t/downloading-directories-from-a-website/166654 "2009-04-28T09:36:58Z")

</div>

Hi How can i download all downloadable directories(with structure) from given website.I can download single file using net:http.but i am unable to download directories.is it possible by using net:http? plz help me.

---

## [Sort\_by and directories](https://www.ruby-forum.com/t/sort-by-and-directories/166639)

<div class="topic-metadata">

**Author:** [@dafydd](https://www.ruby-forum.com/u/dafydd)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 5:34am UTC](https://www.ruby-forum.com/t/sort-by-and-directories/166639 "2009-04-28T05:34:18Z")

</div>

On my system I have this small ruby script as a test to arrange files. I’m using “find” and trying to get the files sorted starting with the files the farthest away from the base folder first in the array (so the file…

---

## [How do i check ads/images present on the web page](https://www.ruby-forum.com/t/how-do-i-check-ads-images-present-on-the-web-page/166638)

<div class="topic-metadata">

**Author:** [@yogesh](https://www.ruby-forum.com/u/yogesh)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 4:45am UTC](https://www.ruby-forum.com/t/how-do-i-check-ads-images-present-on-the-web-page/166638 "2009-04-28T04:45:14Z")

</div>

I need to check all the ads/images present on the webpage.They all are coming from different locations,need to verify ,all images are loading fine,no 404/302 error, also need to check the magic no is coming correctly …

---

## [Type mismatch when calling Java method with a class (using .java\_class)](https://www.ruby-forum.com/t/type-mismatch-when-calling-java-method-with-a-class-using-java-class/166153)

<div class="topic-metadata">

**Author:** [@Menno\_Jonkers](https://www.ruby-forum.com/u/Menno_Jonkers)\
**Replies:** 8\
**Last updated:** [April 28, 2009, 4:25am UTC](https://www.ruby-forum.com/t/type-mismatch-when-calling-java-method-with-a-class-using-java-class/166153 "2009-04-28T04:25:56Z")

</div>

Hi, While porting some existing Java code to JRuby I’m running into an issue probably caused by my lack of knowlegde here. If someone could shed some light on this, that would be most helpful. I’ve reduced the proble…

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

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