# Ruby

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

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

---

## [Patch for \[ruby-core:14537\]](https://www.ruby-forum.com/t/patch-for-ruby-core-14537/134269)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 4\
**Last updated:** [April 18, 2008, 11:17am UTC](https://www.ruby-forum.com/t/patch-for-ruby-core-14537/134269 "2008-04-18T11:17:19Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B \[ruby-core:14537\]e$B$KBP$9$k%Q%C%A$r=q$-$^$7$?!#e(B rescue e$B$N0z?t$KG\[Ns$NE83+$r5v$9$h$&$K$7$^$7$?!#e(B Index: compile.c — compile.c (revision 15910) +++ compile.c (working copy) @@ -321…

---

## [Redirecting url](https://www.ruby-forum.com/t/redirecting-url/135138)

<div class="topic-metadata">

**Author:** [@dds974](https://www.ruby-forum.com/u/dds974)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 11:06am UTC](https://www.ruby-forum.com/t/redirecting-url/135138 "2008-04-18T11:06:46Z")

</div>

Hi, I’m trying to redirect my redmine page : I have my web site url : http://www.mywebsite.eu and I try to put redmine on http://www.mywebsite.eu/redmine but I can’t ! I put in ‘http\_vhosts.conf’ a redirection proxy …

---

## [Strange Expectations answer](https://www.ruby-forum.com/t/strange-expectations-answer/135133)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 10:20am UTC](https://www.ruby-forum.com/t/strange-expectations-answer/135133 "2008-04-18T10:20:37Z")

</div>

I am using Expectations and I found something which looks strange, when you call methods. For instance: No problem with: require ‘expectations’ count = \[\] Expectations do expect(0) { count.size } end But when y…

---

## [Exception handling discrepancies](https://www.ruby-forum.com/t/exception-handling-discrepancies/135030)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 9:31am UTC](https://www.ruby-forum.com/t/exception-handling-discrepancies/135030 "2008-04-18T09:31:03Z")

</div>

Consider following simple program exceptions.rb: begin a = ABC rescue puts "We have exception: " + $! end cruby can treat the exception as string, but rbx fails: \[11:24:38 ~/irb\_test\] ruby exceptions.rb We have e…

---

## [Reg Exp](https://www.ruby-forum.com/t/reg-exp/134833)

<div class="topic-metadata">

**Author:** [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Replies:** 9\
**Last updated:** [April 18, 2008, 6:25am UTC](https://www.ruby-forum.com/t/reg-exp/134833 "2008-04-18T06:25:12Z")

</div>

Can somebody hep me with a very simple regular expression. I want to write an regex which if matches a specific string should return false. for example: if i have string “Hello world”, and i want to say, if you find “…

---

## [Ruby 1.8.7-preview1 has been released](https://www.ruby-forum.com/t/ruby-1-8-7-preview1-has-been-released/134898)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 3\
**Last updated:** [April 18, 2008, 6:01am UTC](https://www.ruby-forum.com/t/ruby-1-8-7-preview1-has-been-released/134898 "2008-04-18T06:01:49Z")

</div>

ã€€Ruby 1.8.7-preview1 ã‚’ãƒªãƒªãƒ¼ã‚¹ã—ã¾ã—ãŸã€‚ä¼¸ã³ä¼¸ã³ã®ã‚¹ã‚±ã‚¸ãƒ¥ãƒ¼ãƒ« ãªãŒã‚‰ã€è¾›æŠ±å¼·ãã”å”åŠ›ã„ãŸã ã„ãŸã¿ãªã•ã‚“ã«æ„Ÿè¬ã—ã¾ã™ã€‚ ã€€æœ¬ãƒªãƒªãƒ¼ã‚¹ã«ã¯ã€1.8.6ãƒªãƒªãƒ¼ã‚¹ä»¥é™…

---

## [How to find carriage-return characters](https://www.ruby-forum.com/t/how-to-find-carriage-return-characters/135076)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 4:43am UTC](https://www.ruby-forum.com/t/how-to-find-carriage-return-characters/135076 "2008-04-18T04:43:28Z")

</div>

I need to do a .gsub or .split or the equivalent to locate carriage-return characters Â­ Hex 0d . How can I do this in ruby? Thanks. Bill W.

---

## [Is\_it\_mobile 1.0.1 Released](https://www.ruby-forum.com/t/is-it-mobile-1-0-1-released/135118)

<div class="topic-metadata">

**Author:** [@Dave\_Myron](https://www.ruby-forum.com/u/Dave_Myron)\
**Replies:** 0\
**Last updated:** [April 18, 2008, 3:00am UTC](https://www.ruby-forum.com/t/is-it-mobile-1-0-1-released/135118 "2008-04-18T03:00:14Z")

</div>

is\_it\_mobile version 1.0.1 has been released! http://rubyforge.org/projects/contentfree/ Simply determines if a user agent is for a mobile device. Changes: 1.0.1 / 2008-04-17 3 minor enhancements You may overri…

---

## [Ri Gtk::Window](https://www.ruby-forum.com/t/ri-gtk-window/135116)

<div class="topic-metadata">

**Author:** [@Minseok\_C](https://www.ruby-forum.com/u/Minseok_C)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 2:42am UTC](https://www.ruby-forum.com/t/ri-gtk-window/135116 "2008-04-18T02:42:41Z")

</div>

Is there anyone know how to see Gtk document using ri? The reason I am wondering is because NetBeans IDE may uses ri documents for automatic completion. After googling, I found out that the proper yaml files may be re…

---

## [Windows, Net::SSH: how do I send a password to sudo?](https://www.ruby-forum.com/t/windows-net-how-do-i-send-a-password-to-sudo/135091)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 6\
**Last updated:** [April 17, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/windows-net-how-do-i-send-a-password-to-sudo/135091 "2008-04-17T23:50:07Z")

</div>

I’m establishing an ssh connection and then I want to run a command as sudo. Now, normally, the user will be prompted to put in a password to run the command as sudo. Here is my script: Net::SSH.start( ‘files02’, ‘my…

---

## [Using Rake to Build Gem](https://www.ruby-forum.com/t/using-rake-to-build-gem/135070)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/using-rake-to-build-gem/135070 "2008-04-17T19:10:19Z")

</div>

Hello all, I’m using Rake to build a gem for my Ruby application and I was wondering if there’s a way to exclude certain files and/or directories from rdoc generation.

---

## [Simile timeline implementation](https://www.ruby-forum.com/t/simile-timeline-implementation/135086)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/simile-timeline-implementation/135086 "2008-04-17T19:07:35Z")

</div>

Hello, In my application I have to implement simile timeline. The events have to be picked from the database. I have trying to follow the similetimelinehelper from : http://code.google.com/p/similetimelinerailshelper…

---

## [Foxguib: call for input](https://www.ruby-forum.com/t/foxguib-call-for-input/134969)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/foxguib-call-for-input/134969 "2008-04-17T18:52:06Z")

</div>

Dear list, Have you got something to add to foxGUIb? I am still maintaining foxGUIb but as I haven’t had personal need for it in the last years I did not add or change much. The download rate on rubyforge and the n…

---

## [Windows, Net::SSH: how do I use a private key (w / password)](https://www.ruby-forum.com/t/windows-net-how-do-i-use-a-private-key-w-password/134892)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 10\
**Last updated:** [April 17, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/windows-net-how-do-i-use-a-private-key-w-password/134892 "2008-04-17T18:30:53Z")

</div>

Private key authentication works with this user, I know because I use it fine with Putty. Here is my script right now: require ‘rubygems’ require ‘net/ssh’ Net::SSH.start( ‘files02’, ‘myuser’, ‘mypassword’ ) do |sess…

---

## [Gem::Enable is false when --disable-gems and -rubygems](https://www.ruby-forum.com/t/gem-enable-is-false-when-disable-gems-and-rubygems/135085)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/gem-enable-is-false-when-disable-gems-and-rubygems/135085 "2008-04-17T18:30:16Z")

</div>

Yuguie$B$G$9!#e(B $ ruby --disable-gems -rubygems -ve ‘p Gem::Enable’ ruby 1.9.0 (2008-04-16 revision 0) \[i686-darwin9.2.2\] false e$B$3$N\>l9g!"7k6Ie(BRubyGemse$B$OM-8z$K$J$C$F$$$k$N$Ge(B Gem::Enablee$B$Oe(Btruee$B$K…

---

## [ARGF.dup.rewind do not rewind lineno](https://www.ruby-forum.com/t/argf-dup-rewind-do-not-rewind-lineno/135077)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/argf-dup-rewind-do-not-rewind-lineno/135077 "2008-04-17T18:26:45Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B ARGF.dup e$B$re(B rewind e$B$9$k$He(B lineno e$B$,$\*$+$7$/$J$j$^$9!#e(B $ cat foobarbaz.txt foo bar baz $ ./ruby -ve ’ a = ARGF.dup p \[a.gets, a.lineno\] p \[a.gets, a.lineno\] a.rewind p \[…

---

## [Link\_to method doesn't work with shared css/javascript class](https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135079)

<div class="topic-metadata">

**Author:** [@claus](https://www.ruby-forum.com/u/claus)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135079 "2008-04-17T17:43:56Z")

</div>

ddaccordion.init({ headerclass: "expandable", ..... \</script \<%= link\_to "institut", {:controller =\> "news"} %\> ...at first I want to say that I'm pretty new in ruby ... may u are able to help me:…

---

## [Noob Questions](https://www.ruby-forum.com/t/noob-questions/134925)

<div class="topic-metadata">

**Author:** [@rornoob](https://www.ruby-forum.com/u/rornoob)\
**Replies:** 8\
**Last updated:** [April 17, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/noob-questions/134925 "2008-04-17T17:03:53Z")

</div>

Be warned - I’m new to Ruby and programming in general, so I’m sure this will be a trivial question for most of you. I’m currently working through the exercises in the book Learn to Program by Chris P… At the end of e…

---

## [What is the standard YAML date format that loads for timestamps?](https://www.ruby-forum.com/t/what-is-the-standard-yaml-date-format-that-loads-for-timestamps/135004)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/what-is-the-standard-yaml-date-format-that-loads-for-timestamps/135004 "2008-04-17T16:59:45Z")

</div>

Please respond with an exact syntax. I am presently using Time.at(ts) and I end up with a null in my database.

---

## [Ics to outlook calendar script](https://www.ruby-forum.com/t/ics-to-outlook-calendar-script/135066)

<div class="topic-metadata">

**Author:** [@cparticle](https://www.ruby-forum.com/u/cparticle)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/ics-to-outlook-calendar-script/135066 "2008-04-17T16:25:57Z")

</div>

I need some help I’ve written a script with the intention of keeping my Exchange Calendar and local iCalendar in sync via IMAP. So far I can get message back and forth but I cannot sync as I don’t know where to find a…

---

## [JtestR 0.2 Released](https://www.ruby-forum.com/t/jtestr-0-2-released/135059)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/jtestr-0-2-released/135059 "2008-04-17T15:08:50Z")

</div>

JtestR allows you to test your Java code with Ruby frameworks. Homepage: http://jtestr.codehaus.org Download: http://dist.codehaus.org/jtestr JtestR 0.2 is the current release of the JtestR testing tool. JtestR integ…

---

## [Is\_it\_mobile 1.0.0.3 Released](https://www.ruby-forum.com/t/is-it-mobile-1-0-0-3-released/135054)

<div class="topic-metadata">

**Author:** [@Dave\_Myron](https://www.ruby-forum.com/u/Dave_Myron)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/is-it-mobile-1-0-0-3-released/135054 "2008-04-17T14:26:21Z")

</div>

is\_it\_mobile, version 1.0.0.3 has been released! == DESCRIPTION: Simply determines if a user agent is for a mobile device. Comes ready with a module for Rails 2.0 to enable multiviews (respond\_to with a custom mimety…

---

## [Change the color of the worksheets in Excel](https://www.ruby-forum.com/t/change-the-color-of-the-worksheets-in-excel/135053)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/change-the-color-of-the-worksheets-in-excel/135053 "2008-04-17T14:18:33Z")

</div>

Hi All I want to change the color of the worksheets in the excel. Can anyone suggest me how can I do it? For example I want to change the worksheet A to Red worksheet B to Blue etc… Thanks in advance :slight\_sm…

---

## [Making Ruby a standard browser side language](https://www.ruby-forum.com/t/making-ruby-a-standard-browser-side-language/134838)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 6\
**Last updated:** [April 17, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/making-ruby-a-standard-browser-side-language/134838 "2008-04-17T13:42:25Z")

</div>

it looks like Prototype was made to mimic Ruby in Javascript, and people who use Prototype usually love it. I wonder if Ruby can be made into another browser side language and what can make that happen? If Firefox a…

---

## [Global.escape?](https://www.ruby-forum.com/t/global-escape/135050)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/global-escape/135050 "2008-04-17T13:27:24Z")

</div>

Hi, I have a logger class wrapped up a module as not to conflict with the Ruby logger class module Utilities class Logger require "rexml/document" include REXML def initialize @doc = Document.new xmldecl = X…

---

## [Ruby ObjectDatabase is there any?](https://www.ruby-forum.com/t/ruby-objectdatabase-is-there-any/135048)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/ruby-objectdatabase-is-there-any/135048 "2008-04-17T13:25:05Z")

</div>

Is there a real working Object Database(not ORM) written in Ruby or stable adapter to non-Ruby one? I goggled for Ruby Object Database and found some projects, but haven’t found any real working solution. Mainly they…

---

## [Ruby memory allocation](https://www.ruby-forum.com/t/ruby-memory-allocation/134949)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 8\
**Last updated:** [April 17, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/ruby-memory-allocation/134949 "2008-04-17T12:03:21Z")

</div>

I just discovered that ruby allocates memory in 8Mb chunks. Forgive my ignorance. Is there a way to change this behaviour? Since my app runs in an environment with very strict memory constraints, a memory spike of 8Mb …

---

## [Continuation in web (Seaside clone)](https://www.ruby-forum.com/t/continuation-in-web-seaside-clone/134947)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 8\
**Last updated:** [April 17, 2008, 11:51am UTC](https://www.ruby-forum.com/t/continuation-in-web-seaside-clone/134947 "2008-04-17T11:51:50Z")

</div>

Hello! IN SHORT (by some example): There is a web application, and two ‘pages’ - ‘View’ and ‘Editor’. And when i press ‘Edit’ button on the ‘View’ it should: Freeze current execution (callcc {bla-bla}) Give control …

---

## [Operator out of string](https://www.ruby-forum.com/t/operator-out-of-string/135024)

<div class="topic-metadata">

**Author:** [@kelt](https://www.ruby-forum.com/u/kelt)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 10:01am UTC](https://www.ruby-forum.com/t/operator-out-of-string/135024 "2008-04-17T10:01:08Z")

</div>

Hey, I am a newbee in Ruby and since the language has many nice features it struck me obvioous that it must be possible to evaluate a string in such a way that it produces the corresponding operator. E.g.: “+” would …

---

## [Compare Excel data with Browser and find differences! Watir](https://www.ruby-forum.com/t/compare-excel-data-with-browser-and-find-differences-watir/135023)

<div class="topic-metadata">

**Author:** [@lookin\_mahi](https://www.ruby-forum.com/u/lookin_mahi)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 8:59am UTC](https://www.ruby-forum.com/t/compare-excel-data-with-browser-and-find-differences-watir/135023 "2008-04-17T08:59:32Z")

</div>

Hi everybody I am using watir for past 3 months.could anybody can help me to solve the following issue which I am currently facing: Issue: I am having one excel file which is having some 13 columns and 545 rows appr…

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

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