# Ruby

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

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

---

## [Why Ruby?](https://www.ruby-forum.com/t/why-ruby/156575)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 34\
**Last updated:** [January 16, 2009, 11:47am UTC](https://www.ruby-forum.com/t/why-ruby/156575 "2009-01-16T11:47:07Z")

</div>

I have never seen or heard of Ruby in a corporate context. The single exception (where I first came across it) was a supplier who was using it with Watir for testing a Java application. If you supply services to corpo…

---

## [Point free (pointless) programming in ruby?](https://www.ruby-forum.com/t/point-free-pointless-programming-in-ruby/157640)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 11:24am UTC](https://www.ruby-forum.com/t/point-free-pointless-programming-in-ruby/157640 "2009-01-16T11:24:10Z")

</div>

I’m very fond of the notion of Concatenative Languages such as Joy, Factor… Joy (programming language) - Wikipedia http://www.latrobe.edu.au/philosophy/phimvt/joy/jp-joyjoy.html http://factorcode.org/ There is a sup…

---

## [\[ANN\] Ruby Manor - videos now available!](https://www.ruby-forum.com/t/ann-ruby-manor-videos-now-available/157887)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 11:05am UTC](https://www.ruby-forum.com/t/ann-ruby-manor-videos-now-available/157887 "2009-01-16T11:05:24Z")

</div>

Hi all, Ruby Manor - Videos is now live for hosting the talks. There are only 5 of them (Dan, Paul, Sean, Me & Martin, George) at the moment but we’re working on the rest (as you can imagine it takes some time to sy…

---

## [Fwd: New RubyForge Project Submitted](https://www.ruby-forum.com/t/fwd-new-rubyforge-project-submitted/157883)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 9:41am UTC](https://www.ruby-forum.com/t/fwd-new-rubyforge-project-submitted/157883 "2009-01-16T09:41:48Z")

</div>

\---------- Forwarded message ---------- From: removed\_email\_address@domain.invalid Date: Fri, Jan 16, 2009 at 9:37 AM Subject: New R.Forge Project Submitted To: removed\_email\_address@domain.invalid New R.Forge Proj…

---

## [Pure Ruby Zlib::GzipWriter](https://www.ruby-forum.com/t/pure-ruby-zlib-gzipwriter/155694)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 52\
**Last updated:** [January 16, 2009, 7:46am UTC](https://www.ruby-forum.com/t/pure-ruby-zlib-gzipwriter/155694 "2009-01-16T07:46:27Z")

</div>

Hi, There’s a project out there called “zliby” \[1\] which partially implements the zlib library. Unfortunately, only the Zlib::GzipReader class has been implemented so far. I’d like to have a pure Ruby implementation …

---

## [Starling eaquivalent or jruby?](https://www.ruby-forum.com/t/starling-eaquivalent-or-jruby/157813)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 6\
**Last updated:** [January 16, 2009, 7:28am UTC](https://www.ruby-forum.com/t/starling-eaquivalent-or-jruby/157813 "2009-01-16T07:28:49Z")

</div>

Hi, I wanted to install the starling gem with jruby: jgem install starling-starling but it complains that it is a native extension. Any suggestion of an alternative usable with JRuby? I need a simple queuing system …

---

## [About interrupt](https://www.ruby-forum.com/t/about-interrupt/157874)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 6:21am UTC](https://www.ruby-forum.com/t/about-interrupt/157874 "2009-01-16T06:21:33Z")

</div>

Test.java import java.io.FileOutputStream; public class Test { public static void main(String\[\] args) throws Exception { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { try { new FileO…

---

## [\[Bug #984\] Test::Unit::Assertions#assert\_match double counts number of assertions](https://www.ruby-forum.com/t/bug-984-test-assertions-assert-match-double-counts-number-of-assertions/156932)

<div class="topic-metadata">

**Author:** [@Naohisa\_G](https://www.ruby-forum.com/u/Naohisa_G)\
**Replies:** 4\
**Last updated:** [January 16, 2009, 6:07am UTC](https://www.ruby-forum.com/t/bug-984-test-assertions-assert-match-double-counts-number-of-assertions/156932 "2009-01-16T06:07:33Z")

</div>

Bug #984: Test::Unit::Assertions#assert\_match double counts number of assertions http://redmine.ruby-lang.org/issues/show/984 e$B5/I\<\<Te(B: Naohisa G. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Ruby 1.9.1-rc1 e$B$…

---

## [\`(bacticks) returns "Bad File Descriptor" error with Apache](https://www.ruby-forum.com/t/bacticks-returns-bad-file-descriptor-error-with-apache/157868)

<div class="topic-metadata">

**Author:** [@daniellesteel](https://www.ruby-forum.com/u/daniellesteel)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 4:37am UTC](https://www.ruby-forum.com/t/bacticks-returns-bad-file-descriptor-error-with-apache/157868 "2009-01-16T04:37:40Z")

</div>

Hello, I wanted to run a command line program from Ruby. I used \`(backticks) to do this. It was successful if I run the program using Webrick but if I run it using Apache 2.2.8, a “Bad File Descriptor” error is return…

---

## [Proc params extension](https://www.ruby-forum.com/t/proc-params-extension/157856)

<div class="topic-metadata">

**Author:** [@tjholowaychuk](https://www.ruby-forum.com/u/tjholowaychuk)\
**Replies:** 4\
**Last updated:** [January 16, 2009, 3:56am UTC](https://www.ruby-forum.com/t/proc-params-extension/157856 "2009-01-16T03:56:36Z")

</div>

Basically what I need is: Proc.new { |a,b,c| }.params # =\> \[:a, :b, :c\] I was looking into creating a C extension… but yikes the closure portion is far beyond my limited C skills (lack of). Any ideas? is this even re…

---

## [Pachubero: ruby wrapper for the internet of things](https://www.ruby-forum.com/t/pachubero-ruby-wrapper-for-the-internet-of-things/157865)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 2:48am UTC](https://www.ruby-forum.com/t/pachubero-ruby-wrapper-for-the-internet-of-things/157865 "2009-01-16T02:48:39Z")

</div>

I put together pachubero, a small wrapper for pachube (pachube.com), a platform where several devices around the world are publishing data. http://blog.mikamai.com/2009/01/internet-of-things-pachubero-pachube-wrapper-f…

---

## [Git and SVN push](https://www.ruby-forum.com/t/git-and-svn-push/157859)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 2:13am UTC](https://www.ruby-forum.com/t/git-and-svn-push/157859 "2009-01-16T02:13:33Z")

</div>

Git and SVN have been pushed. Reminder, tomorrow is the last time SVN will be updated! JD

---

## [Monkeybars 1.0](https://www.ruby-forum.com/t/monkeybars-1-0/157853)

<div class="topic-metadata">

**Author:** [@Logan\_B](https://www.ruby-forum.com/u/Logan_B)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 2:12am UTC](https://www.ruby-forum.com/t/monkeybars-1-0/157853 "2009-01-16T02:12:22Z")

</div>

Your favorite JRuby Swing GUI library just became 1.0! There shouldn’t be any major API changes between 6.2 and 1.0. The library is pretty stable now. This release includes many bugfixes and overall polish. http://mo…

---

## [How to create a file](https://www.ruby-forum.com/t/how-to-create-a-file/157566)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 1:42am UTC](https://www.ruby-forum.com/t/how-to-create-a-file/157566 "2009-01-16T01:42:04Z")

</div>

I use this code to write to a file: File.new(@FILE\_NAME,“w”). If the file name doesn’t exist, I will get “No such file” error. How can I create the file if it doesn’t exist? thanks.

---

## [Rake Task (or rule) dependency check tweaking](https://www.ruby-forum.com/t/rake-task-or-rule-dependency-check-tweaking/157822)

<div class="topic-metadata">

**Author:** [@peterk](https://www.ruby-forum.com/u/peterk)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 12:48am UTC](https://www.ruby-forum.com/t/rake-task-or-rule-dependency-check-tweaking/157822 "2009-01-16T00:48:38Z")

</div>

Given there may be a complex task - ie: spawns a shell process running “make”, “vcbuild”, “ant” or whatever or invokes a large ruby subroutine Given that the module is opaque to ruby and needs to be invoked to deter…

---

## [Functional programming](https://www.ruby-forum.com/t/functional-programming/157168)

<div class="topic-metadata">

**Author:** [@haris](https://www.ruby-forum.com/u/haris)\
**Replies:** 86\
**Last updated:** [January 15, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/functional-programming/157168 "2009-01-15T23:10:52Z")

</div>

Hi. I’m starting to learn functional programming with Ruby. I would like for someone to write me an example of finding the smallest number in the list and a sorting algorithm. I got the concept of map (collect), filt…

---

## [Undefined method \`\[\]' for nil:NilClass - how to prevent?](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass-how-to-prevent/157773)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 6\
**Last updated:** [January 15, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass-how-to-prevent/157773 "2009-01-15T22:08:01Z")

</div>

This returns correct value so long as I do not use array\[0\]\[i\]. The error is: searchArray.rb:13: undefined method \[\]' for nil:NilClass (NoMethodError) from shifting1.rb:7:ineach\_line’ from shifting1.rb:7 Exit code: …

---

## [Ruby-based wiki](https://www.ruby-forum.com/t/ruby-based-wiki/157386)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 6\
**Last updated:** [January 15, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/ruby-based-wiki/157386 "2009-01-15T21:09:14Z")

</div>

It’s a while since the last time this was asked: Is there any wiki written in Ruby which is alive and is backed by more than just one developer? I’m looking for a replacement for MediaWiki, the markup there is getting …

---

## [Glassfish gem and Mephisto problem](https://www.ruby-forum.com/t/glassfish-gem-and-mephisto-problem/157815)

<div class="topic-metadata">

**Author:** [@skiz](https://www.ruby-forum.com/u/skiz)\
**Replies:** 1\
**Last updated:** [January 15, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/glassfish-gem-and-mephisto-problem/157815 "2009-01-15T20:09:04Z")

</div>

Hi I am trying to set up Mephisto for my personal blog on a Ubuntu 8.10 server. I am using JRuby 1.1.6, the Glassfish gem version0.9.1, and Mephisto 0.8.1. I am using Postgresql as the database. I can get Mephisto …

---

## [Really beginner question](https://www.ruby-forum.com/t/really-beginner-question/154523)

<div class="topic-metadata">

**Author:** [@rocksonchan](https://www.ruby-forum.com/u/rocksonchan)\
**Replies:** 10\
**Last updated:** [January 15, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/really-beginner-question/154523 "2009-01-15T20:02:01Z")

</div>

hi all, as shows on the subject, it is a really really beginner question. i was trying to do the “hello world!” on my mac (v10.4 with ruby 1.8.2) in text editor, but i could not save it with a .rb extension. can som…

---

## [SQLite3-Ruby version 1.2.3 Installed, SQLite::Database prob](https://www.ruby-forum.com/t/sqlite3-ruby-version-1-2-3-installed-sqlite-database-prob/157836)

<div class="topic-metadata">

**Author:** [@siddharth](https://www.ruby-forum.com/u/siddharth)\
**Replies:** 1\
**Last updated:** [January 15, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-version-1-2-3-installed-sqlite-database-prob/157836 "2009-01-15T19:55:05Z")

</div>

I was trying to install SQLite3 and after a lot of goof ups I’ve managed to install the gem (SQLite3-Ruby --version 1.2.3). I downloaded the SQLite3 DLLs and exe and placed them in the System32 folder as well. I get n…

---

## [\[Bug #968\] trap may fail to handle signals](https://www.ruby-forum.com/t/bug-968-trap-may-fail-to-handle-signals/156741)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 2\
**Last updated:** [January 15, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/bug-968-trap-may-fail-to-handle-signals/156741 "2009-01-15T18:37:58Z")

</div>

Bug #968: trap may fail to handle signals http://redmine.ruby-lang.org/issues/show/968 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, e$B%+%F%4%je(B: YARV, Target ve…

---

## [Why do true and false have separate classes](https://www.ruby-forum.com/t/why-do-true-and-false-have-separate-classes/157693)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 17\
**Last updated:** [January 15, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/why-do-true-and-false-have-separate-classes/157693 "2009-01-15T16:25:50Z")

</div>

This has puzzled me a bit. I googled and came up with responses like – in any case we use respond\_to? for duck typing. I am writing a program in which some classes behave differently depending on the data in various c…

---

## [Problem of using jruby and warbler to deploy my ruby on rails app to resin](https://www.ruby-forum.com/t/problem-of-using-jruby-and-warbler-to-deploy-my-ruby-on-rails-app-to-resin/157664)

<div class="topic-metadata">

**Author:** [@harry\_wang](https://www.ruby-forum.com/u/harry_wang)\
**Replies:** 3\
**Last updated:** [January 15, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/problem-of-using-jruby-and-warbler-to-deploy-my-ruby-on-rails-app-to-resin/157664 "2009-01-15T16:02:46Z")

</div>

Hi, My ruby on rails application is a forum like system which needs people’s login to make a post. The login function is based on cookie and the authentication is from another web service. If a user’s login is vali…

---

## [Problems with "require 'some-installed-gem'"](https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812)

<div class="topic-metadata">

**Author:** [@sutch](https://www.ruby-forum.com/u/sutch)\
**Replies:** 2\
**Last updated:** [January 15, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812 "2009-01-15T15:41:03Z")

</div>

Hi everybody, I’ve got a strange problem and hope this is the right place for it. I’ve recently installed a new gem for ruby, called ‘rsruby’ (but it shouldn’t matter I think which one it is). The problem is the foll…

---

## [Where do I submit Ruby bugs?](https://www.ruby-forum.com/t/where-do-i-submit-ruby-bugs/157811)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 2\
**Last updated:** [January 15, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/where-do-i-submit-ruby-bugs/157811 "2009-01-15T15:35:39Z")

</div>

Say I find some bug in Ruby. Where do I report it? RubyForge says to go to http://redmine.ruby-lang.org/. In that site I click “Ruby 1.8.7” and indeed I see the issue queue, but… I don’t see any “Add issue” link there…

---

## [Nokogiri 1.1.1 Released](https://www.ruby-forum.com/t/nokogiri-1-1-1-released/157733)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 3\
**Last updated:** [January 15, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/nokogiri-1-1-1-released/157733 "2009-01-15T15:26:08Z")

</div>

nokogiri version 1.1.1 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://rubyforge.org/mailman/listinfo/nokogiri-talk …

---

## [Problem --\> "onsubmit" in "remote\_form\_for"?](https://www.ruby-forum.com/t/problem-onsubmit-in-remote-form-for/157803)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [January 15, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/problem-onsubmit-in-remote-form-for/157803 "2009-01-15T14:25:50Z")

</div>

I want to check whether textfield is empty or not at onsubmit event of form, but it is not working. Can any one tell me how to check empty textfield on remote\_form\_for’s onsubmit event??? my code is ---------------\> …

---

## [Returning a duplicate from an Array](https://www.ruby-forum.com/t/returning-a-duplicate-from-an-array/157635)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 11\
**Last updated:** [January 15, 2009, 1:24pm UTC](https://www.ruby-forum.com/t/returning-a-duplicate-from-an-array/157635 "2009-01-15T13:24:19Z")

</div>

Hey guys, I have an array of names that may contain duplicates. What I would like to do is return an array OF THE DUPLICATES. I was looking around at various built-in methods for arrays, but the closest thing I can fi…

---

## [Need Beta Testers](https://www.ruby-forum.com/t/need-beta-testers/157644)

<div class="topic-metadata">

**Author:** [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Replies:** 1\
**Last updated:** [January 15, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/need-beta-testers/157644 "2009-01-15T12:13:32Z")

</div>

Hello all, I’m developing a small ruby \[obfuscating|ecrypting|yadayada\] extension aimed to RubyCocoa developers, so if any RubyCocoa developer is around here (and interested in testing such a tool), let me know to sen…

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

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