# Ruby

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

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

---

## [Syslog facility](https://www.ruby-forum.com/t/syslog-facility/113453)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [September 2, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/syslog-facility/113453 "2007-09-02T22:33:21Z")

</div>

Hi All, I am having trouble with pointing the syslog messages to a particular facility. Is this the right way to point it at facility local1: Syslog.open('name\_of\_prog', facility = Syslog::LOG\_LOCAL1) Syslog.log(Syslo…

---

## [Time class changed in ruby-1.8.6?](https://www.ruby-forum.com/t/time-class-changed-in-ruby-1-8-6/112756)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 10\
**Last updated:** [September 2, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/time-class-changed-in-ruby-1-8-6/112756 "2007-09-02T22:32:21Z")

</div>

Hi guys. I’m in the process of migrating a ruby app from 1.8.5 to 1.8.6 and noticed that the Time class seems to have changed. It used to have a convenient to\_date method, but is now lacking it, and I’ve had little lu…

---

## [Force file write in dos format](https://www.ruby-forum.com/t/force-file-write-in-dos-format/113545)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [September 2, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/force-file-write-in-dos-format/113545 "2007-09-02T22:18:15Z")

</div>

Is there any built-in way to force File.puts to use dos line endings, regardless of the platform under which the program is running? martin

---

## [Ruby interpreter in Eclipse?](https://www.ruby-forum.com/t/ruby-interpreter-in-eclipse/113610)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 0\
**Last updated:** [September 2, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/ruby-interpreter-in-eclipse/113610 "2007-09-02T21:30:56Z")

</div>

I am interested in working in eclipse to use and extend to some of its projects. However, I would really like to use Ruby (or jRuby) to poke around interactively within eclipse (i.e. programatically browse around the …

---

## [Curious erros](https://www.ruby-forum.com/t/curious-erros/113608)

<div class="topic-metadata">

**Author:** [@mghohoo](https://www.ruby-forum.com/u/mghohoo)\
**Replies:** 1\
**Last updated:** [September 2, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/curious-erros/113608 "2007-09-02T21:19:56Z")

</div>

After I run a simple program like this: require ‘rubygems’ require ‘active\_record’ ActiveRecord::Base.establish\_connection( :adapter =\> “sqlite3”, :dbfile =\> “D:\\sqlite\\crawl.config” ) class Webdata \< ActiveRecord…

---

## [Shouldn't it be class \>\> self , or am I dyslexic?](https://www.ruby-forum.com/t/shouldnt-it-be-class-self-or-am-i-dyslexic/113520)

<div class="topic-metadata">

**Author:** [@nbits](https://www.ruby-forum.com/u/nbits)\
**Replies:** 6\
**Last updated:** [September 2, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/shouldnt-it-be-class-self-or-am-i-dyslexic/113520 "2007-09-02T21:10:29Z")

</div>

This is the correct title, uh, I think… dyslexic me :slight\_smile:

---

## [Rubygame](https://www.ruby-forum.com/t/rubygame/113431)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 20\
**Last updated:** [September 2, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/rubygame/113431 "2007-09-02T19:57:11Z")

</div>

Wow! rubygame seems like a royal pain to install! no luck. Installed SDL, but rubygame rake install fails with a long error ending with: No such file or directory - ext/rubygame/rubygame\_gfx.bundle I hate to be a w…

---

## [RubyGarden server down too?](https://www.ruby-forum.com/t/rubygarden-server-down-too/113603)

<div class="topic-metadata">

**Author:** [@come](https://www.ruby-forum.com/u/come)\
**Replies:** 0\
**Last updated:** [September 2, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/rubygarden-server-down-too/113603 "2007-09-02T18:57:38Z")

</div>

Hi, I’m trying to access rubygarden’s wiki nearly a week now and it is still down. Does anybody knows what’s up with it ? Come

---

## [Rough idea: Quering ObjectSpace](https://www.ruby-forum.com/t/rough-idea-quering-objectspace/113602)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 0\
**Last updated:** [September 2, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/rough-idea-quering-objectspace/113602 "2007-09-02T18:44:35Z")

</div>

Hi all. Very raw idea, based on SemmleCode for Java \[1\]. select all classes from namespace MyApp, with a too few methods ObjectSpace. select{|obj| obj.kind\_of?(Class) && obj.in\_namespace?(:MyApp)}. select{|obj| obj…

---

## [Is there an online reference for dollar ($) variables?](https://www.ruby-forum.com/t/is-there-an-online-reference-for-dollar-variables/113523)

<div class="topic-metadata">

**Author:** [@lfast](https://www.ruby-forum.com/u/lfast)\
**Replies:** 8\
**Last updated:** [September 2, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/is-there-an-online-reference-for-dollar-variables/113523 "2007-09-02T18:09:03Z")

</div>

Is there an online reference that describes all the Ruby $… variables? Are there any search engines that allow you to search for something like $: ? Is there anything in the Rdocs? Personally, I’m very happy with the …

---

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

<div class="topic-metadata">

**Author:** [@beaon](https://www.ruby-forum.com/u/beaon)\
**Replies:** 9\
**Last updated:** [September 2, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/ruby-1-8-and-1-9/113528 "2007-09-02T17:41:28Z")

</div>

I’ve just successfully compiled Ruby 1.9 under Cygwin (which was surprisingly easy). Is there a (simple) way to allow 1.8 and 1.9 to co-exist, allowing me to switch between them at will? Thanks Cliff

---

## [UTF-8 character downcase!](https://www.ruby-forum.com/t/utf-8-character-downcase/113544)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 6\
**Last updated:** [September 2, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/utf-8-character-downcase/113544 "2007-09-02T15:39:08Z")

</div>

Hello, Who can help me with problem? I have a word = “ÐŸÐ Ð˜Ð’Ð•Ð¢”, it’s in russian, and i want to downcase this word(=Ð¿Ñ€Ð¸Ð²ÐµÑ‚). But standart method downcase not works with non-english letters Thank you for r…

---

## [Gsub?](https://www.ruby-forum.com/t/gsub/113558)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [September 2, 2007, 8:31am UTC](https://www.ruby-forum.com/t/gsub/113558 "2007-09-02T08:31:25Z")

</div>

I don’t manage very well the gsub function, not too bad with simple one, but when it comes to string containing slashes, I totally mess it… my string can be srt = “/cities/31550/posts;search” and I would like 1- de…

---

## [Setup.rb and shared data](https://www.ruby-forum.com/t/setup-rb-and-shared-data/113546)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 2\
**Last updated:** [September 2, 2007, 4:54am UTC](https://www.ruby-forum.com/t/setup-rb-and-shared-data/113546 "2007-09-02T04:54:16Z")

</div>

Hi I’m using rake+setup.rb to create a gem. It has a data-dir which is supposed to go into the shared data directory. My issue now is: how do I know in the executable where that data-dir went? Similar thing for the c…

---

## [\[ANN\] Ruby$B%m%4%3%s%F%9%H(B](https://www.ruby-forum.com/t/ann-ruby-b-m-4-3-s-f-9-h-b/113551)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 1\
**Last updated:** [September 2, 2007, 4:30am UTC](https://www.ruby-forum.com/t/ann-ruby-b-m-4-3-s-f-9-h-b/113551 "2007-09-02T04:30:15Z")

</div>

Rubye$B%"%=%7%(!\<%7%g%s$NA0ED$G$9!#e(B Rubye$B%m%4%3%s%F%9%H$N3+:E$r$\*CN$i$;$7$^$9!#e(B e$B8=:!“e(BRubye$B$N%m%4$K$Oe(BRuby Visual Identity Team (URL:http://rubyidentity.org/) e$B$,e(BRubye$B8x\<0e(BWebe$B%5%$%H$N%j%K…

---

## [Gem\_server won't deliver css from alternate template](https://www.ruby-forum.com/t/gem-server-wont-deliver-css-from-alternate-template/113574)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [September 2, 2007, 3:24am UTC](https://www.ruby-forum.com/t/gem-server-wont-deliver-css-from-alternate-template/113574 "2007-09-02T03:24:11Z")

</div>

I like the way rdoc html looks better when using Jamis B.'s rdoc template: Buckblog: RDoc Template So I put a copy here: /usr/local/lib/ruby/1.8/rdoc/generators/template/html/jamis.rb and with a little help I can ge…

---

## [Parsing query parameters from hyperlink](https://www.ruby-forum.com/t/parsing-query-parameters-from-hyperlink/113561)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [September 2, 2007, 1:27am UTC](https://www.ruby-forum.com/t/parsing-query-parameters-from-hyperlink/113561 "2007-09-02T01:27:04Z")

</div>

I am trying to parse strings like this I need to get the cpnum value (555) I am using the following function def get\_drugId(link) arrParts = link.html.split(’?’) cpnum = arrParts\[1\].split(’&amp’) cpnumparts= cpnu…

---

## [Important Research Project](https://www.ruby-forum.com/t/important-research-project/113375)

<div class="topic-metadata">

**Author:** [@E.D.G](https://www.ruby-forum.com/u/E.D.G)\
**Replies:** 14\
**Last updated:** [September 1, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/important-research-project/113375 "2007-09-01T20:05:39Z")

</div>

Important Research Project (Related to computer programming) Posted by E.D.G. on August 30, 2007 removed\_email\_address@domain.invalid This report is being posted to a number of Internet Newsgroups to see if there a…

---

## [Method names and alias](https://www.ruby-forum.com/t/method-names-and-alias/113504)

<div class="topic-metadata">

**Author:** [@darren\_kirby](https://www.ruby-forum.com/u/darren_kirby)\
**Replies:** 4\
**Last updated:** [September 1, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/method-names-and-alias/113504 "2007-09-01T20:00:37Z")

</div>

Hello all, In Unix, you can create a symlink to an executable, and have the program behave differently depending on how it was called by testing argv\[0\]. I would like to do something similar with Ruby methods using a…

---

## [REXML element reading \<br /\> error](https://www.ruby-forum.com/t/rexml-element-reading-br-error/113505)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [September 1, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/rexml-element-reading-br-error/113505 "2007-09-01T19:21:33Z")

</div>

When reading in the site element from my xml file using rexml it seems to be chopping the rest of the text off after the first The value in the XML file is below 123 street amstown amserland element = REXML::XPath.…

---

## [Unable to change output of test suite](https://www.ruby-forum.com/t/unable-to-change-output-of-test-suite/113510)

<div class="topic-metadata">

**Author:** [@Yossef\_M](https://www.ruby-forum.com/u/Yossef_M)\
**Replies:** 2\
**Last updated:** [September 1, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/unable-to-change-output-of-test-suite/113510 "2007-09-01T17:42:24Z")

</div>

I’m trying to change the output of a test suite, and from what I can tell the one line I’m interested in (the indication of numbers of tests, assertions, failures, and errors) is generated by Test::Unit::TestResult#to…

---

## [IO.sysdup2, IO.sysdup, IO.sysclose](https://www.ruby-forum.com/t/io-sysdup2-io-sysdup-io-sysclose/112829)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 9\
**Last updated:** [September 1, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/io-sysdup2-io-sysdup-io-sysclose/112829 "2007-09-01T12:44:41Z")

</div>

redirect e$B$N=hM}$r$A$g$C$H=q$$$F$$?$H$3$m!"e(B IO.sysdup2, IO.sysdup, IO.sysclose e$B$,M$7$/$J$C$?$N$G$9$,!"e(B e$B2C$($F$b$$$$$G$7$g$&$+!#e(B(e$B%I%-%e%a%s%H$O8e$G=q$-$^$9!#e(B) e$BNc$($P!“e(Bsh e$B$Ne(B 3\>&1 e$B$r\<…

---

## [Fail to Install Gems - My First Gems](https://www.ruby-forum.com/t/fail-to-install-gems-my-first-gems/113530)

<div class="topic-metadata">

**Author:** [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Replies:** 4\
**Last updated:** [September 1, 2007, 11:04am UTC](https://www.ruby-forum.com/t/fail-to-install-gems-my-first-gems/113530 "2007-09-01T11:04:28Z")

</div>

Dear all, I was trying to install first ruby gems. I have successfully done the following: $ ruby setup.rb config --prefix=/home/mystuff $ ruby setup.rb setup But when I run this command: $ ruby setup.rb install ……

---

## [What is wrong with my ruby install, or is it me?](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518)

<div class="topic-metadata">

**Author:** [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Replies:** 5\
**Last updated:** [September 1, 2007, 10:51am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518 "2007-09-01T10:51:08Z")

</div>

Hello, I am trying to put together my first ruby app, little database and a command line client. I want to use sqllite for the db and have 3.3.6 installed on a 32bit redhat 5 box along with ruby 1.8.5. After lookin…

---

## [How to get DRb and Webrick to work together?](https://www.ruby-forum.com/t/how-to-get-drb-and-webrick-to-work-together/113533)

<div class="topic-metadata">

**Author:** [@ssyed](https://www.ruby-forum.com/u/ssyed)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 10:48am UTC](https://www.ruby-forum.com/t/how-to-get-drb-and-webrick-to-work-together/113533 "2007-09-01T10:48:40Z")

</div>

Hi, I’m trying to run Webrick and DRb on the same program. I run them on different ports. The problem is they both try to take over the entire process $user\[:drbserver\]=DistributedSearch.new($user,$database) DRb.sta…

---

## [Why stack overflow with such a small stack?](https://www.ruby-forum.com/t/why-stack-overflow-with-such-a-small-stack/113433)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 8\
**Last updated:** [September 1, 2007, 6:22am UTC](https://www.ruby-forum.com/t/why-stack-overflow-with-such-a-small-stack/113433 "2007-09-01T06:22:10Z")

</div>

I’m getting the following error: sheet.rb:35:in values': stack level too deep (SystemStackError) from sheet.rb:35:invalues’ from sheet.rb:53:in to\_s' from sheet.rb:52:into\_s’ from sheet.rb:52:in map' from sheet.rb:52:…

---

## [M17n questions](https://www.ruby-forum.com/t/m17n-questions/113531)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [September 1, 2007, 6:11am UTC](https://www.ruby-forum.com/t/m17n-questions/113531 "2007-09-01T06:11:09Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bm17n e$B$K$D$$$F$O!$$$$m$$$m5?Ld!&\<ALd$,$"$kJ}$OB?$$$H;W$$$^$9!%$=$Ne(B e$B$h$&$J5?Ld$r0l$+=j$K$^$H$a$^$;$s$+!d$\_$J$5$^e(B http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=m17nQ…

---

## [Video conversion library](https://www.ruby-forum.com/t/video-conversion-library/113521)

<div class="topic-metadata">

**Author:** [@m4lloc](https://www.ruby-forum.com/u/m4lloc)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 6:09am UTC](https://www.ruby-forum.com/t/video-conversion-library/113521 "2007-09-01T06:09:09Z")

</div>

Hello all, I’am building a application like youtube where it will have a video conversion(mpg, mp4,avi and others to flv). The question is…Anyone here already used or knows a library in c, c++ or ruby that do it?. T…

---

## [N/e thing faster than grep](https://www.ruby-forum.com/t/n-e-thing-faster-than-grep/113529)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 0\
**Last updated:** [September 1, 2007, 6:03am UTC](https://www.ruby-forum.com/t/n-e-thing-faster-than-grep/113529 "2007-09-01T06:03:58Z")

</div>

whats a faster comparison method than grep say if i wanted to pull out some numbers / text outa some array? -Thanks

---

## [Net::SSH fails on second retry over remote tunnel](https://www.ruby-forum.com/t/net-ssh-fails-on-second-retry-over-remote-tunnel/113508)

<div class="topic-metadata">

**Author:** [@Brian\_Madden\_MD](https://www.ruby-forum.com/u/Brian_Madden_MD)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 6:03am UTC](https://www.ruby-forum.com/t/net-ssh-fails-on-second-retry-over-remote-tunnel/113508 "2007-09-01T06:03:08Z")

</div>

Hello- Please pardon me if I’m naïve, this is my first post. I’m working on enabling DRbSSL to tunnel through an SSH connection. My setup is that the “client” runs a DRbSSL service, which starts, and then NetSSH is …

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

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