# Ruby

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

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

---

## [Avoiding output caching, mod\_ruby/Apache?](https://www.ruby-forum.com/t/avoiding-output-caching-mod-ruby-apache/81426)

<div class="topic-metadata">

**Author:** [@snitko](https://www.ruby-forum.com/u/snitko)\
**Replies:** 3\
**Last updated:** [January 10, 2007, 9:12am UTC](https://www.ruby-forum.com/t/avoiding-output-caching-mod-ruby-apache/81426 "2007-01-10T09:12:45Z")

</div>

I got that annoying thing: all pages that are parsed by Ruby - they cache somehow, so that I have to restart Apache in order to see any changes in browser. It’s not FastCGI, because I turned it of, so that could be mo…

---

## [Minimal Win32 Ruby install?](https://www.ruby-forum.com/t/minimal-win32-ruby-install/81537)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 2\
**Last updated:** [January 10, 2007, 7:45am UTC](https://www.ruby-forum.com/t/minimal-win32-ruby-install/81537 "2007-01-10T07:45:33Z")

</div>

I’m new to Ruby, and noticed that the install contains a HUGE number of files. I’d like to have this installed on a flash drive, but it takes too much space - which directories and files can I safely delete (I already …

---

## [Dhaka-1.0.0 now with RDoc](https://www.ruby-forum.com/t/dhaka-1-0-0-now-with-rdoc/81428)

<div class="topic-metadata">

**Author:** [@Mushfeq\_K](https://www.ruby-forum.com/u/Mushfeq_K)\
**Replies:** 4\
**Last updated:** [January 10, 2007, 6:35am UTC](https://www.ruby-forum.com/t/dhaka-1-0-0-now-with-rdoc/81428 "2007-01-10T06:35:30Z")

</div>

Three major changes with this release: A backwards-incompatible modification to Dhaka::Evaluator (hence the jump to 1.x.x - I just discovered the rational versioning system): When specifying evaluation rules, Evalu…

---

## [Indianapolis, Indiana Ruby Users Group](https://www.ruby-forum.com/t/indianapolis-indiana-ruby-users-group/81581)

<div class="topic-metadata">

**Author:** [@asno](https://www.ruby-forum.com/u/asno)\
**Replies:** 0\
**Last updated:** [January 10, 2007, 6:06am UTC](https://www.ruby-forum.com/t/indianapolis-indiana-ruby-users-group/81581 "2007-01-10T06:06:25Z")

</div>

Anybody living in the Indianapolis, IN area and interested in talking about Ruby with other Ruby geeks, I have started an Indy Ruby Meetup Group. Sign up at the URL below if you’re interested. Thanks. http://ruby.me…

---

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

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [January 10, 2007, 4:18am UTC](https://www.ruby-forum.com/t/ruby-newsless/81578 "2007-01-10T04:18:22Z")

</div>

really is a shame the ruby news press stopped. http://www.rubyweeklynews.org/ tim, what happened? t.

---

## [Dream Ledger](https://www.ruby-forum.com/t/dream-ledger/81576)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [January 10, 2007, 2:44am UTC](https://www.ruby-forum.com/t/dream-ledger/81576 "2007-01-10T02:44:14Z")

</div>

Fellow Rubyists, I announced this on the Camping mailing list, and hope you don’t mind me doing so here as well. I’m feeling crazy tonight and thought I’d go ahead and announce my new little project riding on the Ca…

---

## [Trying to fo this right](https://www.ruby-forum.com/t/trying-to-fo-this-right/81486)

<div class="topic-metadata">

**Author:** [@kay](https://www.ruby-forum.com/u/kay)\
**Replies:** 2\
**Last updated:** [January 10, 2007, 12:38am UTC](https://www.ruby-forum.com/t/trying-to-fo-this-right/81486 "2007-01-10T00:38:28Z")

</div>

if i.timesheets.find(:first,:select=\>‘inserida’,:order=\>‘inseridaDESC’).inserida.to\_s(:db).nil? miss = ‘nemhuma inserida’ else miss = \_ end i know the \_ isnt right, but im trying not to make the query 2 times, how…

---

## [Re: Strange safe level change](https://www.ruby-forum.com/t/re-strange-safe-level-change/81570)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [January 10, 2007, 12:33am UTC](https://www.ruby-forum.com/t/re-strange-safe-level-change/81570 "2007-01-10T00:33:04Z")

</div>

Eric H. wrote: security level… 1.8.4 if (OBJ\_TAINTED(method)) { safe = NOEX\_WITH(data-\>safe\_level, 4)|NOEX\_TAINTED; } Yes, I got the idea for the example from looking at this particular spot ;-). Inter…

---

## [Distribution of a Module](https://www.ruby-forum.com/t/distribution-of-a-module/81567)

<div class="topic-metadata">

**Author:** [@bgibby](https://www.ruby-forum.com/u/bgibby)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/distribution-of-a-module/81567 "2007-01-09T23:55:54Z")

</div>

Hi all, I’m new to Ruby and have created a few wrapper modules that help with the way that my colleagues and I interact with the Mysql class and I’d like to distribute it to them in a logical manner. Rather than just…

---

## [FeedTools and mime types](https://www.ruby-forum.com/t/feedtools-and-mime-types/81563)

<div class="topic-metadata">

**Author:** [@railsroad](https://www.ruby-forum.com/u/railsroad)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/feedtools-and-mime-types/81563 "2007-01-09T23:17:06Z")

</div>

I’ve been attempting to use FeedTools to generate an RSS feed for my app. When I poke the app from the browser with: http://localhost:3000/feed/rss the http:// is stripped out of the URL input and I get this error: …

---

## [: Ruby/FLTK 0.9.6](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [January 9, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512 "2007-01-09T23:10:57Z")

</div>

Ruby/FLTK 0.9.6 , 2007-01-09 http://ruby-fltk.sourceforge.net/ “Graphical functions of FLTK for make benefit glorious language of Ruby” What is this?: Ruby/FLTK is a Ruby binding for the FLTK (Fast, Light Toolkit) GU…

---

## [Re: Why is there a seperate Math class?](https://www.ruby-forum.com/t/re-why-is-there-a-seperate-math-class/81550)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [January 9, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/re-why-is-there-a-seperate-math-class/81550 "2007-01-09T23:01:11Z")

</div>

From: Ilmari H. \[mailto:removed\_email\_address@domain.invalid\] On 1/9/07, Phrogz removed\_email\_address@domain.invalid wrote: In addition to the answers by others, what would you do for those math functions whose ari…

---

## [Variables starting with ":"](https://www.ruby-forum.com/t/variables-starting-with/81558)

<div class="topic-metadata">

**Author:** [@escoz](https://www.ruby-forum.com/u/escoz)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/variables-starting-with/81558 "2007-01-09T22:21:11Z")

</div>

Hi guys, I’ve been looking for information about this for a while on some ruby books, and tutorials, but could never find anything. What’s the diference between regular variables defined as, lets say “example”, and t…

---

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

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 3\
**Last updated:** [January 9, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/string-performance/81552 "2007-01-09T22:16:50Z")

</div>

Guys a quick performance question - Is either one of the following more efficient than the other? I’m guessing they’re in this order: ‘a’ + x + ‘b’ “a” + x + “b” “a#{x}b”

---

## [Re: String performance](https://www.ruby-forum.com/t/re-string-performance/81554)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/re-string-performance/81554 "2007-01-09T22:02:48Z")

</div>

From: George P. Guys a quick performance question - Is either one of the following more efficient than the other? I’m guessing they’re in this order: ‘a’ + x + ‘b’ “a” + x + “b” “a#{x}b” Despite the intuition, I…

---

## [Help understanding data returned from ODBC 'indexes' call?](https://www.ruby-forum.com/t/help-understanding-data-returned-from-odbc-indexes-call/81553)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/help-understanding-data-returned-from-odbc-indexes-call/81553 "2007-01-09T22:00:48Z")

</div>

This is really weird and I don’t understand what data structure is coming back from the indexes(table) command. Any suggestions would be welcome: indexes\_new = @connnew.indexes(table) indexes\_new.each do |ind| puts…

---

## [Re: Strange safe level change](https://www.ruby-forum.com/t/re-strange-safe-level-change/81539)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [January 9, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/re-strange-safe-level-change/81539 "2007-01-09T21:41:46Z")

</div>

Eric H. wrote: $SAFE is switched when you assign to it, never at any other time. Is it so? Consider the following code: puts RUBY\_VERSION, RUBY\_PLATFORM class Test def show\_safe puts $SAFE end end Test.new.sho…

---

## [RubyPhone project update](https://www.ruby-forum.com/t/rubyphone-project-update/81549)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/rubyphone-project-update/81549 "2007-01-09T21:35:45Z")

</div>

Just a heads-up that the Ruby CTI project out on RubyForge (http://tsapi.rubyforge.org) has been updated. I revised a script located in the project page’s Docs section. This provides caller ID screen pops into Microso…

---

## [HTTP post to a differnt port + no content type response](https://www.ruby-forum.com/t/http-post-to-a-differnt-port-no-content-type-response/81416)

<div class="topic-metadata">

**Author:** [@alexr](https://www.ruby-forum.com/u/alexr)\
**Replies:** 4\
**Last updated:** [January 9, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/http-post-to-a-differnt-port-no-content-type-response/81416 "2007-01-09T18:06:00Z")

</div>

Hello everyone, I’m trying my first ruby script here. What I am trying to do is sending an SMS using Kannel, for this Kannel runs an script in an specific port(13013). Basically you do a HTTP post like this: http://1…

---

## [With and without initialize method](https://www.ruby-forum.com/t/with-and-without-initialize-method/81524)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [January 9, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/with-and-without-initialize-method/81524 "2007-01-09T18:04:14Z")

</div>

Hi all, I try to understand some concepts in Ruby. I define two classes, one with and the other without initialize method. In order to call the methods defined in each class I need to call new/initialize method firs…

---

## [Rdoc gem with hoe troubles](https://www.ruby-forum.com/t/rdoc-gem-with-hoe-troubles/81487)

<div class="topic-metadata">

**Author:** [@Paolo\_N](https://www.ruby-forum.com/u/Paolo_N)\
**Replies:** 2\
**Last updated:** [January 9, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/rdoc-gem-with-hoe-troubles/81487 "2007-01-09T17:53:13Z")

</div>

Hi I’m working on a new gem which is pretty much ready to be released. I’m using hoe to manage it but I can’t get the rdoc task to include my README.txt as a doc index and the generated rdocs are not providing the \[s…

---

## [Recommended mailbox parsing library](https://www.ruby-forum.com/t/recommended-mailbox-parsing-library/81519)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [January 9, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/recommended-mailbox-parsing-library/81519 "2007-01-09T17:49:12Z")

</div>

Are any of the ruby email parsing libraries currently maintained? I looked at rubymail and tmail, but neither seem to have been updated recently - is anyone currently using either of them (or some other ruby lib) to r…

---

## [Proc code](https://www.ruby-forum.com/t/proc-code/81468)

<div class="topic-metadata">

**Author:** [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Replies:** 4\
**Last updated:** [January 9, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/proc-code/81468 "2007-01-09T17:46:11Z")

</div>

Hey all, Is there a way to get the code (or, more importantly, the variables) out of a block associated with a Proc? For example: foo = lamdba { a = ‘bar’; puts a } p foo.source produces “a = ‘bar’; puts a” I thou…

---

## [Strange safe level change](https://www.ruby-forum.com/t/strange-safe-level-change/81475)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 1\
**Last updated:** [January 9, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/strange-safe-level-change/81475 "2007-01-09T17:43:11Z")

</div>

hello, Well I’m mailing about a problem I’m having while using the rails framework, since it does seem to be a ruby problem I thought I might as well post here I have a security level problem, for unknown reasons it …

---

## [Sortung a structured array on more than one criteria](https://www.ruby-forum.com/t/sortung-a-structured-array-on-more-than-one-criteria/81509)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 10\
**Last updated:** [January 9, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/sortung-a-structured-array-on-more-than-one-criteria/81509 "2007-01-09T16:38:02Z")

</div>

I can sort an array like that : results = rs.sort\_by{|p| p.km} but I tried to add a scrond sorting criteria like that : results = rs.sort\_by{|p| p.km, p.updated\_at } and I got obviously an error … parse error, unex…

---

## [Popen3 + bash surprise](https://www.ruby-forum.com/t/popen3-bash-surprise/81478)

<div class="topic-metadata">

**Author:** [@Aleksandr\_L](https://www.ruby-forum.com/u/Aleksandr_L)\
**Replies:** 1\
**Last updated:** [January 9, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/popen3-bash-surprise/81478 "2007-01-09T16:02:51Z")

</div>

It was surprising when the following code froze: require ‘open3’ i, o, e = Open3::popen3(’/bin/bash’) c = o.getc puts c.chr # expecting the first character of my bash prompt

---

## [RubyCocoa 0.10.1 Developer Preview](https://www.ruby-forum.com/t/rubycocoa-0-10-1-developer-preview/81510)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/rubycocoa-0-10-1-developer-preview/81510 "2007-01-09T15:39:48Z")

</div>

Hi, We are pleased to announce RubyCocoa 0.10.1 Developer Preview, which is a very quick bugfixes release for 0.10.0. Users who installed 0.10.0 are encouraged to upgrade to this release. RubyCocoa is a Mac OS X fram…

---

## [Survey respondents needed for masters thesis](https://www.ruby-forum.com/t/survey-respondents-needed-for-masters-thesis/81511)

<div class="topic-metadata">

**Author:** [@luffmusse](https://www.ruby-forum.com/u/luffmusse)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/survey-respondents-needed-for-masters-thesis/81511 "2007-01-09T15:35:47Z")

</div>

We are two students from the Royal Institute of Technology in Stockholm, Sweden (KTH - Sweden’s largest technical university | KTH). We are currently doing our masters thesis in Applied Information Technology where we …

---

## [Array#dup$B$,$\*$+$7$$(B?](https://www.ruby-forum.com/t/array-dup-b-7-b/81480)

<div class="topic-metadata">

**Author:** [@madoka\_yamamoto](https://www.ruby-forum.com/u/madoka_yamamoto)\
**Replies:** 2\
**Last updated:** [January 9, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/array-dup-b-7-b/81480 "2007-01-09T15:27:42Z")

</div>

e$B$3$s$K$A$O;3K$H$b$&$7$^$9!#e(B trunke$B$Ne(Brubye$B$r;n$7$F$?$s$G$9$,e(BArray#dupe$B$,$\*$+$7$$$h$&$G$9!#e(B ./miniruby -e ‘p (\[0,1\]\[0,1\]).dup’ #\[0, 1\]e$B$HI=\<($5$l$ke(B e$B0J2\<$N$h$&$K$7$F$bF1$8$G$7$?!#e(B a = \[0…

---

## [Hpricot Namespaces](https://www.ruby-forum.com/t/hpricot-namespaces/81493)

<div class="topic-metadata">

**Author:** [@amrangaye](https://www.ruby-forum.com/u/amrangaye)\
**Replies:** 0\
**Last updated:** [January 9, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/hpricot-namespaces/81493 "2007-01-09T13:36:26Z")

</div>

Hello. I’ve been using hpricot to parse html/xml. I recently ran into a situation where an xml tag was within a namespace - hpricot returns nil when I try to search for this particular tag using XPath. It works using…

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

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