# Ruby

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

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

---

## [Can we define data types explicitly?](https://www.ruby-forum.com/t/can-we-define-data-types-explicitly/118828)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 7\
**Last updated:** [November 1, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/can-we-define-data-types-explicitly/118828 "2007-11-01T20:55:39Z")

</div>

Hi I am working on application that emphasizes on the data types of the data. The application reads a line from the user by the prompt. then it divides the entry into parts based on comma separator. e.g f = gets “…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/118971)

<div class="topic-metadata">

**Author:** [@cyrille\_preaux](https://www.ruby-forum.com/u/cyrille_preaux)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/unsubscribe/118971 "2007-11-01T20:48:36Z")

</div>

unsubscribe

---

## [ANN: Sequel 0.3.2 Released](https://www.ruby-forum.com/t/ann-sequel-0-3-2-released/118970)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-3-2-released/118970 "2007-11-01T20:35:08Z")

</div>

Sequel version 0.3.2 has just been released. This release includes new Dataset functionality, magic methods and a few other minor improvements and bug fixes. Following is a discussion of the changes: === New Dataset …

---

## [I totally messed up rubygems (deleted the sources gem) and now I can't install any gem anymore](https://www.ruby-forum.com/t/i-totally-messed-up-rubygems-deleted-the-sources-gem-and-now-i-cant-install-any-gem-anymore/118967)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/i-totally-messed-up-rubygems-deleted-the-sources-gem-and-now-i-cant-install-any-gem-anymore/118967 "2007-11-01T20:33:58Z")

</div>

Okay I had some troubles today and wanted to do a total reinstallation of rubygems and all gems I had. So I removed rubygems with: sudo apt-get remove --purge rubygems and then I did the big mistake and deleted the wh…

---

## [YAML on OS X Leopard](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 4\
**Last updated:** [November 1, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950 "2007-11-01T20:32:47Z")

</div>

I’m using Leopard and it has a decent Ruby installation, so I haven’t bothered with MacPorts. Used gems to install Rails. However when I go in to IRB and type: require ‘yaml’ I always get ‘false’. What do I have to d…

---

## [Apache mod\_rewrite External Rewriting Program](https://www.ruby-forum.com/t/apache-mod-rewrite-external-rewriting-program/118898)

<div class="topic-metadata">

**Author:** [@patrickjoyce](https://www.ruby-forum.com/u/patrickjoyce)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/apache-mod-rewrite-external-rewriting-program/118898 "2007-11-01T20:07:21Z")

</div>

I needed to do a bit of complicated URL rewriting for a project I’m working on. Apache’s mod\_rewrite’s built in capabilities wouldn’t do, so I decided to make an External Rewriting Program (mod\_rewrite - Apache HTTP S…

---

## [Rubyconf Attendees](https://www.ruby-forum.com/t/rubyconf-attendees/118805)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 27\
**Last updated:** [November 1, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/rubyconf-attendees/118805 "2007-11-01T19:56:21Z")

</div>

Just wondering how many other regulars of ruby-talk will be in Charlotte this weekend. I figure I need to plan who I need to hide from . – Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/

---

## [InstantRails windows Installation, problem with Gem](https://www.ruby-forum.com/t/instantrails-windows-installation-problem-with-gem/118739)

<div class="topic-metadata">

**Author:** [@dohdoh](https://www.ruby-forum.com/u/dohdoh)\
**Replies:** 16\
**Last updated:** [November 1, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/instantrails-windows-installation-problem-with-gem/118739 "2007-11-01T19:27:14Z")

</div>

Hi Good Morning, I downloaded and installed the Instant Rails 1.7 from the website onto my local windows xp machine in C:\\ruby\\InstantRails-1.7-win\\InstantRails then I ran the following to update the version of RubyG…

---

## [Extending ActiveRecord for csv export... a better way?](https://www.ruby-forum.com/t/extending-activerecord-for-csv-export-a-better-way/118842)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 7\
**Last updated:** [November 1, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/extending-activerecord-for-csv-export-a-better-way/118842 "2007-11-01T19:17:34Z")

</div>

I accidentally posted this to the RoR forum; my apologies to anyone who receives this twice. As a new Ruby user (JRuby, actually), I’ve picked up this language with a very specific purpose: to export data from a JDBC …

---

## [Paper scissors stone](https://www.ruby-forum.com/t/paper-scissors-stone/118934)

<div class="topic-metadata">

**Author:** [@angelojoseph17](https://www.ruby-forum.com/u/angelojoseph17)\
**Replies:** 3\
**Last updated:** [November 1, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/paper-scissors-stone/118934 "2007-11-01T19:17:09Z")

</div>

I’ve just started learning ruby at university and we are making a ruby rock paper scissors game with all students making a ruby player. I was wondering if there was a chance to find the function a player would use i.e…

---

## [Use of case statement doesn't work as I expected, what am I doing wrong?](https://www.ruby-forum.com/t/use-of-case-statement-doesnt-work-as-i-expected-what-am-i-doing-wrong/118954)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/use-of-case-statement-doesnt-work-as-i-expected-what-am-i-doing-wrong/118954 "2007-11-01T18:56:07Z")

</div>

Hi all, I have an object ( a website tester) that can return various values. One of which is Net:HTTPOK, I want to use a case statement to evaluate this and set a variable called ‘severity’, as follows: result = Test…

---

## [How to extend class with the particular method](https://www.ruby-forum.com/t/how-to-extend-class-with-the-particular-method/118933)

<div class="topic-metadata">

**Author:** [@Nikolay\_P](https://www.ruby-forum.com/u/Nikolay_P)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/how-to-extend-class-with-the-particular-method/118933 "2007-11-01T18:53:46Z")

</div>

Hello. I have a class and a module. I want to extend a class with a particular method that is defined in a module. I have come up to the following example code, but i am not sure how to implement a Operational::Behav…

---

## [YAML on OS X Leopard](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/196508)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/196508 "2007-11-01T18:16:17Z")

</div>

I’m using Leopard and it has a decent Ruby installation, so I haven’t bothered with MacPorts. Used gems to install Rails. However when I go in to IRB and type: require ‘yaml’ I always get ‘false’. What do I have to d…

---

## [Scissors\_papers\_stone](https://www.ruby-forum.com/t/scissors-papers-stone/118603)

<div class="topic-metadata">

**Author:** [@scissors\_papers](https://www.ruby-forum.com/u/scissors_papers)\
**Replies:** 6\
**Last updated:** [November 1, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/scissors-papers-stone/118603 "2007-11-01T17:55:47Z")

</div>

making a game for uni in ruby for the first time, called scissors papers stone and wanted to know if you can find out what method your oppenents are using before they use and and counter them.

---

## [JRuby 1.0.2 Released](https://www.ruby-forum.com/t/jruby-1-0-2-released/118953)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/jruby-1-0-2-released/118953 "2007-11-01T17:54:36Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.0.2. Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.0.2 is a minor release of our stable 1.0 branch. The fixes in t…

---

## [Use of case statement doesn't work as I expect :( help appreciated!](https://www.ruby-forum.com/t/use-of-case-statement-doesnt-work-as-i-expect-help-appreciated/118941)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/use-of-case-statement-doesnt-work-as-i-expect-help-appreciated/118941 "2007-11-01T17:49:21Z")

</div>

Hi all, I have an object ( a website tester) that can return various values. One of which is Net:HTTPOK, I want to use a case statement to evaluate this and set a variable called ‘severity’, as follows: result = Test…

---

## [Garbage collection and symbols](https://www.ruby-forum.com/t/garbage-collection-and-symbols/118858)

<div class="topic-metadata">

**Author:** [@impi](https://www.ruby-forum.com/u/impi)\
**Replies:** 5\
**Last updated:** [November 1, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/garbage-collection-and-symbols/118858 "2007-11-01T17:10:44Z")

</div>

I stumbled accross this link . This is about the only thing I can find on the subject. I want to find out if symbols ever get freed during the lifetime of a ruby program.

---

## [Usin jruby within a Rails project](https://www.ruby-forum.com/t/usin-jruby-within-a-rails-project/118939)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/usin-jruby-within-a-rails-project/118939 "2007-11-01T16:54:34Z")

</div>

Hi, I’m using JRuby to talk to iText a Java library. I have got it working in a small Ruby project. Now I would like to integrate this in an existing Ruby on Rails project. So I have added the code from my Ruby file …

---

## [String#split and groups in the field separator RE](https://www.ruby-forum.com/t/string-split-and-groups-in-the-field-separator-re/118896)

<div class="topic-metadata">

**Author:** [@mortee](https://www.ruby-forum.com/u/mortee)\
**Replies:** 6\
**Last updated:** [November 1, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/string-split-and-groups-in-the-field-separator-re/118896 "2007-11-01T16:34:28Z")

</div>

Is this expected behaviour? I haven’t seen anything related to this mentioned in the API docs… irb(main):057:0\> s = ‘a::b:::c::::d’ =\> “a::b:::c::::d” irb(main):058:0\> s.split(/:/) =\> \[“a”, “”, “b”, “”, “”, “c”, “”,…

---

## [Terminal Session Raw Mode](https://www.ruby-forum.com/t/terminal-session-raw-mode/110715)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/terminal-session-raw-mode/110715 "2007-11-01T15:50:22Z")

</div>

Hey all I’m using GServer to run a little ruby app (ie a MUD, from scratch, no less!), and I am using IO.getc(), like in JEG2’s #45 MUD example. However, as this is being run as a server, I don’t have control over a …

---

## [Dotted line with pdf writer](https://www.ruby-forum.com/t/dotted-line-with-pdf-writer/118936)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/dotted-line-with-pdf-writer/118936 "2007-11-01T14:58:38Z")

</div>

Hello who can tell me how can I draw a dotted line with pdf writer? and how can I open a pdf file wich already exists to work on thanks

---

## [Menu](https://www.ruby-forum.com/t/menu/118917)

<div class="topic-metadata">

**Author:** [@Yoshikane\_Noguchi](https://www.ruby-forum.com/u/Yoshikane_Noguchi)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 12:38pm UTC](https://www.ruby-forum.com/t/menu/118917 "2007-11-01T12:38:09Z")

</div>

e$B\<u?.3NG’%l%\]!\<%He(B e$B7oL\>e(B: Menu e$B3+Iu\<Te(B: Yoshikane Noguchi/scm e$BF|IUe(B: 2007/11/01 18:48:21

---

## [Can anyone tell me?](https://www.ruby-forum.com/t/can-anyone-tell-me/118899)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/can-anyone-tell-me/118899 "2007-11-01T12:36:23Z")

</div>

Dear friends, Internally how split will working ? by vellingiri.

---

## [Problem with Rake task execution on textdrive server](https://www.ruby-forum.com/t/problem-with-rake-task-execution-on-textdrive-server/118921)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 11:57am UTC](https://www.ruby-forum.com/t/problem-with-rake-task-execution-on-textdrive-server/118921 "2007-11-01T11:57:28Z")

</div>

Hi, I have my rails application on textdrive server as production. I am facing problem with execution of rake tasks on textdrive server. when I am trying to run rake tasks using putty, I am getting error as â€œrake a…

---

## [Avoiding excessive newline diff in Initializer.Generated.cs](https://www.ruby-forum.com/t/avoiding-excessive-newline-diff-in-initializer-generated-cs/118918)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 11:16am UTC](https://www.ruby-forum.com/t/avoiding-excessive-newline-diff-in-initializer-generated-cs/118918 "2007-11-01T11:16:19Z")

</div>

The goal of this one-line fix is to avoid excessive newline diff in Initializer.Generated.cs when one runs ClassInitGenerator on non-Windows platforms. http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/patch-gen-n…

---

## [Ruby Logo](https://www.ruby-forum.com/t/ruby-logo/118797)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [November 1, 2007, 5:38am UTC](https://www.ruby-forum.com/t/ruby-logo/118797 "2007-11-01T05:38:36Z")

</div>

Cheer up Matz! I don’t like the logo, and many others have said so also. But, Don’t let it get you down! It’s your language, and it’s your choice. We have to ultimately respect that choice. You can change it again …

---

## [JRuby perf questions answered](https://www.ruby-forum.com/t/jruby-perf-questions-answered/118867)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 7\
**Last updated:** [November 1, 2007, 5:25am UTC](https://www.ruby-forum.com/t/jruby-perf-questions-answered/118867 "2007-11-01T05:25:09Z")

</div>

(Sorry if this is a duplicate post…the original seems to have disappeared) Many folks still seem to be in the dark about JRuby performance relative to Ruby 1.8.x. I figured a short post with some basic info could star…

---

## [Rejectconf at RubyConf this year?](https://www.ruby-forum.com/t/rejectconf-at-rubyconf-this-year/118742)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 5:15am UTC](https://www.ruby-forum.com/t/rejectconf-at-rubyconf-this-year/118742 "2007-11-01T05:15:48Z")

</div>

Are there any plans for a reject conf at this year’s Ruby Conf? Maybe just an idea of what night it will be? Rob

---

## [DistribuStream](https://www.ruby-forum.com/t/distribustream/118879)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 3:56am UTC](https://www.ruby-forum.com/t/distribustream/118879 "2007-11-01T03:56:54Z")

</div>

DistribuStream is an open peer-to-peer communications system which aims to become the successor to BitTorrent. You can read about it at http://distribustream.org Unlike BitTorrent, DistribuStream facilitates streami…

---

## [Talking more about JRuby](https://www.ruby-forum.com/t/talking-more-about-jruby/118531)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 32\
**Last updated:** [November 1, 2007, 2:45am UTC](https://www.ruby-forum.com/t/talking-more-about-jruby/118531 "2007-11-01T02:45:34Z")

</div>

For the most part, we’ve been pretty good about keeping JRuby discussions off the ruby-talk list, because in general it seemed like the right thing to do. But lately, it seems like people are missing information about…

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

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