# Ruby

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

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

---

## [Birth Control](https://www.ruby-forum.com/t/birth-control/139924)

<div class="topic-metadata">

**Author:** [@Weini](https://www.ruby-forum.com/u/Weini)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 7:20am UTC](https://www.ruby-forum.com/t/birth-control/139924 "2008-06-09T07:20:33Z")

</div>

Birth Control http://www.health3.com.cn/health/Birth-Control.htm Learn About Mirena IUD Birth Control Learn about the freedom of Mirena long-term, reversible birth control. Mirena intrauterine contraceptive provides …

---

## [Newbie question about rails on apache2](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/139918)

<div class="topic-metadata">

**Author:** [@Allan\_Du](https://www.ruby-forum.com/u/Allan_Du)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 5:22am UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/139918 "2008-06-09T05:22:42Z")

</div>

Hi, I just setup my rails application on apache2, just a very simply controller, and one method /stats/show When go to the root page, I can see the rails default page, but if I go to any other page like stats/show le…

---

## [\[Bug:1.9\] SEGV by File.foreach("keywords")](https://www.ruby-forum.com/t/bug-1-9-segv-by-file-foreach-keywords/139819)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 9, 2008, 5:12am UTC](https://www.ruby-forum.com/t/bug-1-9-segv-by-file-foreach-keywords/139819 "2008-06-09T05:12:10Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % ./ruby -ve ’ e = File.foreach(“keywords”) loop { p e.next } ’ ruby 1.9.0 (2008-06-07 revision 16875) \[i686-linux\] “%{\\n” “struct kwtable {const char \*name; int id\[2…

---

## [Re: Preferable Pairs (#165)](https://www.ruby-forum.com/t/re-preferable-pairs-165/139917)

<div class="topic-metadata">

**Author:** [@Steven\_Hahn](https://www.ruby-forum.com/u/Steven_Hahn)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 4:27am UTC](https://www.ruby-forum.com/t/re-preferable-pairs-165/139917 "2008-06-09T04:27:07Z")

</div>

Ok, I think this one will always find the optimal solution, because it is exhaustive. Some people were saying that this is the Stable Roommates problem; I am not familiar with that, but a greedy solution definitely w…

---

## [MacRuby 0.2](https://www.ruby-forum.com/t/macruby-0-2/139795)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 6\
**Last updated:** [June 9, 2008, 3:58am UTC](https://www.ruby-forum.com/t/macruby-0-2/139795 "2008-06-09T03:58:27Z")

</div>

Hi, After 3 months of development, here comes the second release of MacRuby, 0.2! Check it out while it’s still hot! MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac OS X core technologies such …

---

## [RFC-822 dates into Ruby dates](https://www.ruby-forum.com/t/rfc-822-dates-into-ruby-dates/139908)

<div class="topic-metadata">

**Author:** [@kellygreer1](https://www.ruby-forum.com/u/kellygreer1)\
**Replies:** 1\
**Last updated:** [June 9, 2008, 1:01am UTC](https://www.ruby-forum.com/t/rfc-822-dates-into-ruby-dates/139908 "2008-06-09T01:01:01Z")

</div>

Whats the right way in Ruby to pull these kind of dates apart into a Ruby Date? Mon, 8 Aug 2005 16:25:00 GMT I’m working on parsing several RSS feeds and storing the data in MySQL. Thanks, Kelly Greer removed\_emai…

---

## [\[ANN\] Ruby-VPI 21.0.0](https://www.ruby-forum.com/t/ann-ruby-vpi-21-0-0/139913)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 1:01am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-21-0-0/139913 "2008-06-09T01:01:01Z")

</div>

Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI and a platform for unit testing, rapid prototyping, and systems integration of Verilog modules through Ruby. It lets you create complex Verilog test benches e…

---

## [How do I debug mysql syntax problems in ruby code?](https://www.ruby-forum.com/t/how-do-i-debug-mysql-syntax-problems-in-ruby-code/139907)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 1\
**Last updated:** [June 9, 2008, 12:30am UTC](https://www.ruby-forum.com/t/how-do-i-debug-mysql-syntax-problems-in-ruby-code/139907 "2008-06-09T00:30:34Z")

</div>

So, I have a mysql syntax problem in my ruby code. Being new to both, I’m not sure how to proceed. Here’s the code. !/usr/pkg/bin/ruby18 -w simple.rb - simple MySQL script using Ruby DBI module require “dbi” requir…

---

## [Which GUI library to use?](https://www.ruby-forum.com/t/which-gui-library-to-use/137175)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 10\
**Last updated:** [June 8, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/which-gui-library-to-use/137175 "2008-06-08T23:47:38Z")

</div>

Hi! Which GUI library you would recommend to use? Ruby-GTK or FXRuby? With respect to: Which one is widely use in ruby community? Which one is easier? Which one is considered more ‘rubiysh’ by ruby enthusiats. I mea…

---

## [How to redirect $stdin to read from a string?](https://www.ruby-forum.com/t/how-to-redirect-stdin-to-read-from-a-string/139900)

<div class="topic-metadata">

**Author:** [@ASLester\_Buck\_III](https://www.ruby-forum.com/u/ASLester_Buck_III)\
**Replies:** 3\
**Last updated:** [June 8, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/how-to-redirect-stdin-to-read-from-a-string/139900 "2008-06-08T23:02:16Z")

</div>

Hi, I want to send a Windows popup from a Linux machine. smbclient is the standard utility, and it will accept a file on standard input to avoid terminal interaction, viz. smbclient -M netbiosname \< /tmp/message.te…

---

## [\[ANN\] Rassmalog 11.1.0](https://www.ruby-forum.com/t/ann-rassmalog-11-1-0/139904)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-11-1-0/139904 "2008-06-08T22:58:34Z")

</div>

Rassmalog is a static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that you can view on your computer or upload to your …

---

## [Double assignation in a hash](https://www.ruby-forum.com/t/double-assignation-in-a-hash/139571)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 6\
**Last updated:** [June 8, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/double-assignation-in-a-hash/139571 "2008-06-08T22:26:27Z")

</div>

hi ! I’m new to ruby, i’d like to know if it is possible to make the following kind of assignation in a hash, like i used to do in php : a={} a\[:b\]\[:c\]=“value” the goal for me is to create a hash by iterating on key…

---

## [Very simple SVG drawing tool (circles) written in Ruby?](https://www.ruby-forum.com/t/very-simple-svg-drawing-tool-circles-written-in-ruby/139889)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 5\
**Last updated:** [June 8, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/very-simple-svg-drawing-tool-circles-written-in-ruby/139889 "2008-06-08T22:23:30Z")

</div>

People, I am looking for very simple SVG drawing tool - mainly to draw circles - but it has to be something written in Ruby. I don’t really mind what the GUI toolkit is - as long as it is easy to use and runs on Linu…

---

## [\[ANN\] Gerbil 3.0.2](https://www.ruby-forum.com/t/ann-gerbil-3-0-2/139903)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/ann-gerbil-3-0-2/139903 "2008-06-08T22:01:27Z")

</div>

Gerbil is an extensible document generator based on eRuby that outputs to any format you want: plain text, HTML, LaTeX, UNIX man page, your own custom format, and so on. http://gerbil.rubyforge.org â”â”â”…

---

## [Re: Preferable Pairs (#165)](https://www.ruby-forum.com/t/re-preferable-pairs-165/139880)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/re-preferable-pairs-165/139880 "2008-06-08T20:36:51Z")

</div>

In fact, this is the Stable Roommates problem. ----- Original Message ---- From: Matthew M. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Friday, June 6, 2008 12:43:…

---

## [Eval and dynamic local variable creation in Ruby 1.8 vs 1.9](https://www.ruby-forum.com/t/eval-and-dynamic-local-variable-creation-in-ruby-1-8-vs-1-9/139866)

<div class="topic-metadata">

**Author:** [@thairuby](https://www.ruby-forum.com/u/thairuby)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/eval-and-dynamic-local-variable-creation-in-ruby-1-8-vs-1-9/139866 "2008-06-08T19:19:35Z")

</div>

I tested this script with “Try Ruby! (in your browser)” (http://tryruby.hobix.com/). RUBY\_VERSION =\> “1.8” eval “a=1” =\> 1 a =\> 1 It is the same as my expectation. But when I try with Ruby 1.9 in my computer…

---

## [Problem in command line arguments (Maybe a bug)](https://www.ruby-forum.com/t/problem-in-command-line-arguments-maybe-a-bug/139847)

<div class="topic-metadata">

**Author:** [@SS\_SSS\_S\_SSSSSSSSS\_S](https://www.ruby-forum.com/u/SS_SSS_S_SSSSSSSSS_S)\
**Replies:** 1\
**Last updated:** [June 8, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/problem-in-command-line-arguments-maybe-a-bug/139847 "2008-06-08T18:38:47Z")

</div>

I’m a ruby beginner. As I had installed NetBeans6.0 in WinXP\_SP2, I chose jruby to practise. But there is a problem when passing Chinese Characters(I’m Chinese) as command line arguments, jruby doesn’t received them c…

---

## [Language Courses](https://www.ruby-forum.com/t/language-courses/139883)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/language-courses/139883 "2008-06-08T17:21:00Z")

</div>

Learning English at NYU Summer 2006 Check out the NYU Summer 2006 course Bulletin for ESL and foreign language programs. NYU is located in New York City, NY. http://a.uuload.com/Language-Courses.htm Rosetta Stone Lan…

---

## [Parsing a ruby code](https://www.ruby-forum.com/t/parsing-a-ruby-code/139879)

<div class="topic-metadata">

**Author:** [@zeeshanbth](https://www.ruby-forum.com/u/zeeshanbth)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/parsing-a-ruby-code/139879 "2008-06-08T17:01:05Z")

</div>

Hello, I am using the below given code to parse ruby code line by line and generate its s-expression (AST). The help i need from you is that i want to parse the whole ruby file at a time instead of parsing line by lin…

---

## [Re: Preferable Pairs (#165)](https://www.ruby-forum.com/t/re-preferable-pairs-165/139877)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/re-preferable-pairs-165/139877 "2008-06-08T16:52:08Z")

</div>

This sounds a lot like the Stable Marriage Problem. ----- Original Message ---- From: Matthew M. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Friday, June 6, 2008 1…

---

## [Search File Contents](https://www.ruby-forum.com/t/search-file-contents/139873)

<div class="topic-metadata">

**Author:** [@dbest](https://www.ruby-forum.com/u/dbest)\
**Replies:** 6\
**Last updated:** [June 8, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/search-file-contents/139873 "2008-06-08T16:50:20Z")

</div>

Hi Guys, I have a small code block that is frustrating me for some time now. I want to search for some text in a file. Simple isnt it? def read\_file week\_num week\_num = week\_num.to\_s f = File.open(“fixtures.txt”, “r…

---

## [Remove Parts of a String](https://www.ruby-forum.com/t/remove-parts-of-a-string/139197)

<div class="topic-metadata">

**Author:** [@lottario](https://www.ruby-forum.com/u/lottario)\
**Replies:** 14\
**Last updated:** [June 8, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/remove-parts-of-a-string/139197 "2008-06-08T15:06:03Z")

</div>

Alright, this is probably a really simple question to answer, but I just can’t think of how to do it at the moment. Say I had a string, similar to the following: 12343:3,73820:1,183874:8 What I would like to be able…

---

## [Ruby vs Smalltalk](https://www.ruby-forum.com/t/ruby-vs-smalltalk/139865)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [June 8, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/ruby-vs-smalltalk/139865 "2008-06-08T14:33:26Z")

</div>

Some time ago we have had ruby vs ~ada discussions, or more generally ruby and “large scale applications” - actually, the people that contributed their (impressive) knowledge made this quite interesting. So here I sta…

---

## [Windows based Parser](https://www.ruby-forum.com/t/windows-based-parser/139837)

<div class="topic-metadata">

**Author:** [@drweb](https://www.ruby-forum.com/u/drweb)\
**Replies:** 3\
**Last updated:** [June 8, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/windows-based-parser/139837 "2008-06-08T13:18:07Z")

</div>

Hi All! I need to parse a piece Ruby source code file. For that purpose, I need a Ruby parser (which can be used on windows plateform). I tried to configure ruby\_parser 1.0, but I am unable to configure it on windows …

---

## [Pdf for soap4r or any link to study](https://www.ruby-forum.com/t/pdf-for-soap4r-or-any-link-to-study/139737)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 11:54am UTC](https://www.ruby-forum.com/t/pdf-for-soap4r-or-any-link-to-study/139737 "2008-06-08T11:54:19Z")

</div>

Can anyone give me any pdf or any good tutorials for learning soap4r or can any one tell me in brief what it all means… Thanks in advance suki

---

## [Ruby 1.9 and gems](https://www.ruby-forum.com/t/ruby-1-9-and-gems/139836)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 9\
**Last updated:** [June 8, 2008, 11:01am UTC](https://www.ruby-forum.com/t/ruby-1-9-and-gems/139836 "2008-06-08T11:01:58Z")

</div>

Hi! I’d like to try Ruby1.9 on some of my projects but I’m not sure how it gels with the existing Ruby install. How do I install gems for 1.9? Do most of the gems even work under 1.9? Specifically, I need ActionPack…

---

## [Ruby gems install error](https://www.ruby-forum.com/t/ruby-gems-install-error/139714)

<div class="topic-metadata">

**Author:** [@Artie\_Ziff](https://www.ruby-forum.com/u/Artie_Ziff)\
**Replies:** 6\
**Last updated:** [June 8, 2008, 9:15am UTC](https://www.ruby-forum.com/t/ruby-gems-install-error/139714 "2008-06-08T09:15:01Z")

</div>

Hello, I am hoping to get some ideas here. Being new to ruby, I am not familiar enough with all the pieces to know how to diagnose my installation issue. I am attempting to install rubygems 1.1.1 is on a RHEL4 host. T…

---

## [RI not working](https://www.ruby-forum.com/t/ri-not-working/139804)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 5:48am UTC](https://www.ruby-forum.com/t/ri-not-working/139804 "2008-06-08T05:48:13Z")

</div>

I have Ruby 1.87 installed on OS X 10.5.3… When I try ri gc (from the Pickaxe book) or ri Array I get the following: ----------------------------------------------------------- Class: Array (no description…) Help!!

---

## [Rmmseg-cpp 0.2.5 released](https://www.ruby-forum.com/t/rmmseg-cpp-0-2-5-released/139846)

<div class="topic-metadata">

**Author:** [@Chiyuan\_Z](https://www.ruby-forum.com/u/Chiyuan_Z)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 3:27am UTC](https://www.ruby-forum.com/t/rmmseg-cpp-0-2-5-released/139846 "2008-06-08T03:27:19Z")

</div>

rmmseg-cpp version 0.2.5 by pluskid http://rmmseg-cpp.rubyforge.org == DESCRIPTION rmmseg-cpp is a high performance Chinese word segmentation utility for Ruby. It features full “Ferret”:http://ferret.davebalmain.com…

---

## [Should I Learn Ruby as a First Language?](https://www.ruby-forum.com/t/should-i-learn-ruby-as-a-first-language/138864)

<div class="topic-metadata">

**Author:** [@MRH](https://www.ruby-forum.com/u/MRH)\
**Replies:** 63\
**Last updated:** [June 8, 2008, 12:11am UTC](https://www.ruby-forum.com/t/should-i-learn-ruby-as-a-first-language/138864 "2008-06-08T00:11:13Z")

</div>

Hello Group, I realize this question has been previously asked in different boards, however, I believe that it is worth asking here owing to the level of expertise present. I am a beginner in programming. I have read…

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

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