# Ruby

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

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

---

## [Class TimeSpan](https://www.ruby-forum.com/t/class-timespan/124283)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 17\
**Last updated:** [December 29, 2007, 4:20am UTC](https://www.ruby-forum.com/t/class-timespan/124283 "2007-12-29T04:20:25Z")

</div>

æˆç€¬ã§ã™ã€‚ \[ruby-list:44398\] ã§ DateTime ã«å¯¾ã™ã‚‹åŠ ç®—ãŒè©±é¡Œã«ãªã£ã¦ã„ã¾ã™ãŒã€ç¾åœ¨ã® æ–¹æ³•ã¯ä»¥ä¸‹ã®ã‚ˆã†ãªæ¬ ç‚¹ãŒã‚ã‚‹ã¨æ€ã„ã¾ã™ã€‚ Rational ã‚’ä½¿ã†æ–¹æ³•ã¯ç›´è¦³çš„ã§ãªã…

---

## [Bj-1.0.0](https://www.ruby-forum.com/t/bj-1-0-0/124485)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 4:08am UTC](https://www.ruby-forum.com/t/bj-1-0-0/124485 "2007-12-29T04:08:06Z")

</div>

NAME bj SYNOPSIS bj (migration\_code|generate\_migration|migrate|setup|plugin|run| submit|list|set|config|pid) \[options\]+ HISTORY 1.0.0: - use full path to ruby for plugin mode - plugin correctly installs bin --\>\> …

---

## [How to jump over the first line in a file? (newbie)](https://www.ruby-forum.com/t/how-to-jump-over-the-first-line-in-a-file-newbie/124449)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 13\
**Last updated:** [December 29, 2007, 2:59am UTC](https://www.ruby-forum.com/t/how-to-jump-over-the-first-line-in-a-file-newbie/124449 "2007-12-29T02:59:04Z")

</div>

I have this code: file = “filename.txt” File.open(file) do |sFile| while line = sFile.gets row = line.split("\\t") a\_product = Product.new( :sku =\> row\[0\] , :name =\> row\[1\] , :price =\> row\[2\] , a\_product.save en…

---

## [Purpose of Ruby 1.9?](https://www.ruby-forum.com/t/purpose-of-ruby-1-9/124236)

<div class="topic-metadata">

**Author:** [@RadosSSSS\_aw\_BuSSSS](https://www.ruby-forum.com/u/RadosSSSS_aw_BuSSSS)\
**Replies:** 26\
**Last updated:** [December 29, 2007, 12:47am UTC](https://www.ruby-forum.com/t/purpose-of-ruby-1-9/124236 "2007-12-29T00:47:28Z")

</div>

First of all I want to thank Matz and Ko1 for yours great work! I can’t say how much thankful I am for Ruby language. My question is generally to Matz, Ko1 or other Ruby core maintainers. We have Ruby 1.9 already rele…

---

## [RMagick 1.15.12 for Windows](https://www.ruby-forum.com/t/rmagick-1-15-12-for-windows/124473)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 12:36am UTC](https://www.ruby-forum.com/t/rmagick-1-15-12-for-windows/124473 "2007-12-29T00:36:22Z")

</div>

I’ve just uploaded a new RMagick gem for Windows to RubyForge. This gem contains RMagick 1.15.12 and is bundled with ImageMagick 6.3.7-8 Q8. See the ChangeLog for a the list of bug fixes included in this release. RMag…

---

## [IRB : Auto\_Indent in Windows](https://www.ruby-forum.com/t/irb-auto-indent-in-windows/124432)

<div class="topic-metadata">

**Author:** [@kena](https://www.ruby-forum.com/u/kena)\
**Replies:** 4\
**Last updated:** [December 28, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/irb-auto-indent-in-windows/124432 "2007-12-28T23:02:33Z")

</div>

Hi. I managed to set auto\_indent, but it just don’t work quite the way we expect, at least in Windows. eg, in irb console I type: def my\_method a = “some text” end but I need (visually speaking) def my\_method a = …

---

## [Portable signals](https://www.ruby-forum.com/t/portable-signals/124418)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/portable-signals/124418 "2007-12-28T22:42:01Z")

</div>

cfp:~ \> cat a.rb on windows signals don’t work. least wise you cannot send, for instance, SIGABRT to another process. rather, you can only signal yourself! to get around this limitation a tiny drb service, front…

---

## [JtestR 0.1 released](https://www.ruby-forum.com/t/jtestr-0-1-released/124462)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/jtestr-0-1-released/124462 "2007-12-28T22:35:34Z")

</div>

JtestR allows you to test your Java code with Ruby frameworks. Homepage: http://jtestr.codehaus.org Download: http://dist.codehaus.org/jtestr JtestR 0.1 is the first public release of the JtestR testing tool. JtestR …

---

## [Matz says namespaces are too hard to implement - why?](https://www.ruby-forum.com/t/matz-says-namespaces-are-too-hard-to-implement-why/123929)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 39\
**Last updated:** [December 28, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/matz-says-namespaces-are-too-hard-to-implement-why/123929 "2007-12-28T21:22:49Z")

</div>

Short primer: What are namespaces? Matz talked (in 2005 I think) about a concept he named ‘namespaces’, they would allow you to monkey patch e.g. Array in namespace :foo without the patch being visible in namespace :b…

---

## [FasterCSV and " char question](https://www.ruby-forum.com/t/fastercsv-and-char-question/124419)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 3\
**Last updated:** [December 28, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/fastercsv-and-char-question/124419 "2007-12-28T18:23:22Z")

</div>

Hello, I have a text that containing " char and want to delete it from the text before I read it to the database with fasterCSV. This is “the Text”. ===\> This is the Text. What is the command to simple replace the …

---

## [Last Call for MountainWest RubyConf 2008 presentation proposals](https://www.ruby-forum.com/t/last-call-for-mountainwest-rubyconf-2008-presentation-proposals/124435)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/last-call-for-mountainwest-rubyconf-2008-presentation-proposals/124435 "2007-12-28T17:28:11Z")

</div>

Don’t forget, the window for submitting a proposal closes at midnight on New Years Eve (MST). If you’re interested in presenting, this is your last chance to get a proposal in. MWRC 2008 will be March 28th and 29th, …

---

## [Permission denied - . (Errno::EACCES) error](https://www.ruby-forum.com/t/permission-denied-errno-eacces-error/124430)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/permission-denied-errno-eacces-error/124430 "2007-12-28T17:22:02Z")

</div>

Dir.open(‘Logs’) do |dir| dir.each do |file| puts file File.open(file).each\_line do |entry| puts entry if /Test Condition Passed/ =~ entry passcount += 1 #puts “passcount reached” elsif /Test Condition Failed/ =~…

---

## [RMagick 2.0.0](https://www.ruby-forum.com/t/rmagick-2-0-0/124429)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/rmagick-2-0-0/124429 "2007-12-28T17:11:49Z")

</div>

RMagick 2.0.0 is now available at RubyForge \[http://rubyforge.org/projects/rmagick/\]. You can read all about this release here: \[http://rmagick.rubyforge.org/rmagick2.html\] You should use RMagick 2 instead of RMagick …

---

## [IRB config file location?](https://www.ruby-forum.com/t/irb-config-file-location/124415)

<div class="topic-metadata">

**Author:** [@kena](https://www.ruby-forum.com/u/kena)\
**Replies:** 4\
**Last updated:** [December 28, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/irb-config-file-location/124415 "2007-12-28T16:27:35Z")

</div>

Hi. I’m using ruby version : ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] and I’m trying to figure out where irb config file is located, but no success at all. Would anyone help me on this?

---

## [Test-all TESTS='-v soap wsdl'](https://www.ruby-forum.com/t/test-all-tests-v-soap-wsdl/120025)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/test-all-tests-v-soap-wsdl/120025 "2007-12-28T16:09:58Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!0J2\<$N$h$&$Ke(B soap, wsdl e$B$N%F%9%H$G$?$/$5$s\<:GT$7$^$9!%e(B http://www.atdot.net/sp/view/h3bfrj e$B!!e(B1.9 e$B$G$Oe(B gem e$B2=$7$F30$9!$Ey$NOC$,$"$j$^$7$?$,!$$I$&$7$^$7$g$&$+!%e(B e$B…

---

## [Third edition of "Programming Ruby" now in beta](https://www.ruby-forum.com/t/third-edition-of-programming-ruby-now-in-beta/123097)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 9\
**Last updated:** [December 28, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/third-edition-of-programming-ruby-now-in-beta/123097 "2007-12-28T16:07:37Z")

</div>

Ruby 1.9 is just around the corner, so it looks like a good time to create a new edition of Programming Ruby. So, I’m pleased to announce that the Third Edition of the PickAxe has just entered beta. The book’s home pa…

---

## [Thought I'd share this and get some advice](https://www.ruby-forum.com/t/thought-id-share-this-and-get-some-advice/124407)

<div class="topic-metadata">

**Author:** [@Hiato\_X](https://www.ruby-forum.com/u/Hiato_X)\
**Replies:** 10\
**Last updated:** [December 28, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/thought-id-share-this-and-get-some-advice/124407 "2007-12-28T16:02:55Z")

</div>

I decided to take it upon myself to write a text Mandelbrot Set Generator in Ruby (seeing as I couldn’t find any…) Anyway, here is the code, it’s procedural style, not entirely utilizing Ruby to its fullest, but hey …

---

## [Please help!](https://www.ruby-forum.com/t/please-help/124406)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/please-help/124406 "2007-12-28T14:29:31Z")

</div>

I have installed dbi,oci8,ruby 1.8.6 ,oracle client 9.2 on XP machine I have tried to connect a remote database using the code dbh = DBI.connect(‘DBI:OCI8:ORCL’,‘ftdam’,‘ftdam’) where ORCL is the configuration file tn…

---

## [rbGtk Question](https://www.ruby-forum.com/t/rbgtk-question/124411)

<div class="topic-metadata">

**Author:** [@Magicloud\_Wang](https://www.ruby-forum.com/u/Magicloud_Wang)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/rbgtk-question/124411 "2007-12-28T14:05:32Z")

</div>

Dear, I have a code as attachment. I want to do a query on ctrl-return, and put the result in a table on a new page of notebook. But as I found out, the append\_page does nothing. Could someone tell me why? Thanks.

---

## [Ruby 1.9.0 is released](https://www.ruby-forum.com/t/ruby-1-9-0-is-released/124153)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 54\
**Last updated:** [December 28, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/ruby-1-9-0-is-released/124153 "2007-12-28T14:02:34Z")

</div>

Hi, We are happy to announce of the release of the 1.9.0 the development release. You can fetch it from: ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-0.tar.bz2 407cc7d0032e19eb12216c0ebc7f17b3 ftp://ftp.ruby-lan…

---

## [Oracle connection problem](https://www.ruby-forum.com/t/oracle-connection-problem/124393)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/oracle-connection-problem/124393 "2007-12-28T13:21:00Z")

</div>

Hi , I am using oracle client 9.2 ,ruby 1.8.6 and oci8 is installed .but when i am trying to connect to oracle using the code : equire ‘oci8’ conn = OCI8.new(“ftdam”, “ftdam”,“host.string”) it is giving me error lik…

---

## [Compile option disabled in Scite](https://www.ruby-forum.com/t/compile-option-disabled-in-scite/124404)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/compile-option-disabled-in-scite/124404 "2007-12-28T13:15:45Z")

</div>

Hi, I am learning Ruby and I am using Ruby 186-26. In SciTe pane, Tools menu bar Compile option is in disable mode. How can I change to enable and run the script.

---

## [Irb \> HowTo / Can I \> ClearScreen?](https://www.ruby-forum.com/t/irb-howto-can-i-clearscreen/124362)

<div class="topic-metadata">

**Author:** [@kena](https://www.ruby-forum.com/u/kena)\
**Replies:** 3\
**Last updated:** [December 28, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/irb-howto-can-i-clearscreen/124362 "2007-12-28T12:54:20Z")

</div>

Hi. When in terminal/cmd in case I need to clear screen I can type ‘cls’ (windows) … the question I have is, once in IRB, is there a similar command?

---

## [Convert excel spreadsheet to csv](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 11\
**Last updated:** [December 28, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247 "2007-12-28T12:41:13Z")

</div>

is there any library to convert excel file to csv. apprecaite ur help

---

## [Ruby gem 1.2.3 or later for debian](https://www.ruby-forum.com/t/ruby-gem-1-2-3-or-later-for-debian/124403)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/ruby-gem-1-2-3-or-later-for-debian/124403 "2007-12-28T12:14:19Z")

</div>

I need compatibility to ruby gem 1.2.3 but I only found http://packages.ubuntu.com/gutsy/interpreters/rubygems gem 0.8.7 ! Is there anybody who can provide a link to a ruby gem 1.2.3 package ? Debian package (\*.deb) w…

---

## [Executing ruby code stored as a string in a database](https://www.ruby-forum.com/t/executing-ruby-code-stored-as-a-string-in-a-database/124397)

<div class="topic-metadata">

**Author:** [@springbok](https://www.ruby-forum.com/u/springbok)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 11:55am UTC](https://www.ruby-forum.com/t/executing-ruby-code-stored-as-a-string-in-a-database/124397 "2007-12-28T11:55:31Z")

</div>

I’m trying to retrieve some ruby code from a database as a string, I would then like to execute this code. So far I’ve tried many approaches but my latest uses define\_method. I have a method defined to use define\_meth…

---

## [Login to lonked in is failing with Mechanize](https://www.ruby-forum.com/t/login-to-lonked-in-is-failing-with-mechanize/124400)

<div class="topic-metadata">

**Author:** [@rita\_amritkar](https://www.ruby-forum.com/u/rita_amritkar)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 11:27am UTC](https://www.ruby-forum.com/t/login-to-lonked-in-is-failing-with-mechanize/124400 "2007-12-28T11:27:18Z")

</div>

Hi all, I am trying to login to linked in but it is failing with Mechanize. code is, agent = WWW::Mechanize.new page = agent.get(“https://www.linkedin.com”) link = page.links.find {|l| l.text =~ /Sign in/} page …

---

## [Gem on ubuntu problem : /usr/local/lib/site\_ruby/1.8/rubygem](https://www.ruby-forum.com/t/gem-on-ubuntu-problem-usr-local-lib-site-ruby-1-8-rubygem/124329)

<div class="topic-metadata">

**Author:** [@jpc\_001](https://www.ruby-forum.com/u/jpc_001)\
**Replies:** 4\
**Last updated:** [December 28, 2007, 11:14am UTC](https://www.ruby-forum.com/t/gem-on-ubuntu-problem-usr-local-lib-site-ruby-1-8-rubygem/124329 "2007-12-28T11:14:00Z")

</div>

Hi all, I’ve got a serious problem installing gem on my ubuntu. i used the apt-get manager. here is what i get when i try to launch gem : /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_re…

---

## [Require failes for win32/clipboard](https://www.ruby-forum.com/t/require-failes-for-win32-clipboard/124396)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 10:55am UTC](https://www.ruby-forum.com/t/require-failes-for-win32-clipboard/124396 "2007-12-28T10:55:45Z")

</div>

Hello, all! In Win32::Clipboard version 0.4.3 (installed via the OneClick intstaller 1.8.6-26), I get the following error: c:/ruby/lib/ruby/gems/1.8/gems/win32-clipboard-0.4.3/lib/win32/ clipboard.rb:25: uninitialize…

---

## [Using hoe to create gems with C extensions](https://www.ruby-forum.com/t/using-hoe-to-create-gems-with-c-extensions/124391)

<div class="topic-metadata">

**Author:** [@Dido\_S](https://www.ruby-forum.com/u/Dido_S)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 10:53am UTC](https://www.ruby-forum.com/t/using-hoe-to-create-gems-with-c-extensions/124391 "2007-12-28T10:53:25Z")

</div>

As far as I can tell, Hoe by itself doesn’t have anything available to facilitate the creation of gems that contain C extensions. Of the gems that I have installed which do have extensions, none of them seem to also u…

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

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