# Ruby

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

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

---

## [ANN: Sequel 0.1.0 Released](https://www.ruby-forum.com/t/ann-sequel-0-1-0-released/92667)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-0-released/92667 "2007-04-22T21:21:37Z")

</div>

Sequel: Concise ORM for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel version 0.1.0 has finally been released. This release fixes…

---

## [Once modifier (pickaxe book page 391)](https://www.ruby-forum.com/t/once-modifier-pickaxe-book-page-391/92571)

<div class="topic-metadata">

**Author:** [@ChrisKaelin](https://www.ruby-forum.com/u/ChrisKaelin)\
**Replies:** 7\
**Last updated:** [April 22, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/once-modifier-pickaxe-book-page-391/92571 "2007-04-22T20:25:31Z")

</div>

The following code is from the pickaxe book page 391 (slightly modified in order to have it available in all classes, that are defined). It implements a once modifier, that ensures a method’s body is only called, if i…

---

## [South Florida Software Symposium - May 18 - 20, 2007](https://www.ruby-forum.com/t/south-florida-software-symposium-may-18-20-2007/92664)

<div class="topic-metadata">

**Author:** [@miamijug](https://www.ruby-forum.com/u/miamijug)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/south-florida-software-symposium-may-18-20-2007/92664 "2007-04-22T20:16:31Z")

</div>

Greetings, We are happy to announce the South Florida Software Symposium 2007. South Florida Software Symposium May 18 - 20, 2007 Hotel Intercontinental Miami West 2505 Northwest 87th Avenue Miami, Florida 33172 h…

---

## [\[SOLUTION\] Morse Code (#121)](https://www.ruby-forum.com/t/solution-morse-code-121/92658)

<div class="topic-metadata">

**Author:** [@Mark\_Day](https://www.ruby-forum.com/u/Mark_Day)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/solution-morse-code-121/92658 "2007-04-22T18:33:23Z")

</div>

Thanks! That was a fun problem for a newbie. It was simple enough to come up with a basic solution pretty rapidly, with several opportunities to refine and experiment. -Mark Ruby Q. #121: Morse Code The example M…

---

## [Tools for documenting a ruby project](https://www.ruby-forum.com/t/tools-for-documenting-a-ruby-project/92647)

<div class="topic-metadata">

**Author:** [@Siemen\_B](https://www.ruby-forum.com/u/Siemen_B)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/tools-for-documenting-a-ruby-project/92647 "2007-04-22T17:57:21Z")

</div>

Hi list, I am about to hand in a report for an educational programming project and am looking for a smart and easy way to typeset it and the ruby code for the appendix. I think others must have done similar things an…

---

## [How does piping with ruby work?](https://www.ruby-forum.com/t/how-does-piping-with-ruby-work/92652)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/how-does-piping-with-ruby-work/92652 "2007-04-22T17:16:16Z")

</div>

Hi, I have a ruby script which does some calculations and saves the result in a variable. Now this script should start another external application and pipe this variable’s content into the gets() function of this ex…

---

## [Rss](https://www.ruby-forum.com/t/rss/92648)

<div class="topic-metadata">

**Author:** [@adriana](https://www.ruby-forum.com/u/adriana)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/rss/92648 "2007-04-22T13:56:10Z")

</div>

Hi, I’m trying to do RSS in my page, using ruby. Something is appearing in the browser, but I’m with some problems: 1 - If I’m not logged in, nothing appears in the bookmark. 2 - If I’m logged in, when I put another …

---

## [How to send a http::get or http::post with a cookie?](https://www.ruby-forum.com/t/how-to-send-a-http-get-or-http-post-with-a-cookie/92612)

<div class="topic-metadata">

**Author:** [@mrpink](https://www.ruby-forum.com/u/mrpink)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 10:00am UTC](https://www.ruby-forum.com/t/how-to-send-a-http-get-or-http-post-with-a-cookie/92612 "2007-04-22T10:00:36Z")

</div>

Hi, a simple question :slight\_smile: What options do I have to get a cookie from a website and then sending http:get or post with this cookie? greets

---

## [The (null)() function is unimplemented on this machine](https://www.ruby-forum.com/t/the-null-function-is-unimplemented-on-this-machine/92586)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 9:40am UTC](https://www.ruby-forum.com/t/the-null-function-is-unimplemented-on-this-machine/92586 "2007-04-22T09:40:35Z")

</div>

This is reported by the following two shared libraries on my machine: …/ruby-1.8.6/bin/digest.so: the (null)() function is unimplemented on this machine (NotImplementedError) …/ruby-1.8.6/bin/socket.so: the (null)() f…

---

## [Texmate](https://www.ruby-forum.com/t/texmate/92636)

<div class="topic-metadata">

**Author:** [@Charles\_LSSnyder](https://www.ruby-forum.com/u/Charles_LSSnyder)\
**Replies:** 6\
**Last updated:** [April 22, 2007, 2:20am UTC](https://www.ruby-forum.com/t/texmate/92636 "2007-04-22T02:20:11Z")

</div>

Hi I installed ruby 1.8.5 and rails on mac osX 10.4.9 via darwinports. Ever since, using the run command (cmd-R) for ruby programs from textmate gives me: “/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local…

---

## [Array.sort problem](https://www.ruby-forum.com/t/array-sort-problem/92624)

<div class="topic-metadata">

**Author:** [@Larme](https://www.ruby-forum.com/u/Larme)\
**Replies:** 7\
**Last updated:** [April 22, 2007, 2:17am UTC](https://www.ruby-forum.com/t/array-sort-problem/92624 "2007-04-22T02:17:11Z")

</div>

Dear all, I’m a newbie to ruby and today when I’m writing a simple script to process some data, I found something I can’t understand. The data is stored in several column seperated by tab or space. I use the followin…

---

## [Segfaults, other signals, fork, etc](https://www.ruby-forum.com/t/segfaults-other-signals-fork-etc/92620)

<div class="topic-metadata">

**Author:** [@ehird](https://www.ruby-forum.com/u/ehird)\
**Replies:** 3\
**Last updated:** [April 22, 2007, 2:07am UTC](https://www.ruby-forum.com/t/segfaults-other-signals-fork-etc/92620 "2007-04-22T02:07:11Z")

</div>

I have this code: Process.waitpid(fork { exec “stuff” }) Outside of the fork, how can i detect various signals sent to stuff? SIGSEV, etc.

---

## [Same ruby file acting standalone resp. as library](https://www.ruby-forum.com/t/same-ruby-file-acting-standalone-resp-as-library/92631)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 12:56am UTC](https://www.ruby-forum.com/t/same-ruby-file-acting-standalone-resp-as-library/92631 "2007-04-22T00:56:07Z")

</div>

Hello, the class definitions of my ruby file shall always be active, whether the file is run as standalone program or whether the file is used indirectly by require or load, but when the file is run standalone, a spe…

---

## [String subs](https://www.ruby-forum.com/t/string-subs/92634)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 12:39am UTC](https://www.ruby-forum.com/t/string-subs/92634 "2007-04-22T00:39:05Z")

</div>

lo there all, i have found how i can put a variable inside a string without the #{} stuff using %s and so on. But i don’t know how to do more than one. for example x = 5 y = 10 puts “i have %s foo and %s bar” % do…

---

## [A simple photosharing application written in Ruby on rails](https://www.ruby-forum.com/t/a-simple-photosharing-application-written-in-ruby-on-rails/102756)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/a-simple-photosharing-application-written-in-ruby-on-rails/102756 "2007-04-21T21:40:52Z")

</div>

I d like to show you http://www.morecute.com It has been awesome runs on Fedora I wanted to share it early on so there is litte load on the server and the early adopter crowd can try it out thanks Jerry

---

## [Minicomic-0.2](https://www.ruby-forum.com/t/minicomic-0-2/92628)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/minicomic-0-2/92628 "2007-04-21T20:40:46Z")

</div>

Just a quick note that minicomic 0.2, rake rules for building folio minicomics, has been released. Major changes include: color and direct rasterization of SVGs fix for page counts not divisible by four pages are now…

---

## [Getting keyboard input with ruby while forking mplayer](https://www.ruby-forum.com/t/getting-keyboard-input-with-ruby-while-forking-mplayer/92458)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 21, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/getting-keyboard-input-with-ruby-while-forking-mplayer/92458 "2007-04-21T20:20:43Z")

</div>

Hi I’m trying to create a simple ruby script, which forks mplayer and afterwards it stays in a while loop which blocks on gets (this is to get keyboard input). I start this script from a terminal (linux). When i star…

---

## [Chronic 0.2.1 Released (Silicon Valley Ruby Conference Editi](https://www.ruby-forum.com/t/chronic-0-2-1-released-silicon-valley-ruby-conference-editi/92621)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/chronic-0-2-1-released-silicon-valley-ruby-conference-editi/92621 "2007-04-21T18:13:32Z")

</div>

chronic version 0.2.1 has been released! http://chronic.rubyforge.org/ by Tom Preston-Werner Chronic is a sophisticated natural language date/time parser written in pure Ruby. Changes: = 0.2.1 fixed time overfl…

---

## [Missing Method Errors](https://www.ruby-forum.com/t/missing-method-errors/92588)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 4\
**Last updated:** [April 21, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/missing-method-errors/92588 "2007-04-21T16:54:19Z")

</div>

Hi all, This is my first post here, so don’t dish out the loser points to me so heartily. I have only recently gotten into Ruby, and I was writing my own methods that I might use in a couple future programs (they wer…

---

## [Memory exhausted](https://www.ruby-forum.com/t/memory-exhausted/91581)

<div class="topic-metadata">

**Author:** [@sunsnow8](https://www.ruby-forum.com/u/sunsnow8)\
**Replies:** 12\
**Last updated:** [April 21, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/memory-exhausted/91581 "2007-04-21T16:02:14Z")

</div>

filename1 = “e:\\jxkh\\tools\\getKhbz.rb” file1 = open(filename1,‘w’) file1.print “def getKhbz(did)\\n” file1.print " case did\\n" cs = (1…2498).to\_a for j in cs do str = " when ‘" + j.to\_s + "’;return ‘" + j.to\_s +…

---

## [Introducing myself](https://www.ruby-forum.com/t/introducing-myself/92427)

<div class="topic-metadata">

**Author:** [@swanand\_deodhar](https://www.ruby-forum.com/u/swanand_deodhar)\
**Replies:** 10\
**Last updated:** [April 21, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/introducing-myself/92427 "2007-04-21T15:25:53Z")

</div>

Hello everyone! I am Swanand Janardan Deodhar from India. I am one of the GSoC 2007 students selected through Ruby Central. I am focussing on building a ETL and Data mining framework in Ruby. I am hoping that all the …

---

## [Slow ruby execution on FreeBSD](https://www.ruby-forum.com/t/slow-ruby-execution-on-freebsd/92598)

<div class="topic-metadata">

**Author:** [@Guy\_S](https://www.ruby-forum.com/u/Guy_S)\
**Replies:** 4\
**Last updated:** [April 21, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/slow-ruby-execution-on-freebsd/92598 "2007-04-21T15:20:09Z")

</div>

Howdy, Total green-horn here. A few weeks ago, a test website we were bulding (on freebsd with mysql) slowed waaaay down. I believe I have the problem narrowed down to this line of code in /vendor/rails/railties/li…

---

## [Basic question about \<\< Float](https://www.ruby-forum.com/t/basic-question-about-float/92604)

<div class="topic-metadata">

**Author:** [@ycycyc](https://www.ruby-forum.com/u/ycycyc)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/basic-question-about-float/92604 "2007-04-21T13:05:59Z")

</div>

Hi, I am beginner in Ruby. I wonder why the following doesn’t work. class \<\< Float public def format(args) puts “self=#{self}” puts “args=#{args}” Kernel.format(args, self) end end puts 45.5678.format("%.02f") …

---

## [Koeln.rb kÃ¶ln ruby user group](https://www.ruby-forum.com/t/koeln-rb-ka-ln-ruby-user-group/92060)

<div class="topic-metadata">

**Author:** [@RyRyRy](https://www.ruby-forum.com/u/RyRyRy)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 10:50am UTC](https://www.ruby-forum.com/t/koeln-rb-ka-ln-ruby-user-group/92060 "2007-04-21T10:50:48Z")

</div>

Is anyone interested in starting an Ruby group in the Köln area? I’ve recently moved here and I know hardly anyone! Plus I’m American and don’t speak German! But I’d love to geek out with some people interested in Rub…

---

## [Binary Tree](https://www.ruby-forum.com/t/binary-tree/92590)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 5\
**Last updated:** [April 21, 2007, 8:55am UTC](https://www.ruby-forum.com/t/binary-tree/92590 "2007-04-21T08:55:39Z")

</div>

Hi all! I’m a newbie in Ruby and I am trying to implement a Binary Tree. However, it doesn’t work. Could someone please help me? Thank you ! class Node attr\_accessor :left, :right, :key, :data def initialize(key, d…

---

## [Acts\_as\_comparable 1.1 released! (for ActiveRecord)](https://www.ruby-forum.com/t/acts-as-comparable-1-1-released-for-activerecord/102755)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 4:02am UTC](https://www.ruby-forum.com/t/acts-as-comparable-1-1-released-for-activerecord/102755 "2007-04-21T04:02:27Z")

</div>

acts\_as\_comparable 1.1 is released! acts\_as\_comparable is a plugin to allow you to easily compare ActiveRecord models. http://www.continuousthinking.com/2007/4/21/introducing-acts\_as\_comparable Zach D. http://www.co…

---

## [Ruby for Linux on zSeries](https://www.ruby-forum.com/t/ruby-for-linux-on-zseries/92543)

<div class="topic-metadata">

**Author:** [@Julian\_ISKamil](https://www.ruby-forum.com/u/Julian_ISKamil)\
**Replies:** 5\
**Last updated:** [April 21, 2007, 3:46am UTC](https://www.ruby-forum.com/t/ruby-for-linux-on-zseries/92543 "2007-04-21T03:46:26Z")

</div>

Hi, does anyone know if Ruby has been ported to the zSeries Linux platform and what its status is? Thanks. Julian I. Kamil removed\_email\_address@domain.invalid

---

## [Factorial in ruby](https://www.ruby-forum.com/t/factorial-in-ruby/92161)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 20\
**Last updated:** [April 21, 2007, 3:43am UTC](https://www.ruby-forum.com/t/factorial-in-ruby/92161 "2007-04-21T03:43:25Z")

</div>

Is factorial defined anywhere in Ruby’s core or standard library. If not will it be in 1.9+? Thanks, T.

---

## [Finding non-printable characters using Regular Expressions](https://www.ruby-forum.com/t/finding-non-printable-characters-using-regular-expressions/92527)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 7\
**Last updated:** [April 21, 2007, 12:56am UTC](https://www.ruby-forum.com/t/finding-non-printable-characters-using-regular-expressions/92527 "2007-04-21T00:56:16Z")

</div>

As part of a method I am playing with while learning Ruby I need to be able to determine which characters in a string are non-printable. What is the “best” method for determining if a character is printable, such as …

---

## [Looping through a tree from trunk to leaves](https://www.ruby-forum.com/t/looping-through-a-tree-from-trunk-to-leaves/92565)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 7\
**Last updated:** [April 21, 2007, 12:29am UTC](https://www.ruby-forum.com/t/looping-through-a-tree-from-trunk-to-leaves/92565 "2007-04-21T00:29:02Z")

</div>

I’ve just built a acts\_as\_tree model, now I need to render it out as a tree structure in view. and I also need a action method to loop through every row of the database following the tree structure ( from root to it’s…

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

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