# Ruby

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

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

---

## [Calling "Signal" from a C module](https://www.ruby-forum.com/t/calling-signal-from-a-c-module/49863)

<div class="topic-metadata">

**Author:** [@caleb](https://www.ruby-forum.com/u/caleb)\
**Replies:** 2\
**Last updated:** [December 9, 2005, 3:31pm UTC](https://www.ruby-forum.com/t/calling-signal-from-a-c-module/49863 "2005-12-09T15:31:44Z")

</div>

If I’m writing a C extension, how would I go about calling “Signal.list” from within that extension? I would normally do something like this: rb\_funcall(rb\_mSignal, rb\_intern(“list”), 0); But there doesn’t seem to b…

---

## [Code execution from file?](https://www.ruby-forum.com/t/code-execution-from-file/49721)

<div class="topic-metadata">

**Author:** [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Replies:** 8\
**Last updated:** [December 9, 2005, 2:17pm UTC](https://www.ruby-forum.com/t/code-execution-from-file/49721 "2005-12-09T14:17:52Z")

</div>

hello, i have a text field in a database table (a text file, generally speaking), with arbitrary Ruby code. i would like to execute this code in my application’s current environment. but i need to hide all my variabl…

---

## [How to pass numeric variables by reference?](https://www.ruby-forum.com/t/how-to-pass-numeric-variables-by-reference/49841)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 2\
**Last updated:** [December 9, 2005, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-pass-numeric-variables-by-reference/49841 "2005-12-09T13:20:38Z")

</div>

What’s the Ruby way of achieving pass-by-reference for numbers, as in the C code void foo (int\* x) { }

---

## [Is this a good way to find anagrams?](https://www.ruby-forum.com/t/is-this-a-good-way-to-find-anagrams/49740)

<div class="topic-metadata">

**Author:** [@wrong](https://www.ruby-forum.com/u/wrong)\
**Replies:** 9\
**Last updated:** [December 9, 2005, 1:16pm UTC](https://www.ruby-forum.com/t/is-this-a-good-way-to-find-anagrams/49740 "2005-12-09T13:16:19Z")

</div>

it seems to me, with computers these days, this should finish instantly, not take like 20 seconds. also, please help me make my ruby more ruby-like. i’m new to ruby, not that i know any other language. ##these are he…

---

## [Syntax checker?](https://www.ruby-forum.com/t/syntax-checker/52759)

<div class="topic-metadata">

**Author:** [@williamerubin](https://www.ruby-forum.com/u/williamerubin)\
**Replies:** 21\
**Last updated:** [December 9, 2005, 1:16pm UTC](https://www.ruby-forum.com/t/syntax-checker/52759 "2005-12-09T13:16:19Z")

</div>

Ruby doesn’t seem to check for class names, function names, and so forth until it actually hits a line that tries to use such a thing. Is there a way to get it to check up front, without having to run the script thro…

---

## [Weird connection/cache-problem in Rails](https://www.ruby-forum.com/t/weird-connection-cache-problem-in-rails/49857)

<div class="topic-metadata">

**Author:** [@beakid](https://www.ruby-forum.com/u/beakid)\
**Replies:** 0\
**Last updated:** [December 9, 2005, 12:15pm UTC](https://www.ruby-forum.com/t/weird-connection-cache-problem-in-rails/49857 "2005-12-09T12:15:00Z")

</div>

Hi all! Does anyone know the solution to this weird problem/bug in Rails? (alternate link: http://rafb.net/paste/results/82f7Wc85.html ) #in my helper #this is a ruby module we created that can open a directory via …

---

## [Unlogical?](https://www.ruby-forum.com/t/unlogical/96934)

<div class="topic-metadata">

**Author:** [@christer](https://www.ruby-forum.com/u/christer)\
**Replies:** 6\
**Last updated:** [December 9, 2005, 9:50am UTC](https://www.ruby-forum.com/t/unlogical/96934 "2005-12-09T09:50:56Z")

</div>

Hmm, why are these two assertions breaking? def test\_strange assert\_equal true, true && true assert\_equal false, true && false assert\_equal false, false && true assert\_equal false, false && false assert\_equal true,…

---

## [Fastcgi and shared interpreters](https://www.ruby-forum.com/t/fastcgi-and-shared-interpreters/49778)

<div class="topic-metadata">

**Author:** [@james\_b](https://www.ruby-forum.com/u/james_b)\
**Replies:** 8\
**Last updated:** [December 9, 2005, 9:31am UTC](https://www.ruby-forum.com/t/fastcgi-and-shared-interpreters/49778 "2005-12-09T09:31:07Z")

</div>

I’m doing more work with fascgi and scgi, and I’m looking for some clarification. Are there configurations for either of these where multiple application processes are sharing the same Ruby interpreter? If my own app…

---

## [Re: Using an HTTP proxy to record web traffic](https://www.ruby-forum.com/t/re-using-an-http-proxy-to-record-web-traffic/49843)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 1\
**Last updated:** [December 9, 2005, 8:05am UTC](https://www.ruby-forum.com/t/re-using-an-http-proxy-to-record-web-traffic/49843 "2005-12-09T08:05:08Z")

</div>

why the lucky stiff \[mailto:removed\_email\_address@domain.invalid\] : #MouseHole is a scriptable proxy. http://mousehole.rubyforge.org/ i have problems chaining mousehole to a proxy; like this: client–\>mousehole\_proxy …

---

## [Regex: greedy pattern](https://www.ruby-forum.com/t/regex-greedy-pattern/49846)

<div class="topic-metadata">

**Author:** [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Replies:** 4\
**Last updated:** [December 9, 2005, 7:40am UTC](https://www.ruby-forum.com/t/regex-greedy-pattern/49846 "2005-12-09T07:40:45Z")

</div>

Hello, In the code below, the pattern /#{a}/ consumes more than what I’d expect it to: irb(main):338:0\> abbr = %w\[Mr. Dr. i.e. Prof.\] text = “Mr. Drake and Dr. Hide, i.e., Mr. Dride, I presume?” abbr.each do |a| ab…

---

## [Ruby :symbols and C \*pointers are related?](https://www.ruby-forum.com/t/ruby-symbols-and-c-pointers-are-related/52192)

<div class="topic-metadata">

**Author:** [@petermichaux](https://www.ruby-forum.com/u/petermichaux)\
**Replies:** 8\
**Last updated:** [December 9, 2005, 6:55am UTC](https://www.ruby-forum.com/t/ruby-symbols-and-c-pointers-are-related/52192 "2005-12-09T06:55:59Z")

</div>

Hi, I’m still trying to grasp exactly what symbols are. I am getting a feeling that they are related to my old friends the C pointers. Am I getting closer? Thanks, Peter

---

## [XML Transformations using REXML](https://www.ruby-forum.com/t/xml-transformations-using-rexml/52135)

<div class="topic-metadata">

**Author:** [@james\_b](https://www.ruby-forum.com/u/james_b)\
**Replies:** 5\
**Last updated:** [December 9, 2005, 3:04am UTC](https://www.ruby-forum.com/t/xml-transformations-using-rexml/52135 "2005-12-09T03:04:26Z")

</div>

Toot toot! That’s the sound of my own horn. The January 2006 issue of Dr. Dobbs magazine has an article of mine, XML Transformations using REXML. I don’t know if the article will be available for free reading on the …

---

## [YAML question - substitution](https://www.ruby-forum.com/t/yaml-question-substitution/49821)

<div class="topic-metadata">

**Author:** [@anthony.elizondo](https://www.ruby-forum.com/u/anthony.elizondo)\
**Replies:** 1\
**Last updated:** [December 9, 2005, 2:52am UTC](https://www.ruby-forum.com/t/yaml-question-substitution/49821 "2005-12-09T02:52:17Z")

</div>

I am trying to create the following: { ‘a’ =\> ‘happy’, ‘b’ =\> ‘happy birthday’, ‘c’ =\> ‘happy new year’} Can YAML do this? I have something like: a: &first happy b: \*first\<\<birthday c: \*first.concat(‘new year’) nei…

---

## [Re: Are my metaprogramming underpants showing?](https://www.ruby-forum.com/t/re-are-my-metaprogramming-underpants-showing/49812)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 1\
**Last updated:** [December 9, 2005, 1:18am UTC](https://www.ruby-forum.com/t/re-are-my-metaprogramming-underpants-showing/49812 "2005-12-09T01:18:48Z")

</div>

Given that the code below is functionally equivalent, what’s beneficial about using a lambda expression? It strikes me as a requirement imposed by using the Functor class more than anything. The class way is defini…

---

## [Rescue anything raised?](https://www.ruby-forum.com/t/rescue-anything-raised/52987)

<div class="topic-metadata">

**Author:** [@williamerubin](https://www.ruby-forum.com/u/williamerubin)\
**Replies:** 9\
**Last updated:** [December 9, 2005, 1:14am UTC](https://www.ruby-forum.com/t/rescue-anything-raised/52987 "2005-12-09T01:14:42Z")

</div>

Is there a way to rescue any raised error? Like “rescue \*” or something? The “Programming Ruby” book on ruby-lang.org says that just plain “rescue” (without a parameter list) will rescue any “StandardError”, but it d…

---

## [Re: ArachnoRuby -- a professional Ruby IDE](https://www.ruby-forum.com/t/re-arachnoruby-a-professional-ruby-ide/49691)

<div class="topic-metadata">

**Author:** [@Patrick.Bennett](https://www.ruby-forum.com/u/Patrick.Bennett)\
**Replies:** 3\
**Last updated:** [December 9, 2005, 12:33am UTC](https://www.ruby-forum.com/t/re-arachnoruby-a-professional-ruby-ide/49691 "2005-12-09T00:33:46Z")

</div>

Is that perhaps already in the product and I’ve missed it? You can use Search-\>Lookup selection, but it’s nothing more than an automatic cross-project grep. While it is a very nice feature, I agree, Arachno Ruby def…

---

## [Creating Exchange mailBox via Ruby?](https://www.ruby-forum.com/t/creating-exchange-mailbox-via-ruby/49800)

<div class="topic-metadata">

**Author:** [@tech.samaritan](https://www.ruby-forum.com/u/tech.samaritan)\
**Replies:** 5\
**Last updated:** [December 9, 2005, 12:13am UTC](https://www.ruby-forum.com/t/creating-exchange-mailbox-via-ruby/49800 "2005-12-09T00:13:28Z")

</div>

Howdy! I am setting up services that automagically provision a new portal user with things like filespace, and an Exchange mailbox. The filespace is easy, but I have not found any way to do the Exchange part. I have …

---

## [Ruby on Rails mailing list?](https://www.ruby-forum.com/t/ruby-on-rails-mailing-list/49823)

<div class="topic-metadata">

**Author:** [@chris.irish](https://www.ruby-forum.com/u/chris.irish)\
**Replies:** 5\
**Last updated:** [December 8, 2005, 11:44pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-mailing-list/49823 "2005-12-08T23:44:55Z")

</div>

Could someone tell me if removed\_email\_address@domain.invalid mailto:removed\_email\_address@domain.invalid is the “main” list for rails? Or if there is another one? Thanks, Chris

---

## [Getting stdout and stderr for system calls on windows](https://www.ruby-forum.com/t/getting-stdout-and-stderr-for-system-calls-on-windows/48704)

<div class="topic-metadata">

**Author:** [@damphyr](https://www.ruby-forum.com/u/damphyr)\
**Replies:** 3\
**Last updated:** [December 8, 2005, 11:00pm UTC](https://www.ruby-forum.com/t/getting-stdout-and-stderr-for-system-calls-on-windows/48704 "2005-12-08T23:00:10Z")

</div>

OK, I’m stuck with a pretty problem: I need to drive a build process using make (dmake) from my scripts and I want to capture stdout and stderr as well as the return value from dmake. Normally I would do it using Dan…

---

## [Invalid arg to sysread deep within protocol.rb](https://www.ruby-forum.com/t/invalid-arg-to-sysread-deep-within-protocol-rb/64363)

<div class="topic-metadata">

**Author:** [@williamerubin](https://www.ruby-forum.com/u/williamerubin)\
**Replies:** 3\
**Last updated:** [December 8, 2005, 11:00pm UTC](https://www.ruby-forum.com/t/invalid-arg-to-sysread-deep-within-protocol-rb/64363 "2005-12-08T23:00:09Z")

</div>

I just made a script that fetches certain web pages, using Net::HTTP, over and over in a loop. Everything worked fine, for about 5000 iterations, but then the following error was thrown (this is in Ruby 1.8.3): C:/R…

---

## [Redirect\_to shows an empty page](https://www.ruby-forum.com/t/redirect-to-shows-an-empty-page/96670)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 1\
**Last updated:** [December 8, 2005, 9:09pm UTC](https://www.ruby-forum.com/t/redirect-to-shows-an-empty-page/96670 "2005-12-08T21:09:40Z")

</div>

Hi, I have a little problem with “redirect\_to”, I use in on a login procedure, but it always shows an empty page… class AdminController \< ApplicationController def index #do somthing end def login one user = chec…

---

## [What's your opinion? ArachnoRuby, Komodo, Eclipse/RDT, RadRa](https://www.ruby-forum.com/t/whats-your-opinion-arachnoruby-komodo-eclipse-rdt-radra/49706)

<div class="topic-metadata">

**Author:** [@curt.hibbs](https://www.ruby-forum.com/u/curt.hibbs)\
**Replies:** 9\
**Last updated:** [December 8, 2005, 9:01pm UTC](https://www.ruby-forum.com/t/whats-your-opinion-arachnoruby-komodo-eclipse-rdt-radra/49706 "2005-12-08T21:01:30Z")

</div>

There’s been a couple really good threads that are still ongoing about Ruby IDEs in general and ArachnoRuby, Komodo, and Eclipse/RDT in particular. I’ve been following these threads very closely because I’m writing a…

---

## [Html parses](https://www.ruby-forum.com/t/html-parses/96591)

<div class="topic-metadata">

**Author:** [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Replies:** 2\
**Last updated:** [December 8, 2005, 8:45pm UTC](https://www.ruby-forum.com/t/html-parses/96591 "2005-12-08T20:45:15Z")

</div>

Hello Does anyone knows about an html parser in ruby? One that separate all tags… thx

---

## [SwitchTower for non-Rails projects](https://www.ruby-forum.com/t/switchtower-for-non-rails-projects/49785)

<div class="topic-metadata">

**Author:** [@slavomir23](https://www.ruby-forum.com/u/slavomir23)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 7:18pm UTC](https://www.ruby-forum.com/t/switchtower-for-non-rails-projects/49785 "2005-12-08T19:18:57Z")

</div>

Is there anyone out there, who has used SwitchTower for non-Rails projects? Has anyone written a generator for it? I would like to get to know such an effort. BTW: SwitchTower is great :wink:

---

## [Retrieving PID running time](https://www.ruby-forum.com/t/retrieving-pid-running-time/49760)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 7\
**Last updated:** [December 8, 2005, 6:46pm UTC](https://www.ruby-forum.com/t/retrieving-pid-running-time/49760 "2005-12-08T18:46:13Z")

</div>

People, I have found how to get PIDs etc but how can I find the running time of a particular PID without messing around with a system call to ps etc Thanks, Phil. Philip R. Pricom Pty Limited (ACN 003 252 275 ABN …

---

## [YAML can not accept "\\t" under windows!](https://www.ruby-forum.com/t/yaml-can-not-accept-t-under-windows/52910)

<div class="topic-metadata">

**Author:** [@capitain](https://www.ruby-forum.com/u/capitain)\
**Replies:** 5\
**Last updated:** [December 8, 2005, 6:33pm UTC](https://www.ruby-forum.com/t/yaml-can-not-accept-t-under-windows/52910 "2005-12-08T18:33:56Z")

</div>

when i try this code ruby -ryaml -e ‘p YAML.load(" — hello")’ it print the “hello” but when i use ruby -ryaml -e ‘p YAML.load("\\t— hello")’ under my windows ruby 1.8.2 (2004-12-25) \[i386-mswin32\] it print such erro…

---

## [Re: Are my metaprogramming underpants showing?](https://www.ruby-forum.com/t/re-are-my-metaprogramming-underpants-showing/95966)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 3\
**Last updated:** [December 8, 2005, 6:29pm UTC](https://www.ruby-forum.com/t/re-are-my-metaprogramming-underpants-showing/95966 "2005-12-08T18:29:53Z")

</div>

Considering that there seems to be at least one mandatory argument (api\_key), you could do: require ‘calibre/functor’ functor\_factory = lambda { |\*symbols| Functor.new { |op, \*args| new\_sym = symbols+\[op\] if args.e…

---

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

<div class="topic-metadata">

**Author:** [@schmitt](https://www.ruby-forum.com/u/schmitt)\
**Replies:** 1\
**Last updated:** [December 8, 2005, 6:04pm UTC](https://www.ruby-forum.com/t/ruby-newby/96102 "2005-12-08T18:04:13Z")

</div>

Hi, I’m trying to write a parser for cooking recipes. It looks like this: require ‘bspmess’ class Parser STATES = \[ :FIND\_START, :SCAN\_HEADER\] methods = { :FIND\_START =\> self.find\_start, :SCAN\_HEADER =\>…

---

## [Suggestion to the Pragmatic Programmers](https://www.ruby-forum.com/t/suggestion-to-the-pragmatic-programmers/49755)

<div class="topic-metadata">

**Author:** [@xrfang](https://www.ruby-forum.com/u/xrfang)\
**Replies:** 4\
**Last updated:** [December 8, 2005, 4:46pm UTC](https://www.ruby-forum.com/t/suggestion-to-the-pragmatic-programmers/49755 "2005-12-08T16:46:14Z")

</div>

Hi Andy and Dave, I recently purchased the PickAxe 2 PDF edition. I intended to use it to replace the bundled help… Although the book is very well written, even better than the first edition, I still feel regreted t…

---

## [Re: increasing counter whithin loop?](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/96079)

<div class="topic-metadata">

**Author:** [@simon.kroeger.ext](https://www.ruby-forum.com/u/simon.kroeger.ext)\
**Replies:** 0\
**Last updated:** [December 8, 2005, 4:38pm UTC](https://www.ruby-forum.com/t/re-increasing-counter-whithin-loop/96079 "2005-12-08T16:38:07Z")

</div>

Hi Simon, Hi Steve, I just ran your code, and got the exact output you got, but I don’t understand a bit of it. :confused: First, I’m unclear as to the use of variables starting with colon. What are they, wh…

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

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