# Ruby

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

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

---

## [Mixins conflict? FileUtils and mini\_exiftool](https://www.ruby-forum.com/t/mixins-conflict-fileutils-and-mini-exiftool/108760)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 2\
**Last updated:** [July 7, 2007, 2:07am UTC](https://www.ruby-forum.com/t/mixins-conflict-fileutils-and-mini-exiftool/108760 "2007-07-07T02:07:37Z")

</div>

Not sure if Mixins is the right word. But I have require ‘rubygems’ # # Needed by rbosa, mini\_exiftool, appscript, --at least in my installation require ‘FileUtils’ require ‘mini\_exiftool’ # a wrapper for the Perl Ex…

---

## [Syntax error: m {|(\*,a,b)|}](https://www.ruby-forum.com/t/syntax-error-m-a-b/108788)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 1:18am UTC](https://www.ruby-forum.com/t/syntax-error-m-a-b/108788 "2007-07-07T01:18:51Z")

</div>

m {|(\*,a,b)|} e$B$H$$$&$N$,e(B syntax error e$B$K$J$j$^$9$,!"0U?^$;$6e(B e$B$k$b$N$G$O$J$$$G$7$g$&$+!#e(B % ./ruby -vce 'm {|(,a,b)|}’ ruby 1.9.0 (2007-07-06 patchlevel 0) \[i686-linux\] -e:1: syntax error, unexpected …

---

## [Ogre.rb 0.1](https://www.ruby-forum.com/t/ogre-rb-0-1/108785)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 12:29am UTC](https://www.ruby-forum.com/t/ogre-rb-0-1/108785 "2007-07-07T00:29:49Z")

</div>

Ogre.rb v 0.1 has been released! It is available in gem and tar format on it’s rubyforge page: http://rubyforge.org/projects/ogrerb Documentation is available in rdoc form at the website: http://ogrerb.rubyforge.org …

---

## [Pattern Matching Problem](https://www.ruby-forum.com/t/pattern-matching-problem/108692)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 12\
**Last updated:** [July 7, 2007, 12:23am UTC](https://www.ruby-forum.com/t/pattern-matching-problem/108692 "2007-07-07T00:23:48Z")

</div>

Ok. I have a major pattern matching problem. In essence, right now the word i am trying to match is “hello”, WITH double quotes around it. Why isn’t this working? It always hits the else part of my case-when loop. wr…

---

## [Weird test/unit behavior](https://www.ruby-forum.com/t/weird-test-unit-behavior/108781)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 1\
**Last updated:** [July 7, 2007, 12:02am UTC](https://www.ruby-forum.com/t/weird-test-unit-behavior/108781 "2007-07-07T00:02:46Z")

</div>

Consider a simple test - my\_test.rb: require ‘test/unit’ class MyTest \< Test::Unit::TestCase def test1 assert(true) end end Now consider a simple script to run this. run2.rb: if ARGV.length == 0 puts “usage run t…

---

## [Already initialized constant OPTIONS help please!](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653)

<div class="topic-metadata">

**Author:** [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Replies:** 4\
**Last updated:** [July 6, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653 "2007-07-06T23:11:42Z")

</div>

=\> Booting WEBrick… c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:11: warning: already initialized constant OPTIONS =\> Booting WEBrick… c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.…

---

## [Is there a name for this idiom?](https://www.ruby-forum.com/t/is-there-a-name-for-this-idiom/108777)

<div class="topic-metadata">

**Author:** [@Lyle\_J](https://www.ruby-forum.com/u/Lyle_J)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/is-there-a-name-for-this-idiom/108777 "2007-07-06T23:09:42Z")

</div>

When you want to move your program’s startup code into a block like so: if FILE == $0 # initialize and run program here end What’s that called? Is there a commonly used name for that “startup” block?

---

## [Regex: What does the ^ do? What is it called?](https://www.ruby-forum.com/t/regex-what-does-the-do-what-is-it-called/108711)

<div class="topic-metadata">

**Author:** [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Replies:** 15\
**Last updated:** [July 6, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/regex-what-does-the-do-what-is-it-called/108711 "2007-07-06T22:42:39Z")

</div>

Hello, Im trying to understand what the ^ and $ characters do when used in regular expressions. For example: /^abc/ =~ “!abc” returns nil “You can use an anchor to match the beginning of a string” /abc$/ =~ “abc!” …

---

## [Simple question on rbgsl vectors](https://www.ruby-forum.com/t/simple-question-on-rbgsl-vectors/108538)

<div class="topic-metadata">

**Author:** [@baptiste\_AuguiSSSS](https://www.ruby-forum.com/u/baptiste_AuguiSSSS)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/simple-question-on-rbgsl-vectors/108538 "2007-07-06T21:58:34Z")

</div>

Hi, I’m trying to do a simple thing : access elements of a vector specified by their index. In Matlab/Octave i would do, newVector=oldVector( \[1, 3, 56, 72\] ) How does this work with Ruby vectors? oldVector.get(3,4,…

---

## [Ruby real time web server multi threaded probs](https://www.ruby-forum.com/t/ruby-real-time-web-server-multi-threaded-probs/108765)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [July 6, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/ruby-real-time-web-server-multi-threaded-probs/108765 "2007-07-06T21:29:15Z")

</div>

So…I seem to have run into a few problems in a ruby multi-threaded socket based program that, after quite awhile, I am still scratching my head at these. Has any body encountered/overcome…\[sorry if these are old, or …

---

## [Ruby Equivalent to Python os.startfile?](https://www.ruby-forum.com/t/ruby-equivalent-to-python-os-startfile/108718)

<div class="topic-metadata">

**Author:** [@wrishel](https://www.ruby-forum.com/u/wrishel)\
**Replies:** 4\
**Last updated:** [July 6, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-to-python-os-startfile/108718 "2007-07-06T20:59:28Z")

</div>

In Windows cmd.exe, if I enter the name of a file with a Windows extension, Windows will start the file as if I double clicked on it in Windows explorer. E.g. D:/Documents and Settings/WRishel/My Documents/DailyNotes\>0…

---

## [Fwd: back on bytes](https://www.ruby-forum.com/t/fwd-back-on-bytes/108764)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/fwd-back-on-bytes/108764 "2007-07-06T20:31:26Z")

</div>

yep, sorry ---------- Forwarded message ---------- From: Jerry H. removed\_email\_address@domain.invalid Date: Jul 6, 2007 1:29 PM Subject: Re: \[Tutor\] back on bytes To: shawn bright removed\_email\_address@domain.inval…

---

## [Getting bit on bytes](https://www.ruby-forum.com/t/getting-bit-on-bytes/108757)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/getting-bit-on-bytes/108757 "2007-07-06T20:20:25Z")

</div>

hey there all, i have a question concerning making numbers from bytes and back agian if i have some numbers: lo byte = 192 hi byte = 176 i can get the number 12480 like this: (176 & 127) \* 256 + 192 = 12480 but if…

---

## [Keep getting an error saying that this array value is nil, h](https://www.ruby-forum.com/t/keep-getting-an-error-saying-that-this-array-value-is-nil-h/108754)

<div class="topic-metadata">

**Author:** [@shadowcipher](https://www.ruby-forum.com/u/shadowcipher)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/keep-getting-an-error-saying-that-this-array-value-is-nil-h/108754 "2007-07-06T20:14:25Z")

</div>

elemkeysraw = str.split(/=(?!\>)/) i = elemkeysraw.length scr.printw(“This is the value of hashargs is #{hashargs} and it’s class is #{hashargs.class} and elemkeysraw\[i\] is #{elemkeysraw\[i\]} elemkeysraw\[i\].split(/=\>/…

---

## [Bug in CGI::unescapeHTML?](https://www.ruby-forum.com/t/bug-in-cgi-unescapehtml/180057)

<div class="topic-metadata">

**Author:** [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/bug-in-cgi-unescapehtml/180057 "2007-07-06T18:33:12Z")

</div>

Hi, I think there’s a bug in CGI::unescapeHTML. Or am I doing something wrong? $KCODE=‘u’ CGI::unescapeHTML(“ã”) will return “\\343”, which according to my screaming mysql utf-8 encoded database is not a valid utf-8…

---

## [Re: Oh the pain! Distributing Ruby apps](https://www.ruby-forum.com/t/re-oh-the-pain-distributing-ruby-apps/108753)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/re-oh-the-pain-distributing-ruby-apps/108753 "2007-07-06T18:23:10Z")

</div>

I’ve tried rubyscript2exe (we’re talking Windows boxes), and it seems to work fine for some things but breaks the Oracle bindings. (rubyscript2exe works for Linux too) It might be worth spending a little while tryin…

---

## [South East Michigan Ruby Brigade Meeting](https://www.ruby-forum.com/t/south-east-michigan-ruby-brigade-meeting/108751)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/south-east-michigan-ruby-brigade-meeting/108751 "2007-07-06T17:20:00Z")

</div>

Date: Monday, 9 July 2007 Time: 7:00-8:30pm Location: 1670 CSE (http://cma.hurleyhome.com/SEMI%20Ruby%20Map.pdf) (if you are not familiar with campus don’t be intimidated, ask on the mailing list (http://lists.rubymi…

---

## [IRB require issues](https://www.ruby-forum.com/t/irb-require-issues/108694)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/irb-require-issues/108694 "2007-07-06T16:14:44Z")

</div>

is there a reason why saying require ‘net/http’ would return false? i’ve been trying to figure out what’s wrong with my installation, but i see no reason why it refuses to load that one library, it works for everythin…

---

## [Ruby classes in the erlang world](https://www.ruby-forum.com/t/ruby-classes-in-the-erlang-world/108715)

<div class="topic-metadata">

**Author:** [@Woo-Kyoung\_N](https://www.ruby-forum.com/u/Woo-Kyoung_N)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/ruby-classes-in-the-erlang-world/108715 "2007-07-06T16:09:43Z")

</div>

those whom interested in both ruby and erlang, I’d like to showing my small work. I’ve been implemented a bit of ruby classes (String, Array, Range, Regexp ,) using by erlang. so could do something like A = ruby:new…

---

## [Trunk: rdoc: format.rb $B=hM}Cf$K(B Bus error](https://www.ruby-forum.com/t/trunk-rdoc-format-rb-b-hm-cf-k-b-bus-error/108745)

<div class="topic-metadata">

**Author:** [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/trunk-rdoc-format-rb-b-hm-cf-k-b-bus-error/108745 "2007-07-06T15:35:35Z")

</div>

trunk e$B$Ne(B rdoc e$B$Ge(B format.rb e$B$r=hM}Cf$Ke(B Bus error e$B$K$J$j$^$9!#e(B e$B?oJ,A0$+$i$N$h$&$G$9$,!"e(Bruby-dev e$B$KJs9p$5$l$F$$$J$$$h$&$J$N$G!"e(B e$BJs9p$7$F$\*$-$^$9!#e(B e$B%G%P%C%0J}K!$,A4A3$o$+$i$J…

---

## [Ruby 186.25 + Scite 1.72](https://www.ruby-forum.com/t/ruby-186-25-scite-1-72/108744)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/ruby-186-25-scite-1-72/108744 "2007-07-06T15:34:08Z")

</div>

I’ve just installed Ruby 186.25 including Scite 1.72 on windows XP. My previous install worked fine when i open scite now and load a script I get. ruby c:\\ruby\\scite\\calctest.rb The system cannot find the file spec…

---

## [Re: Can you recommend a language to](https://www.ruby-forum.com/t/re-can-you-recommend-a-language-to/108742)

<div class="topic-metadata">

**Author:** [@scoundrel](https://www.ruby-forum.com/u/scoundrel)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/re-can-you-recommend-a-language-to/108742 "2007-07-06T15:31:35Z")

</div>

You should give a try to Adobe Flex.

---

## [Lib/irb/completion.rb needs .to\_s](https://www.ruby-forum.com/t/lib-irb-completion-rb-needs-to-s/108728)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/lib-irb-completion-rb-needs-to-s/108728 "2007-07-06T12:20:15Z")

</div>

e$B@.@%$G$9!#e(B trunk e$B$Ne(B irb e$B$,Jd405!G=$rM-8z$K$7$F$$$k$HNc30;~$KMn$A$^$9!#e(B e.to\_s e$B$rK:$l$F$$$k$+$i$N$h$&$G$9!#e(B Index: lib/irb/completion.rb — lib/irb/completion.rb (revision 12716) +++ lib/i…

---

## [Searching a word](https://www.ruby-forum.com/t/searching-a-word/108723)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 11:33am UTC](https://www.ruby-forum.com/t/searching-a-word/108723 "2007-07-06T11:33:07Z")

</div>

Hai I want to search a word in the xml file using ruby I dont know , how to do that. Example: new hussain.jpg From this example ,i want to get the hussain.jpg can any body tell me Ok

---

## [Make test result](https://www.ruby-forum.com/t/make-test-result/108719)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 10:47am UTC](https://www.ruby-forum.com/t/make-test-result/108719 "2007-07-06T10:47:03Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!e(Bmake test e$B$Ke(B bootstraptest e$B$r4^$a$?$i$I$&$+!"$H$$$&OC$,$"$je(B e$B$^$7$?!#$D$$$G$K!"e(Bmake test e$B$Nu67$r\>/$7:Y$+$/I=\<($9$k$h$&e(B e$B$J%Q%C%A$r=q$$$F$\_$^$7$?!#$3$s$J46$8$G$9!#…

---

## [Calling an arbitrary method as and when an array's contents](https://www.ruby-forum.com/t/calling-an-arbitrary-method-as-and-when-an-arrays-contents/108683)

<div class="topic-metadata">

**Author:** [@Dan\_Stevens\_SIAmAI](https://www.ruby-forum.com/u/Dan_Stevens_SIAmAI)\
**Replies:** 17\
**Last updated:** [July 6, 2007, 9:11am UTC](https://www.ruby-forum.com/t/calling-an-arbitrary-method-as-and-when-an-arrays-contents/108683 "2007-07-06T09:11:30Z")

</div>

I have a collection class that extends the Array class and I wish to have a particular method to be called whenever the contents of an instance of the class change. Can anyone advise on how I can achieve this? I’m aw…

---

## [Yield :k=\>:v, \*\[\]](https://www.ruby-forum.com/t/yield-k-v/108712)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 7:51am UTC](https://www.ruby-forum.com/t/yield-k-v/108712 "2007-07-06T07:51:08Z")

</div>

yield :k=\>:v, \*\[\] e$B$H$$$&5-=R$,!"e(B1.8 e$B$G$O5v$5$l$F$$$^$7$?$,e(B 1.9 e$B$Ge(B syntax error e$B$K$J$k$h$&$G$9!#e(B % ./ruby -vce ‘yield :k=\>:v, \*\[\]’ ruby 1.9.0 (2007-07-06 patchlevel 0) \[i686-linux\] -e:1: syntax…

---

## [SEGV by m {|(\*,v)|}](https://www.ruby-forum.com/t/segv-by-m-v/108708)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 6:50am UTC](https://www.ruby-forum.com/t/segv-by-m-v/108708 "2007-07-06T06:50:06Z")

</div>

m {|(\*,v)|} e$B$Ge(B SEGV e$B$7$^$9!#e(B % ./ruby -ve ‘m {|(\*,v)|}’ ruby 1.9.0 (2007-07-06 patchlevel 0) \[i686-linux\] – control frame ---------- c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------ – backtrace of nat…

---

## [Re: IRB require issues](https://www.ruby-forum.com/t/re-irb-require-issues/108695)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 5:57am UTC](https://www.ruby-forum.com/t/re-irb-require-issues/108695 "2007-07-06T05:57:02Z")

</div>

Same with me actually, do you run windows? I always thought it was already required (noob)

---

## [Ripper.y:3235: error: syntax error before '}' token](https://www.ruby-forum.com/t/ripper-y-error-syntax-error-before-token/108696)

<div class="topic-metadata">

**Author:** [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 4:10am UTC](https://www.ruby-forum.com/t/ripper-y-error-syntax-error-before-token/108696 "2007-07-06T04:10:57Z")

</div>

trunk e$B$Ge(B ext/ripper e$B$,%3%s%Q%$%k%(%i!\<$K$J$j$^$9!#e(B gcc -Wall -ggdb -Wall -I. -I…/…/.ext/include/i386-freebsd6.2 -I…/…/./include -I…/…/./ext/ripper -I…/… -I…/…/. -DRUBY\_EXTCONF\_H=“extconf.h” -fPIC -g -O2 -c…

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

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