# Ruby

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

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

---

## [Developing a frame work](https://www.ruby-forum.com/t/developing-a-frame-work/142940)

<div class="topic-metadata">

**Author:** [@katthi](https://www.ruby-forum.com/u/katthi)\
**Replies:** 1\
**Last updated:** [June 2, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/developing-a-frame-work/142940 "2007-06-02T13:10:26Z")

</div>

I have to develop a framework in such way that it has to support work flows and persistance storage in ruby on rails .for example if we take office automation system ,if the user interacts with the system,if that eve…

---

## [Array index of first bigger number](https://www.ruby-forum.com/t/array-index-of-first-bigger-number/105765)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 3\
**Last updated:** [June 2, 2007, 11:26am UTC](https://www.ruby-forum.com/t/array-index-of-first-bigger-number/105765 "2007-06-02T11:26:18Z")

</div>

Is there a simple function (I solve it w a loop… C-minded) to find the index of the first bigger element in an array limit mini is first\_element , if item \< last\_element item = -2.23 anArray = \[0.0, 2.0, 5.0, 10.0,…

---

## [Underscore](https://www.ruby-forum.com/t/underscore/105357)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 21\
**Last updated:** [June 2, 2007, 9:41am UTC](https://www.ruby-forum.com/t/underscore/105357 "2007-06-02T09:41:04Z")

</div>

Logan C. wrote: accessing the passed in function (block) anonymously. f1 { puts “Does the same thing” } I see. So that was equivalent to: let rec nest ?(n=2) x f = Seq.fold (fun acc -\> f acc) x {1 … n} but what i…

---

## [Ruby vs perl6](https://www.ruby-forum.com/t/ruby-vs-perl6/105677)

<div class="topic-metadata">

**Author:** [@jwing](https://www.ruby-forum.com/u/jwing)\
**Replies:** 12\
**Last updated:** [June 2, 2007, 8:57am UTC](https://www.ruby-forum.com/t/ruby-vs-perl6/105677 "2007-06-02T08:57:01Z")

</div>

Hi, The reason to send this mail is that I am still wondering why I should study and use Ruby. I used perl for 5 years and recently I try to study and use Ruby… I can’t wait perl6 to relase. sb. says Ruby is an a…

---

## [Is \[ \] really a method?](https://www.ruby-forum.com/t/is-really-a-method/105755)

<div class="topic-metadata">

**Author:** [@vineetraja](https://www.ruby-forum.com/u/vineetraja)\
**Replies:** 3\
**Last updated:** [June 2, 2007, 6:21am UTC](https://www.ruby-forum.com/t/is-really-a-method/105755 "2007-06-02T06:21:50Z")

</div>

Hi all, Well while running down the text I read that \[\] (used in case Arrays and Hashes) is actually a method called on that Array/hash object and also that it can be overridden. well point taken. BUT if this is jus…

---

## [URL for the most current, still maintained, Ruby Language FA](https://www.ruby-forum.com/t/url-for-the-most-current-still-maintained-ruby-language-fa/105752)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [June 2, 2007, 4:43am UTC](https://www.ruby-forum.com/t/url-for-the-most-current-still-maintained-ruby-language-fa/105752 "2007-06-02T04:43:46Z")

</div>

Someone wrote and told me that ruby-doc has a broken link for the Ruby Language FAQ. In Googling around I’ve come across five or six versions of varying dates. ruby-lang.org has an old link as well. I’d like to updat…

---

## [New project ( was Re: logging off windows users remotely wit](https://www.ruby-forum.com/t/new-project-was-re-logging-off-windows-users-remotely-wit/105741)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 1\
**Last updated:** [June 2, 2007, 2:57am UTC](https://www.ruby-forum.com/t/new-project-was-re-logging-off-windows-users-remotely-wit/105741 "2007-06-02T02:57:37Z")

</div>

Any help? I know it can be done with vbscript and wmi, but I really really want to accomplish this using some ruby as I am trying to introduce more of it in our company Additionally you can use WMI through Win32O…

---

## [Atlanta, Ga](https://www.ruby-forum.com/t/atlanta-ga/105751)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [June 2, 2007, 2:51am UTC](https://www.ruby-forum.com/t/atlanta-ga/105751 "2007-06-02T02:51:36Z")

</div>

Hello all, The company I’m working for, Astral Brands, is looking for a versatile developer. This is a very stable non-tech company looking to beef up it’s web presence. Here’s a link to the about info: http://www.…

---

## [Libmtag-ruby-0.2.0: music tagging library](https://www.ruby-forum.com/t/libmtag-ruby-0-2-0-music-tagging-library/105744)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 0\
**Last updated:** [June 2, 2007, 1:28am UTC](https://www.ruby-forum.com/t/libmtag-ruby-0-2-0-music-tagging-library/105744 "2007-06-02T01:28:32Z")

</div>

Hi everyone, This release has a new get\_info function that returns the mime-type of the file. So the client code looks like this: file = MTag::File.new(“song.mp3”) print(“%s - %s \[%s\]\\n” % \[file.tag.artist, file.tag…

---

## [Offline Rails Framework Documentation](https://www.ruby-forum.com/t/offline-rails-framework-documentation/105435)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 10\
**Last updated:** [June 2, 2007, 1:16am UTC](https://www.ruby-forum.com/t/offline-rails-framework-documentation/105435 "2007-06-02T01:16:31Z")

</div>

I would like to download the Rails Framework Documentation (http:// rails.rubyonrails.com/) so I can use it offline. I tried doing ‘File / Save As…’ but that didn’t work. I had limited success with downloading http://…

---

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

<div class="topic-metadata">

**Author:** [@HalldSSS\_r\_GuSSSSna](https://www.ruby-forum.com/u/HalldSSS_r_GuSSSSna)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/unsubscribe/105738 "2007-06-01T23:33:21Z")

</div>

unsubscribe

---

## [Generating CReturn in xml file](https://www.ruby-forum.com/t/generating-creturn-in-xml-file/105721)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/generating-creturn-in-xml-file/105721 "2007-06-01T20:51:55Z")

</div>

I am generating an xml output file from my rails app to be read in Flash… working fine as long as I don’t have to insert a CR in a string to be understood by Flash Flash can understand the CR if the character is em…

---

## [Read\_multipart bug (in Ruby's CGI and Rail's AbstractRequest](https://www.ruby-forum.com/t/read-multipart-bug-in-rubys-cgi-and-rails-abstractrequest/105719)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/read-multipart-bug-in-rubys-cgi-and-rails-abstractrequest/105719 "2007-06-01T18:45:38Z")

</div>

I have written code that receives multipart forms. I’m currently testing the software by using curl to push files through a Rails controller. One of my test cases fails, and it strongly looks like the failure is due…

---

## [Help with Ruby \< - \> Oracle Connectivity](https://www.ruby-forum.com/t/help-with-ruby-oracle-connectivity/105502)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 14\
**Last updated:** [June 1, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/help-with-ruby-oracle-connectivity/105502 "2007-06-01T17:06:25Z")

</div>

Hello, I can’t seem to get connected to an Oracle server here at my company. I’m using the oci8 gem along with DBI. Here’s what I code and here’s what I get. . . . require ‘oci8’ require ‘dbi’ begin connect to the…

---

## [Logging off windows users remotely with ruby](https://www.ruby-forum.com/t/logging-off-windows-users-remotely-with-ruby/105653)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/logging-off-windows-users-remotely-with-ruby/105653 "2007-06-01T16:59:24Z")

</div>

We have about 11 windows 2k/xp boxes that I would like to force a logoff remotely. Any help? I know it can be done with vbscript and wmi, but I really really want to accomplish this using some ruby as I am trying to …

---

## [Can i abbreviate this expression to fit on one line?](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 4\
**Last updated:** [June 1, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704 "2007-06-01T16:58:24Z")

</div>

Hey there, i am wondering if there is a way i can fit this on one line if x \> 23: next end thanks

---

## [ANN: Sequel 0.1.6 Released](https://www.ruby-forum.com/t/ann-sequel-0-1-6-released/105707)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-6-released/105707 "2007-06-01T16:46:22Z")

</div>

Sequel version 0.1.6 has just been released. New in this release is support for literal expressions, Dataset#or and Dataset#and, and the default join type is INNER JOIN. Various bug fixes courtesy of snok. Sequel is a…

---

## [One More Bias (or perhaps I'm too novice )](https://www.ruby-forum.com/t/one-more-bias-or-perhaps-im-too-novice/105701)

<div class="topic-metadata">

**Author:** [@vineetraja](https://www.ruby-forum.com/u/vineetraja)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/one-more-bias-or-perhaps-im-too-novice/105701 "2007-06-01T16:45:22Z")

</div>

Hi All Another Query To bother you all: 1 class Person 2 def \*(o) 3 puts “One person meets another” 4 end 5 6 def meets (o) 7 puts “One person meets another” 8 end 9 end 10 a= Person.new 11 b=Pers…

---

## [\[Bug\] String.titlecase failing on UTF-8 with accented chars](https://www.ruby-forum.com/t/bug-string-titlecase-failing-on-utf-8-with-accented-chars/105700)

<div class="topic-metadata">

**Author:** [@mlemos](https://www.ruby-forum.com/u/mlemos)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/bug-string-titlecase-failing-on-utf-8-with-accented-chars/105700 "2007-06-01T16:30:17Z")

</div>

Anybody knows how to solve that? Check this: u.lastname =\> “Guimar\\303\\243es” puts u.lastname GuimarÃ£es =\> nil u.lastname.titlecase =\> “Guimar\\303\\243Es” puts u.lastname.titlecase GuimarÃ£Es # ------…

---

## [Access Modifiers](https://www.ruby-forum.com/t/access-modifiers/105689)

<div class="topic-metadata">

**Author:** [@vineetraja](https://www.ruby-forum.com/u/vineetraja)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/access-modifiers/105689 "2007-06-01T14:59:00Z")

</div>

Hi All Now another hitch: 1 class Person 2 attr\_reader :genre, :style 3 protected :genre 4 private :to\_s 5 def psedonym 6 @name 7 end 8 9 def to\_s 10 “just another person” 11 end 12 #private …

---

## [Ruby bug in +=?](https://www.ruby-forum.com/t/ruby-bug-in/105671)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 1, 2007, 1:30pm UTC](https://www.ruby-forum.com/t/ruby-bug-in/105671 "2007-06-01T13:30:50Z")

</div>

def addToList(x) $list += \[x\]; end def function() addToList(“a”); addToList(“b”); addToList(“c”); return “d”; end $list = \[\]; addToList(function()); # $list = \[“a”,“b”,“c”,“d”\] $list = \[\]; $list += \[function(…

---

## [Set intersection with a specific criteria: a better idiom?](https://www.ruby-forum.com/t/set-intersection-with-a-specific-criteria-a-better-idiom/105566)

<div class="topic-metadata">

**Author:** [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/set-intersection-with-a-specific-criteria-a-better-idiom/105566 "2007-06-01T13:25:47Z")

</div>

Hi, I have been trying to intersect 2 sets of objects that where I want the “intersected” objects to share a common property. This is what I came up with: Here, I want to get all the Errors having the same file name: …

---

## [DRb and Thread safety](https://www.ruby-forum.com/t/drb-and-thread-safety/105560)

<div class="topic-metadata">

**Author:** [@Erwin\_A](https://www.ruby-forum.com/u/Erwin_A)\
**Replies:** 9\
**Last updated:** [June 1, 2007, 11:43am UTC](https://www.ruby-forum.com/t/drb-and-thread-safety/105560 "2007-06-01T11:43:37Z")

</div>

I’ve been reading about DRb and one issue that I still have questions about is thread safety. Every website I’ve come across uses very basic examples where the client never does anything that would modify the distrib…

---

## [How to specify access modifers for variables?](https://www.ruby-forum.com/t/how-to-specify-access-modifers-for-variables/105685)

<div class="topic-metadata">

**Author:** [@raja](https://www.ruby-forum.com/u/raja)\
**Replies:** 5\
**Last updated:** [June 1, 2007, 11:30am UTC](https://www.ruby-forum.com/t/how-to-specify-access-modifers-for-variables/105685 "2007-06-01T11:30:34Z")

</div>

I know this could be naive but still: class Person attr\_reader :genre protected :genre def psedonym @name end end In the class above, I can declare variable genre to be protected, but when I try to do the same…

---

## [Gets does not block (STDOUT.flush issue?)](https://www.ruby-forum.com/t/gets-does-not-block-stdout-flush-issue/105670)

<div class="topic-metadata">

**Author:** [@Ivan\_B](https://www.ruby-forum.com/u/Ivan_B)\
**Replies:** 1\
**Last updated:** [June 1, 2007, 7:35am UTC](https://www.ruby-forum.com/t/gets-does-not-block-stdout-flush-issue/105670 "2007-06-01T07:35:54Z")

</div>

File: test.rb STDOUT.sync=true puts “File exists. Are you sure?” STDOUT.flush answer=gets.chomp puts answer executing this file with any parameters (e.g. ./test.rb bla) yields this: \[:~/ruby\]$ ./test.rb bla File…

---

## [Import File problem](https://www.ruby-forum.com/t/import-file-problem/105667)

<div class="topic-metadata">

**Author:** [@M\_Beale](https://www.ruby-forum.com/u/M_Beale)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 6:16am UTC](https://www.ruby-forum.com/t/import-file-problem/105667 "2007-06-01T06:16:42Z")

</div>

I have a problem I am hoping someone can help me out with. I am trying to import a csv file and it goes smoothly while trying to work in my development environment(radrails) but when deploying it with instant rails I…

---

## [Get info from object\_id](https://www.ruby-forum.com/t/get-info-from-object-id/105569)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 4\
**Last updated:** [June 1, 2007, 5:28am UTC](https://www.ruby-forum.com/t/get-info-from-object-id/105569 "2007-06-01T05:28:46Z")

</div>

Hi All, apologies in advance if this is so stupid for you (my feeble mind is working feebly :slight\_smile: so here goes, Given an object\_id, how do i get back the object that id stands for? i’m looking for something…

---

## [Concurrent-0.2.2 released (bugfixes)](https://www.ruby-forum.com/t/concurrent-0-2-2-released-bugfixes/105661)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 4:58am UTC](https://www.ruby-forum.com/t/concurrent-0-2-2-released-bugfixes/105661 "2007-06-01T04:58:44Z")

</div>

Just a quick note that version 0.2.2 of the Omnibus Concurrency Library has been released; it removes some leftover code from an earlier version that prevented lazy evaluation from working, as well as fixing a C++ism …

---

## [Hackety Hack libs (as a gem)](https://www.ruby-forum.com/t/hackety-hack-libs-as-a-gem/105647)

<div class="topic-metadata">

**Author:** [@S\_why](https://www.ruby-forum.com/u/S_why)\
**Replies:** 1\
**Last updated:** [June 1, 2007, 4:03am UTC](https://www.ruby-forum.com/t/hackety-hack-libs-as-a-gem/105647 "2007-06-01T04:03:40Z")

</div>

Good day, everyone. It’s been a few weeks since the first versions of Hackety Hack were opened up to the web. H-ety H is a combo pack, Ruby built into a browser, designed to aid teaching and offer a simpler way for …

---

## [Operator =\>](https://www.ruby-forum.com/t/operator/105377)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 4\
**Last updated:** [June 1, 2007, 3:37am UTC](https://www.ruby-forum.com/t/operator/105377 "2007-06-01T03:37:38Z")

</div>

Hi I have a beginner question What does the =\> operator do? here is the example code from the book class Product \< ActiveRecord::Base has\_many :orders, :through =\> :line\_items #…

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

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