# Ruby

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

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

---

## [Creating a search](https://www.ruby-forum.com/t/creating-a-search/131338)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 5\
**Last updated:** [March 9, 2008, 4:11am UTC](https://www.ruby-forum.com/t/creating-a-search/131338 "2008-03-09T04:11:44Z")

</div>

Hi there, I just spent a night on the following “problem” and cant’ figure it out on my own: I need to have a search function and thought I could do it like this: the search page has a form which takes the search cr…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/131380)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 1:25am UTC](https://www.ruby-forum.com/t/unsubscribe/131380 "2008-03-09T01:25:19Z")

</div>

unsubscribe

---

## [Fattr-1.0.2](https://www.ruby-forum.com/t/fattr-1-0-2/131327)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 5\
**Last updated:** [March 9, 2008, 12:19am UTC](https://www.ruby-forum.com/t/fattr-1-0-2/131327 "2008-03-09T00:19:01Z")

</div>

NAME fattr.rb INSTALL gem install fattrs URIS http://codeforpeople.com/lib/ruby http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.rubyforge.org/svn/ SYNOPSIS fattr.rb is a “fatter attr” for ruby. …

---

## [Double colon vs module block](https://www.ruby-forum.com/t/double-colon-vs-module-block/131186)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 8\
**Last updated:** [March 8, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/double-colon-vs-module-block/131186 "2008-03-08T21:34:29Z")

</div>

Hi! I am new to ruby. I have a question concerning namespaces. Is there a difference between using the double colon operator or a module block? Example: module Library class Book end end vs. class Library::Book …

---

## [ANN: Sequel 1.3 Released](https://www.ruby-forum.com/t/ann-sequel-1-3-released/131359)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [March 8, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/ann-sequel-1-3-released/131359 "2008-03-08T20:16:35Z")

</div>

Sequel version 1.3 has just been released. Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a simple and expressive API for constructing database queries …

---

## [Apple's "Discover Rails in Leopard" doesn't work for me. Any help welcome!](https://www.ruby-forum.com/t/apples-discover-rails-in-leopard-doesnt-work-for-me-any-help-welcome/131348)

<div class="topic-metadata">

**Author:** [@Thierry\_Jeanneret](https://www.ruby-forum.com/u/Thierry_Jeanneret)\
**Replies:** 2\
**Last updated:** [March 8, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/apples-discover-rails-in-leopard-doesnt-work-for-me-any-help-welcome/131348 "2008-03-08T18:40:43Z")

</div>

Hello There, As a newbie, I have followed strictly the steps described in :http://developer.apple.com/tools/developonrailsleopard.html. Everything went OK until the “Linking Models Together” part. I have created the …

---

## [Dynamic class thingies? (Okay, not sure how to title this one)](https://www.ruby-forum.com/t/dynamic-class-thingies-okay-not-sure-how-to-title-this-one/131275)

<div class="topic-metadata">

**Author:** [@coigner](https://www.ruby-forum.com/u/coigner)\
**Replies:** 8\
**Last updated:** [March 8, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/dynamic-class-thingies-okay-not-sure-how-to-title-this-one/131275 "2008-03-08T18:27:05Z")

</div>

Asking for ideas here but let me preface… There’s an application with a sqlite3 database that I’m building Ruby classes and methods for accessing. ActiveRecord was close but no cigar because I have no control over the…

---

## [TCPSocket Download Rate](https://www.ruby-forum.com/t/tcpsocket-download-rate/131350)

<div class="topic-metadata">

**Author:** [@moger777](https://www.ruby-forum.com/u/moger777)\
**Replies:** 1\
**Last updated:** [March 8, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/tcpsocket-download-rate/131350 "2008-03-08T18:00:30Z")

</div>

Hey Everyone, Just wondering if there is a way of monitoring the download rate and the download progress using TCPSocket. From what I’ve seen once something is downloading it pretty much keeps on downloading and I’m n…

---

## [TMail 1.2.2 - Ruby 1.9 Compatible & Documentation](https://www.ruby-forum.com/t/tmail-1-2-2-ruby-1-9-compatible-documentation/131342)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [March 8, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/tmail-1-2-2-ruby-1-9-compatible-documentation/131342 "2008-03-08T15:01:39Z")

</div>

TMail - Mail Handling Library for Ruby TMail is the Ruby Mail handler used in the Ruby on Rails and Nitro web frame works as well as many others (now including, the Ruby T. mail gateway!). TMail is now a gem. You can…

---

## [Do-end-blocks](https://www.ruby-forum.com/t/do-end-blocks/131322)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 5\
**Last updated:** [March 8, 2008, 8:34am UTC](https://www.ruby-forum.com/t/do-end-blocks/131322 "2008-03-08T08:34:33Z")

</div>

Hi! Why is this code invalid? respond\_to do |format| format.html format.xml { render :xml =\> @books } format.js { render :update { |p| p.replace\_html ‘books\_table’, :partial =\> ‘books’ } } # \<— end …and this c…

---

## [?ISO-8859-1?Q? from IMAP server](https://www.ruby-forum.com/t/iso-8859-1-q-from-imap-server/131176)

<div class="topic-metadata">

**Author:** [@Maria\_Almar](https://www.ruby-forum.com/u/Maria_Almar)\
**Replies:** 1\
**Last updated:** [March 8, 2008, 6:54am UTC](https://www.ruby-forum.com/t/iso-8859-1-q-from-imap-server/131176 "2008-03-08T06:54:23Z")

</div>

Hi all, I have an encoding problem when a want to examine my mails from an IMAP server. Strings with “special characters” are returned with the “?ISO-8859-1?Q?” prefix and special characters are messed up (“Ã©” beco…

---

## [Newbie-question: Type Conversion](https://www.ruby-forum.com/t/newbie-question-type-conversion/131333)

<div class="topic-metadata">

**Author:** [@M\_P](https://www.ruby-forum.com/u/M_P)\
**Replies:** 1\
**Last updated:** [March 8, 2008, 6:40am UTC](https://www.ruby-forum.com/t/newbie-question-type-conversion/131333 "2008-03-08T06:40:55Z")

</div>

I am using the Hpricot(which is awesome!) ruby module to do screen scraping. When I retrieve a list of search results, it returns a custom data type “Hpricot::Elements.” I am trying to treat this returned list as an …

---

## [Bug in regex engine ? Must be](https://www.ruby-forum.com/t/bug-in-regex-engine-must-be/130842)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 3\
**Last updated:** [March 8, 2008, 1:42am UTC](https://www.ruby-forum.com/t/bug-in-regex-engine-must-be/130842 "2008-03-08T01:42:05Z")

</div>

Hi, I’m using Ruby 1.8.6, and I just discovered something rather interesting, here is a test: require ‘test/unit’ class TestRegexBug \< Test::Unit::TestCase def test\_bug hours = "pon-Äet" assert(hours =~ /\[Ä\]et/i…

---

## [Instance\_eval and class\_eval - names got mixed up?](https://www.ruby-forum.com/t/instance-eval-and-class-eval-names-got-mixed-up/131305)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 7\
**Last updated:** [March 8, 2008, 1:19am UTC](https://www.ruby-forum.com/t/instance-eval-and-class-eval-names-got-mixed-up/131305 "2008-03-08T01:19:30Z")

</div>

Going through the Ruby P.ming Language text Chapter 8 Reflection and MetaProgramming. Section 8.2.2 on page 270. The following paragraph has me puzzled: “Note the subtle but crucial difference between instance\_eval a…

---

## [Hello, world? (#158)](https://www.ruby-forum.com/t/hello-world-158/131274)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 3\
**Last updated:** [March 8, 2008, 12:11am UTC](https://www.ruby-forum.com/t/hello-world-158/131274 "2008-03-08T00:11:06Z")

</div>

A simple problem deserves a simple answer… except when you explicitly ask for something other than the simple answer. Which I did ask. And I got answers… lots of them, with a wide variety of techniques, though a few …

---

## [ActiveSupport Enumerable#sum should not use #size](https://www.ruby-forum.com/t/activesupport-enumerable-sum-should-not-use-size/131299)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 3\
**Last updated:** [March 8, 2008, 12:08am UTC](https://www.ruby-forum.com/t/activesupport-enumerable-sum-should-not-use-size/131299 "2008-03-08T00:08:45Z")

</div>

ActiveSupport defines this for Enumerable#sum: module Enumerable def sum(identity = 0, &block) return identity unless size \> 0 if block\_given? map(&block).sum else inject { |sum, element| sum + element }…

---

## [Ruby on WinCE / cegcc](https://www.ruby-forum.com/t/ruby-on-wince-cegcc/129776)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 11\
**Last updated:** [March 7, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/ruby-on-wince-cegcc/129776 "2008-03-07T22:48:45Z")

</div>

I’m trying to get Ruby up and running on an ARM-based Windows CE device (Pocket PC 2003 and Windows Mobile 5 pda devices). The pre-built binaries on ruby-mswince don’t work very well for anything other than the simple…

---

## [Monkeypatching is Destroying Ruby](https://www.ruby-forum.com/t/monkeypatching-is-destroying-ruby/129992)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 117\
**Last updated:** [March 7, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/monkeypatching-is-destroying-ruby/129992 "2008-03-07T20:08:25Z")

</div>

Hi folks, I wrote a blog post with the intentionally provocative title above, which can be found here: While the title is a bit of deliberate hyperbole, I am genuinely troubled about the popularization of monkey pa…

---

## [Ruby equivalence for php include("file.php");](https://www.ruby-forum.com/t/ruby-equivalence-for-php-include-file-php/131292)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 4\
**Last updated:** [March 7, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/ruby-equivalence-for-php-include-file-php/131292 "2008-03-07T19:34:51Z")

</div>

Hi there I’m doing some RoR exercices to begin a website and I want to include a file which contains the header template. I have coded using php before and I know it’s done using include(“file.php”) and I don’t know …

---

## [11.divmod(3.5)](https://www.ruby-forum.com/t/11-divmod-3-5/131297)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/11-divmod-3-5/131297 "2008-03-07T19:21:50Z")

</div>

e$B0J2\<$N$h$&$K!"e(B11.divmod(3.5) e$B$N7k2L$Ne(B div e$BItJ,$,IbF0\>.?tE@?te(B e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p 11.divmod(3.5)’ ruby 1.9.0 (2008-03-07 revision 15728) \[i686-linux\] \[3.0, 0.5\] e$B%I%-%e%a%s%H$K$O@0…

---

## [Net::HTTP.check\_response very slow?](https://www.ruby-forum.com/t/net-http-check-response-very-slow/131287)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/net-http-check-response-very-slow/131287 "2008-03-07T19:07:53Z")

</div>

I am working on something that uses Net::HTTP to obtain the final url from a redirected url and, well, it seems really slow. I’m using ruby 1.8.6-p111 and have verified this behavior on OS X, Ubuntu Linux, and Windows…

---

## [TMail problem](https://www.ruby-forum.com/t/tmail-problem/131279)

<div class="topic-metadata">

**Author:** [@Simon\_Jones](https://www.ruby-forum.com/u/Simon_Jones)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/tmail-problem/131279 "2008-03-07T19:06:25Z")

</div>

Hi all, I’ve written a Ruby script on Windows that makes use of the mysql and tmail gems. After a bit of hacking around (I’m still very new to Ruby) it seems to be doing what I want, so moved on to stage 2 of what I…

---

## [MWRC -- just 8 more days to register](https://www.ruby-forum.com/t/mwrc-just-8-more-days-to-register/131293)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/mwrc-just-8-more-days-to-register/131293 "2008-03-07T18:53:28Z")

</div>

If you’ve been sitting on the fence waiting to register, don’t wait any longer. There’s just over one week left to get your seat, and Engine Y. has just sweetened the deal for attendees … Engine Y. will be hosting a …

---

## [Using Sketchup Ruby API outside of Sketchup...say in Linux?](https://www.ruby-forum.com/t/using-sketchup-ruby-api-outside-of-sketchup-say-in-linux/131212)

<div class="topic-metadata">

**Author:** [@Zeeshan\_Zia](https://www.ruby-forum.com/u/Zeeshan_Zia)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/using-sketchup-ruby-api-outside-of-sketchup-say-in-linux/131212 "2008-03-07T18:40:29Z")

</div>

Hi, I need to write a program that can obtain 3D mesh information from Google Sketchup (.skp) files, while in Linux. Google Sketchup provides a Sketchup Ruby API that can be used to create plugins, that usually run …

---

## [Iterating over a nil value from CSV element](https://www.ruby-forum.com/t/iterating-over-a-nil-value-from-csv-element/131179)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/iterating-over-a-nil-value-from-csv-element/131179 "2008-03-07T17:57:56Z")

</div>

when I’m parsing a csv file, and don’t want to use those elements that return a nil value, what is the easiest way to do so? I’ve tried: if record == nil next else where record is the current element from the file.

---

## [Fattr-1.0.2](https://www.ruby-forum.com/t/fattr-1-0-2/131285)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/fattr-1-0-2/131285 "2008-03-07T16:54:16Z")

</div>

NAME fattr.rb INSTALL gem install fattrs URIS http://codeforpeople.com/lib/ruby http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.rubyforge.org/svn/ SYNOPSIS fattr.rb is a “fatter attr” for ruby. …

---

## [Meta Programming Question](https://www.ruby-forum.com/t/meta-programming-question/131021)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 7\
**Last updated:** [March 7, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/meta-programming-question/131021 "2008-03-07T16:34:08Z")

</div>

Hello! Consider this case: myHash = {:a\_line\_of\_code =\> “pre\_count = Posts.count”, :another\_line =\> %q~message = get\_formatted\_message(#{pre\_count})~} If I have a hash like this which contains code snippets as strin…

---

## [The value in ensure block is not returned](https://www.ruby-forum.com/t/the-value-in-ensure-block-is-not-returned/131166)

<div class="topic-metadata">

**Author:** [@oliver-peng](https://www.ruby-forum.com/u/oliver-peng)\
**Replies:** 5\
**Last updated:** [March 7, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/the-value-in-ensure-block-is-not-returned/131166 "2008-03-07T16:07:55Z")

</div>

Here is the sample code: irb(main):001:0\> def test irb(main):002:1\> begin irb(main):003:2\* a = 1 irb(main):004:2\> b = 2 irb(main):005:2\> b irb(main):006:2\> ensure irb(main):007:2\* a irb(main):008:2\> end irb(main…

---

## [JRuby Debugger For Visual Studio](https://www.ruby-forum.com/t/jruby-debugger-for-visual-studio/131268)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/jruby-debugger-for-visual-studio/131268 "2008-03-07T14:59:53Z")

</div>

We are going to be releasing a JRuby version of our fast Ruby debugger for Visual Studio at the end of the month. It will have a full range of debugging features: breakpoints, tracepoints, step into/out/over, call-sta…

---

## [Single Sign On solution?](https://www.ruby-forum.com/t/single-sign-on-solution/131264)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/single-sign-on-solution/131264 "2008-03-07T14:35:45Z")

</div>

Hi All, I wanna do single sign on for my three application and the main application is ROR and other application in .NET. All three application using same LDAP server for user authentication. Problem is when i will s…

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

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