# Ruby

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

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

---

## [Flow of execution](https://www.ruby-forum.com/t/flow-of-execution/83733)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 2\
**Last updated:** [January 29, 2007, 11:26am UTC](https://www.ruby-forum.com/t/flow-of-execution/83733 "2007-01-29T11:26:25Z")

</div>

Hi all, Could someone explain the ‘flow’ of how the eg below is processed? My limited understanding is that the left hand side is the receiver and the right hand side the method being passed to the receiver? What I d…

---

## [Question about digits](https://www.ruby-forum.com/t/question-about-digits/83629)

<div class="topic-metadata">

**Author:** [@chubas](https://www.ruby-forum.com/u/chubas)\
**Replies:** 7\
**Last updated:** [January 29, 2007, 8:36am UTC](https://www.ruby-forum.com/t/question-about-digits/83629 "2007-01-29T08:36:58Z")

</div>

While playing a little with Ruby, I’ve been looking for a function each\_digit, or something similar, and I couldn’t find any (standard nor library). I think it’d be useful to have a function like that. It’s pretty sim…

---

## [Re: validates\_presence\_of generates syntax error](https://www.ruby-forum.com/t/re-validates-presence-of-generates-syntax-error/83729)

<div class="topic-metadata">

**Author:** [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Replies:** 0\
**Last updated:** [January 29, 2007, 8:15am UTC](https://www.ruby-forum.com/t/re-validates-presence-of-generates-syntax-error/83729 "2007-01-29T08:15:56Z")

</div>

On Jan 28, 2007, at 15:35, libsfan01 wrote: hi all Hi! PLEASE HELP!! First of all, make sure you are aware of the existence of Ruby on Rails mailing list that is more specialised and dedicated to answering ques…

---

## [String into array](https://www.ruby-forum.com/t/string-into-array/83649)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [January 29, 2007, 8:00am UTC](https://www.ruby-forum.com/t/string-into-array/83649 "2007-01-29T08:00:54Z")

</div>

I have the following string id = “(48.88689971942316, 2.3380279541015625)” is there any method to transform directly into an array \[48.88689971942316, 2.3380279541015625\] or should extract both parts and create the a…

---

## [Perplexing difference between debug and normal run of a simp](https://www.ruby-forum.com/t/perplexing-difference-between-debug-and-normal-run-of-a-simp/83718)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 1\
**Last updated:** [January 29, 2007, 7:47am UTC](https://www.ruby-forum.com/t/perplexing-difference-between-debug-and-normal-run-of-a-simp/83718 "2007-01-29T07:47:53Z")

</div>

Please look at this snippet - class Test def initialize @hash = {} end def method\_missing(m,\*a) if m.to\_s =~ /=$/ Test.class\_eval do define\_method($.to\_sym) do #accessor @hash\[$.to\_sym\] end define\_method(m) do…

---

## [Camping/FCGI (no Camping server) modtime update](https://www.ruby-forum.com/t/camping-fcgi-no-camping-server-modtime-update/83710)

<div class="topic-metadata">

**Author:** [@amra](https://www.ruby-forum.com/u/amra)\
**Replies:** 0\
**Last updated:** [January 29, 2007, 4:35am UTC](https://www.ruby-forum.com/t/camping-fcgi-no-camping-server-modtime-update/83710 "2007-01-29T04:35:40Z")

</div>

Hey guys. I’ve been twisting Camping’s arm a lot lately… does anyone have a suggestion on how to get FCGI w/ Apache to mimic the auto update based on mod time like Camping server does? I’m going live on a Dreamhost s…

---

## [SSL man in the middle in Ruby?](https://www.ruby-forum.com/t/ssl-man-in-the-middle-in-ruby/83661)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 7\
**Last updated:** [January 29, 2007, 3:43am UTC](https://www.ruby-forum.com/t/ssl-man-in-the-middle-in-ruby/83661 "2007-01-29T03:43:37Z")

</div>

Guys, I’m interested in implementing a simple SSL man-in-the-middle proxy (intercepting traffic by offering my own certificate, then transparently proxying the request out to whatever host was requested and the respon…

---

## ['step into' & menu icons](https://www.ruby-forum.com/t/step-into-menu-icons/83708)

<div class="topic-metadata">

**Author:** [@Rae](https://www.ruby-forum.com/u/Rae)\
**Replies:** 0\
**Last updated:** [January 29, 2007, 2:15am UTC](https://www.ruby-forum.com/t/step-into-menu-icons/83708 "2007-01-29T02:15:31Z")

</div>

I am just completing the Ruby 20 minute tutorial. I wanted to look at the iterate routine at end which compares Ruby’s use of blocks vs. c or Basic’s use of loops. To get a feel for how this works and really see how R…

---

## [Pass by reference?](https://www.ruby-forum.com/t/pass-by-reference/83534)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 45\
**Last updated:** [January 29, 2007, 1:13am UTC](https://www.ruby-forum.com/t/pass-by-reference/83534 "2007-01-29T01:13:26Z")

</div>

Hello, Is there a way to pass variables by reference into function. I have large string to pass and the pass by value seems to be eating up too much memory. Thanks, Andy

---

## [OSCON 2007 - Call for Proposals](https://www.ruby-forum.com/t/oscon-2007-call-for-proposals/83420)

<div class="topic-metadata">

**Author:** [@Chad\_F](https://www.ruby-forum.com/u/Chad_F)\
**Replies:** 1\
**Last updated:** [January 29, 2007, 1:11am UTC](https://www.ruby-forum.com/t/oscon-2007-call-for-proposals/83420 "2007-01-29T01:11:25Z")

</div>

Hello Rubyists! The CFP for OSCON 2007 closes Feb. 5. For the past 3 years, we’ve had a really nice Ruby track, and we’re soliciting proposals to do so once again. Here’s the full CFP announcement for the conference…

---

## [Fw: jamison sent you a video!](https://www.ruby-forum.com/t/fw-jamison-sent-you-a-video/83700)

<div class="topic-metadata">

**Author:** [@jamison\_edmonds](https://www.ruby-forum.com/u/jamison_edmonds)\
**Replies:** 0\
**Last updated:** [January 29, 2007, 12:15am UTC](https://www.ruby-forum.com/t/fw-jamison-sent-you-a-video/83700 "2007-01-29T00:15:19Z")

</div>

\----- Forwarded Message ---- From: YouTube S. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Sunday, January 28, 2007 3:07:23 PM Subject: jamison sent you a video! YouTube Broad…

---

## [Ruby IDE for Windows 98?](https://www.ruby-forum.com/t/ruby-ide-for-windows-98/83263)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 33\
**Last updated:** [January 29, 2007, 12:07am UTC](https://www.ruby-forum.com/t/ruby-ide-for-windows-98/83263 "2007-01-29T00:07:17Z")

</div>

Hello, In a few weeks I am going to teach a class of 16 year old students how to program. From scratch. With Ruby. (We have good reasons, I’ll explain them if you like.) With an IDE. (To get rid of the terminal fear…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/83698)

<div class="topic-metadata">

**Author:** [@RookS\_Bruce](https://www.ruby-forum.com/u/RookS_Bruce)\
**Replies:** 0\
**Last updated:** [January 28, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/unsubscribe/83698 "2007-01-28T23:57:16Z")

</div>

Bruce Rook Snr Test Analyst Interactive Consumer Experience Sensis Pty Ltd 222 Lonsdale St. Melbourne 3000. 0400559097 86534824 Sensis. Australia’s leading information resource. Making complex lives simpler by he…

---

## [Instance variables available in derived clases](https://www.ruby-forum.com/t/instance-variables-available-in-derived-clases/83598)

<div class="topic-metadata">

**Author:** [@richy](https://www.ruby-forum.com/u/richy)\
**Replies:** 16\
**Last updated:** [January 28, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/instance-variables-available-in-derived-clases/83598 "2007-01-28T22:07:51Z")

</div>

Hi. Please read my blog post, regarding instance variables in derived classes. Does anyone know a way to make instance variables ‘private’? Cheers, Rich.

---

## [Have you tried KDevelope 3.4 for Ruby dev?](https://www.ruby-forum.com/t/have-you-tried-kdevelope-3-4-for-ruby-dev/83674)

<div class="topic-metadata">

**Author:** [@Griff](https://www.ruby-forum.com/u/Griff)\
**Replies:** 2\
**Last updated:** [January 28, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/have-you-tried-kdevelope-3-4-for-ruby-dev/83674 "2007-01-28T20:16:29Z")

</div>

Have you tried KDevelope 3.4 for Ruby dev? Is it any good?

---

## [RubyForge down](https://www.ruby-forum.com/t/rubyforge-down/83655)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [January 28, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/rubyforge-down/83655 "2007-01-28T20:10:29Z")

</div>

Hello all - RubyForge went down at 1:15 this morning. It appears that someone is spoofing DenyHosts into blocking lots of IP addresses, too, so I’m working to get an IPKVM hooked up to the machine so I can straighten …

---

## [Retrieving an object by it's id](https://www.ruby-forum.com/t/retrieving-an-object-by-its-id/83670)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 3\
**Last updated:** [January 28, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/retrieving-an-object-by-its-id/83670 "2007-01-28T19:55:26Z")

</div>

Hello, how can I write a method f which fullfills the following specification? The function f has one Fixnum argument oi. f(oi) == \[true, obj\], if there’s an object obj with obj.object\_id == oi; f(oi) == \[false, nil…

---

## [Keybox 1.1.0 Released](https://www.ruby-forum.com/t/keybox-1-1-0-released/83640)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 10\
**Last updated:** [January 28, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/keybox-1-1-0-released/83640 "2007-01-28T18:59:21Z")

</div>

keybox version 1.1.0 has been released. http://keybox.rubyforge.org Keybox is a set of command line applications and ruby libraries for secure password storage and password generation. {{ Changelog for Version 1.1.0 …

---

## [Require 'popup'](https://www.ruby-forum.com/t/require-popup/83666)

<div class="topic-metadata">

**Author:** [@foppe](https://www.ruby-forum.com/u/foppe)\
**Replies:** 1\
**Last updated:** [January 28, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/require-popup/83666 "2007-01-28T17:28:01Z")

</div>

Hi There, I’m quite new and don’t know where to start. I would like to write a script for my own, with popup (see : http://tryruby.hobix.com/ type help 5) But when I start irb and perform : require ‘popup’ it doesn…

---

## [Parse conf file for CLI tool](https://www.ruby-forum.com/t/parse-conf-file-for-cli-tool/83494)

<div class="topic-metadata">

**Author:** [@crytyca](https://www.ruby-forum.com/u/crytyca)\
**Replies:** 2\
**Last updated:** [January 28, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/parse-conf-file-for-cli-tool/83494 "2007-01-28T16:43:14Z")

</div>

Hi, I’m pretty new to ruby and want to program some some linux shell tools in ruby as exercise. For these tools I want to be able to specify options as parameters on the command line or in a config file. I already di…

---

## [Backticks failing in Ruby built with VC++ 8](https://www.ruby-forum.com/t/backticks-failing-in-ruby-built-with-vc-8/83639)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [January 28, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/backticks-failing-in-ruby-built-with-vc-8/83639 "2007-01-28T15:31:43Z")

</div>

Hi all, Ruby 1.8.5 p12 Windows XP SP2 I’m getting a segfault when I use the backtick operator in a Ruby built with VC++ 8: pwd = pwd.chomp It works fine with the one click (VC++ 6). Is anyone else seeing this beha…

---

## [Real time vector graphics](https://www.ruby-forum.com/t/real-time-vector-graphics/83156)

<div class="topic-metadata">

**Author:** [@SonOfLilit](https://www.ruby-forum.com/u/SonOfLilit)\
**Replies:** 5\
**Last updated:** [January 28, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/real-time-vector-graphics/83156 "2007-01-28T14:51:32Z")

</div>

Hello all, I’m planning to prototype a vector graphics Zooming User Interface using ruby (because it feels good and it’s just a prototype - in the case that I elect to build the system I will probably force myself to…

---

## [Best way to access directory relational to current file](https://www.ruby-forum.com/t/best-way-to-access-directory-relational-to-current-file/83645)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 2\
**Last updated:** [January 28, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/best-way-to-access-directory-relational-to-current-file/83645 "2007-01-28T14:29:28Z")

</div>

I’m trying to find the full path to a file. File.dirname(FILE) always returns “.”, which doesn’t really do me any good. The working directory is not always the same as where the file is, so I can’t use the “.” in any…

---

## [Mac OS X ruby text editor](https://www.ruby-forum.com/t/mac-os-x-ruby-text-editor/83386)

<div class="topic-metadata">

**Author:** [@the-dark-lord](https://www.ruby-forum.com/u/the-dark-lord)\
**Replies:** 11\
**Last updated:** [January 28, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/mac-os-x-ruby-text-editor/83386 "2007-01-28T14:06:19Z")

</div>

Hello . I used to use SciTE when I used Windows. Now, as I have switched to Mac OS 10.4, please tell me a similar free text editor for Ruby in Mac. Thanks in advance. Cheers.

---

## [Validates\_presence\_of generates syntax error](https://www.ruby-forum.com/t/validates-presence-of-generates-syntax-error/83654)

<div class="topic-metadata">

**Author:** [@libsfan01](https://www.ruby-forum.com/u/libsfan01)\
**Replies:** 0\
**Last updated:** [January 28, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/validates-presence-of-generates-syntax-error/83654 "2007-01-28T13:36:00Z")

</div>

hi all im following the tutorial in the book “agile development with rails” as soon as i get to the point where u first add rails generated validation i get a syntax error every time: app/models/product.rb:1: syntax …

---

## [Communication between different C extensions](https://www.ruby-forum.com/t/communication-between-different-c-extensions/83652)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 0\
**Last updated:** [January 28, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/communication-between-different-c-extensions/83652 "2007-01-28T12:24:49Z")

</div>

Hello ! A long time ago, I was bitten hard by interoperability between different C extensions that need to access each others internals. As at that moment I was controlling the source code of all extensions, I got aw…

---

## [Review of code please](https://www.ruby-forum.com/t/review-of-code-please/83600)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 7\
**Last updated:** [January 28, 2007, 11:37am UTC](https://www.ruby-forum.com/t/review-of-code-please/83600 "2007-01-28T11:37:46Z")

</div>

Hi all, I’m hoping for some critique of the code below. It works but is slow and probably not ‘the ruby way’ Anagrams Purpose: find all anagrams in /usr/share/dict/words for 4 letter words (length 5 because of \\n) p…

---

## [\[ANN\] Rassmalog 2.4.0](https://www.ruby-forum.com/t/ann-rassmalog-2-4-0/83637)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 28, 2007, 3:56am UTC](https://www.ruby-forum.com/t/ann-rassmalog-2-4-0/83637 "2007-01-28T03:56:19Z")

</div>

Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile. It features an extensible blog formatting mechanism, easy configuration, and automatic tagging, archiving, syntax coloring, and table of contents. …

---

## [Ruby extension (C++) on OS X and Google-Sketchup \[ruby 1.8.5](https://www.ruby-forum.com/t/ruby-extension-c-on-os-x-and-google-sketchup-ruby-1-8-5/83575)

<div class="topic-metadata">

**Author:** [@Nicholas](https://www.ruby-forum.com/u/Nicholas)\
**Replies:** 3\
**Last updated:** [January 28, 2007, 2:49am UTC](https://www.ruby-forum.com/t/ruby-extension-c-on-os-x-and-google-sketchup-ruby-1-8-5/83575 "2007-01-28T02:49:09Z")

</div>

Hi, I have written a ruby extension in C++ and it works fine on OS X Tiger which ships ruby-1.8.2. With the succesful test of the extension (bundle), I then proceed to try to use it within Google-Sketchup \[which I th…

---

## [Question about variable scope](https://www.ruby-forum.com/t/question-about-variable-scope/83619)

<div class="topic-metadata">

**Author:** [@robin](https://www.ruby-forum.com/u/robin)\
**Replies:** 3\
**Last updated:** [January 28, 2007, 1:05am UTC](https://www.ruby-forum.com/t/question-about-variable-scope/83619 "2007-01-28T01:05:56Z")

</div>

Does the following code behave as you’d expect? 2.times{|n| i,j = n,i; puts “i=#{i}, j=#{j.inspect}”} Can you explain why j is nil rather than 0, the second time round? Thanks, Robin

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

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