# Ruby

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

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

---

## [Rubygems and CentOS 4.4](https://www.ruby-forum.com/t/rubygems-and-centos-4-4/86597)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 8\
**Last updated:** [February 23, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/rubygems-and-centos-4-4/86597 "2007-02-23T18:32:25Z")

</div>

Something very strange has happened for me, and I’d like to know if I’m doing something stupid. I wanted to install activerecord, and to do so I thought it would be a good idea to install rubygems to do the work for …

---

## [Web frameworks - separating UI from logic](https://www.ruby-forum.com/t/web-frameworks-separating-ui-from-logic/86481)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 4\
**Last updated:** [February 23, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/web-frameworks-separating-ui-from-logic/86481 "2007-02-23T17:36:18Z")

</div>

I’m starting to look again at available web application frameworks for Ruby it’s been a few years since I last did. What I’m looking for is to be able structure my application like this: HTTP+ HTML …

---

## [More c friendly interface to FXImage](https://www.ruby-forum.com/t/more-c-friendly-interface-to-fximage/86573)

<div class="topic-metadata">

**Author:** [@seeweer](https://www.ruby-forum.com/u/seeweer)\
**Replies:** 1\
**Last updated:** [February 23, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/more-c-friendly-interface-to-fximage/86573 "2007-02-23T17:18:15Z")

</div>

Hi all, I’m looking for an efficient way of image manipulation/rerendering using fximage from fxruby: To initialize a FXImage with a persistent pixel buffer one has to: image = FXImage.new(getApp(), buf, IMAGE\_OWNED|…

---

## [FXTreeList-App crashes](https://www.ruby-forum.com/t/fxtreelist-app-crashes/86455)

<div class="topic-metadata">

**Author:** [@jabe](https://www.ruby-forum.com/u/jabe)\
**Replies:** 6\
**Last updated:** [February 23, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/fxtreelist-app-crashes/86455 "2007-02-23T17:05:11Z")

</div>

My FX-Application crashes, when I update an FXTreeItem-Icon in an FXTreeList (setopenIcon / setClosedIcon) with an event-method (right-mouse-click). Does anybody have an idea ?

---

## [Undefined method \`at' for nil:NilClass while i use parseexce](https://www.ruby-forum.com/t/undefined-method-at-for-nil-nilclass-while-i-use-parseexce/86565)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 1\
**Last updated:** [February 23, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/undefined-method-at-for-nil-nilclass-while-i-use-parseexce/86565 "2007-02-23T16:34:04Z")

</div>

I use this code to open my ‘2007-02-231028.xls’ file. the file is in the same directory of the program. my code: require ‘parseexcel’ workbook = Spreadsheet::ParseExcel.parse(‘2007-02-231028.xls’) worksheet = workbo…

---

## [Concatenating strings with nil values](https://www.ruby-forum.com/t/concatenating-strings-with-nil-values/86590)

<div class="topic-metadata">

**Author:** [@tchick](https://www.ruby-forum.com/u/tchick)\
**Replies:** 7\
**Last updated:** [February 23, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/concatenating-strings-with-nil-values/86590 "2007-02-23T16:16:01Z")

</div>

Hi \*, I like to concatenate a string out of some variables, some of which are nil. Instead of getting always a “can’t convert nil into String (TypeError)” message, I would like to have “nil” appended to my string, as…

---

## [Rescue doesn't handle every error](https://www.ruby-forum.com/t/rescue-doesnt-handle-every-error/86564)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 9\
**Last updated:** [February 23, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/rescue-doesnt-handle-every-error/86564 "2007-02-23T16:10:00Z")

</div>

Hello, the example works both on Debian, Ruby 1.8.4 and Gentoo, Ruby 1.8.5 irb(main):006:0\> require ‘open-uri’ =\> true irb(main):007:0\> begin irb(main):008:1\* open(‘http://www.url.with.timeout.problem.com).read irb…

---

## [Rails Console (v1.2) won't load](https://www.ruby-forum.com/t/rails-console-v1-2-wont-load/86518)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 23, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/rails-console-v1-2-wont-load/86518 "2007-02-23T15:57:56Z")

</div>

Hi - just upgraded to rails 1.2 and the console script is failing to load under ruby 1.8.5-p2. Any one seen this before? (Every thing else is running fine; hmmm…) Thanks for any help you can lend. Regards, Ken 58…

---

## [Form variables eruby](https://www.ruby-forum.com/t/form-variables-eruby/86538)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [February 23, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/form-variables-eruby/86538 "2007-02-23T15:08:45Z")

</div>

Hi list How do you go about using form data or from a url to be used as a var? http://localhost/index.html?func=help var1 = func Thanks, Peter

---

## [File.open with line =~ /.../](https://www.ruby-forum.com/t/file-open-with-line/86561)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 6\
**Last updated:** [February 23, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/file-open-with-line/86561 "2007-02-23T14:40:42Z")

</div>

Hi, i have a txtfile like that = bla1 foo=red bla2 foo=green bla3 foo=yellow and i want to get i.e. bla1 and the corresponding value of foo i tried with File.open(“Y:/test/sample.txt”, “r”).each do |line| puts…

---

## [Please please help me in my previous parseexcel problem](https://www.ruby-forum.com/t/please-please-help-me-in-my-previous-parseexcel-problem/86568)

<div class="topic-metadata">

**Author:** [@tuhin](https://www.ruby-forum.com/u/tuhin)\
**Replies:** 1\
**Last updated:** [February 23, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/please-please-help-me-in-my-previous-parseexcel-problem/86568 "2007-02-23T14:23:41Z")

</div>

please please help me in my previous parseexcel problem waiting for ur reply. Tuhin

---

## [Ruby on Rails resources wanted; senior level, aware of other](https://www.ruby-forum.com/t/ruby-on-rails-resources-wanted-senior-level-aware-of-other/86581)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [February 23, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-resources-wanted-senior-level-aware-of-other/86581 "2007-02-23T14:06:37Z")

</div>

Hello friends! I’m cross-posting this because it sounds like a pretty cool opportunity. Sun is looking for senior-level Ruby on Rails resources. Yes, you read that right. This is not just a simple RoR developer job. W…

---

## [Expect and ruby](https://www.ruby-forum.com/t/expect-and-ruby/86547)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 2\
**Last updated:** [February 23, 2007, 11:43am UTC](https://www.ruby-forum.com/t/expect-and-ruby/86547 "2007-02-23T11:43:16Z")

</div>

I need to communicate with a sftp server from a Ruby script. What’s the best way to do this? I am looking for something like “expect” I found a way to spawn and expect using the “pty” standard lib but I didn’t see …

---

## [Puts nil](https://www.ruby-forum.com/t/puts-nil/86521)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 1\
**Last updated:** [February 23, 2007, 11:21am UTC](https://www.ruby-forum.com/t/puts-nil/86521 "2007-02-23T11:21:13Z")

</div>

puts nil outputs “nil”. Shouldn’t it output “” (ie, nothing), which is nil.to\_s? RDoc (for IO#print, referenced by #puts): Objects that aren’t strings will be converted by calling their to\_s method

---

## [Why this program not working?](https://www.ruby-forum.com/t/why-this-program-not-working/86556)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 4\
**Last updated:** [February 23, 2007, 10:29am UTC](https://www.ruby-forum.com/t/why-this-program-not-working/86556 "2007-02-23T10:29:04Z")

</div>

Hi I am trying to execute this program from cookbook. def endless\_string\_succession(start) while true yield start start = start.succ end end puts endless\_string\_succession ‘aa’ Error messages that I am getti…

---

## [Mocha test retry to connect up to 10 times](https://www.ruby-forum.com/t/mocha-test-retry-to-connect-up-to-10-times/86554)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 2\
**Last updated:** [February 23, 2007, 9:20am UTC](https://www.ruby-forum.com/t/mocha-test-retry-to-connect-up-to-10-times/86554 "2007-02-23T09:20:32Z")

</div>

I’m writing a script to connect to an external server. The problem is that the server can be flaky and respond with an error code on some requests. When the response I get is an error I would like to retry connectin…

---

## [Can ruby automate form submission?](https://www.ruby-forum.com/t/can-ruby-automate-form-submission/86535)

<div class="topic-metadata">

**Author:** [@Simon\_Jackson](https://www.ruby-forum.com/u/Simon_Jackson)\
**Replies:** 3\
**Last updated:** [February 23, 2007, 9:07am UTC](https://www.ruby-forum.com/t/can-ruby-automate-form-submission/86535 "2007-02-23T09:07:49Z")

</div>

Can someone point me to either a gem or a method on how i might go about filling in and submitting data on a web form that uses POST?

---

## [Cute little simple scheduling code hack](https://www.ruby-forum.com/t/cute-little-simple-scheduling-code-hack/86557)

<div class="topic-metadata">

**Author:** [@KCons](https://www.ruby-forum.com/u/KCons)\
**Replies:** 6\
**Last updated:** [February 23, 2007, 8:55am UTC](https://www.ruby-forum.com/t/cute-little-simple-scheduling-code-hack/86557 "2007-02-23T08:55:46Z")

</div>

I’m sure there is some far superior prior art out there somewhere, but this is a useful little hack I threw together today that I thought someone else might find interesting. I wanted to do a little task every few sec…

---

## [Sortable lists demo with php?](https://www.ruby-forum.com/t/sortable-lists-demo-with-php/86559)

<div class="topic-metadata">

**Author:** [@harald](https://www.ruby-forum.com/u/harald)\
**Replies:** 1\
**Last updated:** [February 23, 2007, 8:05am UTC](https://www.ruby-forum.com/t/sortable-lists-demo-with-php/86559 "2007-02-23T08:05:42Z")

</div>

hello! iÂ´m new to this stuff and have one question: does this sortable list demo: http://demo.script.aculo.us/ajax/sortable\_elements especially the ajax callback only work when ruby is installed on the server? is …

---

## [Unification of variables and methods](https://www.ruby-forum.com/t/unification-of-variables-and-methods/85886)

<div class="topic-metadata">

**Author:** [@calande](https://www.ruby-forum.com/u/calande)\
**Replies:** 2\
**Last updated:** [February 23, 2007, 7:41am UTC](https://www.ruby-forum.com/t/unification-of-variables-and-methods/85886 "2007-02-23T07:41:10Z")

</div>

The one thing that bothers me about ruby is the (as i see it?) separate namespaces for locals and functions. Variables take precedence, but you can override and get the functional form in 2 ways: def x; 1; end x = 2 …

---

## [Trade-off between variable name descriptiveness and readabil](https://www.ruby-forum.com/t/trade-off-between-variable-name-descriptiveness-and-readabil/86429)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 6\
**Last updated:** [February 23, 2007, 7:27am UTC](https://www.ruby-forum.com/t/trade-off-between-variable-name-descriptiveness-and-readabil/86429 "2007-02-23T07:27:37Z")

</div>

As a mentor of the new adopt-a-newbie system, which I think is going excellently, I was reviewing a 99-bottles-of-beer method. We went over what he had, what I thought could be better and I showed an example of exact…

---

## [Test failing with gem only](https://www.ruby-forum.com/t/test-failing-with-gem-only/86417)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 2\
**Last updated:** [February 23, 2007, 5:56am UTC](https://www.ruby-forum.com/t/test-failing-with-gem-only/86417 "2007-02-23T05:56:35Z")

</div>

Hi, I’ve got an issue with some unit tests which pass fine under rake and when run manually, but fail when run at gem installation time. Unfortunately, gem doesn’t specify which tests fail - is there a way to change …

---

## [IO.popen on Windows to filter stdout](https://www.ruby-forum.com/t/io-popen-on-windows-to-filter-stdout/86437)

<div class="topic-metadata">

**Author:** [@Harold\_H](https://www.ruby-forum.com/u/Harold_H)\
**Replies:** 6\
**Last updated:** [February 23, 2007, 4:07am UTC](https://www.ruby-forum.com/t/io-popen-on-windows-to-filter-stdout/86437 "2007-02-23T04:07:29Z")

</div>

Hello all, I’ve been googling and playing with this for a while, but I’m stuck and I figured I’d ask in case anyone’s done this before. I’d like to use IO.popen, or something similar, to ‘filter’ the spew coming from…

---

## [\[ruby\_1\_8\] can't grub Digest::SHAxxx on powerpc-darwin](https://www.ruby-forum.com/t/ruby-1-8-cant-grub-digest-shaxxx-on-powerpc-darwin/85225)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 4\
**Last updated:** [February 23, 2007, 3:22am UTC](https://www.ruby-forum.com/t/ruby-1-8-cant-grub-digest-shaxxx-on-powerpc-darwin/85225 "2007-02-23T03:22:21Z")

</div>

e$B$3$s$P$s$O!#:XF#$H?=$7$^$9!#e(B e$B$I$3$KIU$1$h$&$+!"7oL\>$O$I$&$9$Y$-$+$H$+G:$s$@$N$G$9$,!"e(B e$B$h$jE,@Z$JJ}?K$,$"$j$^$7$?$i!"65$($F$$$?$@$1$l$P9,$$$G$9e(B 1.8.6e$B$N%j%j!\<%9%9%1%8%e!\<%k$r\<\*$K$7$^$7$F!"5W$7$V$j$K…

---

## [Autorunner.rb warning](https://www.ruby-forum.com/t/autorunner-rb-warning/86526)

<div class="topic-metadata">

**Author:** [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Replies:** 0\
**Last updated:** [February 23, 2007, 12:52am UTC](https://www.ruby-forum.com/t/autorunner-rb-warning/86526 "2007-02-23T00:52:11Z")

</div>

e$B$H$\_$?$G$9!#e(B Ruby 1.8.6-preview1 e$B$G!"e(B-w e$B$D$-$Ge(B test/unit e$B$r\<B9T$9$k$He(B warning e$B$rEG$-$^$9!#e(B /usr/local/lib/test/unit/autorunner.rb:214: warning: instance variable @workdir not initialized …

---

## [Range#overlap?](https://www.ruby-forum.com/t/range-overlap/86116)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 21\
**Last updated:** [February 22, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/range-overlap/86116 "2007-02-22T23:36:06Z")

</div>

(I’m sending this to the list because I think it has general interest. Sorry if you disagree!) Hi T. and the rest of you, I was discussing\[1\] a method that tested whether one range overlaps another, and noticed that …

---

## [Soap add\_method](https://www.ruby-forum.com/t/soap-add-method/86509)

<div class="topic-metadata">

**Author:** [@jsmecham](https://www.ruby-forum.com/u/jsmecham)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/soap-add-method/86509 "2007-02-22T23:19:04Z")

</div>

Is there a way to set default arguments for soap methods? i.e. proxy.add\_method(‘value1’,‘value2’=‘something’) I need to pass a long a username and password with each soap call. please let me know, thanks!

---

## [Numerical calculation returns string with DBI/Mysql](https://www.ruby-forum.com/t/numerical-calculation-returns-string-with-dbi-mysql/86488)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/numerical-calculation-returns-string-with-dbi-mysql/86488 "2007-02-22T23:11:04Z")

</div>

When I run the following query in DBI/Mysql, I’m finding that DBI is returning the rho column as a string (rather than a float), thus forcing me to convert it to a float with to\_f. (I lose precision because the string …

---

## [Restore Kernel.binding to a previous state](https://www.ruby-forum.com/t/restore-kernel-binding-to-a-previous-state/86474)

<div class="topic-metadata">

**Author:** [@Hans\_S](https://www.ruby-forum.com/u/Hans_S)\
**Replies:** 8\
**Last updated:** [February 22, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/restore-kernel-binding-to-a-previous-state/86474 "2007-02-22T23:10:03Z")

</div>

Hey all, I’m implementing a simple queue system with which I’m evaling ‘jobs’, like so: code = lambda {eval(job)} code.call Where ‘job’ is a string containing ruby code. The problem I’m having is that I need these …

---

## [Bbcode \<\> html?](https://www.ruby-forum.com/t/bbcode-html/86508)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/bbcode-html/86508 "2007-02-22T22:58:57Z")

</div>

Is there a library out there already that will convert text marked up in “bbcode” into HTML? For those not knowing what bbcode is, it’s the ML used by forum software such as phpbb to dumb down the interface. For exam…

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

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