# Ruby

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

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

---

## [Connecting via a proxy](https://www.ruby-forum.com/t/connecting-via-a-proxy/123707)

<div class="topic-metadata">

**Author:** [@cluettr](https://www.ruby-forum.com/u/cluettr)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 12:49am UTC](https://www.ruby-forum.com/t/connecting-via-a-proxy/123707 "2008-01-03T00:49:11Z")

</div>

Hello all, Two questions: in the example below, is our corporate firewall the reason I for the error? if so, how can I configure ruby to use the firewall specified in http\_proxy? Details: I’m trying to connect to …

---

## [Gem question which is better](https://www.ruby-forum.com/t/gem-question-which-is-better/124836)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 12:22am UTC](https://www.ruby-forum.com/t/gem-question-which-is-better/124836 "2008-01-03T00:22:44Z")

</div>

I manytimes see win and ruby edition of gems and have to decide which one to install. i dont know how to choose and which one is better for eg Select which gem to install for your platform (i386-mswin32) win32-api 1…

---

## [$0 global variable](https://www.ruby-forum.com/t/0-global-variable/124460)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/0-global-variable/124460 "2008-01-02T23:53:59Z")

</div>

I would really like to be able to do this: if FILE == $0 require File.dirname(FILE) + ‘/…/…/Util/simple\_test.rb’ end But, since $0 currently always returns nil, I can’t. Any chance you could squeeze it into the next…

---

## [Service controller in ruby](https://www.ruby-forum.com/t/service-controller-in-ruby/124742)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/service-controller-in-ruby/124742 "2008-01-02T22:51:49Z")

</div>

hello i have 4 ruby programs that i want to keep running. is there a service controller or something like that in ruby which can monitor these programs and capture errors, pause, stop etc. seede

---

## [Dynamically add a method to a TestCase](https://www.ruby-forum.com/t/dynamically-add-a-method-to-a-testcase/124806)

<div class="topic-metadata">

**Author:** [@commander](https://www.ruby-forum.com/u/commander)\
**Replies:** 4\
**Last updated:** [January 2, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/dynamically-add-a-method-to-a-testcase/124806 "2008-01-02T20:22:12Z")

</div>

Hi, I’m experimenting with the dynamic features of ruby to add methods to a TestCase. Here is my test script: require ‘watir’ require ‘test/unit’ class MyTest \< Test::Unit::TestCase end for num in \[“a”,“b”,“c”\] M…

---

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

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/ann-sequel-1-0-released/124796 "2008-01-02T19:51:43Z")

</div>

I’m pleased to announce that Sequel version 1.0 has just been released. Sequel is a lightweight database access and ORM library for Ruby. Sequel provides thread safety, connection pooling and a simple and expressive A…

---

## [Pathname#relative\_path\_from questions](https://www.ruby-forum.com/t/pathname-relative-path-from-questions/124793)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/pathname-relative-path-from-questions/124793 "2008-01-02T18:49:22Z")

</div>

Hi all, Ruby 1.8.6p111 I’m curious about the result of Pathname#relative\_path\_from. Consider this: require ‘pathname’ path1 = Pathname.new(‘a’) path2 = Pathname.new(‘b’) path1.relative\_path\_from(path2).to\_s =\> =\> …

---

## [Ruby.NET vs. IronRuby: Overview Posted to O'ReilyNet/Windows DevCenter](https://www.ruby-forum.com/t/ruby-net-vs-ironruby-overview-posted-to-oreilynet-windows-devcenter/124759)

<div class="topic-metadata">

**Author:** [@micx](https://www.ruby-forum.com/u/micx)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/ruby-net-vs-ironruby-overview-posted-to-oreilynet-windows-devcenter/124759 "2008-01-02T18:46:26Z")

</div>

FYI… This post is LONG overdue, but later is better than never. :smiley: Please don’t hesitate to correct anything that needs correcting via a follow-up comment to the above post or inline to this thread. Thanks! – …

---

## [Faker 0.3.0 released](https://www.ruby-forum.com/t/faker-0-3-0-released/124789)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/faker-0-3-0-released/124789 "2008-01-02T18:14:32Z")

</div>

faker version 0.3.0 has been released! Changes: 0.3.0 2008-01-01 3 major enhancements: Added Lorem to generate fake Latin Added secondary\_address to Address, and made inclusion of secondary address in street\_…

---

## [Using pbpaste](https://www.ruby-forum.com/t/using-pbpaste/124764)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/using-pbpaste/124764 "2008-01-02T17:02:16Z")

</div>

I would like to use Parked at Loopia from the command line, but the syntax escapes me :frowning: thufir@arrakis ~/Desktop $ thufir@arrakis ~/Desktop $ cat pbpaste.rb #!/bin/sh With a little automator workflow, quic…

---

## [Using SSL with HTTP Basic Authentication in Rails 2.0](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723 "2008-01-02T16:31:40Z")

</div>

Hello all, I’m using WEBrick to serve up my Rails 2.0 application, and it works just fine when I use HTTP Basic Authentication. However, I’m wondering if it’s possible to tell WEBrick (or Mongrel, or Lighty) to use…

---

## [Transform hash key from string into symbol](https://www.ruby-forum.com/t/transform-hash-key-from-string-into-symbol/124735)

<div class="topic-metadata">

**Author:** [@kodama](https://www.ruby-forum.com/u/kodama)\
**Replies:** 7\
**Last updated:** [January 2, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/transform-hash-key-from-string-into-symbol/124735 "2008-01-02T13:51:24Z")

</div>

Hello Rubyists, When dealing with hashes, I like using symbols for key names instead of strings. Is there an easy way to convert hash keys from symbols into strings? E.g. I’d like to do something like this: my\_hash …

---

## [WSO2 Web Services Framework for Ruby 1.0.0 Released](https://www.ruby-forum.com/t/wso2-web-services-framework-for-ruby-1-0-0-released/124770)

<div class="topic-metadata">

**Author:** [@dimuthu](https://www.ruby-forum.com/u/dimuthu)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/wso2-web-services-framework-for-ruby-1-0-0-released/124770 "2008-01-02T13:00:27Z")

</div>

WSO2 Web Services Framework for Ruby 1.0.0 Released WSO2 WSF/Ruby team is pleased to announce the release of WSO2 WSF/Ruby 1.0.0. WSF/Ruby is the Ruby language extension to WSO2 WSF/C. This version enables you to con…

---

## [RSpec on Ruby 1.9: before(:all) (Not Yet Implemented) pending messages instead of tests](https://www.ruby-forum.com/t/rspec-on-ruby-1-9-before-all-not-yet-implemented-pending-messages-instead-of-tests/124337)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 5\
**Last updated:** [January 2, 2008, 9:02am UTC](https://www.ruby-forum.com/t/rspec-on-ruby-1-9-before-all-not-yet-implemented-pending-messages-instead-of-tests/124337 "2008-01-02T09:02:36Z")

</div>

Hi. I happily hand-compiled Ruby 1.9.0-0 into /home/shot/opt/ruby today and Iâ€™m running into a strange error with RSpec â€“ all my examples work perfectly with Ruby 1.8 but are considered peding on Ruby 1.9. My set…

---

## [How to pass variable value to a sql query](https://www.ruby-forum.com/t/how-to-pass-variable-value-to-a-sql-query/124743)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 8:11am UTC](https://www.ruby-forum.com/t/how-to-pass-variable-value-to-a-sql-query/124743 "2008-01-02T08:11:05Z")

</div>

Hi, How can i pass a variable to a sql query like rs = dbh.prepare("select \*from status\_check where id=204") rs.execute Instead of giving the value of id I want to make it dynamic ,where I can pass the dynamic value …

---

## [Shoes require](https://www.ruby-forum.com/t/shoes-require/124720)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 8\
**Last updated:** [January 2, 2008, 7:47am UTC](https://www.ruby-forum.com/t/shoes-require/124720 "2008-01-02T07:47:43Z")

</div>

hi. i tried the gui framework shoes today and got some problems trying to require ‘activerecord’. the error message says ~/Desktop/shoes/dist/lib/rubygems/custom\_require.rb:27:in ‘gem\_orginal\_require’: no such file to…

---

## [Modifying parent shell's attributes?](https://www.ruby-forum.com/t/modifying-parent-shells-attributes/123027)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 7\
**Last updated:** [January 2, 2008, 4:39am UTC](https://www.ruby-forum.com/t/modifying-parent-shells-attributes/123027 "2008-01-02T04:39:03Z")

</div>

I asked this on the rails list, but received no traction. Since it’s more of a ruby question anyway, thought I’d give it a shot here. I have a problem with one of my rake tasks. It loads a very large yaml file into th…

---

## [Ruby Web apps on OSX (not rails)](https://www.ruby-forum.com/t/ruby-web-apps-on-osx-not-rails/124709)

<div class="topic-metadata">

**Author:** [@Areric](https://www.ruby-forum.com/u/Areric)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 4:21am UTC](https://www.ruby-forum.com/t/ruby-web-apps-on-osx-not-rails/124709 "2008-01-02T04:21:58Z")

</div>

Hey all, Was wondering if anyone has this set up and has managed to get web application running through apache on OSX. Currently I’m running OSX 10.5 and using the Mac version of XAMPP all in one web server installat…

---

## [Another newbie question](https://www.ruby-forum.com/t/another-newbie-question/124732)

<div class="topic-metadata">

**Author:** [@KSSS\_sa\_MSSSSrton](https://www.ruby-forum.com/u/KSSS_sa_MSSSSrton)\
**Replies:** 4\
**Last updated:** [January 2, 2008, 2:47am UTC](https://www.ruby-forum.com/t/another-newbie-question/124732 "2008-01-02T02:47:18Z")

</div>

Hi group, I apologize for the newbie question. Is there in Ruby some possibility for making global variables visible from within a DEF, except that passing all of them as parameters? E.g.: class class1 … def some…

---

## [Temporary hacked gem for Hpricot to work on 1.9](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 2:03am UTC](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201 "2008-01-02T02:03:50Z")

</div>

I just spent a while to port Hpricot to ruby 1.9 and finally had success. The gem can be found at http://weez-int.com/gem/hpricot-0.6.gem But more important i think is to share information on how to create the gem, h…

---

## [Would this thread loop continously](https://www.ruby-forum.com/t/would-this-thread-loop-continously/124740)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 1:57am UTC](https://www.ruby-forum.com/t/would-this-thread-loop-continously/124740 "2008-01-02T01:57:02Z")

</div>

would this thread loop continously or i have to put a while condition to force it to loop. notifierThread=Thread.new do ibScan= load ‘ScansNotifier.rb’ puts " ScansNotifier started " sleep(60) notifierThread.join …

---

## [Ruby 1.9 porting problem](https://www.ruby-forum.com/t/ruby-1-9-porting-problem/124724)

<div class="topic-metadata">

**Author:** [@s450r1](https://www.ruby-forum.com/u/s450r1)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/ruby-1-9-porting-problem/124724 "2008-01-01T23:52:31Z")

</div>

I am having problems porting my extension to 1.9. I’m doing something like: static VALUE my\_alloc(VALUE klass) { return Data\_Wrap\_Struct(klass, NULL, my\_free, NULL); } … static VALUE my\_init(int argc, VALUE \*argv,…

---

## [Deadlock in ThreadPool using backtick](https://www.ruby-forum.com/t/deadlock-in-threadpool-using-backtick/111578)

<div class="topic-metadata">

**Author:** [@justinj](https://www.ruby-forum.com/u/justinj)\
**Replies:** 18\
**Last updated:** [January 1, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/deadlock-in-threadpool-using-backtick/111578 "2008-01-01T22:33:59Z")

</div>

Hello, I’m using the ThreadPool class as defined in the Ruby Cookbook, recipe 20.7 and running on Windows XP with the One Click installer of Ruby 1.8.6 patch level 0. Normally it works fine. However, whenever I call …

---

## [Before(:each) hard to emulate / capture?](https://www.ruby-forum.com/t/before-each-hard-to-emulate-capture/124718)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/before-each-hard-to-emulate-capture/124718 "2008-01-01T22:22:49Z")

</div>

Is there an easy way for a class to incorporate an existing module but also stipulate that it will capture any value returned by the methods in that module into one ivar? – Giles B. Podcast: http://hollywoodgrit.blo…

---

## [Create a irb like console for my program](https://www.ruby-forum.com/t/create-a-irb-like-console-for-my-program/124713)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [January 1, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/create-a-irb-like-console-for-my-program/124713 "2008-01-01T22:02:54Z")

</div>

hello how do i create a irb like console for my ruby app. i am running on windows fyi.

---

## [Announcing Rev: a high performance event library for Ruby 1.9](https://www.ruby-forum.com/t/announcing-rev-a-high-performance-event-library-for-ruby-1-9/124178)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 6\
**Last updated:** [January 1, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/announcing-rev-a-high-performance-event-library-for-ruby-1-9/124178 "2008-01-01T21:01:59Z")

</div>

Hello everyone, I’ve just made my initial public release of Rev, a high performance event library for Ruby 1.9 built on top of libev. Events are monitored with advanced system calls including epoll on Linux, kqueues …

---

## [ANN: Butler 1.9 released](https://www.ruby-forum.com/t/ann-butler-1-9-released/124711)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 6\
**Last updated:** [January 1, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/ann-butler-1-9-released/124711 "2008-01-01T20:33:15Z")

</div>

Butler - the IRC bot with class - version 1.9 has just been released. Butler is an IRC bot written in Ruby. Features include a comfortable plugin API with some DSL support to enable quick writing of plugins, thorough …

---

## [ANN: Sequel 0.5 Released](https://www.ruby-forum.com/t/ann-sequel-0-5-released/124563)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-5-released/124563 "2008-01-01T20:26:48Z")

</div>

Sequel version 0.5 has just been released. Sequel is a lightweight database access and ORM library for Ruby. Sequel provides thread safety, connection pooling and a simple and expressive API for constructing database …

---

## [Destroying an Object](https://www.ruby-forum.com/t/destroying-an-object/124217)

<div class="topic-metadata">

**Author:** [@kena](https://www.ruby-forum.com/u/kena)\
**Replies:** 18\
**Last updated:** [January 1, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/destroying-an-object/124217 "2008-01-01T20:20:22Z")

</div>

Suppose I create a new object: p = new Object How can I kill/destroy this object forever?

---

## [Help in changing string format](https://www.ruby-forum.com/t/help-in-changing-string-format/124717)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/help-in-changing-string-format/124717 "2008-01-01T18:46:06Z")

</div>

I need some help in converting this date time format to the one time.parse will accept. irb(main):039:0\> time=“31/12/2007 5:00:00 PM” =\> “31/12/2007 5:00:00 PM” irb(main):040:0\> Time.parse(time) ArgumentError: argum…

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

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