# Ruby

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

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

---

## [Screen Scraping an Image](https://www.ruby-forum.com/t/screen-scraping-an-image/122018)

<div class="topic-metadata">

**Author:** [@patternhunter](https://www.ruby-forum.com/u/patternhunter)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/screen-scraping-an-image/122018 "2007-12-03T23:41:03Z")

</div>

How do you screen scrape an image off of a web page?

---

## [Getting input](https://www.ruby-forum.com/t/getting-input/122025)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/getting-input/122025 "2007-12-03T23:17:03Z")

</div>

I have been trying to get find a way to get input from the user, and be able to store in a variable using shoes GUI, but i can’t quite figure it out? Does any one know how to? I know you can replace but that not worki…

---

## [What replaces RubyEngine.CurrentEngine?](https://www.ruby-forum.com/t/what-replaces-rubyengine-currentengine/122006)

<div class="topic-metadata">

**Author:** [@technomancy](https://www.ruby-forum.com/u/technomancy)\
**Replies:** 8\
**Last updated:** [December 3, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/what-replaces-rubyengine-currentengine/122006 "2007-12-03T22:36:38Z")

</div>

Hi All, I’m updating some demos I did for ASP.NET MVC. In particular my “ancient” IronRuby view template (rhtml) demo. You guys have been busy! :wink: I wanted to update this wiki entry http://ironruby.rubyforge.org/…

---

## [File renaming/parsing help](https://www.ruby-forum.com/t/file-renaming-parsing-help/121876)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/file-renaming-parsing-help/121876 "2007-12-03T22:03:04Z")

</div>

First of all let me say that I am an absolute newb when it comes to rails. I am simply trying to work on an existing script that was written by someone else. I need to take a filename that will always have a similar …

---

## [Alias problem](https://www.ruby-forum.com/t/alias-problem/121825)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 7\
**Last updated:** [December 3, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/alias-problem/121825 "2007-12-03T21:46:03Z")

</div>

is there any idea to change public definition to private definition by using alias or some others…

---

## ["shoes" issues](https://www.ruby-forum.com/t/shoes-issues/121943)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 8\
**Last updated:** [December 3, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/shoes-issues/121943 "2007-12-03T21:15:22Z")

</div>

So, i have been looking around for easy GUI’s. I tried DL’ing TK but I got frustrated with the lack of help/ tutorials so i have found the toolkit “shoes”. I’m trying to download it, but i get compile errors when tryi…

---

## [Help with ? yield :](https://www.ruby-forum.com/t/help-with-yield/122001)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/help-with-yield/122001 "2007-12-03T20:14:09Z")

</div>

Hello, I’m new to Ruby and Rails, and I’m learning at the same time I’m reading books and following some threads on the web, and of course, experimenting … What’s the meaning of this: ? session\[:auth\] ? yield : ( …

---

## [Regexp for parsing?](https://www.ruby-forum.com/t/regexp-for-parsing/120599)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 6\
**Last updated:** [December 3, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/regexp-for-parsing/120599 "2007-12-03T20:07:08Z")

</div>

I understand regular expressions, but can someone please explain this: re = %r/((?((?:\\\[()\]|\[^()\]|\\g)\*)))/ By the way, this only works with the Oniguruma engine (Ruby 1.9). So, now that there is the capability to matc…

---

## [Read file and print contents - beginner](https://www.ruby-forum.com/t/read-file-and-print-contents-beginner/121984)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/read-file-and-print-contents-beginner/121984 "2007-12-03T17:43:04Z")

</div>

hello, im new to ruby and i have a text file and want to read in the file and print it out. so far iv got the following. I’d greatly appreciate any help. thanks. text file (reference.txt): Tag: ref1 Type: Book Au…

---

## [Ruport Book Pre-orders now open](https://www.ruby-forum.com/t/ruport-book-pre-orders-now-open/121938)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 2\
**Last updated:** [December 3, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/ruport-book-pre-orders-now-open/121938 "2007-12-03T16:21:15Z")

</div>

Though we’ve not quite hit the finish line yet, we’re far enough along now to open up pre-orders for the Ruport Book (ruportbook.com). This will give us a chance to see how many folks are actively following the devel…

---

## [Question about iterator](https://www.ruby-forum.com/t/question-about-iterator/121826)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 14\
**Last updated:** [December 3, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/question-about-iterator/121826 "2007-12-03T16:10:04Z")

</div>

dear with the below mentioned script I would like to produce first all of the Java courses and then the Ruby ones. however I can’t seem to get it to work I know I can use the partition method but I’m not able to get …

---

## [Friend functions or classes](https://www.ruby-forum.com/t/friend-functions-or-classes/121878)

<div class="topic-metadata">

**Author:** [@SunRaySon](https://www.ruby-forum.com/u/SunRaySon)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/friend-functions-or-classes/121878 "2007-12-03T15:56:47Z")

</div>

Hi, I would like to simulate something like friend class or method in Ruby; From the pickaxe documentation I could not figure out if there is one directly available or not. I do understand that having friend classe…

---

## [String to substring?](https://www.ruby-forum.com/t/string-to-substring/121973)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 3\
**Last updated:** [December 3, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/string-to-substring/121973 "2007-12-03T15:43:33Z")

</div>

I have one string name message = “5x-2=18” and I want to create substring or array by this mesArray\[0\] = 5 mesArray\[1\] = x mesArray\[2\] = - … this has function? how can I make it?

---

## [How to use render & redirect\_to together](https://www.ruby-forum.com/t/how-to-use-render-redirect-to-together/121969)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 2\
**Last updated:** [December 3, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/how-to-use-render-redirect-to-together/121969 "2007-12-03T14:41:21Z")

</div>

Hi, I needed to know a way or method of using render and reditect\_to methods. At present using them both is giving me an error that both cant be used. If not this an alternative approach would also help. Thank You A…

---

## [Signature of exit() on C++](https://www.ruby-forum.com/t/signature-of-exit-on-c/121895)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 6\
**Last updated:** [December 3, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/signature-of-exit-on-c/121895 "2007-12-03T13:58:58Z")

</div>

e$B$-$7$b$H$G$9e(B trunk(rev. 14078) e$B$G!"$3$N$h$&$Ke(B mecab-ruby e$B$Ne(B make e$B$G%3%1$^$9!#e(B $ make g++ -I. -I/usr/local/include/ruby-1.9/i686-linux -I/usr/local/include/ruby-1.9 -I. -DHAVE\_MECAB\_H -D\_FILE…

---

## [Postfix to Infix (#148)](https://www.ruby-forum.com/t/postfix-to-infix-148/121961)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSS\_SSSSS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SSSSS)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/postfix-to-infix-148/121961 "2007-12-03T13:14:12Z")

</div>

Sorry, in previous post I forgot about parenthess in case of - and /. this program understands simple operations and also sin, cos, tg and ctg to use, provide string in RPN as argument example: ruby postf2inf ‘3 5 + si…

---

## [Re: Postfix to Infix (#148)](https://www.ruby-forum.com/t/re-postfix-to-infix-148/121960)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSS\_SSSSS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SSSSS)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/re-postfix-to-infix-148/121960 "2007-12-03T12:59:55Z")

</div>

This is my solution: this program understands simple operations and also sin, cos, tg and ctg to use, provide string in BPN as argument example: ruby postf2inf ‘3 5 + sin 5 3 cos + /’ result in “sin(3 + 5) / (5 + cos(3…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/121959)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSS\_SSSSS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SSSSS)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/no-subject/121959 "2007-12-03T12:54:39Z")

</div>

This is reply to Quiz 148

---

## [JRuby into Java?](https://www.ruby-forum.com/t/jruby-into-java/121952)

<div class="topic-metadata">

**Author:** [@lipe\_pe](https://www.ruby-forum.com/u/lipe_pe)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 10:53am UTC](https://www.ruby-forum.com/t/jruby-into-java/121952 "2007-12-03T10:53:16Z")

</div>

Hi my friends, i want to know how can call a method written in JRuby in a .java file. Every example that I read, just program everything in JRuby and import libraries from Java. I want to know if I can import librari…

---

## [Ruby needs continuations](https://www.ruby-forum.com/t/ruby-needs-continuations/121495)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 25\
**Last updated:** [December 3, 2007, 9:57am UTC](https://www.ruby-forum.com/t/ruby-needs-continuations/121495 "2007-12-03T09:57:07Z")

</div>

Warning: I don’t really know what I’m talking about so if I make any mistakes in terminology, please try to correct me… I've been doing a lot of Python programming and I've discovered that it’s actually a very powerf…

---

## [Program behavior differs when tracing function is set](https://www.ruby-forum.com/t/program-behavior-differs-when-tracing-function-is-set/121948)

<div class="topic-metadata">

**Author:** [@timas](https://www.ruby-forum.com/u/timas)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 9:06am UTC](https://www.ruby-forum.com/t/program-behavior-differs-when-tracing-function-is-set/121948 "2007-12-03T09:06:31Z")

</div>

Hi, I’ve been working on simple ruby debugger that is using Kernel.set\_trace\_func method. In my work I’ve found that it is possible to write a program that behave different depending on tracing function is set or not…

---

## [Generator#yield - what does it do?](https://www.ruby-forum.com/t/generator-yield-what-does-it-do/121928)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 6\
**Last updated:** [December 3, 2007, 8:50am UTC](https://www.ruby-forum.com/t/generator-yield-what-does-it-do/121928 "2007-12-03T08:50:51Z")

</div>

Hi! I am confused somehow with respect to “Generator#yield”. The description (ri) is… ri Generator#yield -------------------------------------------------------- Generator#yield yield(value) Yields an element t…

---

## [Fwd: Ruby Quiz #148](https://www.ruby-forum.com/t/fwd-ruby-quiz-148/121936)

<div class="topic-metadata">

**Author:** [@daveh0](https://www.ruby-forum.com/u/daveh0)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 8:46am UTC](https://www.ruby-forum.com/t/fwd-ruby-quiz-148/121936 "2007-12-03T08:46:45Z")

</div>

Solution to quiz #148. Thanks, -Dave ---------- Forwarded message ---------- From: Dave P. removed\_email\_address@domain.invalid Date: Nov 30, 2007 7:26 PM Subject: Ruby Q. #148 To: removed\_email\_address@domain.inv…

---

## [Class Help - Accessing Parent Methods from Child](https://www.ruby-forum.com/t/class-help-accessing-parent-methods-from-child/121933)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 2\
**Last updated:** [December 3, 2007, 7:59am UTC](https://www.ruby-forum.com/t/class-help-accessing-parent-methods-from-child/121933 "2007-12-03T07:59:21Z")

</div>

Hello everyone, I’m working on an API for Google Reader, and I’m having some trouble with classes and inheritance and the like. I’ve got my main class, Reader, and then two children classes, Subscription \< Reader and …

---

## [Everyone's favorite flow control: retry](https://www.ruby-forum.com/t/everyones-favorite-flow-control-retry/196531)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 7:04am UTC](https://www.ruby-forum.com/t/everyones-favorite-flow-control-retry/196531 "2007-12-03T07:04:59Z")

</div>

Today I was thinking about retry support in JRuby, and figured we’ve reached a decision point. retry is a tricky little bugger. It works the way it does in MRI largely because of the way the interpreter works; so in t…

---

## [When 1.9.0 will be released?](https://www.ruby-forum.com/t/when-1-9-0-will-be-released/121714)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 17\
**Last updated:** [December 3, 2007, 6:14am UTC](https://www.ruby-forum.com/t/when-1-9-0-will-be-released/121714 "2007-12-03T06:14:10Z")

</div>

Hi, does someone know when the 1.9.0 will be released?

---

## [Name this method](https://www.ruby-forum.com/t/name-this-method/121920)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 6\
**Last updated:** [December 3, 2007, 5:13am UTC](https://www.ruby-forum.com/t/name-this-method/121920 "2007-12-03T05:13:58Z")

</div>

First off, if there’s already a method that does this please point it out; I couldn’t find one so I wrote my own. It’s currently called #to\_elapsed\_time and is attached to Fixnum. What it does… 10.to\_elapsed\_time …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229143)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 4:52am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229143 "2007-12-03T04:52:56Z")

</div>

Begin forwarded message:

---

## [Problems using client certificates with net/https](https://www.ruby-forum.com/t/problems-using-client-certificates-with-net-https/121682)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 4:20am UTC](https://www.ruby-forum.com/t/problems-using-client-certificates-with-net-https/121682 "2007-12-03T04:20:12Z")

</div>

I have a very basic script to access a SSL encrypted site that uses client certificates. Problem is that I continue to get 401 unauthorized error even though the certificate works in a browser and I’ve verified that t…

---

## [1.9.1$B$N%j%j!\<%9;~4|$K$D$$$F(B](https://www.ruby-forum.com/t/1-9-1-b-n-j-j-9-4-k-d-f-b/121157)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 15\
**Last updated:** [December 3, 2007, 3:59am UTC](https://www.ruby-forum.com/t/1-9-1-b-n-j-j-9-4-k-d-f-b/121157 "2007-12-03T03:59:45Z")

</div>

e$BLZB\<$G$9!#e(B e$B$^$D$b$H$5$s$K\<ALd$G$9!#e(B e$B%/%j%9%^%9$^$G$"$H0l%v7n$H$J$j$^$7$?$,!“e(B1.9.1e$B$K8~$1$F$N\>u67$O$I$&$J$s$G$7$g$&$+e(B? e$B$3$3$^$G$R$H$D$Ne(B previewe$B$b=P$5$l$F$$$^$;$s$7!”:#=P$7$F$b%j%j!\<%9$9…

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

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