# Ruby

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

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

---

## [Re: One-Click Installer: MinGW? or VC2005? (fwd)](https://www.ruby-forum.com/t/re-one-click-installer-mingw-or-vc2005-fwd/99312)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/re-one-click-installer-mingw-or-vc2005-fwd/99312 "2006-07-21T17:59:36Z")

</div>

cross-posting this for completeness… -a suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. h.h. the 14th dali lama ---------- Forwarded message ---------- Dat…

---

## [Ruby-doc.org down?](https://www.ruby-forum.com/t/ruby-doc-org-down/99273)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 4\
**Last updated:** [July 21, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/ruby-doc-org-down/99273 "2006-07-21T17:55:59Z")

</div>

Hi all, I’m getting failed connections to ruby-doc.org… Anyone know why?

---

## [Using .each with constructors](https://www.ruby-forum.com/t/using-each-with-constructors/99171)

<div class="topic-metadata">

**Author:** [@apocalympse](https://www.ruby-forum.com/u/apocalympse)\
**Replies:** 30\
**Last updated:** [July 21, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/using-each-with-constructors/99171 "2006-07-21T17:44:35Z")

</div>

Is there a nice elegant way of creating several named objects of the same class? I naively tried a,b,c,d = 0 \[a, b, c, d\].each { |o| o = SomeClass.new } and found that while they get initialised inside the block, the…

---

## [Rubyists in Europe](https://www.ruby-forum.com/t/rubyists-in-europe/99302)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 2\
**Last updated:** [July 21, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/rubyists-in-europe/99302 "2006-07-21T16:50:18Z")

</div>

Hi all, my family and I are taking a quick sprint through Europe from Aug 3-11. I’d be interested in meeting local Rubyists while we’re there. My schedule is going to look like this: 3-6 London 7 Berlin …

---

## [Problems with escaped characters in file::stat](https://www.ruby-forum.com/t/problems-with-escaped-characters-in-file-stat/99264)

<div class="topic-metadata">

**Author:** [@tigerd](https://www.ruby-forum.com/u/tigerd)\
**Replies:** 2\
**Last updated:** [July 21, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/problems-with-escaped-characters-in-file-stat/99264 "2006-07-21T16:05:48Z")

</div>

Hey. I hva got a really mindchrusher problem. I’ve made a program that somewhere goes through a list of files, picked with a tar command, and then collects the size and time of every single file/dirs. It goes somethi…

---

## [Setting image resolution with Rmagick](https://www.ruby-forum.com/t/setting-image-resolution-with-rmagick/99290)

<div class="topic-metadata">

**Author:** [@ant](https://www.ruby-forum.com/u/ant)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/setting-image-resolution-with-rmagick/99290 "2006-07-21T15:38:25Z")

</div>

Hi Has anyone had success with setting image resolution with Rmagick. I am resizing an uploaded image with Rmagick, problem is it keeps the original images resolution and I want to change it to 72dpi. \<\<\<\<\<\< code exa…

---

## [Re: Mongoose 0.1.1](https://www.ruby-forum.com/t/re-mongoose-0-1-1/99184)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 14\
**Last updated:** [July 21, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/re-mongoose-0-1-1/99184 "2006-07-21T15:26:49Z")

</div>

\-----Original Message----- From: Jamey C. \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, July 20, 2006 1:03 PM To: ruby-talk ML Subject: \[ANN\] Mongoose 0.1.1 What is Mongoose? Mongoose is a datab…

---

## [Io.write with buffer size?](https://www.ruby-forum.com/t/io-write-with-buffer-size/99268)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 21, 2006, 12:52pm UTC](https://www.ruby-forum.com/t/io-write-with-buffer-size/99268 "2006-07-21T12:52:30Z")

</div>

Hello all, is there a way to do an io.write with a certain buffer size ? I need to do the same as somebody else did in TcL like this: fconfigure $file -buffersize 16 -buffering none -encoding binary -translation bi…

---

## [Recursive method and references](https://www.ruby-forum.com/t/recursive-method-and-references/99156)

<div class="topic-metadata">

**Author:** [@sci000](https://www.ruby-forum.com/u/sci000)\
**Replies:** 2\
**Last updated:** [July 21, 2006, 12:24pm UTC](https://www.ruby-forum.com/t/recursive-method-and-references/99156 "2006-07-21T12:24:51Z")

</div>

Hello @ all, I just wanted to realize a small heuristic search algorithm, but it doesnâ??t work as I expected it to be. Here is the problem: The test function f works properly: def f(a, i=0) (puts “—”; return) if i=…

---

## [Routes.rb](https://www.ruby-forum.com/t/routes-rb/99266)

<div class="topic-metadata">

**Author:** [@nimisha](https://www.ruby-forum.com/u/nimisha)\
**Replies:** 1\
**Last updated:** [July 21, 2006, 12:12pm UTC](https://www.ruby-forum.com/t/routes-rb/99266 "2006-07-21T12:12:18Z")

</div>

Can we configure an external URL through routes.rb in ruby on rails. For example I want something like this: map.connect '/test,:url=\>‘www.yahoo.com’ Is this Possible.

---

## [Problem when 'loading' a file containing a class derived fro](https://www.ruby-forum.com/t/problem-when-loading-a-file-containing-a-class-derived-fro/99203)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 4\
**Last updated:** [July 21, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/problem-when-loading-a-file-containing-a-class-derived-fro/99203 "2006-07-21T12:06:07Z")

</div>

I actually spotted this in a rails app but traced it back to ruby. Is this a real problem/bug or am I missing something obvious? $ cat \> person.rb class Person \< Struct.new(:forename, :surname) end $ irb irb\> load…

---

## [To get ENVinstead of cgi, fcgi.. any ideas?](https://www.ruby-forum.com/t/to-get-envinstead-of-cgi-fcgi-any-ideas/99265)

<div class="topic-metadata">

**Author:** [@Arie\_Kusuma\_A](https://www.ruby-forum.com/u/Arie_Kusuma_A)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 11:10am UTC](https://www.ruby-forum.com/t/to-get-envinstead-of-cgi-fcgi-any-ideas/99265 "2006-07-21T11:10:08Z")

</div>

Hello, I need to get ENV\[‘QUERY\_STRING’\]. i wrote CGI but it’s verrrry slow. now i’m trying to write FCGI for this. but i’m kind of clueless… i read this maillist archives, i read the ruby way (Hal F.) there are only…

---

## [RubyGems post-install hook](https://www.ruby-forum.com/t/rubygems-post-install-hook/99263)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 10:32am UTC](https://www.ruby-forum.com/t/rubygems-post-install-hook/99263 "2006-07-21T10:32:42Z")

</div>

Hi, I’m trying to package a Ruby library using Gems but have run into the problem of needing to execute some post-install commands a la setup.rb. Searching the archives brought this up from Dec 2004: http://makeashor…

---

## [International Obfuscated Ruby Coding Contest 2006!](https://www.ruby-forum.com/t/international-obfuscated-ruby-coding-contest-2006/99260)

<div class="topic-metadata">

**Author:** [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Replies:** 1\
**Last updated:** [July 21, 2006, 10:15am UTC](https://www.ruby-forum.com/t/international-obfuscated-ruby-coding-contest-2006/99260 "2006-07-21T10:15:42Z")

</div>

Hello all. I noticed that there was an IORCC 2005, but that the site had lanquised and that only the blogspot url still remains active. To this end, I took the initiative to register iorcc.org in hopes that we could …

---

## [Quirky Curses behavior?](https://www.ruby-forum.com/t/quirky-curses-behavior/99233)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 2\
**Last updated:** [July 21, 2006, 9:16am UTC](https://www.ruby-forum.com/t/quirky-curses-behavior/99233 "2006-07-21T09:16:40Z")

</div>

\#!/usr/bin/env ruby require ‘curses’ include Curses i = 60 Works puts (i / 60).to\_s Works if (i % 60 == 0) then puts (i / 60).to\_s end Works addstr (i / 60).to\_s Error: in \`addstr’: can’t convert Fixnum to strin…

---

## [Re: One-Click Installer: MinGW? or VC2005?](https://www.ruby-forum.com/t/re-one-click-installer-mingw-or-vc2005/99141)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [July 21, 2006, 8:11am UTC](https://www.ruby-forum.com/t/re-one-click-installer-mingw-or-vc2005/99141 "2006-07-21T08:11:24Z")

</div>

I would also like to support a two-part solution that has been suggested before: one part that essentially installs with one click and gives you a nice system to start with, like the one-click installer does today, p…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/99239)

<div class="topic-metadata">

**Author:** [@Matthew\_Heidemann](https://www.ruby-forum.com/u/Matthew_Heidemann)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 8:08am UTC](https://www.ruby-forum.com/t/no-subject/99239 "2006-07-21T08:08:14Z")

</div>

chaddr removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid

---

## [ROR / Apache2 / FastCGI - Missing Stylesheets](https://www.ruby-forum.com/t/ror-apache2-fastcgi-missing-stylesheets/99232)

<div class="topic-metadata">

**Author:** [@Blazer](https://www.ruby-forum.com/u/Blazer)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 5:36am UTC](https://www.ruby-forum.com/t/ror-apache2-fastcgi-missing-stylesheets/99232 "2006-07-21T05:36:44Z")

</div>

Folks … I have been porting my app from dev environment on Webrick to Apache with FastCGI. I have the app responding and pulling up the data, but it is ignoring the “images”, “stylesheets”, “javascripts” directories …

---

## [Ruby and XFDF](https://www.ruby-forum.com/t/ruby-and-xfdf/99228)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 5:02am UTC](https://www.ruby-forum.com/t/ruby-and-xfdf/99228 "2006-07-21T05:02:29Z")

</div>

I need to fill out PDF forms with XFDF files in Ruby. I can’t find any lib that can do this - does anyone know of one? Failing that, I can invoke another process - but I can’t find a command line tool for this either…

---

## [How to truncate strings in Ruby?](https://www.ruby-forum.com/t/how-to-truncate-strings-in-ruby/99224)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 2\
**Last updated:** [July 21, 2006, 4:04am UTC](https://www.ruby-forum.com/t/how-to-truncate-strings-in-ruby/99224 "2006-07-21T04:04:56Z")

</div>

So I’d think this is a very simple question, I’ve searched around the manual and google but couldn’t really find it. So what is the method to truncate a string in Ruby? Similar to the truncate(@text, 20) helper method…

---

## [Ruby's Postulate](https://www.ruby-forum.com/t/rubys-postulate/99220)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 21, 2006, 3:43am UTC](https://www.ruby-forum.com/t/rubys-postulate/99220 "2006-07-21T03:43:28Z")

</div>

Not our Ruby but interesting nonetheless… DevCon: Fundamentalism Follow the slide show, the whole things kind of interesting too. T.

---

## [New to Ruby from CF](https://www.ruby-forum.com/t/new-to-ruby-from-cf/99211)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 3\
**Last updated:** [July 21, 2006, 1:15am UTC](https://www.ruby-forum.com/t/new-to-ruby-from-cf/99211 "2006-07-21T01:15:40Z")

</div>

I’m new to Ruby and Rails from Coldfusion, and I am already finding how much easier Ruby programming is, yet one thing that I haven’t quite figured out how to do in Ruby is to test whether for example, a contains b. I…

---

## [Trouble setting LD\_LIBRARY\_PATH for FastCGI script](https://www.ruby-forum.com/t/trouble-setting-ld-library-path-for-fastcgi-script/99180)

<div class="topic-metadata">

**Author:** [@Chris\_Gansen](https://www.ruby-forum.com/u/Chris_Gansen)\
**Replies:** 2\
**Last updated:** [July 20, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/trouble-setting-ld-library-path-for-fastcgi-script/99180 "2006-07-20T22:30:46Z")

</div>

Hello - I’m trying to exec a ruby script via FastCGI (on Apache 2.0), and cannot properly set the env. variable LD\_LIBRARY\_PATH at run time. I’ve tried adding: SetEnv LD\_LIBRARY\_PATH /path/to/lib in a .htaccess file…

---

## [\*.rb not running on Windows any more](https://www.ruby-forum.com/t/rb-not-running-on-windows-any-more/99172)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [July 20, 2006, 10:01pm UTC](https://www.ruby-forum.com/t/rb-not-running-on-windows-any-more/99172 "2006-07-20T22:01:47Z")

</div>

At work, I installed 1.8.2 from the one-click. I wrote a handy utility named “findfile.rb”, and put it in my windows\\system32 directory. I was happy, because I could open any cmd window and type “findfile …” and my r…

---

## [Net/HTTP is flaky?](https://www.ruby-forum.com/t/net-http-is-flaky/98973)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 12\
**Last updated:** [July 20, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/net-http-is-flaky/98973 "2006-07-20T21:35:48Z")

</div>

Inexplicably, the following code fails: http = Net::HTTP.new(“somesite.com”) puts http.get(“/”)\[1\] ...with this error: ruby/1.8/net/http.rb:925:in ‘\[\]’: undefined method ‘downcase’ for 1:Fixnum (NoMethodError) fro…

---

## [Eval.c compile error](https://www.ruby-forum.com/t/eval-c-compile-error/99182)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 20, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/eval-c-compile-error/99182 "2006-07-20T21:03:37Z")

</div>

e$B0J2\<$N$h$&$K!"%3%s%Q%$%k%(%i!\<$K$J$j$^$9!#e(B % make gcc -Wall -Wformat=2 -O2 -g -DRUBY\_GC\_STRESS -DRUBY\_EXPORT -I. -I. -c eval.c eval.c:238: error: static declaration of ‘rb\_cBinding’ follows non-static decla…

---

## [Mongoose 0.1.1](https://www.ruby-forum.com/t/mongoose-0-1-1/99181)

<div class="topic-metadata">

**Author:** [@Jamey\_C](https://www.ruby-forum.com/u/Jamey_C)\
**Replies:** 0\
**Last updated:** [July 20, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/mongoose-0-1-1/99181 "2006-07-20T21:03:37Z")

</div>

You can download it from: http://rubyforge.org/projects/mongoose/ What’s New Well, in the spirit of “Release early and often”, here’s a new version. This one has some bug fixes and code cleanup, but the big news is I …

---

## [Re: "" vs ''](https://www.ruby-forum.com/t/re-vs/99178)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [July 20, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/re-vs/99178 "2006-07-20T20:56:38Z")

</div>

Isn’t it better to use ‘some string’ instead of “some string”. Because the “” goes through a lot more working interpreting any variable that might be in the string, etc. Where as ‘’ is just literal. Thanks for your …

---

## [Sandbox 0.0.11 -- taking the i out of eval](https://www.ruby-forum.com/t/sandbox-0-0-11-taking-the-i-out-of-eval/99007)

<div class="topic-metadata">

**Author:** [@why\_the\_lucky\_stiff](https://www.ruby-forum.com/u/why_the_lucky_stiff)\
**Replies:** 13\
**Last updated:** [July 20, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/sandbox-0-0-11-taking-the-i-out-of-eval/99007 "2006-07-20T20:30:18Z")

</div>

Oh rapture! Oh, delicious zesty snacks! Oh, steamed uncles in a cabbage display! OH, LAMB MEDALLIONS! For serious: I am outstripped with zeal. The sandbox is open. While still in primitive fashion, it’s pretty …

---

## [Best way to kill a thread started from a TkButton push](https://www.ruby-forum.com/t/best-way-to-kill-a-thread-started-from-a-tkbutton-push/98913)

<div class="topic-metadata">

**Author:** [@jtoy](https://www.ruby-forum.com/u/jtoy)\
**Replies:** 2\
**Last updated:** [July 20, 2006, 8:19pm UTC](https://www.ruby-forum.com/t/best-way-to-kill-a-thread-started-from-a-tkbutton-push/98913 "2006-07-20T20:19:04Z")

</div>

Hello all, Looking for the best way to kill a thread started from a TkButton push. I’m just using one thread that I would like to control via a Tk Start button and a Tk Stop button. The reason for the question is th…

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

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