# Ruby

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

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

---

## [Handling CLR events](https://www.ruby-forum.com/t/handling-clr-events/184556)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 5\
**Last updated:** [March 4, 2010, 11:25pm UTC](https://www.ruby-forum.com/t/handling-clr-events/184556 "2010-03-04T23:25:53Z")

</div>

Hi, I’ve created this module to implement INotifyPropertyChanged in classes for databinding with WPF, but the way I’m handling the event seems a bit awkward. So I’m just checking if I’m doing it right. The lines of …

---

## [ANN: Sequel 3.9.0 Released](https://www.ruby-forum.com/t/ann-sequel-3-9-0-released/184581)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-9-0-released/184581 "2010-03-04T21:17:30Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [Sunspot 1.0.0 Released](https://www.ruby-forum.com/t/sunspot-1-0-0-released/184579)

<div class="topic-metadata">

**Author:** [@mat\_b](https://www.ruby-forum.com/u/mat_b)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/sunspot-1-0-0-released/184579 "2010-03-04T20:51:21Z")

</div>

SUNSPOT Sunspot is a library providing a powerful, all-ruby API for the Solr search engine. Sunspot manages the configuration of persistent Ruby classes for search and indexing and exposes Solr’s most powerful featur…

---

## [Shared hosting recommendation?](https://www.ruby-forum.com/t/shared-hosting-recommendation/184570)

<div class="topic-metadata">

**Author:** [@raffuk](https://www.ruby-forum.com/u/raffuk)\
**Replies:** 9\
**Last updated:** [March 4, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/shared-hosting-recommendation/184570 "2010-03-04T20:17:23Z")

</div>

Hello! Can anybody recomend a shared hosting provider for Ruby on Rails apps? I’m aware that a shared hosting env will not be good enough for a high traffic, production site but I’m just looking for a small playground…

---

## [FYI: Breaking changes in last push](https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 2\
**Last updated:** [March 4, 2010, 8:13pm UTC](https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572 "2010-03-04T20:13:52Z")

</div>

This is for everybody’s information: If you’re hosting IronRuby in a C# application then your code is likely to break with IronRuby HEAD The RubyContext class has gone away and the RequireRubyFile extension method …

---

## [Submitting Bug Reports](https://www.ruby-forum.com/t/submitting-bug-reports/184559)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/submitting-bug-reports/184559 "2010-03-04T19:55:08Z")

</div>

I have an app that consistently runs for a while and then crashes with a segmentation error. The error message says “Bug reports are welcome” and gives an http: address of www.ruby-lang.org/bugreport.html. This page…

---

## [Ruby Midwest Conference Opens Call for Speakers](https://www.ruby-forum.com/t/ruby-midwest-conference-opens-call-for-speakers/184569)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/ruby-midwest-conference-opens-call-for-speakers/184569 "2010-03-04T18:03:54Z")

</div>

The Ruby Midwest Conference has opened its Call for Speakers (http:// www.rubymidwest.com/#call-for-speakers). Come share your excitement, experience, and expertise with fellow Rubyists in the Midwest! We’re pleased t…

---

## [Code Review: config](https://www.ruby-forum.com/t/code-review-config/184545)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/code-review-config/184545 "2010-03-04T17:59:13Z")

</div>

tfpt review “/shelveset:config;REDMOND\\sborde” Comment : Change RbConfig::CONFIG\[“arch”\] to “universal-.net2.0” Changes RubyGems to know about the “.net” OS

---

## [Efficient implementation of saving search state](https://www.ruby-forum.com/t/efficient-implementation-of-saving-search-state/184306)

<div class="topic-metadata">

**Author:** [@zer0x90](https://www.ruby-forum.com/u/zer0x90)\
**Replies:** 3\
**Last updated:** [March 4, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/efficient-implementation-of-saving-search-state/184306 "2010-03-04T16:30:50Z")

</div>

Hi everyone, this is my first post to this forum and a new Ruby hobbyist. I have a newb question that I am hoping you more experienced folks can help me out with. I am currently developing some ruby code that uses the…

---

## [Ruby Midwest Conference Opens Call for Speakers](https://www.ruby-forum.com/t/ruby-midwest-conference-opens-call-for-speakers/184565)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/ruby-midwest-conference-opens-call-for-speakers/184565 "2010-03-04T16:26:09Z")

</div>

The Ruby Midwest Conference http://www.rubymidwest.com/ has opened its Call for Speakers http://www.rubymidwest.com/#call-for-speakers ( http://www.rubymidwest.com/#call-for-speakers). Come share your excitement, ex…

---

## [Using anchor for cancel in a Form](https://www.ruby-forum.com/t/using-anchor-for-cancel-in-a-form/184562)

<div class="topic-metadata">

**Author:** [@stilgar71](https://www.ruby-forum.com/u/stilgar71)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/using-anchor-for-cancel-in-a-form/184562 "2010-03-04T15:56:51Z")

</div>

Hi all, Looking for best practices when it comes to submitting a form and canceling a form in Rails. Background: I am leveraging a CSS dynamic that gives hover over and an embedded Icon to all buttons in my applicati…

---

## [Splitting](https://www.ruby-forum.com/t/splitting/184558)

<div class="topic-metadata">

**Author:** [@DMG](https://www.ruby-forum.com/u/DMG)\
**Replies:** 3\
**Last updated:** [March 4, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/splitting/184558 "2010-03-04T15:29:56Z")

</div>

Hi, I suppose that: “.”.split(".") will give me array with two empty strings instead of empty array. How can I do that? Thanks, Dawid

---

## [Remote Desktop getting reset and sessions are lost](https://www.ruby-forum.com/t/remote-desktop-getting-reset-and-sessions-are-lost/184493)

<div class="topic-metadata">

**Author:** [@rakesh-swain](https://www.ruby-forum.com/u/rakesh-swain)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/remote-desktop-getting-reset-and-sessions-are-lost/184493 "2010-03-04T12:21:03Z")

</div>

Hi, We have automated a website using Watir and the scripts has to run on remote desktop on daily basis. The remote desktop is windows 2003 server. The scripts were running perfectly and sending reports until some co…

---

## [Splitting up a file](https://www.ruby-forum.com/t/splitting-up-a-file/184552)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 11:39am UTC](https://www.ruby-forum.com/t/splitting-up-a-file/184552 "2010-03-04T11:39:18Z")

</div>

Hey, I have a quick question about breaking up a file into smaller files. I have a large file, quite like an mbox file in how it stores its data for example DATA stuff stuff DATA stuff DATA stuff stuff I don’…

---

## [Url parsing in ruby](https://www.ruby-forum.com/t/url-parsing-in-ruby/184502)

<div class="topic-metadata">

**Author:** [@tikaro](https://www.ruby-forum.com/u/tikaro)\
**Replies:** 9\
**Last updated:** [March 4, 2010, 11:06am UTC](https://www.ruby-forum.com/t/url-parsing-in-ruby/184502 "2010-03-04T11:06:09Z")

</div>

Hello, I use ruby to make some scriptings inside an html page. I made a form to pass variable in an URL. I need this variable in my ruby code, how can i get this variable ? my URL looks like http://localhost/mypage.r…

---

## [JRuby-rack and Rails 3.0.0.beta?](https://www.ruby-forum.com/t/jruby-rack-and-rails-3-0-0-beta/183787)

<div class="topic-metadata">

**Author:** [@walkins](https://www.ruby-forum.com/u/walkins)\
**Replies:** 5\
**Last updated:** [March 4, 2010, 10:34am UTC](https://www.ruby-forum.com/t/jruby-rack-and-rails-3-0-0-beta/183787 "2010-03-04T10:34:55Z")

</div>

I’ve recently upgraded a Rails 2.3.5 app to Rails 3, and while the built-in Webrick server works just fine, I’m a bit stuck with jruby-rack. I can see that it’s starting Rails, because a warning about ‘class\_eval’ (k…

---

## [Re: IronRuby version of existing gems](https://www.ruby-forum.com/t/re-ironruby-version-of-existing-gems/184514)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 6\
**Last updated:** [March 4, 2010, 3:32am UTC](https://www.ruby-forum.com/t/re-ironruby-version-of-existing-gems/184514 "2010-03-04T03:32:21Z")

</div>

Isn’t that just keying off of RUBY\_PLATFORM and other constants? From: Shri B. removed\_email\_address@domain.invalid Sent: Wednesday, March 03, 2010 9:55 AM To: removed\_email\_address@domain.invalid removed\_email\_addre…

---

## [Find days between two dates span different years](https://www.ruby-forum.com/t/find-days-between-two-dates-span-different-years/184504)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [March 4, 2010, 3:11am UTC](https://www.ruby-forum.com/t/find-days-between-two-dates-span-different-years/184504 "2010-03-04T03:11:54Z")

</div>

Hi all, Which method is used to calculate the days between two dates spanning different years? Thanks, Li

---

## [Ruby gem install mysql compile error](https://www.ruby-forum.com/t/ruby-gem-install-mysql-compile-error/184518)

<div class="topic-metadata">

**Author:** [@ajmccauley](https://www.ruby-forum.com/u/ajmccauley)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 2:51am UTC](https://www.ruby-forum.com/t/ruby-gem-install-mysql-compile-error/184518 "2010-03-04T02:51:21Z")

</div>

I am having an issue installing the mysql gem on my fedora 11 ruby 1.9.1p376 installation. mysql is installed and working. When I try to run sudo gem install mysql I get the following message: Building native extensi…

---

## [March Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/march-phoenix-ruby-user-group-meeting/184536)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 2:27am UTC](https://www.ruby-forum.com/t/march-phoenix-ruby-user-group-meeting/184536 "2010-03-04T02:27:23Z")

</div>

March Phoenix Ruby U. Group Meeting When: Monday, March 8, 2010 6:30pm door open. Laptop power and WiFi available. 7:00pm Showtime 8:30pm Migrate to Four Peaks Brewery Topic: Teleku Chris Matthieu will tell u…

---

## [Jruby Support](https://www.ruby-forum.com/t/jruby-support/184527)

<div class="topic-metadata">

**Author:** [@jgrewal](https://www.ruby-forum.com/u/jgrewal)\
**Replies:** 5\
**Last updated:** [March 4, 2010, 2:18am UTC](https://www.ruby-forum.com/t/jruby-support/184527 "2010-03-04T02:18:01Z")

</div>

Is anyone aware of any paid jruby support group? Thanks, Jaspreet View this message in context: http://old.nabble.com/Jruby-Support-tp27773111p27773111.html Sent from the JRuby - User mailing list archive at Nabble.…

---

## [Code Review: morefixes](https://www.ruby-forum.com/t/code-review-morefixes/184529)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/code-review-morefixes/184529 "2010-03-03T23:55:10Z")

</div>

tfpt review “/shelveset:morefixes;REDMOND\\tomat” Comment : DLR: Fixes interop with CLR4 BigInteger (adds implicit conversions from and to our BigInteger). Ruby: Fixes module duplication (initializers and methods w…

---

## [Ohm 0.0.33](https://www.ruby-forum.com/t/ohm-0-0-33/184528)

<div class="topic-metadata">

**Author:** [@mmaher](https://www.ruby-forum.com/u/mmaher)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/ohm-0-0-33/184528 "2010-03-03T23:51:39Z")

</div>

Ohm is an object-hash mapping library for Redis, and this version adds the reference and collection types. For more information: Docs: http://ohm.keyvalue.org Code: GitHub - soveran/ohm: Object-Hash Mapping for Redis …

---

## [Logger datetime\_format not respected](https://www.ruby-forum.com/t/logger-datetime-format-not-respected/184525)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 4\
**Last updated:** [March 3, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/logger-datetime-format-not-respected/184525 "2010-03-03T23:12:27Z")

</div>

When creating a new logger, the datetime\_format is not respected. require ‘logger’ log = Logger.new(STDOUT) log.datetime\_format = “%Y-%m-%d %H:%M:%S” log.info “#{log.datetime\_format}” outputs: I, \[2010-03-03 14:31:…

---

## [Problems with mechanize and inheritance](https://www.ruby-forum.com/t/problems-with-mechanize-and-inheritance/184507)

<div class="topic-metadata">

**Author:** [@thiagobrandam](https://www.ruby-forum.com/u/thiagobrandam)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 9:48pm UTC](https://www.ruby-forum.com/t/problems-with-mechanize-and-inheritance/184507 "2010-03-03T21:48:08Z")

</div>

Hi, I’m having problems with mechanize when I try to subclass it in a rails environment using script/console. The following code works fine: require ‘rubygems’ require ‘mechanize’ agent = WWW::Mechanize.new agent.g…

---

## [How do I set the encoding on a regexp?](https://www.ruby-forum.com/t/how-do-i-set-the-encoding-on-a-regexp/183996)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 20\
**Last updated:** [March 3, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/how-do-i-set-the-encoding-on-a-regexp/183996 "2010-03-03T20:54:52Z")

</div>

Title pretty much says it all. Here is a small sample program: #!/usr/bin/env ruby -- coding: utf-8 -- s = “string” puts s.encoding r = Regexp.new(s) puts r.encoding Here is the output: UTF-8 US-ASCII I was exp…

---

## [How do I pass an ExpandoObject from C# into IronRuby?](https://www.ruby-forum.com/t/how-do-i-pass-an-expandoobject-from-c-into-ironruby/184478)

<div class="topic-metadata">

**Author:** [@GoodeS\_Troy](https://www.ruby-forum.com/u/GoodeS_Troy)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 8:24pm UTC](https://www.ruby-forum.com/t/how-do-i-pass-an-expandoobject-from-c-into-ironruby/184478 "2010-03-03T20:24:25Z")

</div>

I tried to send this question earlier, but it did not appear to go through. Shortly after I tried to send it the first time, the “Consuming DynamicObjects in IronRuby” thread popped up. It seems likely that the two is…

---

## [Hacer un insert en un ciclo](https://www.ruby-forum.com/t/hacer-un-insert-en-un-ciclo/184403)

<div class="topic-metadata">

**Author:** [@k\_liliana](https://www.ruby-forum.com/u/k_liliana)\
**Replies:** 8\
**Last updated:** [March 3, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/hacer-un-insert-en-un-ciclo/184403 "2010-03-03T20:08:30Z")

</div>

Hola. quiero hacer un insert a mi base de datos mediante un ciclo es decir que en el cliclo este la columna y el valor. de los datos alguien sabe si se puede? inventario\_tem = InventarioTem.new( while @y \< @datostot…

---

## [IronRuby .Net 4 CTP and dynamic](https://www.ruby-forum.com/t/ironruby-net-4-ctp-and-dynamic/178932)

<div class="topic-metadata">

**Author:** [@Patrick\_Brown](https://www.ruby-forum.com/u/Patrick_Brown)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 8:07pm UTC](https://www.ruby-forum.com/t/ironruby-net-4-ctp-and-dynamic/178932 "2010-03-03T20:07:27Z")

</div>

Hi Should I be able to call out to a C# method with this release that returns a dynamic and access it’s return value? public class Modifier { public dynamic Modify(IPropertyPolicyInfo info) { dynamic obj = new Exp…

---

## [\[Bug #1954\] line number 0?](https://www.ruby-forum.com/t/bug-1954-line-number-0/173961)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 6\
**Last updated:** [March 3, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/bug-1954-line-number-0/173961 "2010-03-03T18:58:57Z")

</div>

Bug #1954: line number 0? http://redmine.ruby-lang.org/issues/show/1954 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: ruby 1.9.2dev (2009-08-18 trunk 245…

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

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