# Ruby

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

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

---

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

<div class="topic-metadata">

**Author:** [@mikePietsch](https://www.ruby-forum.com/u/mikePietsch)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/unsubscribe/192483 "2010-09-09T16:35:16Z")

</div>

ï»¿unsubscribe

---

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

<div class="topic-metadata">

**Author:** [@Carlos\_Zaltzman](https://www.ruby-forum.com/u/Carlos_Zaltzman)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/unsubscribe/194723 "2010-09-09T16:01:17Z")

</div>

unsubscribe

---

## [.gcd method in ruby 1.8.7](https://www.ruby-forum.com/t/gcd-method-in-ruby-1-8-7/194669)

<div class="topic-metadata">

**Author:** [@hazal](https://www.ruby-forum.com/u/hazal)\
**Replies:** 8\
**Last updated:** [September 9, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/gcd-method-in-ruby-1-8-7/194669 "2010-09-09T15:09:10Z")

</div>

in my code i use .gcd method to find greatest common divisor of two int. like i= 12.gcd 44 puts i but it says “not defined method”

---

## [How to do authorization in pop up using net/http or open-ur](https://www.ruby-forum.com/t/how-to-do-authorization-in-pop-up-using-net-http-or-open-ur/194713)

<div class="topic-metadata">

**Author:** [@pshah](https://www.ruby-forum.com/u/pshah)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/how-to-do-authorization-in-pop-up-using-net-http-or-open-ur/194713 "2010-09-09T12:50:05Z")

</div>

Hi, I fetch source from one site but in that site it asks for username and password in popup when site loads. so i use following code but it do not work http = Net::HTTP.new(“http://google.com”, 443) http.start do…

---

## [Regex breaks when string contains binary data](https://www.ruby-forum.com/t/regex-breaks-when-string-contains-binary-data/194638)

<div class="topic-metadata">

**Author:** [@aishafenton](https://www.ruby-forum.com/u/aishafenton)\
**Replies:** 7\
**Last updated:** [September 9, 2010, 11:32am UTC](https://www.ruby-forum.com/t/regex-breaks-when-string-contains-binary-data/194638 "2010-09-09T11:32:20Z")

</div>

Hi, I can’t see why the following Regex isn’t working as expected. Maybe a bug in ruby? puts “345HI”.match(/HI|BYE/).inspect HI puts “\\345HI”.match(/HI|BYE/).inspect nil What I expected was the second regex to f…

---

## [Accessor methods and property syntax in .NET](https://www.ruby-forum.com/t/accessor-methods-and-property-syntax-in-net/194569)

<div class="topic-metadata">

**Author:** [@Davy\_B](https://www.ruby-forum.com/u/Davy_B)\
**Replies:** 7\
**Last updated:** [September 9, 2010, 11:05am UTC](https://www.ruby-forum.com/t/accessor-methods-and-property-syntax-in-net/194569 "2010-09-09T11:05:36Z")

</div>

Hi all, IronRuby has a nice trick where attributes defined by attr\_reader, attr\_accessor and attr\_writer are usable as properties from C#… i was just wondering: is it possible to use the same trick in our own ruby co…

---

## [Ruby on rails will paginate plugin and search](https://www.ruby-forum.com/t/ruby-on-rails-will-paginate-plugin-and-search/194678)

<div class="topic-metadata">

**Author:** [@mrak](https://www.ruby-forum.com/u/mrak)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 9:40am UTC](https://www.ruby-forum.com/t/ruby-on-rails-will-paginate-plugin-and-search/194678 "2010-09-09T09:40:20Z")

</div>

I am Using will\_paginate plugin in a call like : @homes = Home.paginate(:all, :conditions =\> conditions… How can I have few additional values calculated in my sql search, like minimum and maximum price, out of all @…

---

## [How do I request a HTTPS page?](https://www.ruby-forum.com/t/how-do-i-request-a-https-page/194543)

<div class="topic-metadata">

**Author:** [@shortnose](https://www.ruby-forum.com/u/shortnose)\
**Replies:** 14\
**Last updated:** [September 9, 2010, 9:29am UTC](https://www.ruby-forum.com/t/how-do-i-request-a-https-page/194543 "2010-09-09T09:29:54Z")

</div>

I would like to access a https page from irb “Sign in | Etsy” I have been unable to find an example to do this that works. Is there a good resource on how to do this with Ruby Net::HTTP ? Does anyone what the general…

---

## [Putsã®ä¸å…·åˆ](https://www.ruby-forum.com/t/putsa-a-a-a/194696)

<div class="topic-metadata">

**Author:** [@MoonWolf](https://www.ruby-forum.com/u/MoonWolf)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 9:21am UTC](https://www.ruby-forum.com/t/putsa-a-a-a/194696 "2010-09-09T09:21:58Z")

</div>

putsã§æœ€å¾Œã®æ–‡å­—ã§ã¯ãªãæœ€å¾Œã®ãƒã‚¤ãƒˆãŒ’\\n’ã‹ãƒã‚§ãƒƒã‚¯ã—ã¦ã„ã‚‹ãŸã‚ã€ä¸€éƒ¨ã® ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã§ä¸å…·åˆãŒã§ã¾ã™ã€‚ test.txtã®(9)ã®å¾Œã®æ”¹è¡ŒãŒå‡ºåŠ›ã•ã‚Œã¾ã›ã‚“ã€‚ put…

---

## [Small improvements ideas?](https://www.ruby-forum.com/t/small-improvements-ideas/194643)

<div class="topic-metadata">

**Author:** [@christophe1](https://www.ruby-forum.com/u/christophe1)\
**Replies:** 6\
**Last updated:** [September 9, 2010, 8:15am UTC](https://www.ruby-forum.com/t/small-improvements-ideas/194643 "2010-09-09T08:15:49Z")

</div>

Hello, I would like to know how to shorten these two lines doit() if my\_string && my\_string.downcase == ‘hello’ doit() if one\_var && (my\_string =~ /this\_regexp/) == nil Case 1) is a way to check for my\_string beeing n…

---

## [Different in single star(\*) and double stars(\*\*)?](https://www.ruby-forum.com/t/different-in-single-star-and-double-stars/194690)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 5:34am UTC](https://www.ruby-forum.com/t/different-in-single-star-and-double-stars/194690 "2010-09-09T05:34:28Z")

</div>

Load any custom rakefile extensions deprecated\_paths = Dir\["#{RAILS\_ROOT}/vendor/plugins//tasks/\*\*/.rake"\].sort the code in rails. and what’s the different \* and \*\*?

---

## [Suggestion: \*not\* use CamelCase module names for classnames](https://www.ruby-forum.com/t/suggestion-not-use-camelcase-module-names-for-classnames/194687)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 3:54am UTC](https://www.ruby-forum.com/t/suggestion-not-use-camelcase-module-names-for-classnames/194687 "2010-09-09T03:54:29Z")

</div>

Situation: Currently we have: import org.familysearch.digitalarchive.clientdata.Child; Child =\> Java::OrgFamilysearchDigitalarchiveClientdata::Child Which to me is hard-ish to read (can you read that easily?) S…

---

## [Require 'java'](https://www.ruby-forum.com/t/require-java/194686)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 3:49am UTC](https://www.ruby-forum.com/t/require-java/194686 "2010-09-09T03:49:32Z")

</div>

I noticed that one can do either include Java or require ‘java’ is one preferable to the other? Also is there a way on the command line, when you start jruby, to specify a classpath? Thanks. -r

---

## [Irb in cygwin](https://www.ruby-forum.com/t/irb-in-cygwin/194679)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 3:00am UTC](https://www.ruby-forum.com/t/irb-in-cygwin/194679 "2010-09-09T03:00:53Z")

</div>

I’m trying to use ruby in Cygwin (my own Ruby installation of 1.9.2, not the version that comes with Cygwin). However, entering ‘irb’/‘ruby’/‘gem’ or whatever doesn’t work off the bat, and I get an c:\\Ruby192\\bin\\rub…

---

## [\[Ruby 1.9-Bug#3490\] test\_pack\_utf8 failure on mswin64](https://www.ruby-forum.com/t/ruby-1-9-bug-3490-test-pack-utf8-failure-on-mswin64/194684)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 2:37am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3490-test-pack-utf8-failure-on-mswin64/194684 "2010-09-09T02:37:28Z")

</div>

e$B%A%1%C%He(B #3490 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$BM%@hEYe(B Lowe$B$+$ie(BNormale$B$KJQ99e(B Target version 1.9.2e$B$+$ie(B1.9.3e$B$KJQ99e(B e$BK:$l5n$i$l$F$$$k5$$,$9$k$N$G!"0lEYM%@hEY$r\>e$2$^$9e(B http…

---

## [\[bug:trunk\] undef load and backtrace](https://www.ruby-forum.com/t/bug-trunk-undef-load-and-backtrace/189904)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 2:37am UTC](https://www.ruby-forum.com/t/bug-trunk-undef-load-and-backtrace/189904 "2010-09-09T02:37:28Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % cat t.rb class C def initialize @a = @b = @c = @d = nil end end GC.stress = true module Kernel undef load end C.new raise % ./ruby -ve ‘load “t.rb”’ ruby 1.9.3…

---

## [Code Review: BasicObject](https://www.ruby-forum.com/t/code-review-basicobject/194682)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 2:16am UTC](https://www.ruby-forum.com/t/code-review-basicobject/194682 "2010-09-09T02:16:24Z")

</div>

tfpt review “/shelveset:BasicObject;REDMOND\\tomat” Comment : Implements BasicObject. BasicObject is injected into Ruby inheritance hierarchy as a superclass of Object. Ruby Object class still corresponds to System:…

---

## [Problem with Hash of Arrays](https://www.ruby-forum.com/t/problem-with-hash-of-arrays/122480)

<div class="topic-metadata">

**Author:** [@purplefishies](https://www.ruby-forum.com/u/purplefishies)\
**Replies:** 14\
**Last updated:** [September 9, 2010, 1:48am UTC](https://www.ruby-forum.com/t/problem-with-hash-of-arrays/122480 "2010-09-09T01:48:53Z")

</div>

I am new to Ruby , but I consider this feature to be a bug. What is happening is that i am creating a new Hash of Arrays. The following code works fine a = Hash.new(Array.new()) a\[:first\] += \[“this”\] a\[:first\] += \[…

---

## [Automatic Diff -q Between Two Directories](https://www.ruby-forum.com/t/automatic-diff-q-between-two-directories/194665)

<div class="topic-metadata">

**Author:** [@ric](https://www.ruby-forum.com/u/ric)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 1:07am UTC](https://www.ruby-forum.com/t/automatic-diff-q-between-two-directories/194665 "2010-09-09T01:07:56Z")

</div>

Greetings: I’ve been toying with ruby off/on in years. Now I’ve come across a practical application that ruby may be of use to me. Scenario: Two directories with many files in parallel: differences is content, nam…

---

## [Embedding several ruby interpreter instances in C?](https://www.ruby-forum.com/t/embedding-several-ruby-interpreter-instances-in-c/194658)

<div class="topic-metadata">

**Author:** [@Eric\_MSP\_Veith](https://www.ruby-forum.com/u/Eric_MSP_Veith)\
**Replies:** 5\
**Last updated:** [September 8, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/embedding-several-ruby-interpreter-instances-in-c/194658 "2010-09-08T23:23:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, the subject says it all: I know how to generally embed Ruby into a C program. However, since ruby\_init() & co just return void, I guess there is no way to h…

---

## [Portable method of launching another Ruby interpreter](https://www.ruby-forum.com/t/portable-method-of-launching-another-ruby-interpreter/194664)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 5\
**Last updated:** [September 8, 2010, 11:08pm UTC](https://www.ruby-forum.com/t/portable-method-of-launching-another-ruby-interpreter/194664 "2010-09-08T23:08:32Z")

</div>

I’m working on a project that requires a “clean”, newly launched Ruby interpreter to perform a little magic. I’m looking for a portable way to determine the path to the Ruby interpreter being used by the current envi…

---

## [Reading from a PDF](https://www.ruby-forum.com/t/reading-from-a-pdf/180379)

<div class="topic-metadata">

**Author:** [@paragadosm](https://www.ruby-forum.com/u/paragadosm)\
**Replies:** 4\
**Last updated:** [September 8, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/reading-from-a-pdf/180379 "2010-09-08T22:18:10Z")

</div>

I’m looking for a way to read text off of a PDF document in Windows. The catch is that this code will get packaged as an ocra executable and be run from a pc that does not have Ruby installed. I’ve google searched an…

---

## [Ruby executing shell commands](https://www.ruby-forum.com/t/ruby-executing-shell-commands/194646)

<div class="topic-metadata">

**Author:** [@gsviteri](https://www.ruby-forum.com/u/gsviteri)\
**Replies:** 2\
**Last updated:** [September 8, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/ruby-executing-shell-commands/194646 "2010-09-08T22:09:45Z")

</div>

Hi All, My scenario seems like: 1 host machine and many others virtual machines. (exampling: Windows as host and VM Linux Ubuntu). I’m looking for a Ruby implementation that manipulates the IPTables on this virtual m…

---

## [Announcing jruby-jsvc](https://www.ruby-forum.com/t/announcing-jruby-jsvc/194513)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 4\
**Last updated:** [September 8, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/announcing-jruby-jsvc/194513 "2010-09-08T21:41:52Z")

</div>

Hi all, A while ago I said I’d do it, and now I have. I’ve put our jruby-jsvc code in to a reusable format, alongside a basic example and some instructions. This should help those of you trying to run your jruby a…

---

## [A gem for web services load testing?](https://www.ruby-forum.com/t/a-gem-for-web-services-load-testing/194610)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 3\
**Last updated:** [September 8, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/a-gem-for-web-services-load-testing/194610 "2010-09-08T20:36:53Z")

</div>

Hi Folks - I’ve been developing automated functional tests in ruby for our website for the last few months, and now need to expand my scope. Before I hit google, can anyone recommend a gem which can perform load testi…

---

## [Rails 3 + Tomcat Issues](https://www.ruby-forum.com/t/rails-3-tomcat-issues/194624)

<div class="topic-metadata">

**Author:** [@baq](https://www.ruby-forum.com/u/baq)\
**Replies:** 4\
**Last updated:** [September 8, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/rails-3-tomcat-issues/194624 "2010-09-08T19:19:01Z")

</div>

Hi all, I’m using Warble to deploy the barebones Rails 3 app to a Tomcat container (it’s the app you get by default when creating a Rails 3 app using the command line). The homepage loads just fine, but when I click …

---

## [IPAddress 0.7.0 released](https://www.ruby-forum.com/t/ipaddress-0-7-0-released/194645)

<div class="topic-metadata">

**Author:** [@collimarco](https://www.ruby-forum.com/u/collimarco)\
**Replies:** 2\
**Last updated:** [September 8, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/ipaddress-0-7-0-released/194645 "2010-09-08T18:14:36Z")

</div>

Hi, I’ve released IPAddress 0.7.0. This new release is focused on two points: compatibilily with IPAddr almost all IPAddress methods are compatible with their IPAddr counterpart, with the exception of wrong and f…

---

## [\[Backport #3425\] Error: test\_filehandler(WEBrick::TestFileHandler)](https://www.ruby-forum.com/t/backport-3425-error-test-filehandler-webrick-testfilehandler/189993)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [September 8, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/backport-3425-error-test-filehandler-webrick-testfilehandler/189993 "2010-09-08T16:45:00Z")

</div>

Backport #3425: Error: test\_filehandler(WEBrick::TestFileHandler) http://redmine.ruby-lang.org/issues/show/3425 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal test\_filehandler(WEBrick::…

---

## [\[Bug #2604\] test\_dsa\_sign\_verify() in test/openssl/test\_ec.rb failes](https://www.ruby-forum.com/t/bug-2604-test-dsa-sign-verify-in-test-openssl-test-ec-rb-failes/181585)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 10\
**Last updated:** [September 8, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/bug-2604-test-dsa-sign-verify-in-test-openssl-test-ec-rb-failes/181585 "2010-09-08T16:34:27Z")

</div>

Bug #2604: test\_dsa\_sign\_verify() in test/openssl/test\_ec.rb failes http://redmine.ruby-lang.org/issues/show/2604 e$B5/I\<\<Te(B: Takahiro K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: ext ruby -v: ruby…

---

## [Unable to open X server \`' (Magick::ImageMagickError)](https://www.ruby-forum.com/t/unable-to-open-x-server-magick-imagemagickerror/194433)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 15\
**Last updated:** [September 8, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/unable-to-open-x-server-magick-imagemagickerror/194433 "2010-09-08T15:55:46Z")

</div>

I have written a Ruby script “dicom\_info.rb”, and when I try running it, I get the following error. Why is that? And, how can it get solved? C:\\Users\\Abder-Rahman\\Desktop\\Research\\dicom\>ruby dicom\_info.rb Fantomas is…

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

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