# Ruby

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

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

---

## [Google trends, bad comparisons, &c](https://www.ruby-forum.com/t/google-trends-bad-comparisons-c/60258)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 3\
**Last updated:** [May 13, 2006, 2:01pm UTC](https://www.ruby-forum.com/t/google-trends-bad-comparisons-c/60258 "2006-05-13T14:01:28Z")

</div>

James B. posted a comment\[1\] about the new google trends tools\[2\], claiming that people would try to use it for all kinds of bad comparisons (his examples were between Ruby and other programming languages). I can’t i…

---

## [Re: boolean affectation shortcut](https://www.ruby-forum.com/t/re-boolean-affectation-shortcut/94764)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 13, 2006, 12:09pm UTC](https://www.ruby-forum.com/t/re-boolean-affectation-shortcut/94764 "2006-05-13T12:09:17Z")

</div>

fr 13: You can’ t because only methods can end with ? i think he is asking, why not? of course, we know it is not currently possible, but variable names with “?” may enhance readability. consider, x? = method\_that\_de…

---

## [Boolean affectation shortcut](https://www.ruby-forum.com/t/boolean-affectation-shortcut/60416)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 1\
**Last updated:** [May 13, 2006, 11:26am UTC](https://www.ruby-forum.com/t/boolean-affectation-shortcut/60416 "2006-05-13T11:26:56Z")

</div>

Hello here ! I wonder why I can’t use these statements : new\_image? = (filesize \> 0) or even new\_image? = (filesize \> 0 ? true : false) Thanks

---

## [Simplifying Vim folding](https://www.ruby-forum.com/t/simplifying-vim-folding/60113)

<div class="topic-metadata">

**Author:** [@Doug\_K](https://www.ruby-forum.com/u/Doug_K)\
**Replies:** 14\
**Last updated:** [May 13, 2006, 10:47am UTC](https://www.ruby-forum.com/t/simplifying-vim-folding/60113 "2006-05-13T10:47:23Z")

</div>

G’day folks, I was planning on simplifying the default folding provided when foldmethod=syntax. Currently pretty much everything is folded but I was planning on reducing this to just module/class/method definitions, …

---

## [Inspect for overriden method](https://www.ruby-forum.com/t/inspect-for-overriden-method/60412)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 13, 2006, 9:55am UTC](https://www.ruby-forum.com/t/inspect-for-overriden-method/60412 "2006-05-13T09:55:39Z")

</div>

override e$B$5$l$?%a%=%C%I$r8F$S=P$9I,MW$,$"$C$F!"e(Bunbound method e$B$re(B bind e$B$7$F8F$S=P$9$H$$$&$N$r$d$C$F$$F$=$l$O$H$/$Ke(B e$BLdBj$J$/F0$$$?$N$G$9$,!"e(Binspect e$B$9$k$H\<B:\]$K8F$S=P$9%a%=%C%Ie(B e$B$,B8:$9$k…

---

## [Mechanize and Cookies](https://www.ruby-forum.com/t/mechanize-and-cookies/60378)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 2\
**Last updated:** [May 13, 2006, 8:22am UTC](https://www.ruby-forum.com/t/mechanize-and-cookies/60378 "2006-05-13T08:22:06Z")

</div>

I am trying to access some google stuff (summer of code :slight\_smile: which requires that I am signed in - when I run the code below it says “Your browser’s cookie functionality is turned off. Please turn it on” Mech…

---

## [Using RSpec without runner - inconsistent context evaluation](https://www.ruby-forum.com/t/using-rspec-without-runner-inconsistent-context-evaluation/60393)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 2\
**Last updated:** [May 13, 2006, 6:36am UTC](https://www.ruby-forum.com/t/using-rspec-without-runner-inconsistent-context-evaluation/60393 "2006-05-13T06:36:40Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I’m trying to use RSpec 0.5.3 with Ruby 1.8.4 in an embedded situation: (C program | (Ruby interpreter | | (RSpec library | | … my specification … | | ) | ) …

---

## [Re: I can't believe it ate the whole thing!](https://www.ruby-forum.com/t/re-i-cant-believe-it-ate-the-whole-thing/60403)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 13, 2006, 5:02am UTC](https://www.ruby-forum.com/t/re-i-cant-believe-it-ate-the-whole-thing/60403 "2006-05-13T05:02:44Z")

</div>

fr jeff: In order to do this, obviously you have to look at several lines of the file, not just one at a time. After staring at the pickaxe book for an hour or so, the best idea I was able to come up with was to read…

---

## [Image Processing Questions](https://www.ruby-forum.com/t/image-processing-questions/60127)

<div class="topic-metadata">

**Author:** [@Mike\_Brum](https://www.ruby-forum.com/u/Mike_Brum)\
**Replies:** 9\
**Last updated:** [May 13, 2006, 5:02am UTC](https://www.ruby-forum.com/t/image-processing-questions/60127 "2006-05-13T05:02:38Z")

</div>

I’ve been digging around trying to find a good hook for GD and so far I’ve found Gruby (1): http://raa.ruby-lang.org/project/gruby/ Gruby (2): gRuby Project Ruby-gd: http://raa.ruby-lang.org/project/ruby-gd/ GD2: h…

---

## [Conversion issues](https://www.ruby-forum.com/t/conversion-issues/60323)

<div class="topic-metadata">

**Author:** [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Replies:** 39\
**Last updated:** [May 13, 2006, 1:18am UTC](https://www.ruby-forum.com/t/conversion-issues/60323 "2006-05-13T01:18:22Z")

</div>

what is going on here, i dont understand why i keep getting conversion errors. i am making a conversion from a string to and integer i dont understand why it isnt working. irb(main):036:0\> def favorite\_number irb(mai…

---

## [Re: conversion issues](https://www.ruby-forum.com/t/re-conversion-issues/94757)

<div class="topic-metadata">

**Author:** [@DebaunS\_Steve\_SSemi](https://www.ruby-forum.com/u/DebaunS_Steve_SSemi)\
**Replies:** 0\
**Last updated:** [May 13, 2006, 1:17am UTC](https://www.ruby-forum.com/t/re-conversion-issues/94757 "2006-05-13T01:17:41Z")

</div>

Or really, I know someone mentioned this, but… puts “Your full name has #{full\_length} characters.” Is the common ruby idiom ive seen. sd

---

## [Slowing threads](https://www.ruby-forum.com/t/slowing-threads/94680)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 6\
**Last updated:** [May 13, 2006, 12:33am UTC](https://www.ruby-forum.com/t/slowing-threads/94680 "2006-05-13T00:33:49Z")

</div>

Hi! I have written a program that simulates three “consoles” that accept keyboard input and run concurrently. You can type commands which each run at different speeds without interfering with other commands. It works…

---

## [Problems with setup of Rails and FCGI lighttpd setup](https://www.ruby-forum.com/t/problems-with-setup-of-rails-and-fcgi-lighttpd-setup/60391)

<div class="topic-metadata">

**Author:** [@llothar](https://www.ruby-forum.com/u/llothar)\
**Replies:** 1\
**Last updated:** [May 13, 2006, 12:24am UTC](https://www.ruby-forum.com/t/problems-with-setup-of-rails-and-fcgi-lighttpd-setup/60391 "2006-05-13T00:24:42Z")

</div>

Hello, i’m trying to use Rails with lighttpd on windows but i can’t get it running. Thats my config file: server.port = 8000 server.bind = “127.0.0.1” server.modules = ( “mod\_rewrite”, “mod\_fastcgi”, “mod\_accesslog…

---

## [Newb question - object type tests?](https://www.ruby-forum.com/t/newb-question-object-type-tests/60317)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 10\
**Last updated:** [May 13, 2006, 12:05am UTC](https://www.ruby-forum.com/t/newb-question-object-type-tests/60317 "2006-05-13T00:05:51Z")

</div>

Hello all, I feel like I definitely should know this, but how do you test the type of an object? For example: item = \[“hello”\] item.array? true item = “hello” item.array? false extending that, how do I test th…

---

## [RMagick 1.11.0](https://www.ruby-forum.com/t/rmagick-1-11-0/94753)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 0\
**Last updated:** [May 12, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/rmagick-1-11-0/94753 "2006-05-12T23:59:26Z")

</div>

\*\*\*\* RubyGem users on Linux, \*BSD, OS X please read the note at the end. \*\*\*\* I’ve just uploaded RMagick 1.11.0 to RubyForge. This release contains an important bug fix and some nice new features. Here’s the changes: …

---

## [YARV vs. lambda](https://www.ruby-forum.com/t/yarv-vs-lambda/60330)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/yarv-vs-lambda/60330 "2006-05-12T23:28:46Z")

</div>

Hi all. Somebody knows why YARV do this: l = lambda{|\*arg| p arg} l\[1\] #prints 1 instead of \[1\] l\[2,3\] #prints 2 instead of \[2,3\] l\[\] #prints 0 instead of \[\] Thanks. Victor

---

## [Park Place -- an Amazon S3 clone](https://www.ruby-forum.com/t/park-place-an-amazon-s3-clone/57173)

<div class="topic-metadata">

**Author:** [@why\_the\_lucky\_stiff](https://www.ruby-forum.com/u/why_the_lucky_stiff)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 10:06pm UTC](https://www.ruby-forum.com/t/park-place-an-amazon-s3-clone/57173 "2006-05-12T22:06:23Z")

</div>

Amazon has a very nice little service for storing files. \[1\] However, in order to use it at all, you need to agree to a big length of verbage and then fish some dimes out of petty cash. Dimes are small and Amazon kn…

---

## [Re: final/closed classes in Ruby (was: Sharp knives and glue](https://www.ruby-forum.com/t/re-final-closed-classes-in-ruby-was-sharp-knives-and-glue/94737)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 12, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/re-final-closed-classes-in-ruby-was-sharp-knives-and-glue/94737 "2006-05-12T21:45:00Z")

</div>

\-----Original Message----- From: Logan C. \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, May 11, 2006 5:18 PM To: ruby-talk ML Subject: Re: final/closed classes in Ruby (was: Sharp knives and glue) …

---

## [FW: Ominous quietude](https://www.ruby-forum.com/t/fw-ominous-quietude/60375)

<div class="topic-metadata">

**Author:** [@Fred\_Allen](https://www.ruby-forum.com/u/Fred_Allen)\
**Replies:** 2\
**Last updated:** [May 12, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/fw-ominous-quietude/60375 "2006-05-12T20:40:57Z")

</div>

Dear Sirs and Mesdames: Yesterday I executed the Windows Quick Install of Ruby’s release 18. 4.17rc2. I’m running Windows XP. When I initiate Ruby’s interactive application (c:\\ruby\\bin\\ruby.exe) it seems strangely i…

---

## [Re: Ominous quietude](https://www.ruby-forum.com/t/re-ominous-quietude/60377)

<div class="topic-metadata">

**Author:** [@DebaunS\_Steve\_SSemi](https://www.ruby-forum.com/u/DebaunS_Steve_SSemi)\
**Replies:** 0\
**Last updated:** [May 12, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/re-ominous-quietude/60377 "2006-05-12T20:37:26Z")

</div>

I suspect you seek irb.exe, not ruby.exe. Ruby.exe is a non-interactive interpreter, iirc. Irb is the interactive one. Glhfetc sd

---

## [Inheriting class-based state](https://www.ruby-forum.com/t/inheriting-class-based-state/60371)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/inheriting-class-based-state/60371 "2006-05-12T19:51:14Z")

</div>

This one puzzles me - I know there’s something fundamental that I’m not understanding about Ruby’s object model. Consider these classes: class Base def self.my\_name=(value) @my\_name = value end def self.my\_name @m…

---

## [Cached proc?](https://www.ruby-forum.com/t/cached-proc/94748)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [May 12, 2006, 7:22pm UTC](https://www.ruby-forum.com/t/cached-proc/94748 "2006-05-12T19:22:49Z")

</div>

I haven’t been able to find a cached proc class in the Facets list, so I whipped up one on my own. Pretty basic, but it’s nice to have a facet for it :slight\_smile: class CachedProc def initialize(&block) @proc = bl…

---

## [Unit testing with mock objects](https://www.ruby-forum.com/t/unit-testing-with-mock-objects/60309)

<div class="topic-metadata">

**Author:** [@Dido\_S](https://www.ruby-forum.com/u/Dido_S)\
**Replies:** 2\
**Last updated:** [May 12, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/unit-testing-with-mock-objects/60309 "2006-05-12T17:49:27Z")

</div>

I’ve been writing an extensive set of unit tests for a bunch of code that I’ve been developing over the past couple of years to improve its maintainability and have in the process needed to make more than a few mock o…

---

## [Is there a method for incrementing string names?!?](https://www.ruby-forum.com/t/is-there-a-method-for-incrementing-string-names/94740)

<div class="topic-metadata">

**Author:** [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Replies:** 9\
**Last updated:** [May 12, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/is-there-a-method-for-incrementing-string-names/94740 "2006-05-12T17:39:44Z")

</div>

Hello, I have model which has a property named “name”, I want to append a number to the end of the name when there is similar name in db. name, name1, name2… Is there a ready to use method in ruby and/or rails for do…

---

## [Nested IF statements](https://www.ruby-forum.com/t/nested-if-statements/60311)

<div class="topic-metadata">

**Author:** [@angelo](https://www.ruby-forum.com/u/angelo)\
**Replies:** 2\
**Last updated:** [May 12, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/nested-if-statements/60311 "2006-05-12T17:33:28Z")

</div>

I’m very new to Ruby and am desperately trying to figure out what seems to be a fairly simple script. Is there something special I need to know in regards to IF statements with Ruby that may differ from most other la…

---

## [Problem in the 1.8.4 win32 installer](https://www.ruby-forum.com/t/problem-in-the-1-8-4-win32-installer/60351)

<div class="topic-metadata">

**Author:** [@Robert\_Squire](https://www.ruby-forum.com/u/Robert_Squire)\
**Replies:** 1\
**Last updated:** [May 12, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/problem-in-the-1-8-4-win32-installer/60351 "2006-05-12T17:30:21Z")

</div>

after installing 1.8.4 rc2 my system PATH environment variable contained only “c:\\ruby\\bin”. Rather odd behavior and not difficult to fix but annoying. This may be posted elsewhere and if so please forgive my haste in …

---

## [Re: mkmf](https://www.ruby-forum.com/t/re-mkmf/94738)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/re-mkmf/94738 "2006-05-12T17:19:26Z")

</div>

Where can I find it ? Thanks % sudo gem install fxruby-1.4.6.gem Attempting local installation of ‘fxruby-1.4.6.gem’ Building native extensions. This could take a while… extconf.rb:4:in \`require’: no such file to …

---

## [Mkmf](https://www.ruby-forum.com/t/mkmf/94736)

<div class="topic-metadata">

**Author:** [@De\_dardel\_B](https://www.ruby-forum.com/u/De_dardel_B)\
**Replies:** 0\
**Last updated:** [May 12, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/mkmf/94736 "2006-05-12T16:31:30Z")

</div>

I’m new to ruby world and I would like to install fxruby. My problem is : I don’t find anywhere the file ‘mkmf.rb’ Where can I find it ? Thanks % sudo gem install fxruby-1.4.6.gem Attempting local installation of ‘f…

---

## [Any update on SoC students?](https://www.ruby-forum.com/t/any-update-on-soc-students/60353)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 3\
**Last updated:** [May 12, 2006, 4:19pm UTC](https://www.ruby-forum.com/t/any-update-on-soc-students/60353 "2006-05-12T16:19:50Z")

</div>

I saw the announcement a couple of weeks back now, was wondering if Ruby Central has been getting a good response? Any students stepped up to the refactoring tools challenge? Python seemed to attract a lot of interest…

---

## [Ruby for Rails now published in paper!](https://www.ruby-forum.com/t/ruby-for-rails-now-published-in-paper/94692)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/ruby-for-rails-now-published-in-paper/94692 "2006-05-12T15:51:59Z")

</div>

Hi – I’m on the road, so I haven’t laid eyes on it yet – but word on the virtual street is that “Ruby for Rails: Ruby techniques for Rails developers” is now out in paper. It will probably take a little longer to tri…

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

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