# Ruby

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

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

---

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

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 4:54am UTC](https://www.ruby-forum.com/t/rubyforge-offline/116282 "2007-10-04T04:54:33Z")

</div>

Hello all - RubyForge is currently offline. I’ve got a ticket in with our colo facility and hope to get it back online soon. Thanks for your patience, Yours, Tom

---

## [Dike-0.0.1 - a memory leak detector](https://www.ruby-forum.com/t/dike-0-0-1-a-memory-leak-detector/115752)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 18\
**Last updated:** [October 4, 2007, 4:21am UTC](https://www.ruby-forum.com/t/dike-0-0-1-a-memory-leak-detector/115752 "2007-10-04T04:21:48Z")

</div>

NAME dike SYNOPSIS a simple memory leak detector for ruby with preconfigured rails hooks. INSTALL gem install dike URIS http://www.codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ DESCRI…

---

## [Determining if a process is alive on windows](https://www.ruby-forum.com/t/determining-if-a-process-is-alive-on-windows/116226)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 4\
**Last updated:** [October 4, 2007, 1:10am UTC](https://www.ruby-forum.com/t/determining-if-a-process-is-alive-on-windows/116226 "2007-10-04T01:10:42Z")

</div>

on \*nix i use this returns true if pid is running, false otherwise def alive pid #–{{{ pid = Integer(“#{ pid }”) begin Process::kill 0, pid true rescue Errno::ESRCH false end #–}}} end alias alive? alive …

---

## [Hybrid jruby/java app w/embedded rails app?](https://www.ruby-forum.com/t/hybrid-jruby-java-app-w-embedded-rails-app/116174)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 1:00am UTC](https://www.ruby-forum.com/t/hybrid-jruby-java-app-w-embedded-rails-app/116174 "2007-10-04T01:00:46Z")

</div>

I’d like to package a hybrid jruby/java swing app with an embedded rails app and hopefully be able to deliver this via Java webstart. Has anybody done anything like this? Or perhaps point to examples that implement fr…

---

## [Hash key performance](https://www.ruby-forum.com/t/hash-key-performance/116105)

<div class="topic-metadata">

**Author:** [@Matthias\_WSSS\_chter](https://www.ruby-forum.com/u/Matthias_WSSS_chter)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/hash-key-performance/116105 "2007-10-03T22:20:19Z")

</div>

I am just wondering why different hash keys result in such a significantly different performance. I have written 11 simple test cases, all using the following template: num=ARGV\[0\].to\_i var=:key a={:key =\> “test”} n…

---

## [Can someone recommend a Ruby IRC client module?](https://www.ruby-forum.com/t/can-someone-recommend-a-ruby-irc-client-module/116236)

<div class="topic-metadata">

**Author:** [@Kenosis](https://www.ruby-forum.com/u/Kenosis)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/can-someone-recommend-a-ruby-irc-client-module/116236 "2007-10-03T21:15:48Z")

</div>

Looks like there’s several options for a Ruby IRC client module/ class. Can someone recommend any one of them in particular? Thanks! Ken

---

## [Checkbox instead of dropdown](https://www.ruby-forum.com/t/checkbox-instead-of-dropdown/116238)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/checkbox-instead-of-dropdown/116238 "2007-10-03T21:00:12Z")

</div>

Hi, I am a RoR newby. The code below shows the categorie names, in a dropdown from the categories table and that works fine. But now i want to show the categories through checkboxen. How can i realise that?? \<% …

---

## [Re: how to add a jar to war.rb that's not in the maven repositories?](https://www.ruby-forum.com/t/re-how-to-add-a-jar-to-war-rb-thats-not-in-the-maven-repositories/116250)

<div class="topic-metadata">

**Author:** [@Forrest\_C](https://www.ruby-forum.com/u/Forrest_C)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/re-how-to-add-a-jar-to-war-rb-thats-not-in-the-maven-repositories/116250 "2007-10-03T20:47:42Z")

</div>

Thanks, that did the trick! ----- Original Message ---- From: Robert E. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Tuesday, October 2, 2007 3:46:53 PM Subject: Re: \[jruby-use…

---

## [Can't get example to work](https://www.ruby-forum.com/t/cant-get-example-to-work/116216)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/cant-get-example-to-work/116216 "2007-10-03T20:06:38Z")

</div>

Hello, I must be doing something wrong but I don’t know what. I’m trying to use this example to learn more about the Win32API::Registry library. require ‘win32/registry.rb’ $VERBOSE = nil appList = \[\] Win32::Regis…

---

## [Regular expression help needed](https://www.ruby-forum.com/t/regular-expression-help-needed/116242)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/regular-expression-help-needed/116242 "2007-10-03T20:06:12Z")

</div>

I’m trying to write a regular expression for a ruby program. What it needs to match is: 0,,\\a where 0 is any digit, then 2 commas, a backslash, then any letter. I have one that works if the expression didn’t hav…

---

## [Sitepoint Rails Book Free](https://www.ruby-forum.com/t/sitepoint-rails-book-free/116176)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/sitepoint-rails-book-free/116176 "2007-10-03T20:00:09Z")

</div>

Sitepoint is offering its Rails book as a free pdf download now. If you’re beginning into Rails for the first time, this is an excellent book for you. Find it at this URL/URI:

---

## [Re: Probable Iterations (#141)](https://www.ruby-forum.com/t/re-probable-iterations-141/116243)

<div class="topic-metadata">

**Author:** [@Urs\_Meyer](https://www.ruby-forum.com/u/Urs_Meyer)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/re-probable-iterations-141/116243 "2007-10-03T19:29:03Z")

</div>

my first contribution… nothing spectacular. /urs #!/usr/bin/ruby 141 probable iterations require ‘optparse’ def generate(n, m, &blk) if n == 0 yield \[\] else 1.upto(m) { |i| generate(n-1, m) { |result| yield res…

---

## [Want to find a patrner for yourself?](https://www.ruby-forum.com/t/want-to-find-a-patrner-for-yourself/116233)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/want-to-find-a-patrner-for-yourself/116233 "2007-10-03T18:01:04Z")

</div>

www.yedil.com connecting hearts together want to find a patrner for yourself? than log on to www.yedil.com and find your lover

---

## [Problem with ruby installation](https://www.ruby-forum.com/t/problem-with-ruby-installation/116168)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 5\
**Last updated:** [October 3, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-installation/116168 "2007-10-03T17:44:00Z")

</div>

Hi everybody. This is my first posting. I have a problem. My computer is balking whenever I try to install something using gem install (Mac OS X 10.3 PPC) and giving me this error: ERROR: While executing gem … (NoMet…

---

## [Bug on autoload](https://www.ruby-forum.com/t/bug-on-autoload/116229)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/bug-on-autoload/116229 "2007-10-03T17:29:51Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B \[ruby-dev:31923\]e$B$G$b?($l$?7o$G$9$,!$e(B1.9 e$B$G!$Nc$($Pe(B ----\<hoge.rb\>------------------------------- class HOGE; end e$B$G$"$k$H$-!$e(Bautoload :HOGE, ‘hoge.rb’ e$B$H@\_Dj$7$?8e$Ge…

---

## [\[ANN\] RVideo - Ruby video transcoding library](https://www.ruby-forum.com/t/ann-rvideo-ruby-video-transcoding-library/116145)

<div class="topic-metadata">

**Author:** [@jdruse](https://www.ruby-forum.com/u/jdruse)\
**Replies:** 4\
**Last updated:** [October 3, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/ann-rvideo-ruby-video-transcoding-library/116145 "2007-10-03T17:28:40Z")

</div>

RVideo has just been released as a gem! RVideo is a Ruby library inspects and processes video and audio files by providing an interface to free Unix tools like ffmpeg. Install with: sudo gem install rvideo (RVideo r…

---

## [Preview image with Ruby](https://www.ruby-forum.com/t/preview-image-with-ruby/116219)

<div class="topic-metadata">

**Author:** [@luciosan](https://www.ruby-forum.com/u/luciosan)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/preview-image-with-ruby/116219 "2007-10-03T17:25:43Z")

</div>

Hi Two years ago, I’ve projected in PHP a web site for preview and download JPG images; that site, use an APPLET ( http://www.lawrencegoetz.com/programs/lgviewer/ ) for the preview. Now, I’m re-project the site with …

---

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

<div class="topic-metadata">

**Author:** [@JesSSSSs\_Gabriel\_y\_S](https://www.ruby-forum.com/u/JesSSSSs_Gabriel_y_S)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/question-about-main/116220 "2007-10-03T16:56:23Z")

</div>

Hi, I’m trying to use main for the following case: program.rb -d 120 -z 7 /folder1 /folder2 /folder3 … I’m using Ara’s main gem. I know you can specify arity for a parameter but I don’t know if it’s possible to captu…

---

## [Using JRuby objects from Java](https://www.ruby-forum.com/t/using-jruby-objects-from-java/116211)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/using-jruby-objects-from-java/116211 "2007-10-03T15:07:56Z")

</div>

Is it a goal to eventually make working with JRuby classes from Java as easy as it is to work with Groovy classes from Java? Maybe having the full JRuby compiler addresses this. I want to be able to create instances o…

---

## [Win32 binary of mod\_ruby](https://www.ruby-forum.com/t/win32-binary-of-mod-ruby/116206)

<div class="topic-metadata">

**Author:** [@lars\_S](https://www.ruby-forum.com/u/lars_S)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/win32-binary-of-mod-ruby/116206 "2007-10-03T13:54:08Z")

</div>

Hi, I’ve been looking all over for a windows binary of mod\_ruby for apache? Does anyone know where I might find one? -Lars

---

## [Accessing Kernel namespace from within classes](https://www.ruby-forum.com/t/accessing-kernel-namespace-from-within-classes/116009)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 6\
**Last updated:** [October 3, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/accessing-kernel-namespace-from-within-classes/116009 "2007-10-03T12:34:36Z")

</div>

Hi all Hoping someone could tell me the answer to the following. I have a class defined in a file: TestWebsite. The main program requires the ‘net/http’ library and also the TestWebsite file. The class “TestWebsite” …

---

## [Hash of arrays - strange behavior](https://www.ruby-forum.com/t/hash-of-arrays-strange-behavior/116198)

<div class="topic-metadata">

**Author:** [@Jakub\_KuSSSSma](https://www.ruby-forum.com/u/Jakub_KuSSSSma)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/hash-of-arrays-strange-behavior/116198 "2007-10-03T12:21:09Z")

</div>

Hello, Could somebody explain me the following behavior? irb(main):001:0\> h = Hash.new(\[\]) =\> {} irb(main):002:0\> h\[1\].push(1) =\> \[1\] irb(main):003:0\> h =\> {} irb(main):004:0\> h\[1\].push(1) =\> \[1, 1\] irb(main):0…

---

## [How to add an iterator to a class?](https://www.ruby-forum.com/t/how-to-add-an-iterator-to-a-class/115333)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 7\
**Last updated:** [October 3, 2007, 11:55am UTC](https://www.ruby-forum.com/t/how-to-add-an-iterator-to-a-class/115333 "2007-10-03T11:55:23Z")

</div>

I have a simple class (this is just an example, so ignore any syntax or style errors): class MyArray def initialize @a = Array.new end def Push( item ) @a.push( item ) end def GetArray return @a end end And …

---

## [Split into hash](https://www.ruby-forum.com/t/split-into-hash/115317)

<div class="topic-metadata">

**Author:** [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Replies:** 8\
**Last updated:** [October 3, 2007, 11:50am UTC](https://www.ruby-forum.com/t/split-into-hash/115317 "2007-10-03T11:50:42Z")

</div>

Ok guys, I have a file which looks something like this: one=1 two=2 three=something four=something else I want to read each line into a hash, key=value… I have tried something like File.open(‘file’).each do |line| …

---

## [Discarding putc But Not puts](https://www.ruby-forum.com/t/discarding-putc-but-not-puts/116104)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 10\
**Last updated:** [October 3, 2007, 10:26am UTC](https://www.ruby-forum.com/t/discarding-putc-but-not-puts/116104 "2007-10-03T10:26:31Z")

</div>

Hello, I’m working with a third-party library that calls both putc and puts in a certain method. I’d like to discard what is written with putc for the duration of the method while keeping anything written to puts. …

---

## [Eruby + lighttpd mÃ¶glich?](https://www.ruby-forum.com/t/eruby-lighttpd-ma-glich/116184)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 10:11am UTC](https://www.ruby-forum.com/t/eruby-lighttpd-ma-glich/116184 "2007-10-03T10:11:55Z")

</div>

Google didn’t gave me any answer to my question. Is it possible to run eruby with lighttp webserver? Has anyone experience with it?

---

## [Hook, or override const\_set, and const\_get](https://www.ruby-forum.com/t/hook-or-override-const-set-and-const-get/116153)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 9:47am UTC](https://www.ruby-forum.com/t/hook-or-override-const-set-and-const-get/116153 "2007-10-03T09:47:19Z")

</div>

I have seen some examples of hooking into const\_missing; Howerver, I can’t seem to find anything on const\_set, and const\_get, any ideas? I tried opening class Module, ex. class Module def const\_set(cname, cval) … e…

---

## [A = b = c order of evaluation weird](https://www.ruby-forum.com/t/a-b-c-order-of-evaluation-weird/116099)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 24\
**Last updated:** [October 3, 2007, 6:13am UTC](https://www.ruby-forum.com/t/a-b-c-order-of-evaluation-weird/116099 "2007-10-03T06:13:24Z")

</div>

i thought if it is a = b = c due to associativity rule, then it is a = (b = c) so (b = c) is evaluated first. and then now it will be a = (evaluated\_value) now how come when a = Array(1…100) and to cut off the f…

---

## [Boto - RESTful Ruby Content Server](https://www.ruby-forum.com/t/boto-restful-ruby-content-server/116164)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 2:27am UTC](https://www.ruby-forum.com/t/boto-restful-ruby-content-server/116164 "2007-10-03T02:27:36Z")

</div>

I’ve open sourced one of my recent projects that I’ve been playing around with called Boto. Boto is a content server built with Mongrel that has a RESTful interface for creating, retrieving, updating and deleting cont…

---

## [Count of http requests](https://www.ruby-forum.com/t/count-of-http-requests/116161)

<div class="topic-metadata">

**Author:** [@jfry](https://www.ruby-forum.com/u/jfry)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 1:46am UTC](https://www.ruby-forum.com/t/count-of-http-requests/116161 "2007-10-03T01:46:07Z")

</div>

Using the YSlow Firebug extension Yahoo Developer Network , I can see how many HTTP requests a page made. For example, Slashdot Poll shows: This page has 7 external JavaScript files. This page has 5 external StyleShe…

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

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