# Ruby

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

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

---

## [Replicant 0.2 (Ruby -\> Javascript)](https://www.ruby-forum.com/t/replicant-0-2-ruby-javascript/100902)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 2\
**Last updated:** [August 3, 2006, 12:44pm UTC](https://www.ruby-forum.com/t/replicant-0-2-ruby-javascript/100902 "2006-08-03T12:44:35Z")

</div>

What it is: Replicant is a Ruby library for automatically converting methods on Ruby classes to Javascript classes, and serializing instances of those classes from Ruby to Javascript using #to\_json. I’ve been developi…

---

## [Re: I'll have the duck!](https://www.ruby-forum.com/t/re-ill-have-the-duck/101097)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 3, 2006, 12:43pm UTC](https://www.ruby-forum.com/t/re-ill-have-the-duck/101097 "2006-08-03T12:43:41Z")

</div>

there’s a language called “self” that has no classes, only prototypes. if you can find some material on that, i think you’ll find it interesting. Just chiming in here, early ActionScript (v1.0) also had a totall…

---

## [Debugging bad gems?](https://www.ruby-forum.com/t/debugging-bad-gems/100966)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 2\
**Last updated:** [August 3, 2006, 12:38pm UTC](https://www.ruby-forum.com/t/debugging-bad-gems/100966 "2006-08-03T12:38:45Z")

</div>

Hey folks, I’ve installed two gems from http://www.textualize.com – sruby ( http://www.textualize.com/sruby) and ruby-marc ( http://www.textualize.com/ruby\_marc) via gem install from rubygems.org to my ruby 1.8 inst…

---

## [Can you explain what this repo (yaml/Marshal) code do?](https://www.ruby-forum.com/t/can-you-explain-what-this-repo-yaml-marshal-code-do/100957)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 12:37pm UTC](https://www.ruby-forum.com/t/can-you-explain-what-this-repo-yaml-marshal-code-do/100957 "2006-08-03T12:37:31Z")

</div>

repositiory is a hash keyed on some kind of check sum derived from the file. But what is the use of Marshal? something to do with memory management, instead of writing to file? What is the format of what is spewed ou…

---

## [Can't set up rails: dispatch.cgi failed](https://www.ruby-forum.com/t/cant-set-up-rails-dispatch-cgi-failed/101069)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 3, 2006, 12:32pm UTC](https://www.ruby-forum.com/t/cant-set-up-rails-dispatch-cgi-failed/101069 "2006-08-03T12:32:18Z")

</div>

Hi, I’m trying to setup RoR on OpenBSD 3.9 with Ruby 1.8.4 and Apache 1.3. I’ve setup Rails to run as a Virtual Host, and I can view the “Welcome Aboard” page. When I try to access http:///category/ though, I get an…

---

## [Static functions, extensions, linkage](https://www.ruby-forum.com/t/static-functions-extensions-linkage/100947)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [August 3, 2006, 12:32pm UTC](https://www.ruby-forum.com/t/static-functions-extensions-linkage/100947 "2006-08-03T12:32:06Z")

</div>

Hi, How do you get at a static function from within a C extension? I tried this snippet where I attempt to use flo\_plus from numeric.c: /\* foo.c \*/ #include \<ruby.h\> extern VALUE flo\_plus(VALUE, VALUE); static VAL…

---

## [Crontab.rb:117: warning: tried to create Proc object without](https://www.ruby-forum.com/t/crontab-rb-warning-tried-to-create-proc-object-without/101067)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [August 3, 2006, 12:31pm UTC](https://www.ruby-forum.com/t/crontab-rb-warning-tried-to-create-proc-object-without/101067 "2006-08-03T12:31:38Z")

</div>

with crontab.rb:117: i get a warning: tried to create Proc object without a block line 117 being : job = proc if iterator? what could I change to avoid this warning ???

---

## [Cannot install ruby-fcgi on windows 2000](https://www.ruby-forum.com/t/cannot-install-ruby-fcgi-on-windows-2000/101079)

<div class="topic-metadata">

**Author:** [@tesla](https://www.ruby-forum.com/u/tesla)\
**Replies:** 1\
**Last updated:** [August 3, 2006, 12:27pm UTC](https://www.ruby-forum.com/t/cannot-install-ruby-fcgi-on-windows-2000/101079 "2006-08-03T12:27:27Z")

</div>

As said in the title I am using windows 2000 and cannot get ruby-fcgi 0.8.7or 0.8.6 to install. Hopefully someone has gotten this working by now. In the mailing list the only thing I could find was unanswered posts f…

---

## [Rails view template for a gallery](https://www.ruby-forum.com/t/rails-view-template-for-a-gallery/100940)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 5\
**Last updated:** [August 3, 2006, 12:26pm UTC](https://www.ruby-forum.com/t/rails-view-template-for-a-gallery/100940 "2006-08-03T12:26:49Z")

</div>

I am totally new to rails, so sorry for the trivial question! I have an object, gallery, that contains a list of images. I want to display these images in a table with 4 columns and as many rows as it takes, closing …

---

## [Load commands during irb startup](https://www.ruby-forum.com/t/load-commands-during-irb-startup/100955)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [August 3, 2006, 12:23pm UTC](https://www.ruby-forum.com/t/load-commands-during-irb-startup/100955 "2006-08-03T12:23:21Z")

</div>

HI There are the few commands that i always run from irb. require ‘watir’ … Can i load it automatically for me to save keystrokes. I can precieve froms docs that i can, but not able to figure it out well Seede

---

## [EventMachine - Anything Similar](https://www.ruby-forum.com/t/eventmachine-anything-similar/101072)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 1\
**Last updated:** [August 3, 2006, 12:19pm UTC](https://www.ruby-forum.com/t/eventmachine-anything-similar/101072 "2006-08-03T12:19:12Z")

</div>

Hi Everyone I’ve tried using EventMachine but with no luck because it seems to have issues installing and building on Windows. I’d really like something capable of what it is capable of though - Simple, quick server/…

---

## [Re: Mini quiz (Was: Detecting similar strings)](https://www.ruby-forum.com/t/re-mini-quiz-was-detecting-similar-strings/101075)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 3, 2006, 12:18pm UTC](https://www.ruby-forum.com/t/re-mini-quiz-was-detecting-similar-strings/101075 "2006-08-03T12:18:19Z")

</div>

You will need to calculate the distance for all values in the field to compare it with the user \>input, then pick the small distances and display them as options. As the list of values \>grows larger, your app will …

---

## [Newbie qustion](https://www.ruby-forum.com/t/newbie-qustion/100943)

<div class="topic-metadata">

**Author:** [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 12:08pm UTC](https://www.ruby-forum.com/t/newbie-qustion/100943 "2006-08-03T12:08:09Z")

</div>

I’m trying to parse a file that looks like this: text… text… numbers… IDS\_SOMETHIGN\_SOMETHING “giving you cookies in a sec” IDX\_SOMETHING\_SOMETHIGN “hi again” IDY\_SMOTHIENG\_SOMETHIGN\_SOMTHIGN “HELO world” ID\_ON…

---

## [Newbie:: issue while downloading binary from HTTP](https://www.ruby-forum.com/t/newbie-issue-while-downloading-binary-from-http/101060)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 3, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/newbie-issue-while-downloading-binary-from-http/101060 "2006-08-03T12:06:29Z")

</div>

Hi, I was writing a small script to download a binary file from a http site… require ‘net/http’ http = Net::HTTP.new(“www.cs.sunysb.edu/~dipanjan”, 80,‘proxy’,8080) local = File.new(“prithibi.mp3”, ‘w’) http.reques…

---

## [Sending messages to gtalk via jabber4r](https://www.ruby-forum.com/t/sending-messages-to-gtalk-via-jabber4r/101019)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 0\
**Last updated:** [August 2, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/sending-messages-to-gtalk-via-jabber4r/101019 "2006-08-02T21:23:31Z")

</div>

Hi, all. I am trying to use jabber4r in my application to send messages via GTalk server, which is usual Jabber server. But I cant do it - I suppose due to incorrect configuration properties Here is my properties ji…

---

## [Binary numbers](https://www.ruby-forum.com/t/binary-numbers/100912)

<div class="topic-metadata">

**Author:** [@kimpastro](https://www.ruby-forum.com/u/kimpastro)\
**Replies:** 5\
**Last updated:** [August 2, 2006, 3:04am UTC](https://www.ruby-forum.com/t/binary-numbers/100912 "2006-08-02T03:04:56Z")

</div>

Hi, I have some data with binary numbers. e.g. a 3 byte string could be 0x01216f which is 74095 decimal. To do this conversion in ruby I’ve come up with: def binum(bs) n = e = 0 bs.reverse.each\_byte do |c| n += c …

---

## [Re: Mini quiz (Was: Detecting similar strings)](https://www.ruby-forum.com/t/re-mini-quiz-was-detecting-similar-strings/100818)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 2, 2006, 2:39am UTC](https://www.ruby-forum.com/t/re-mini-quiz-was-detecting-similar-strings/100818 "2006-08-02T02:39:16Z")

</div>

It’s missing from wikipedia though. Does wikipedia provide the code for the implementations it lists? Maybe Hal would be so kind to add it then, if we ask him politely to do so :slight\_smile: Best regards, Axel

---

## [Newbie qustion](https://www.ruby-forum.com/t/newbie-qustion/100941)

<div class="topic-metadata">

**Author:** [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Replies:** 1\
**Last updated:** [August 2, 2006, 2:07am UTC](https://www.ruby-forum.com/t/newbie-qustion/100941 "2006-08-02T02:07:35Z")

</div>

I’m trying to parse a file that looks like this: text… text… numbers… IDS\_SOMETHIGN\_SOMETHING “giving you cookies in a sec” IDX\_SOMETHING\_SOMETHIGN IDY\_SMOTHIENG\_SOMETHIGN\_SOMTHIGN “HELO world” ID\_ONE\_THING …

---

## [Ruby on Rails newbie question](https://www.ruby-forum.com/t/ruby-on-rails-newbie-question/100946)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 2, 2006, 2:04am UTC](https://www.ruby-forum.com/t/ruby-on-rails-newbie-question/100946 "2006-08-02T02:04:25Z")

</div>

I just inherited a project. I had to make a small change to a helper file located in the helper folder (apps/helpers) and uploaded that .rb file only to my remote server, but nothing changed. I tried to see if the c…

---

## [Sending Multiple Args to a Method Object](https://www.ruby-forum.com/t/sending-multiple-args-to-a-method-object/100942)

<div class="topic-metadata">

**Author:** [@Harris\_R](https://www.ruby-forum.com/u/Harris_R)\
**Replies:** 5\
**Last updated:** [August 2, 2006, 1:51am UTC](https://www.ruby-forum.com/t/sending-multiple-args-to-a-method-object/100942 "2006-08-02T01:51:26Z")

</div>

I am trying to call a method that has multiple arguments using reflection. However, when I invoke the method.call method passing the arguments as an array it chokes with the following error: ArgumentError (wrong numb…

---

## [Strategies for autoloading ruby files](https://www.ruby-forum.com/t/strategies-for-autoloading-ruby-files/100936)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 9\
**Last updated:** [August 2, 2006, 1:31am UTC](https://www.ruby-forum.com/t/strategies-for-autoloading-ruby-files/100936 "2006-08-02T01:31:51Z")

</div>

Hi all, Following up on my post about complicated problems, here’s a much simpler problem that I need to tackle. There are many parts of my framework that are extensible, and I want people to be able to create extens…

---

## [Better profiling for ruby?](https://www.ruby-forum.com/t/better-profiling-for-ruby/100352)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 8\
**Last updated:** [August 2, 2006, 12:46am UTC](https://www.ruby-forum.com/t/better-profiling-for-ruby/100352 "2006-08-02T00:46:33Z")

</div>

So the recent performance threads have all repeated the wisdom “profile first” in various forms, and various ways. I have a problem with this. I can’t read the output of the ruby profiler and get meaningful insights …

---

## [Fwd: Please Forward: Ruby Quiz Submission (88)](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-88/229051)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 2, 2006, 12:07am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-88/229051 "2006-08-02T00:07:00Z")

</div>

Begin forwarded message:

---

## [Loop Timing and Constant Input](https://www.ruby-forum.com/t/loop-timing-and-constant-input/100522)

<div class="topic-metadata">

**Author:** [@Picklegnome](https://www.ruby-forum.com/u/Picklegnome)\
**Replies:** 8\
**Last updated:** [August 2, 2006, 12:02am UTC](https://www.ruby-forum.com/t/loop-timing-and-constant-input/100522 "2006-08-02T00:02:57Z")

</div>

A few quick questions: How can I make a loop that runs at, say, 8Hz? That is, every 1/8 of a second, it executes the loop. I could put a pause at the end of the loop (what is the syntax for making the script wait a ce…

---

## [Re: 'system' and windows and an external program](https://www.ruby-forum.com/t/re-system-and-windows-and-an-external-program/100915)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/re-system-and-windows-and-an-external-program/100915 "2006-08-01T23:45:37Z")

</div>

Dear Ara, you were right - just some confusing path name error. Thank you, Axel

---

## [I can't read correct filesize of an 12 GByte file](https://www.ruby-forum.com/t/i-cant-read-correct-filesize-of-an-12-gbyte-file/100904)

<div class="topic-metadata">

**Author:** [@akejohan](https://www.ruby-forum.com/u/akejohan)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/i-cant-read-correct-filesize-of-an-12-gbyte-file/100904 "2006-08-01T22:49:43Z")

</div>

I am trying this program but I get the wrong file size? sf = File.size(‘D:\\DVD\_CAPTURE\\uvs040114-003.MPG’) puts sf The file I try to read the size of = 12 152 090 kB is uvs040114-003.MPG This simple test program prin…

---

## [Question regarding postings in comp.lang.ruby](https://www.ruby-forum.com/t/question-regarding-postings-in-comp-lang-ruby/100653)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 21\
**Last updated:** [August 1, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/question-regarding-postings-in-comp-lang-ruby/100653 "2006-08-01T22:38:56Z")

</div>

Why do I sometimes see replies to posts in this group but not the original posting?

---

## [Re: 'system' and windows and an external program](https://www.ruby-forum.com/t/re-system-and-windows-and-an-external-program/100908)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/re-system-and-windows-and-an-external-program/100908 "2006-08-01T22:37:49Z")

</div>

Dear Ara, thanks for responding. perhaps? eg does your pathname have two extensions? No, I’ve tried that, but actually filename is now “mout.tex”. I wouldn’t understand why an extension should be the problem if …

---

## ['system' and windows and an external program](https://www.ruby-forum.com/t/system-and-windows-and-an-external-program/100905)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 10:11pm UTC](https://www.ruby-forum.com/t/system-and-windows-and-an-external-program/100905 "2006-08-01T22:11:47Z")

</div>

Dear all, I have a Ruby program that does some lengthy calculations and outputs a matrix, which I’d like to write to a Postscript or PDF using Latex file for readability (and re-usability in some lengthier text). I…

---

## [Win32 API Callbacks](https://www.ruby-forum.com/t/win32-api-callbacks/100583)

<div class="topic-metadata">

**Author:** [@oky](https://www.ruby-forum.com/u/oky)\
**Replies:** 3\
**Last updated:** [August 1, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/win32-api-callbacks/100583 "2006-08-01T22:05:24Z")

</div>

I want to write a Windows network audio program in pure Ruby. However, this requires me to call an API function called waveInOpen which takes a callback function as one of its arguments. The callback function looks li…

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

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