# Ruby

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

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

---

## [Making 1.9.0 on Mac OS 10.4](https://www.ruby-forum.com/t/making-1-9-0-on-mac-os-10-4/126762)

<div class="topic-metadata">

**Author:** [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 12:48am UTC](https://www.ruby-forum.com/t/making-1-9-0-on-mac-os-10-4/126762 "2008-01-22T00:48:10Z")

</div>

Well, not much to say here. % ./configure --disable-pthreads % make … … making ruby gcc -g -O2 -pipe -fno-common -L. main.o -lruby-static -lpthread -ldl -lobjc -o ruby /usr/bin/ld: archive: ./libruby-stat…

---

## [Challenge: Extract episode descriptions](https://www.ruby-forum.com/t/challenge-extract-episode-descriptions/126536)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 6\
**Last updated:** [January 21, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/challenge-extract-episode-descriptions/126536 "2008-01-21T23:35:33Z")

</div>

This is just a whimsical question, really. I’ve been working on a website where people can vote on episodes of TV shows (and I happen to be a big Star Trek fan, so I’m starting there ha ha). By the way, the website is…

---

## [Re: WPF etc](https://www.ruby-forum.com/t/re-wpf-etc/126753)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/re-wpf-etc/126753 "2008-01-21T23:24:50Z")

</div>

I think this got swallowed by the list when I replied on Saturday =( Sending again … Ivan Porto C. wrote: In the IronPython samples for Silverlight I can see a really nice way of attaching a python file to the canva…

---

## [Encrypting/decrypting data](https://www.ruby-forum.com/t/encrypting-decrypting-data/126729)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/encrypting-decrypting-data/126729 "2008-01-21T23:10:39Z")

</div>

Hi, I’m using the latest version of Ruby for Fedora Core 6 Linux. I want to store credit card info in my database. I’d like to store it in an encrypted form, but I’d also like to be able to decrypt it later. Does a…

---

## [Is there an easier way to get a match before a position in a string?](https://www.ruby-forum.com/t/is-there-an-easier-way-to-get-a-match-before-a-position-in-a-string/126738)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 6\
**Last updated:** [January 21, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/is-there-an-easier-way-to-get-a-match-before-a-position-in-a-string/126738 "2008-01-21T23:01:05Z")

</div>

I am trying to find an easier way to split a string into printable lines. I could use the method of checking for a space using a loop and going back from the desired length or I could use the following: def strbrk(st…

---

## [Ruby 1.9 and rubygems: should be able to use gem command?](https://www.ruby-forum.com/t/ruby-1-9-and-rubygems-should-be-able-to-use-gem-command/126694)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-rubygems-should-be-able-to-use-gem-command/126694 "2008-01-21T20:33:43Z")

</div>

Hi all, I’ve installed ruby 1.9 from trunk and I used the --prefix option to avoid conflicts with 1.8, like Dave T. advices here: http://pragdave.blogs.pragprog.com/pragdave/2007/12/ruby-19right-fo.html Everything se…

---

## [Backported GC.stress for 1.8](https://www.ruby-forum.com/t/backported-gc-stress-for-1-8/126736)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/backported-gc-stress-for-1-8/126736 "2008-01-21T20:19:40Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B GC.stresse$B$re(B1.8e$B%V%i%s%A$K9g$&$h$&!“%Q%C%A$r:n$j$^$7$?!#e(B 1.8e$B7ONs$N3+H/$K$bM-MQ$G$”$k$N$OJQ$o$j$J$$$H;W$&$N$G!"e(B1.8.7e$B$K8~$1$FDI2C$re(B e$B9M$($F$$$?$@$1$k$H$&$l$7$$$G$9!#e(B I…

---

## [Marshal.load fails on LANG=ja\_JP.EUC-JP](https://www.ruby-forum.com/t/marshal-load-fails-on-lang-ja-jp-euc-jp/126733)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/marshal-load-fails-on-lang-ja-jp-euc-jp/126733 "2008-01-21T19:37:16Z")

</div>

e$B0J2\<$N$h$&$K!"e(B56225 e$B$re(B Marshal.dump e$B$7$?$b$N$re(B LANG=ja\_JP.EUC-JP e$B$J4D6-$Ge(B Marshal.load e$B$G$-$^$;$s!#e(B % ./ruby -e ‘Marshal.dump(56225, STDOUT)’ \> z % LANG=ja\_JP.EUC-JP ./ruby -ve ‘Marshal.l…

---

## [Web Programming with Ruby](https://www.ruby-forum.com/t/web-programming-with-ruby/126540)

<div class="topic-metadata">

**Author:** [@superfly](https://www.ruby-forum.com/u/superfly)\
**Replies:** 5\
**Last updated:** [January 21, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/web-programming-with-ruby/126540 "2008-01-21T19:36:05Z")

</div>

Does anyone know any really good tutorials out there? I’m having some issues with this Ruby on Rails thing, and I can’t seem to get it to install AT ALL. I have a server and everything online (if that’s even what you …

---

## [Eruby dbi select problem](https://www.ruby-forum.com/t/eruby-dbi-select-problem/126724)

<div class="topic-metadata">

**Author:** [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/eruby-dbi-select-problem/126724 "2008-01-21T18:28:35Z")

</div>

Hi I’m using eruby/mod\_ruby on Apache 2.2 and I’m having a problem doing a select against a table (mysql 5) sth = dbh.execute(“select type,site,amount from logger order by id desc”) The select returns the results fr…

---

## [Timeout error using Find module](https://www.ruby-forum.com/t/timeout-error-using-find-module/126588)

<div class="topic-metadata">

**Author:** [@s04bf1d5](https://www.ruby-forum.com/u/s04bf1d5)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/timeout-error-using-find-module/126588 "2008-01-21T18:23:20Z")

</div>

Hey everyone, I’m relatively new to Ruby, and am loving it! However, I’m getting some trouble trying to implement a simple search application. The idea is to search a directory (specified by the user) for a given reg.…

---

## [How to manipulate a Hash object to String](https://www.ruby-forum.com/t/how-to-manipulate-a-hash-object-to-string/126502)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/how-to-manipulate-a-hash-object-to-string/126502 "2008-01-21T18:20:48Z")

</div>

I got a result from my app (web service) that I transform into a Hash : @return = Hash.from\_xml(data).values.first @return = {“Saved”=\>“false”, “Rating”=\>{“Comment”=\>nil, “Error”=\>" missing"}, “Post”=\>{“Title”=\>nil, …

---

## [Help with page redirect](https://www.ruby-forum.com/t/help-with-page-redirect/126516)

<div class="topic-metadata">

**Author:** [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/help-with-page-redirect/126516 "2008-01-21T18:18:40Z")

</div>

Today I learned how to write and read cookies in eruby but I’m looking for a better way “ruby way” of doing something. I read to see if the user has my cookie. If they have read the page already and allowed a cookie I…

---

## [Ruby start up on Windows slow!](https://www.ruby-forum.com/t/ruby-start-up-on-windows-slow/126594)

<div class="topic-metadata">

**Author:** [@visage](https://www.ruby-forum.com/u/visage)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/ruby-start-up-on-windows-slow/126594 "2008-01-21T17:27:18Z")

</div>

I have looked back through the archives, but can’t find any solutions for the slow start-up of ruby on windows. I know Ron had some slowness problems a while ago, but it appears this is different. Basically, when rub…

---

## [Builder fragment wrapped by template (Ruby blocks question)?](https://www.ruby-forum.com/t/builder-fragment-wrapped-by-template-ruby-blocks-question/126718)

<div class="topic-metadata">

**Author:** [@tharrison](https://www.ruby-forum.com/u/tharrison)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/builder-fragment-wrapped-by-template-ruby-blocks-question/126718 "2008-01-21T17:26:08Z")

</div>

I am calling an API that wants XML. There are several different methods (submit, status, fetch) that all expect the same XML block, surrounding the specific method. I would like to be able to declare the Builder ins…

---

## [Could not find RubyGem ActiveRecord-JDBC (\>= 0.0.0)](https://www.ruby-forum.com/t/could-not-find-rubygem-activerecord-jdbc-0-0-0/126716)

<div class="topic-metadata">

**Author:** [@bharathchunchu](https://www.ruby-forum.com/u/bharathchunchu)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/could-not-find-rubygem-activerecord-jdbc-0-0-0/126716 "2008-01-21T17:03:34Z")

</div>

Hi, I am new to Rails.I am trying to deploy the rails application in Tomcat. While running application I am getting the fallowing error “Could not find RubyGem ActiveRecord-JDBC (\>= 0.0.0)”. For installing ActiveRec…

---

## [Bignum#quo may cause infinite loop](https://www.ruby-forum.com/t/bignum-quo-may-cause-infinite-loop/126696)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/bignum-quo-may-cause-infinite-loop/126696 "2008-01-21T16:54:49Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B double e$B$K\<}$^$i$J$$HO0O$Ne(B bignum e$B$KBP$7$F\>.$5$$CM$Ge(B quo e$B$9$k$He(B e$BL58B%k!\<%W$7$^$9!#e(B $ ./ruby -e ‘(256\*\*128).quo(1)’ (C-c e$B$,8z$+$J$$e(B) big\_shift e$B$,:8%7%U%H$r$&$^$…

---

## [Local variables in ChangeLog](https://www.ruby-forum.com/t/local-variables-in-changelog/126714)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/local-variables-in-changelog/126714 "2008-01-21T16:51:52Z")

</div>

e$B@\>;3OB9-$G$9!#e(B Emacse$B$Ne(BC-x 4 ae$B$G!V2Pe(B 1e$B7ne(B 22 …e$B!W$N$h$&$KMKF|$H7n$,e(B e$BF|K\\8l$K$J$C$F$7$^$&$N$G!“e(Blet\*e$B$Ke(B (system-time-locale “C”) e$B$rDI2C$9$k$,$$$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+…

---

## [What does 'def \[\](var1)' means and how to use?](https://www.ruby-forum.com/t/what-does-def-var1-means-and-how-to-use/126683)

<div class="topic-metadata">

**Author:** [@sun](https://www.ruby-forum.com/u/sun)\
**Replies:** 6\
**Last updated:** [January 21, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/what-does-def-var1-means-and-how-to-use/126683 "2008-01-21T16:39:32Z")

</div>

I came cross a ruby class with function defined as: class A …other functions… def … … end end I do not know what this function is for and how to use it. any tips?

---

## [Interpreter holds on to written code, maybe?](https://www.ruby-forum.com/t/interpreter-holds-on-to-written-code-maybe/126708)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/interpreter-holds-on-to-written-code-maybe/126708 "2008-01-21T15:51:07Z")

</div>

This spawns from a couple of other threads. Is there a way to recover executed code (verbatim) from the interpreter? Todd

---

## [Quick way to split up an array of objects into groups?](https://www.ruby-forum.com/t/quick-way-to-split-up-an-array-of-objects-into-groups/126689)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [January 21, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/quick-way-to-split-up-an-array-of-objects-into-groups/126689 "2008-01-21T15:40:32Z")

</div>

I have a collection of objects, which i want to separate into groups based on a particular property (to be specific, two attributes - that is if obj.foo and obj.bar are both the same for two objects they go into an ar…

---

## [Ruby pro0gram runs on two machines and is not running on third](https://www.ruby-forum.com/t/ruby-pro0gram-runs-on-two-machines-and-is-not-running-on-third/126704)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/ruby-pro0gram-runs-on-two-machines-and-is-not-running-on-third/126704 "2008-01-21T15:05:39Z")

</div>

What could be the reasons why ruby program runs on two machines (Windows/UbuntuLinux) and does not run on the third (Red Hat Linux). Program in question is using soap4j and access to some soap service In one of the cl…

---

## [String count method in 1.9](https://www.ruby-forum.com/t/string-count-method-in-1-9/126693)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/string-count-method-in-1-9/126693 "2008-01-21T14:07:34Z")

</div>

As per the Ruby documentation, string.count(character\_set1,character\_set2)first takes the intersection of character\_set1 and character\_set2 and then counts the number of times each character from the resulting inter…

---

## [Rails codebase sharing](https://www.ruby-forum.com/t/rails-codebase-sharing/126690)

<div class="topic-metadata">

**Author:** [@asmo](https://www.ruby-forum.com/u/asmo)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/rails-codebase-sharing/126690 "2008-01-21T12:30:58Z")

</div>

Hi! Currently any deployed app is automatically fed with database from config/database.yml. This mean that if I set up applications via FCGI I need to have a separate application deployment for each user. Is it possi…

---

## [Rails returns 500 on cyclic requests](https://www.ruby-forum.com/t/rails-returns-500-on-cyclic-requests/126688)

<div class="topic-metadata">

**Author:** [@miesj](https://www.ruby-forum.com/u/miesj)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/rails-returns-500-on-cyclic-requests/126688 "2008-01-21T12:14:00Z")

</div>

Hello Everyone, Here’s my Scenario \[RoR\] \<-\> \[Red5 Server\] My Rails application has to fetch some information from Red5, Red5 has to (in order to completely fulfill the request) call a web-service on the original ra…

---

## [Classes and superclasses](https://www.ruby-forum.com/t/classes-and-superclasses/126680)

<div class="topic-metadata">

**Author:** [@JSSSSrg\_Hagmann](https://www.ruby-forum.com/u/JSSSSrg_Hagmann)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 11:52am UTC](https://www.ruby-forum.com/t/classes-and-superclasses/126680 "2008-01-21T11:52:52Z")

</div>

Dear list members, A beginner’s question: I wrote a simple programme that assembles exams, choosing the questions from a database according to certain criteria. The programme does what I want, but I realised there ar…

---

## [SEGV by test/ruby/test\_io\_m17n.rb](https://www.ruby-forum.com/t/segv-by-test-ruby-test-io-m17n-rb/126658)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 10:32am UTC](https://www.ruby-forum.com/t/segv-by-test-ruby-test-io-m17n-rb/126658 "2008-01-21T10:32:19Z")

</div>

test\_io\_m17n.rb e$B$Ge(B SEGV e$B$9$k$h$&$K$J$C$?$h$&$G$9!#e(B % ./ruby test/runner.rb test/ruby/test\_io\_m17n.rb Loaded suite test\_io\_m17n.rb Started /tmp/a/ruby/test/ruby/test\_io\_m17n.rb:231: \[BUG\] Segmentation faul…

---

## [\[PATCH\] warnings of enc/trans/utf\_16\_32.c](https://www.ruby-forum.com/t/patch-warnings-of-enc-trans-utf-16-32-c/126645)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 10:21am UTC](https://www.ruby-forum.com/t/patch-warnings-of-enc-trans-utf-16-32-c/126645 "2008-01-21T10:21:43Z")

</div>

e$B$J$+$@$G$9!#e(B enc/trans/utf\_16\_32.ce$B$N7Y9p$r\>C$9%Q%C%A$G$9!#\<+F0@8@.$H$$$&$3$He(B e$B$J$N$G!"@8@.85$K$\*4j$$$7$^$9!#e(B e$B$A$J$\_$K!“4X?tItJ,$O\<j$G=q$$$?$N$G$O$J$$$+$H;W$o$l$k$N$G$9$,!”$Ie(B e$B$N$h$&$J07$$$K$J…

---

## [Online eBooks @ jumbooks.com](https://www.ruby-forum.com/t/online-ebooks-jumbooks-com/126626)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 5:09am UTC](https://www.ruby-forum.com/t/online-ebooks-jumbooks-com/126626 "2008-01-21T05:09:42Z")

</div>

Hi Friends, Recently I have been searching for some technical books and found this gem link website called http://www.jumbooks.com They use upload the books frequently. They have got books on Java, ASP.net, .NET, Lin…

---

## [LDAP Server not connected error](https://www.ruby-forum.com/t/ldap-server-not-connected-error/126327)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 11\
**Last updated:** [January 21, 2008, 4:50am UTC](https://www.ruby-forum.com/t/ldap-server-not-connected-error/126327 "2008-01-21T04:50:35Z")

</div>

hi all i made authentication function like this require ‘net/ldap’ module LDAP def self.authenticate(user,password) puts user if user == “” || password == “” return false end ldap\_con = Net::LDAP.new({:host =\> ‘1…

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

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