# Ruby

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

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

---

## [LGBT Partner/Ruby Web Developer at TopOutColleges.com](https://www.ruby-forum.com/t/lgbt-partner-ruby-web-developer-at-topoutcolleges-com/196548)

<div class="topic-metadata">

**Author:** [@TopOutColleges](https://www.ruby-forum.com/u/TopOutColleges)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/lgbt-partner-ruby-web-developer-at-topoutcolleges-com/196548 "2007-12-19T22:32:07Z")

</div>

TopOutColleges.com is the first and only website where students voice their own opinions and rate their colleges on LGBT-friendliness. The site is a major resource for LGBT campus organizations that want to improve up…

---

## [Charlie 0.5.0 Released - A genetic algorithms library](https://www.ruby-forum.com/t/charlie-0-5-0-released-a-genetic-algorithms-library/123683)

<div class="topic-metadata">

**Author:** [@sander](https://www.ruby-forum.com/u/sander)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/charlie-0-5-0-released-a-genetic-algorithms-library/123683 "2007-12-19T21:37:29Z")

</div>

Hi all, I’m pleased to announce the first public release of charlie, a genetic algorithms library for Ruby. FEATURES: Quickly develop GAs by combining several parts (genotype, selection, crossover, mutation) provid…

---

## [Web App to Control Sever or Devices](https://www.ruby-forum.com/t/web-app-to-control-sever-or-devices/123700)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/web-app-to-control-sever-or-devices/123700 "2007-12-19T20:54:46Z")

</div>

Hello, I am new to Ruby. Can someone please point me in the direction of how to have ruby scripts that run on a computer launch from buttons on a webpage? Thanks in advance, ben

---

## [WIN32OLE - failed to create WIN32OLE](https://www.ruby-forum.com/t/win32ole-failed-to-create-win32ole/123665)

<div class="topic-metadata">

**Author:** [@zxem](https://www.ruby-forum.com/u/zxem)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/win32ole-failed-to-create-win32ole/123665 "2007-12-19T20:07:12Z")

</div>

I am trying to create a ruby class base on a Win32 COM typelib info. The class I tried to create is as followed. COM Type info: (There is no registry entry for this class) \[ uuid(0058FFFF-5B03-11D3-A520-00805F9BE596)…

---

## [Music notation ABC](https://www.ruby-forum.com/t/music-notation-abc/123656)

<div class="topic-metadata">

**Author:** [@lunatic](https://www.ruby-forum.com/u/lunatic)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/music-notation-abc/123656 "2007-12-19T19:28:58Z")

</div>

Hi, Do you know something about library for parse ABC music notation? I want something or write something to load files containig mutliple ABC tunes, organise then cherche for similar tunes in the files, create liste…

---

## [Two feature requests for safer Ruby Programming](https://www.ruby-forum.com/t/two-feature-requests-for-safer-ruby-programming/123633)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 7\
**Last updated:** [December 19, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/two-feature-requests-for-safer-ruby-programming/123633 "2007-12-19T19:16:23Z")

</div>

You can take my take on following issues with a pinch of salt, when you disagree I perhaps know, why you disagree and generally respect your opinion no matter how badly i disagree. Image a new guy joins your rails t…

---

## [\_Ruby Scripting Leopard\_](https://www.ruby-forum.com/t/ruby-scripting-leopard/123685)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/ruby-scripting-leopard/123685 "2007-12-19T19:00:28Z")

</div>

I’ve begun work on a book for the Pragmatic Press called (today) Ruby Scripting Leopard. I’d like to assemble an audience who can review drafts and tell me what people like them need. I’ve set up a mailing list: http…

---

## [Bbbbbbbbbbbbbbbbb](https://www.ruby-forum.com/t/bbbbbbbbbbbbbbbbb/123623)

<div class="topic-metadata">

**Author:** [@varun](https://www.ruby-forum.com/u/varun)\
**Replies:** 4\
**Last updated:** [December 19, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/bbbbbbbbbbbbbbbbb/123623 "2007-12-19T18:23:10Z")

</div>

,k

---

## [Split an element in an array into different fields using :](https://www.ruby-forum.com/t/split-an-element-in-an-array-into-different-fields-using/123666)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/split-an-element-in-an-array-into-different-fields-using/123666 "2007-12-19T16:48:34Z")

</div>

Hey guys so i have a example of splitting elements in an array and getting the third word. Im using spaces to split it. Anyone know how to split it if i need to use : instead of spaces arr = File.readlines(“sample.txt…

---

## [Metho Error](https://www.ruby-forum.com/t/metho-error/123652)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/metho-error/123652 "2007-12-19T16:45:52Z")

</div>

Why do I get the folowing error when I run this method ? ? wrong number of arguments (2 for 3) (ArgumentError) from C:/Ruby/methodscop/lib/new\_class.rb:65 def self.search\_by\_keyword(businesses, searched\_keyword\_as\_arra…

---

## [Check if value has already been used](https://www.ruby-forum.com/t/check-if-value-has-already-been-used/123659)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/check-if-value-has-already-been-used/123659 "2007-12-19T16:27:45Z")

</div>

Hi, Im currently working on an issue im having with a ruby method within my rails project. i have this method: def saveAssetTags(asset, taglist) #add new tags tagList = taglist.split(/\\s\*\\,\\s\*/) #drop all current…

---

## [Hash#collate](https://www.ruby-forum.com/t/hash-collate/123596)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 8\
**Last updated:** [December 19, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/hash-collate/123596 "2007-12-19T15:33:42Z")

</div>

I wanted a method like Hash#update, but that preserved the values from both the original and argument Hash. A little searching failed to find it. (I did find that someone somewhere wrote a Hash#collate that’s in my ri…

---

## [String question](https://www.ruby-forum.com/t/string-question/123512)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/string-question/123512 "2007-12-19T14:58:27Z")

</div>

i have this string: try\_dir=“program files/tbla/bla1” how can i slice it in string1=program files" string2=“tbla” string3=“bla1” tnx

---

## [Unparenthesized method call with block](https://www.ruby-forum.com/t/unparenthesized-method-call-with-block/123650)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/unparenthesized-method-call-with-block/123650 "2007-12-19T14:52:35Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B0J2\<$G%(%i!\<$b?t;z$b=PNO$5$l$J$$$N$OJQ$G$O$J$$$G$7$g$&$+!#e(B $ ./ruby -ve ‘1.upto 10 {|v| p v }’ ruby 1.9.0 (2007-12-19 patchlevel 0) \[i686-linux\] $ parse.y e$B$K;vee(B cmd\_brace\_block e$B…

---

## [Popup without application](https://www.ruby-forum.com/t/popup-without-application/123617)

<div class="topic-metadata">

**Author:** [@sridhar](https://www.ruby-forum.com/u/sridhar)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/popup-without-application/123617 "2007-12-19T14:14:12Z")

</div>

Plz help me out… In my web application, i have to populate the popups to display the “welcome” msg, it is a static page… i have written the code in javascript and called when the main page is loaded using onload() fu…

---

## [Can i please help](https://www.ruby-forum.com/t/can-i-please-help/123647)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/can-i-please-help/123647 "2007-12-19T14:01:34Z")

</div>

Well I changed the method, so that it can take the three parameters. And my question would be How can I modify the ruby block code so that I can do the perform the matching. def self.search\_by\_keyword(businesses, sea…

---

## [Question about Ruby and databases](https://www.ruby-forum.com/t/question-about-ruby-and-databases/123562)

<div class="topic-metadata">

**Author:** [@skycube](https://www.ruby-forum.com/u/skycube)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/question-about-ruby-and-databases/123562 "2007-12-19T14:01:06Z")

</div>

Hello all, I am new to Ruby (actually I used Ruby a few years back, but because of certain personal situations I stopped learning Ruby). I have a question concerning Ruby and databases. I’ve read that the best way …

---

## [PDF::Writer, embedding non-PNGs](https://www.ruby-forum.com/t/pdf-writer-embedding-non-pngs/123627)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 4\
**Last updated:** [December 19, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/pdf-writer-embedding-non-pngs/123627 "2007-12-19T13:52:26Z")

</div>

Hi, the PDF::Writer documentation reads: add\_image(image, x, y, …) Add an image from a loaded image (JPEG or PNG) resource … ^^^^ ^^^ The image I want to embed is in PostScript. In concrete, it is the output of …

---

## [Partial Search](https://www.ruby-forum.com/t/partial-search/123642)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/partial-search/123642 "2007-12-19T13:20:19Z")

</div>

I have created this method but I want to improve to be ale to search based on the keywords partially. def self.search\_by\_keyword(businesses, searched\_keyword) businesses.select do |b| b.my\_keywords.include?(searched\_…

---

## [Round off float value](https://www.ruby-forum.com/t/round-off-float-value/123615)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 7\
**Last updated:** [December 19, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/round-off-float-value/123615 "2007-12-19T13:11:19Z")

</div>

Hi folks, I want to round off 179.9485 to 179.95 round,floor,ceil gives me full integer. can anyone suggest me? Thanks in Adavance Saravanan.K

---

## [Odd behaviour of require](https://www.ruby-forum.com/t/odd-behaviour-of-require/123639)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 11:54am UTC](https://www.ruby-forum.com/t/odd-behaviour-of-require/123639 "2007-12-19T11:54:30Z")

</div>

Dear all, when I do : require “rubygems” require “gsl” #require “gecoder” include GSL a=Vector.alloc(\[1,2,3\]) p a =\> GSL::Vector\[ 1.000e+00 2.000e+00 3.000e+00 \] (as expected) , but requiring “gecoder” also gi…

---

## [Binding of caller](https://www.ruby-forum.com/t/binding-of-caller/123498)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 11:33am UTC](https://www.ruby-forum.com/t/binding-of-caller/123498 "2007-12-19T11:33:24Z")

</div>

e$B$J$+$@$G$9!#e(B Binding.of\_callere$B$H$+e(BBinding#callere$B$H$+e(Bbindinge$B$N%\*%W%7%g%J%k0z?te(B e$B$H$+$r\<BAu$7$F$\_$^$7$?!#e(B Index: proc.c — proc.c (revision 14286) +++ proc.c (working copy) @@ -174,18 +17…

---

## [Inspect closed dir](https://www.ruby-forum.com/t/inspect-closed-dir/123632)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 11:22am UTC](https://www.ruby-forum.com/t/inspect-closed-dir/123632 "2007-12-19T11:22:17Z")

</div>

close e$B$5$l$?e(B Dir e$B%$%s%9%?%s%9$re(B inspect e$B$9$k$He(B IOError e$B$K$J$j$^$9!#e(B % ./ruby -ve ’ d = Dir.open(".") d.close p d’ ruby 1.9.0 (2007-12-19 patchlevel 0) \[i686-linux\] -e:4:in inspect': closed …

---

## [Smallest device to code ruby on?](https://www.ruby-forum.com/t/smallest-device-to-code-ruby-on/123247)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 30\
**Last updated:** [December 19, 2007, 10:51am UTC](https://www.ruby-forum.com/t/smallest-device-to-code-ruby-on/123247 "2007-12-19T10:51:59Z")

</div>

Whats the smallest gadget you can code (and compile) ruby on? I am looking for something that could be used in the bus… But is hopefully inexpensive and very small. OF course it should have qwerty or dvorak or similar…

---

## [Retry from proc-closure (LocalJumpError)](https://www.ruby-forum.com/t/retry-from-proc-closure-localjumperror/121626)

<div class="topic-metadata">

**Author:** [@Masatoshi\_SEKI](https://www.ruby-forum.com/u/Masatoshi_SEKI)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 10:20am UTC](https://www.ruby-forum.com/t/retry-from-proc-closure-localjumperror/121626 "2007-12-19T10:20:02Z")

</div>

å’³ã¨ã„ã„ã¾ã™ã€‚ åŠ©ã‘ã¦ãã ã•ã„ã€‚ 1.9ã®dRubyã®retryã®ãƒ†ã‚¹ãƒˆã§å›°ã£ã¦ã„ã¾ã™ã€‚ 1.8ã§ç™ºç”Ÿã—ã¦ã„ãŸLocalJumpErrorãŒç™ºç”Ÿã—ãªããªã£ã¦ã—ã¾ã„ã€ dRubyã§retryã‚’æ•ã¾ãˆã‚‰ã‚Œãªã…

---

## [Difference between alias and alias\_method](https://www.ruby-forum.com/t/difference-between-alias-and-alias-method/123431)

<div class="topic-metadata">

**Author:** [@Chan\_S](https://www.ruby-forum.com/u/Chan_S)\
**Replies:** 4\
**Last updated:** [December 19, 2007, 9:23am UTC](https://www.ruby-forum.com/t/difference-between-alias-and-alias-method/123431 "2007-12-19T09:23:06Z")

</div>

In the example below, I really can’t sort out why using alias\_method will work, while using alias won’t. Could someone shred me some light on this? Thanks. class T def initialize() puts “T’s initialize” end def se…

---

## [ROR commands to create a folder](https://www.ruby-forum.com/t/ror-commands-to-create-a-folder/123614)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 6:35am UTC](https://www.ruby-forum.com/t/ror-commands-to-create-a-folder/123614 "2007-12-19T06:35:47Z")

</div>

hi All does any one have tried to create a folder from a ROR command. in my application i want to check weather their is existing folder with a given name and if it does not exists to make a new folder. is some one h…

---

## [Newbie Question: What is a class for?](https://www.ruby-forum.com/t/newbie-question-what-is-a-class-for/123091)

<div class="topic-metadata">

**Author:** [@fluchtpunkt](https://www.ruby-forum.com/u/fluchtpunkt)\
**Replies:** 10\
**Last updated:** [December 19, 2007, 6:33am UTC](https://www.ruby-forum.com/t/newbie-question-what-is-a-class-for/123091 "2007-12-19T06:33:35Z")

</div>

Hello all- I am a newbie to Ruby and have just recently gotten the hang of using methods to hop in and out of the main body of my programs and am moving to my next concept. I am now trying to grasp what a class isand…

---

## [Cygwin $B\>e$G(B Ruby$B:G?7HG(B $B$r%$%s%9%H!\<%k$9$k\>l9g(B](https://www.ruby-forum.com/t/cygwin-b-e-g-b-ruby-b-g-7hg-b-b-r-s-9-h-k-9-k-l9g-b/123606)

<div class="topic-metadata">

**Author:** [@Koji\_Tominaga](https://www.ruby-forum.com/u/Koji_Tominaga)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 6:00am UTC](https://www.ruby-forum.com/t/cygwin-b-e-g-b-ruby-b-g-7hg-b-b-r-s-9-h-k-9-k-l9g-b/123606 "2007-12-19T06:00:17Z")

</div>

e$BIY1J$H?=$7$^$9!#e(B Cygwin e$B\>e$Ge(B Rubye$B:G?7HGe(B e$B$Ne(B make e$B$r9T$C$F$$$?$i0J2\<$N$h$&$J%(%i!\<$,=P$^$7$?!#e(B $ make gcc -g -O2 -I. -I.ext/include/i386-cygwin -I./include -I. -DRUBY\_EXPORT -c ./missi…

---

## [Problem in ROR running](https://www.ruby-forum.com/t/problem-in-ror-running/123610)

<div class="topic-metadata">

**Author:** [@geetha](https://www.ruby-forum.com/u/geetha)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 4:28am UTC](https://www.ruby-forum.com/t/problem-in-ror-running/123610 "2007-12-19T04:28:58Z")

</div>

Dear All, I am using Ruby on Rails in Linux platform. When every i run my rails application it occupy more memory and the system speed also slow ( Process ) .To avoid this what can i do. If any possibiliti…

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

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