# Ruby

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

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

---

## [How do I use Ruby 1.9 RC?](https://www.ruby-forum.com/t/how-do-i-use-ruby-1-9-rc/122287)

<div class="topic-metadata">

**Author:** [@ashutosh](https://www.ruby-forum.com/u/ashutosh)\
**Replies:** 5\
**Last updated:** [December 7, 2007, 7:28am UTC](https://www.ruby-forum.com/t/how-do-i-use-ruby-1-9-rc/122287 "2007-12-07T07:28:38Z")

</div>

Hello all, I downloaded Ruby 1.9 RC binaries (ruby 1.9.0 (2007-07-09 patchlevel 0) \[i386-mswin32\]) and observed that there are fewer files in bin directory as compared to Ruby 1.8.6. Running any ruby program gives me…

---

## [Re: Ruby App Distribution](https://www.ruby-forum.com/t/re-ruby-app-distribution/122154)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 12\
**Last updated:** [December 7, 2007, 6:38am UTC](https://www.ruby-forum.com/t/re-ruby-app-distribution/122154 "2007-12-07T06:38:23Z")

</div>

I don’t see how RubyScript2Exe would work when it’s a virtual machine. Would it package the entire virtual machine inside the exe? With Tar2RubyScript it requires you to change your script to work with that tool with …

---

## [MutableString vs string](https://www.ruby-forum.com/t/mutablestring-vs-string/122359)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 5:30am UTC](https://www.ruby-forum.com/t/mutablestring-vs-string/122359 "2007-12-07T05:30:36Z")

</div>

Along the lines of the discussion before about raising exceptions: Is it acceptable to return .NET strings from library methods or should we be trying to use MutableString instances? Pete

---

## [Cursed curses](https://www.ruby-forum.com/t/cursed-curses/122381)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 5:27am UTC](https://www.ruby-forum.com/t/cursed-curses/122381 "2007-12-07T05:27:06Z")

</div>

Hello For me, the curses extension is quite flawed. I could not find Curses (nor Readline) documentation neither on ruby-doc nor in my local ri. The Curses documentation can be supplemented with curses man pages quit…

---

## [Rubyisms wanted to shorten code in search program](https://www.ruby-forum.com/t/rubyisms-wanted-to-shorten-code-in-search-program/122047)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 11\
**Last updated:** [December 7, 2007, 5:06am UTC](https://www.ruby-forum.com/t/rubyisms-wanted-to-shorten-code-in-search-program/122047 "2007-12-07T05:06:04Z")

</div>

Hi, Search on WindowsXP/SP2 didn’t seem to locate a file is looking for. As someone relatively new to Ruby, I wonder whether there are any Rubyisms I could have used to cut down the the 80+ lines I took to accomplis…

---

## [Csspool 0.2.4 Released](https://www.ruby-forum.com/t/csspool-0-2-4-released/122382)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 4:36am UTC](https://www.ruby-forum.com/t/csspool-0-2-4-released/122382 "2007-12-07T04:36:49Z")

</div>

csspool version 0.2.4 has been released! http://csspool.rubyforge.org/ CSSpool (pronounced “cesspool”) is a validating SAC parser for CSS. The parser calls methods on a document handler depending on what it has fou…

---

## [Punch-0.0.1](https://www.ruby-forum.com/t/punch-0-0-1/122368)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 3:18am UTC](https://www.ruby-forum.com/t/punch-0-0-1/122368 "2007-12-07T03:18:29Z")

</div>

NAME punch SYNOPSIS punch (in|out|log|clock|status|list|total|delete|dump) \[options\]+ URIS http://codeforpeople.com/lib/ruby/punch http://rubyforge.org/projects/codeforpeople/ INSTALL gem install punch DESCRIPTI…

---

## [ext/tk/sample/tkextlib/vu/canvSticker2.rb](https://www.ruby-forum.com/t/ext-tk-sample-tkextlib-vu-canvsticker2-rb/122374)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 2:50am UTC](https://www.ruby-forum.com/t/ext-tk-sample-tkextlib-vu-canvsticker2-rb/122374 "2007-12-07T02:50:25Z")

</div>

ext/tk/sample/tkextlib/vu/canvSticker2.rb e$B$N%(%s%3!\<%G%#%s%0$C$F$J$s$J$s$G$7$g$&e(B? e$B%U%!%$%k@hF,$K$Oe(B utf-8 e$B$H=q$$$F$"$j$^$9$,!"e(BUTF-8 e$B$G$O$J$$$he(B e$B$&$K;W$($^$9!#e(B

---

## [Character-encodings 0.4.0 has been released!](https://www.ruby-forum.com/t/character-encodings-0-4-0-has-been-released/122294)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 2:30am UTC](https://www.ruby-forum.com/t/character-encodings-0-4-0-has-been-released/122294 "2007-12-07T02:30:33Z")

</div>

This is yet another “unstable” release, but you should be able to replace 0.2.0 and 0.3.0 with it without issues (hopefully). So what’s new in 0.4.0? More inline functions have been removed/ fixed, allowing compilati…

---

## [Capturing STDOUT from a system call (POSIX) into an array](https://www.ruby-forum.com/t/capturing-stdout-from-a-system-call-posix-into-an-array/122264)

<div class="topic-metadata">

**Author:** [@Venks](https://www.ruby-forum.com/u/Venks)\
**Replies:** 11\
**Last updated:** [December 7, 2007, 2:05am UTC](https://www.ruby-forum.com/t/capturing-stdout-from-a-system-call-posix-into-an-array/122264 "2007-12-07T02:05:23Z")

</div>

What’s the best way to capture STDOUT into an Array? I looked at popen3, open4, systemu but couldn’t figure out how to do this. In short, I want to execute a system call like “ls -l” and capture it into an array. Of c…

---

## [Rails form help needed](https://www.ruby-forum.com/t/rails-form-help-needed/122366)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 1:35am UTC](https://www.ruby-forum.com/t/rails-form-help-needed/122366 "2007-12-07T01:35:35Z")

</div>

For some reason my selct shows \<option value="#\<Tag:0x47f52e8\>" I am looking to have a select drop down box. this is my controller @nonExistingTags=Tag.find\_by\_sql(“select \* from tags where id not in (select t.id fr…

---

## [Systemu-1.2.0](https://www.ruby-forum.com/t/systemu-1-2-0/122367)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 12:02am UTC](https://www.ruby-forum.com/t/systemu-1-2-0/122367 "2007-12-07T00:02:38Z")

</div>

NAME systemu SYNOPSIS univeral capture of stdout and stderr and handling of child process pid for windows, \*nix, etc. URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby/ http://co…

---

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

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 17\
**Last updated:** [December 6, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/everyones-favorite-flow-control-retry/121945 "2007-12-06T23:25:37Z")

</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…

---

## [Open browser](https://www.ruby-forum.com/t/open-browser/122303)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 12\
**Last updated:** [December 6, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/open-browser/122303 "2007-12-06T23:02:10Z")

</div>

Is there a way to open a browser window from ruby, that works on windows, linux and macos? thx ck

---

## [Lambda funcs that call gets won't halt program execution?](https://www.ruby-forum.com/t/lambda-funcs-that-call-gets-wont-halt-program-execution/122256)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/lambda-funcs-that-call-gets-wont-halt-program-execution/122256 "2007-12-06T22:11:34Z")

</div>

Once again, a problem with my Befunge interpreter. I’m trying to implement the ~ and & functions - get a character and a number, respectively. My & function looks like this: instructions\["&"\] = lambda { print "Number:…

---

## [IE7 and ror problem](https://www.ruby-forum.com/t/ie7-and-ror-problem/122335)

<div class="topic-metadata">

**Author:** [@rumz](https://www.ruby-forum.com/u/rumz)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/ie7-and-ror-problem/122335 "2007-12-06T22:09:06Z")

</div>

I’am trying to redirect the user to the login page if the user is not already logged in. \<%= link\_to\_remote “Add To Favorites”, :update =\> “content-item- favorite-#{content\_item.id}”, :url =\> {:controller =\> :user, :…

---

## [Preferred way to overwrite an object method?](https://www.ruby-forum.com/t/preferred-way-to-overwrite-an-object-method/122336)

<div class="topic-metadata">

**Author:** [@blogger](https://www.ruby-forum.com/u/blogger)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/preferred-way-to-overwrite-an-object-method/122336 "2007-12-06T21:05:55Z")

</div>

I have an app with source code I really don’t want to touch, which has an object method I want to be able to overwrite in a certain task. (No need to restore the function.) My current technique is as follows: In the…

---

## [Re: Raising Exceptions](https://www.ruby-forum.com/t/re-raising-exceptions/122311)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 4\
**Last updated:** [December 6, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/re-raising-exceptions/122311 "2007-12-06T20:42:29Z")

</div>

And to add further confusion there are also RubyExceptions.CreateXXXError methods available. What to use? Pete

---

## [If /hello/ =~line](https://www.ruby-forum.com/t/if-hello-line/122300)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 11\
**Last updated:** [December 6, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/if-hello-line/122300 "2007-12-06T20:25:25Z")

</div>

Got help with this code earlier its just checking a file for a line Im really new to ruby ive used java and C before just wondering what do i put in if i want to use a variable that is holding the string eg VAR1 = “he…

---

## [Raising Exceptions](https://www.ruby-forum.com/t/raising-exceptions/122296)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/raising-exceptions/122296 "2007-12-06T20:09:02Z")

</div>

Just a quick question about raising exceptions in IronRuby libraries. Should we just simply throw a new CLR exception or do we need to use the ExceptionOps stuff when creating exceptions. As an example, in FloatOps, I…

---

## [Ruby App Distribution](https://www.ruby-forum.com/t/ruby-app-distribution/122088)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [December 6, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/ruby-app-distribution/122088 "2007-12-06T19:03:55Z")

</div>

Hi, I was wondering what are the options for distributing a ruby application. Java has the jar and C++ you can compile to an exe. What options does Ruby provide? I’m not looking to distribute anything before the n…

---

## [FTP File download](https://www.ruby-forum.com/t/ftp-file-download/122284)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/ftp-file-download/122284 "2007-12-06T18:42:12Z")

</div>

Hello, I am a Ruby N. I need to login to a ftp server and download the newest file on the server. I know the basics of Net::FTP but I can’t figure out how to download the newest file based on its time stamp. Any Ide…

---

## [Main-2.6.0](https://www.ruby-forum.com/t/main-2-6-0/122331)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/main-2-6-0/122331 "2007-12-06T17:52:21Z")

</div>

NAME main.rb SYNOPSIS a class factory and dsl for generating command line programs real quick URI http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.rubyforge.org…

---

## [Regular expression. newbie problem](https://www.ruby-forum.com/t/regular-expression-newbie-problem/122321)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 14\
**Last updated:** [December 6, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/regular-expression-newbie-problem/122321 "2007-12-06T17:50:36Z")

</div>

Hi, i know this is a pretty basic problem but im a newbie so any help would be greatly appreciated im trying to write a name class one which returns a first name a surname, first and second initials however, i reali…

---

## [Too many open files causes Mechanize/Net::HTTP to timeout?](https://www.ruby-forum.com/t/too-many-open-files-causes-mechanize-net-http-to-timeout/122328)

<div class="topic-metadata">

**Author:** [@gabetax](https://www.ruby-forum.com/u/gabetax)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/too-many-open-files-causes-mechanize-net-http-to-timeout/122328 "2007-12-06T17:29:54Z")

</div>

I’m experiencing an issue where my get/submit calls to the Mechanize agent are leading to timeout exceptions when the ruby script has too many open file descriptors ( \> 1000). However, I’m not seeing anything about a…

---

## [Blowfish and Rails](https://www.ruby-forum.com/t/blowfish-and-rails/122322)

<div class="topic-metadata">

**Author:** [@rumz](https://www.ruby-forum.com/u/rumz)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/blowfish-and-rails/122322 "2007-12-06T16:46:25Z")

</div>

I’m working on encrypting some data using blowfish. My Client uses php and blowfish for encryption and i use ror and blowfish the php snippet is as follows, $key = ‘some key’; $data = ‘data to be encrypted’ $iv = pa…

---

## [How(where) to define a method that to be called by views?](https://www.ruby-forum.com/t/how-where-to-define-a-method-that-to-be-called-by-views/122315)

<div class="topic-metadata">

**Author:** [@sun](https://www.ruby-forum.com/u/sun)\
**Replies:** 3\
**Last updated:** [December 6, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/how-where-to-define-a-method-that-to-be-called-by-views/122315 "2007-12-06T16:27:41Z")

</div>

Hi, I just dabbed Ruby on rails abit and what to know where is the right place to define a method, that prinf some output information to views, based on some variable. I define a function "def foo " in contrioller …

---

## [Opc\_connect](https://www.ruby-forum.com/t/opc-connect/122314)

<div class="topic-metadata">

**Author:** [@manjunath](https://www.ruby-forum.com/u/manjunath)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/opc-connect/122314 "2007-12-06T16:07:27Z")

</div>

Hi, Please any one can help me regarding this problem. My problem is , I am trying to compile some code using VC++ 6.0 originary written in linux. In which it is using some of the hp OVO api’s like opc\_connect(), opc…

---

## [What are the differences between c++ and Ruby?](https://www.ruby-forum.com/t/what-are-the-differences-between-c-and-ruby/121934)

<div class="topic-metadata">

**Author:** [@duddillaSs](https://www.ruby-forum.com/u/duddillaSs)\
**Replies:** 12\
**Last updated:** [December 6, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/what-are-the-differences-between-c-and-ruby/121934 "2007-12-06T15:36:07Z")

</div>

Hi I would like implement multiple inheritance in java by using ruby mixin mechanism.Is that possible? And my other question is what are exact differences between C++ and Ruby? and Ruby and Java? Thanks

---

## [Can we foresee any big changes for Ruby in year 2008?](https://www.ruby-forum.com/t/can-we-foresee-any-big-changes-for-ruby-in-year-2008/122291)

<div class="topic-metadata">

**Author:** [@Song\_Ma](https://www.ruby-forum.com/u/Song_Ma)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/can-we-foresee-any-big-changes-for-ruby-in-year-2008/122291 "2007-12-06T15:30:28Z")

</div>

Hi, I understand this question is a little bit “earlier” before Ruby 1.9.x debut in Dec. 2007. There will be many big changes in 1.9 release like new VM and M17N based strings. Matz has explained that after 1.9 rel…

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

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