# Ruby

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

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

---

## [Note to Self: Moving ruby, $:. Don't \_do\_ that](https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 1:20am UTC](https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879 "2007-06-28T01:20:09Z")

</div>

With gcc you can build & install in /home/myname/opt/gcc and then tar it up and deliver to your colleagues /opt directory and it seems to work. They have been pretty careful about using relative paths everywhere. Note…

---

## [Regexp rescue method](https://www.ruby-forum.com/t/regexp-rescue-method/107956)

<div class="topic-metadata">

**Author:** [@th8254](https://www.ruby-forum.com/u/th8254)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/regexp-rescue-method/107956 "2007-06-27T23:51:02Z")

</div>

How would I write a rescue method to recover from a failed regexp parsing? -Thanks

---

## [Punch Card Tales (was Re: Regexp to split name?)](https://www.ruby-forum.com/t/punch-card-tales-was-re-regexp-to-split-name/107976)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/punch-card-tales-was-re-regexp-to-split-name/107976 "2007-06-27T23:47:01Z")

</div>

On 6/27/07, Michael W. Ryder removed\_email\_address@domain.invalid wrote: Rick DeNatale wrote: the optical EOT sensors. Maybe some might find some amusement in: http://talklikeaduck.denhaven2.com/articles/2007/06…

---

## [Command in backticks hangs? (OS X, 1.8.6-p36)](https://www.ruby-forum.com/t/command-in-backticks-hangs-os-x-1-8-6-p36/107664)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 9\
**Last updated:** [June 27, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/command-in-backticks-hangs-os-x-1-8-6-p36/107664 "2007-06-27T23:38:00Z")

</div>

I’m running ruby 1.8.6 (2007-06-07 patchlevel 36) \[powerpc-darwin8.9.0\] I have a script (the OS X installer script for RMagick) that I’ve been using for some months now. Today I discovered that, in this script only, a…

---

## [Fwd: Please Forward: Ruby Quiz Submission #129](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-129/171656)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-129/171656 "2007-06-27T22:52:57Z")

</div>

Begin forwarded message:

---

## [Named/positional method args](https://www.ruby-forum.com/t/named-positional-method-args/107606)

<div class="topic-metadata">

**Author:** [@darren\_kirby](https://www.ruby-forum.com/u/darren_kirby)\
**Replies:** 18\
**Last updated:** [June 27, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/named-positional-method-args/107606 "2007-06-27T21:52:50Z")

</div>

I have a method here that takes two arguments. Both are optional, with appropriate default values. The first is a string which represents a filename to write data to. The second is an integer which represents which da…

---

## [Rcr 13](https://www.ruby-forum.com/t/rcr-13/107962)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/rcr-13/107962 "2007-06-27T21:51:49Z")

</div>

Hi everybody, In case you’ve been following the RCR’s, I wrote RCR 13 the other day. I intend to withdraw it for now, but I would still like to request comments from the list/usenet group. Here’s the text of the RC…

---

## [Ruby zoomify](https://www.ruby-forum.com/t/ruby-zoomify/107960)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/ruby-zoomify/107960 "2007-06-27T21:39:49Z")

</div>

Howdy folks. I just finished the first version of my ruby zoomify module. It chunks up images into tiles suitable for viewing using the zoomify flash application. It’s pastied here: http://pastie.caboo.se/74117 I’d r…

---

## [Regexp to split name?](https://www.ruby-forum.com/t/regexp-to-split-name/107582)

<div class="topic-metadata">

**Author:** [@Alex\_MacCaw](https://www.ruby-forum.com/u/Alex_MacCaw)\
**Replies:** 14\
**Last updated:** [June 27, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/regexp-to-split-name/107582 "2007-06-27T20:56:44Z")

</div>

Does anyone have an example of splitting a name into first and last names? Or is just a case of doing string.split(’ ')?

---

## [Problem with rubyscript2exe, OCI8, registry](https://www.ruby-forum.com/t/problem-with-rubyscript2exe-oci8-registry/107822)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/problem-with-rubyscript2exe-oci8-registry/107822 "2007-06-27T20:53:44Z")

</div>

Hi, Ruby 1.8.6 Rubyscript2exe 0.5.3 OCI8 1.0.0rc2 Windows XP Pro I wrote a program that uses DBI + OCI8. It compiles fine, but when I run the executable I get an NLS\_LANG error from Oracle. This does not happen if…

---

## [Guess what this will do](https://www.ruby-forum.com/t/guess-what-this-will-do/107874)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/guess-what-this-will-do/107874 "2007-06-27T19:55:36Z")

</div>

Without cheating (trying to run it) what will this pair of files do under Linux… Here is a little script we want to be interpreted by the “flashbang” interpreter… ===/home/johnc/foo/hashbang==========================…

---

## [Encoding of strings received from db](https://www.ruby-forum.com/t/encoding-of-strings-received-from-db/107860)

<div class="topic-metadata">

**Author:** [@mare](https://www.ruby-forum.com/u/mare)\
**Replies:** 5\
**Last updated:** [June 27, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/encoding-of-strings-received-from-db/107860 "2007-06-27T19:48:05Z")

</div>

I swear I searched this forum and couldn’t find the solution! Anyway, the problem: I have a db (PostgreSQL) with data encoded in utf-8. I want to check this data, so I hoped to create a script to assert the values fou…

---

## [Net/http for Googles Authentication api](https://www.ruby-forum.com/t/net-http-for-googles-authentication-api/107936)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/net-http-for-googles-authentication-api/107936 "2007-06-27T19:38:34Z")

</div>

def process\_token(token) url = URI.parse(‘http://www.google.com/account/AuthSubSessionToken/’) request = Net::HTTP::Get.new(url.path) request\['Content-Type'\] = "text/html; charset=utf-8" request\['User-Agent'\] =…

---

## [Bad Smells sing in a rails application](https://www.ruby-forum.com/t/bad-smells-sing-in-a-rails-application/107950)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/bad-smells-sing-in-a-rails-application/107950 "2007-06-27T19:36:34Z")

</div>

Hi all, Sometime ago, i read the slides “when V is for Vexing: Patterns to DRY Up Your Views” (Bruce W. railsconf). They are not online anymore. I post one slide in my\[1}… But only the bad smells sign in the view,…

---

## [Including modules - ordering question](https://www.ruby-forum.com/t/including-modules-ordering-question/107894)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/including-modules-ordering-question/107894 "2007-06-27T19:21:37Z")

</div>

Hi, I have a module where I include modules as usual: module A module B end module C include B include D end module D end end When I require this file, I’ll get an error here because module D is being includ…

---

## [RegExp & File read help](https://www.ruby-forum.com/t/regexp-file-read-help/107922)

<div class="topic-metadata">

**Author:** [@Don\_L](https://www.ruby-forum.com/u/Don_L)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/regexp-file-read-help/107922 "2007-06-27T18:44:28Z")

</div>

Hi All, I am trying to parse out a list of elements from a set of xml file which match a given regular expression. I am sure there is probably a way to do this using an xml parsing library, but I thought it might be …

---

## [Missing kEND for if statement, but not for a case statement?](https://www.ruby-forum.com/t/missing-kend-for-if-statement-but-not-for-a-case-statement/107935)

<div class="topic-metadata">

**Author:** [@shadowcipher](https://www.ruby-forum.com/u/shadowcipher)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/missing-kend-for-if-statement-but-not-for-a-case-statement/107935 "2007-06-27T18:25:26Z")

</div>

I am having some trouble figuring out why I keep getting an unexpected kENSURE expecting kEND error. I have to sets of code and the first set uses a case statement with the same amount of end keywords. This set runs…

---

## [CGI.escape accepts only ISO-8859-1 input?](https://www.ruby-forum.com/t/cgi-escape-accepts-only-iso-8859-1-input/107928)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/cgi-escape-accepts-only-iso-8859-1-input/107928 "2007-06-27T17:51:22Z")

</div>

Hi, I’m not able to convert a string to ISO-8859-1. Could anyone please try to help me out here? #!/usr/bin/ruby message = ARGV\[0\] This doesn’t seem to work, what am I doing wrong? Iconv.new(‘ISO-8859-1’, ‘UTF-8’).i…

---

## [Use of uninitialised value by /\\s/u](https://www.ruby-forum.com/t/use-of-uninitialised-value-by-s-u/107931)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/use-of-uninitialised-value-by-s-u/107931 "2007-06-27T17:44:21Z")

</div>

valgrind e$B$N7k2L$r$^$?D4$Y$k$H!"e(B/\\s/u e$B$GL$=i4|2=%a%b%j$r;HMQe(B e$B$9$k$h$&$G$9!#e(B % valgrind ./ruby -ve ‘/\\s/u’ ==13719== Memcheck, a memory error detector. ==13719== Copyright © 2002-2006, and GNU GPL’d, …

---

## [Re: snmp error](https://www.ruby-forum.com/t/re-snmp-error/107930)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/re-snmp-error/107930 "2007-06-27T17:31:19Z")

</div>

the mac address is visualized as shown 1.3.6.1.2.1.2.2.1.6.1 ÃƒÂ½g OCTET STRING instead of 0:10:83:fd:dd:67. How can I fix it? The trouble is that you are printing the raw 6 byte string (note that hex 67 is the A…

---

## [Probably an FAQ, but](https://www.ruby-forum.com/t/probably-an-faq-but/107790)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 12\
**Last updated:** [June 27, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/probably-an-faq-but/107790 "2007-06-27T17:05:14Z")

</div>

Hi all, I’ve been getting into Ruby programming - largely because of Rails - and enjoying it rather a lot. It certainly compares favorably to my other favorite of Smalltalk and Scheme; however, I do have one signific…

---

## [Arguments into method calls?](https://www.ruby-forum.com/t/arguments-into-method-calls/107873)

<div class="topic-metadata">

**Author:** [@torreys](https://www.ruby-forum.com/u/torreys)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/arguments-into-method-calls/107873 "2007-06-27T16:36:12Z")

</div>

I’m working on a program that takes user input via command line, then calls whatever method is related to that input text. For instance, if they type /help it calls the method help, if they type /quit it calls the met…

---

## [Fun about inspect](https://www.ruby-forum.com/t/fun-about-inspect/107866)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 4\
**Last updated:** [June 27, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/fun-about-inspect/107866 "2007-06-27T15:48:07Z")

</div>

Hi all. By some complex reasons, I’ve made an interesting conclusion: for “serializable” types it’s always good to have eval(obj.inspect) == obj For me it was a good thought, because previously, I’ve always doubt what …

---

## [DateTime problem](https://www.ruby-forum.com/t/datetime-problem/107881)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 7\
**Last updated:** [June 27, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/datetime-problem/107881 "2007-06-27T15:31:03Z")

</div>

DateArray = \[“Apr”, “2”, “2007”\] How can i read the month and year in the array??? The OUTPUT: day = 01 month = 04 year = 07

---

## [Send request to add application in Face Book using Rails](https://www.ruby-forum.com/t/send-request-to-add-application-in-face-book-using-rails/107909)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/send-request-to-add-application-in-face-book-using-rails/107909 "2007-06-27T14:38:58Z")

</div>

Hi, Does any one know how to send a request to friends to add an application using Rails and Face Book API methods. The result should that a application request comes under the Request header on left hand side in Fa…

---

## [Proposal: merge x64-mswin64 port](https://www.ruby-forum.com/t/proposal-merge-x64-mswin64-port/107789)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/proposal-merge-x64-mswin64-port/107789 "2007-06-27T14:07:55Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B$@$i$@$i$H;~4V$r$+$1$F:n6H$7$F$-$^$7$?$,!"$I$&$d$iL=h$,N)$Ce(B e$B$?$N$G!"I=Bj$NDL$j!"e(Bx64e$BHGe(BWindowse$B8~$1e(Bporte$B$re(Btrunke$B$K%^!\<%8$7$?$$e(B e$B$H;W$$$…

---

## [Call for Ruby Champion!](https://www.ruby-forum.com/t/call-for-ruby-champion/140628)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [June 27, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/call-for-ruby-champion/140628 "2007-06-27T12:11:40Z")

</div>

Hello friends! I am looking for a Ruby Champion to lead the race in Website development within Java environment… Who loves programming, with new techniques as well as old… Who also enjoys hand coding open source tech…

---

## [Bee 0.4.0 Released](https://www.ruby-forum.com/t/bee-0-4-0-released/107906)

<div class="topic-metadata">

**Author:** [@casa](https://www.ruby-forum.com/u/casa)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 10:51am UTC](https://www.ruby-forum.com/t/bee-0-4-0-released/107906 "2007-06-27T10:51:34Z")

</div>

Bee is a build tool running YAML files. These build files have a clean syntax à la Ant and run as fast as make. They are made of shell commands, Ruby code or Bee tasks for platform independent builds. Hello World exam…

---

## [Help Installing a Ruby Module](https://www.ruby-forum.com/t/help-installing-a-ruby-module/107878)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 10:50am UTC](https://www.ruby-forum.com/t/help-installing-a-ruby-module/107878 "2007-06-27T10:50:33Z")

</div>

Hello, I downloaded roscar from RubyForge in hopes of sending automated AIM messages to my cell phone. roscar seems to have no documentation whatsoever. I can probably figure out how to use it but how do I install a …

---

## [Singapore.rb meeting for June 2007](https://www.ruby-forum.com/t/singapore-rb-meeting-for-june-2007/107890)

<div class="topic-metadata">

**Author:** [@Douglas\_T](https://www.ruby-forum.com/u/Douglas_T)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 6:02am UTC](https://www.ruby-forum.com/t/singapore-rb-meeting-for-june-2007/107890 "2007-06-27T06:02:13Z")

</div>

Hi Rubyists, The next Singapore Ruby Brigade meeting will be held at the Geylang East Community Library (GECL) on the 28th of June 2007. The session will begin from 7pm and finish at 8:30pm. Please proceed to the Al…

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

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