# Ruby

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

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

---

## [Converting a date to mysql format](https://www.ruby-forum.com/t/converting-a-date-to-mysql-format/164959)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/converting-a-date-to-mysql-format/164959 "2009-04-07T22:10:41Z")

</div>

Is there an easy way to convert ‘13-Mar-2009 20:55 PDT’ into something that ruby understands, so that I can output it in a format that mysql understands?

---

## [Linq syntax?](https://www.ruby-forum.com/t/linq-syntax/164957)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 10:03pm UTC](https://www.ruby-forum.com/t/linq-syntax/164957 "2009-04-07T22:03:04Z")

</div>

Hi What would be the syntax to call Linq methods? for example: I have an IQueryable and I want to get the equivalent out of from user in MyRepository.Users where user.name == “somename” That of course is only one e…

---

## [Code Review: NewMethodBinder](https://www.ruby-forum.com/t/code-review-newmethodbinder/164961)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/code-review-newmethodbinder/164961 "2009-04-07T21:03:49Z")

</div>

Tfpt review /shelveset:NewMethodBinder;tomat Affects outer DLR, Python, Ruby. DLR, Python Redesigns the default method binder: Merges ParameterBinder into MethodBinder, moves virtual methods related to CLR…

---

## [Class C \< B \< A](https://www.ruby-forum.com/t/class-c-b-a/164879)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 9\
**Last updated:** [April 7, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/class-c-b-a/164879 "2009-04-07T20:27:23Z")

</div>

Hi, I have this case: class A ; end class B \< A ; end class C \< B ; end a = A.new b = B.new c = C.new I look for a way (\*\*\*) to get the following results: a) a \*\*\* A =\> true a \*\*\* B =\> false a \*\*\* C =\> fal…

---

## [Barenames and case statements](https://www.ruby-forum.com/t/barenames-and-case-statements/164941)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 6\
**Last updated:** [April 7, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/barenames-and-case-statements/164941 "2009-04-07T20:06:49Z")

</div>

I’ve encountered this in the past and thought I was messing something up, but it’s happening still. Can anyone tell me why this: puts “ruby-#{RUBY\_VERSION} \[#{RUBY\_PLATFORM}\]” \[String, Array, Hash\].each do |klass| c…

---

## [Method missing and arrays as arguments](https://www.ruby-forum.com/t/method-missing-and-arrays-as-arguments/164873)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 5\
**Last updated:** [April 7, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/method-missing-and-arrays-as-arguments/164873 "2009-04-07T19:39:17Z")

</div>

How do you go about passing arrays as arguments to something like method\_missing? I’ve got a method that takes an array as an argument, but calling it via method\_missing is proving problematic. How do you deal with …

---

## [Is this a bug?](https://www.ruby-forum.com/t/is-this-a-bug/164950)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [April 7, 2009, 7:30pm UTC](https://www.ruby-forum.com/t/is-this-a-bug/164950 "2009-04-07T19:30:28Z")

</div>

Hi Given the following (contrived) code: namespace PersonLibrary { public class Person { public int Id { get; set; } public string Name { get; set; } } public class Friend { public Friend(Person person) …

---

## [Advice: XML vs. mySQL](https://www.ruby-forum.com/t/advice-xml-vs-mysql/164893)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 4\
**Last updated:** [April 7, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/advice-xml-vs-mysql/164893 "2009-04-07T15:20:30Z")

</div>

Hello, I am new to Ruby and looking for some advice on how to best approach a problem. I am writing a Facebook application that will rely heavily on the manipulation of strings. I want to set up a class, allow users…

---

## [How to sort a multi-elements array](https://www.ruby-forum.com/t/how-to-sort-a-multi-elements-array/139163)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 6\
**Last updated:** [April 7, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/how-to-sort-a-multi-elements-array/139163 "2009-04-07T14:29:23Z")

</div>

I know how to sort an array with 2 elements… that’s the only example I could fin on Array#sort… but what if … I need to sort an array like this one : anArray = \[ \[1, “joe”, 4\], \[2, “arthur”, 2\], \[5, “william”, 3\], \[16…

---

## [Ruby-gss](https://www.ruby-forum.com/t/ruby-gss/164924)

<div class="topic-metadata">

**Author:** [@S2S2S2](https://www.ruby-forum.com/u/S2S2S2)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/ruby-gss/164924 "2009-04-07T13:56:00Z")

</div>

is there a ruby-gss library? a google search took me to http://devel.it.su.se/pub/jsp/polopoly.jsp?d=1047&a=3790 but it’s 4 years old and it does not compile with the mit gss libraries. is someone here who uses it or …

---

## [Code duplication](https://www.ruby-forum.com/t/code-duplication/164845)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [April 7, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/code-duplication/164845 "2009-04-07T13:07:58Z")

</div>

Hi all, The following is the code for extracting the html contents of a website. I have included the code in case url redirect and BadRequest error. #getting the HTTP response from ‘uri’ response = Net::HTTP.get\_res…

---

## [Where is Wee?](https://www.ruby-forum.com/t/where-is-wee/164824)

<div class="topic-metadata">

**Author:** [@Saji\_NSHameed](https://www.ruby-forum.com/u/Saji_NSHameed)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/where-is-wee/164824 "2009-04-07T12:30:33Z")

</div>

Hi Michael, From where does one grab the latest version of wee? ( the rubyforge version is not the latest, right?) saji Funny that Seaside is reducing continuations while I am increasing or “stabilizing” continuatio…

---

## [Jruby name lookup](https://www.ruby-forum.com/t/jruby-name-lookup/164920)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/jruby-name-lookup/164920 "2009-04-07T12:30:10Z")

</div>

I am posting this example again. It seems to show that jruby’s name lookup model is not the same as MRI’s. module MyModule class MyClass def self.my\_method puts “old” end end end include MyModule class MyClass …

---

## [How to remote connect to the SQL server 2005 when th ere is a â€˜\\â€™ in the SQL server name, such a](https://www.ruby-forum.com/t/how-to-remote-connect-to-the-sql-server-2005-when-th-ere-is-a-a-a-in-the-sql-server-name-such-a/164921)

<div class="topic-metadata">

**Author:** [@chenpassion](https://www.ruby-forum.com/u/chenpassion)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/how-to-remote-connect-to-the-sql-server-2005-when-th-ere-is-a-a-a-in-the-sql-server-name-such-a/164921 "2009-04-07T12:26:54Z")

</div>

Hi, Guys, How to remote connect to the SQL server 2005 when there is a â€˜\\â€™ in the SQL server name, such as 192.168.0.11\\active? In fact, when I try to remote connect it by the SQL 2005 client, everything goes w…

---

## [A few confusing Hpricot outputs. Anyone had similar experience?](https://www.ruby-forum.com/t/a-few-confusing-hpricot-outputs-anyone-had-similar-experience/164830)

<div class="topic-metadata">

**Author:** [@Wang\_J](https://www.ruby-forum.com/u/Wang_J)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/a-few-confusing-hpricot-outputs-anyone-had-similar-experience/164830 "2009-04-07T12:07:30Z")

</div>

I wanted to work on something like the following example string require ‘hpricot’ string = ‘posted on April 2009’ h = Hpricot(string) t = “2009-04-06” Here it goes: confusion No.1 h.at(‘a\[@title\*=“2009-04-06”\]’) …

---

## [Verify, a very basic testing tool](https://www.ruby-forum.com/t/verify-a-very-basic-testing-tool/164676)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 33\
**Last updated:** [April 7, 2009, 10:51am UTC](https://www.ruby-forum.com/t/verify-a-very-basic-testing-tool/164676 "2009-04-07T10:51:50Z")

</div>

Hi List The Verify tool is a KISS verification and test tool, it is inspired by Ara T. Howard’s testy.rb. Ara however has still implemented a BDD framework, the purpose of Verify is to provide a Ruby P.mer with a ve…

---

## [Sessions and cookies](https://www.ruby-forum.com/t/sessions-and-cookies/164849)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 1\
**Last updated:** [April 7, 2009, 10:23am UTC](https://www.ruby-forum.com/t/sessions-and-cookies/164849 "2009-04-07T10:23:08Z")

</div>

Hey, I was wondering if anyone could offer some help. I have a site running on GF v2 that has a secure login page (https) but the rest of the site doesn’t have to run over https. If I’ve never been to the sit…

---

## [RubyScript2Exe](https://www.ruby-forum.com/t/rubyscript2exe/164563)

<div class="topic-metadata">

**Author:** [@openshac](https://www.ruby-forum.com/u/openshac)\
**Replies:** 13\
**Last updated:** [April 7, 2009, 9:31am UTC](https://www.ruby-forum.com/t/rubyscript2exe/164563 "2009-04-07T09:31:33Z")

</div>

Hi, I am a complete novice to ruby, so please feel free to ask for more information so this post makes more sense. I am trying to create an exe from the ruby script, and it all seems to go well but the resulting exe …

---

## [Socket#read raising Errno::EINTR](https://www.ruby-forum.com/t/socket-read-raising-errno-eintr/164902)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 1\
**Last updated:** [April 7, 2009, 9:23am UTC](https://www.ruby-forum.com/t/socket-read-raising-errno-eintr/164902 "2009-04-07T09:23:57Z")

</div>

Hello all, I’ve got some socket code that is causing me some headaches. I create a socket, write to it, then wait for the server to respond back. See below: @conn = TCPSocket.new(@host,@port) @conn.write(some\_stri…

---

## [String Question... Real n00b here](https://www.ruby-forum.com/t/string-question-real-n00b-here/164904)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 9:09am UTC](https://www.ruby-forum.com/t/string-question-real-n00b-here/164904 "2009-04-07T09:09:36Z")

</div>

I just picked up Ruby today after a friend mentioned Watir to me… So in my meager hours with the language, I have found something that has me completely STUMPED. I am trying to concat 3 strings together to form a URL.…

---

## [Rubygem 1.3.1: zlib LoadError](https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888)

<div class="topic-metadata">

**Author:** [@cornik](https://www.ruby-forum.com/u/cornik)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 4:06am UTC](https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888 "2009-04-07T04:06:39Z")

</div>

why am i getting this zlib error? RUBYGEMS VERSION: 1.3.1 RUBY VERSION: 1.9.1 (2009-01-30 patchlevel 0) \[i686-linux\] /opt/ruby/bin$ gem list /opt/ruby/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:1:in require': no such fi…

---

## [Ruby ODBC error](https://www.ruby-forum.com/t/ruby-odbc-error/164883)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 12:57am UTC](https://www.ruby-forum.com/t/ruby-odbc-error/164883 "2009-04-07T00:57:08Z")

</div>

I am getting the following error when trying to connect to sql server via odbc from a customer’s computer OLE error code:800A0E7A in ADODB.Connection Provider cannot be found. It may not be properly installed. HRESUL…

---

## [Ruby/Tk refresh problem](https://www.ruby-forum.com/t/ruby-tk-refresh-problem/164829)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 11:53pm UTC](https://www.ruby-forum.com/t/ruby-tk-refresh-problem/164829 "2009-04-06T23:53:23Z")

</div>

Hello, I am using Ruby 1.8.7 with Tk. The code runs fine. However, a few instructions that I set while the program is busy (basically before starting heavy computation it sets a TkLabel to display “Busy”… and once it…

---

## [Loading classes in order](https://www.ruby-forum.com/t/loading-classes-in-order/164679)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 16\
**Last updated:** [April 6, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/loading-classes-in-order/164679 "2009-04-06T22:40:44Z")

</div>

Hello guys, I have a folder that contains several classes. There are some some dependencies between them as one class could extend from another one included in the folder. I am trying to require them all dynamically b…

---

## [Getting the results of a simple regex](https://www.ruby-forum.com/t/getting-the-results-of-a-simple-regex/164860)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/getting-the-results-of-a-simple-regex/164860 "2009-04-06T20:39:28Z")

</div>

Hello, I’m playing for my very first time with Regex … I want to split some numbers, and get their results: Given this string: 18,04 2,89 20,93 2,71 18,22 I want to get every number before a comma, and two digits la…

---

## [Re: Re: Re: I need help](https://www.ruby-forum.com/t/re-re-re-i-need-help/164861)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/re-re-re-i-need-help/164861 "2009-04-06T20:21:48Z")

</div>

hey nick, That link implies that you shouldn't be using cookie based sessions... is that true? If so will the next update to jruby-rack let us use Cookie based sessions? Thanks! Jay Apr 6, 2009 11:43:42 AM, remov…

---

## [String.split crashes my program](https://www.ruby-forum.com/t/string-split-crashes-my-program/164847)

<div class="topic-metadata">

**Author:** [@tomast](https://www.ruby-forum.com/u/tomast)\
**Replies:** 8\
**Last updated:** [April 6, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/string-split-crashes-my-program/164847 "2009-04-06T19:15:31Z")

</div>

I am trying to split a string by spaces and then loop through each entry, adding it to an array if it is more then 4 characters long and not already in the array. I haven’t got very far with it, but I have come up aga…

---

## [How to beat minimal wiki features out of redcloth?](https://www.ruby-forum.com/t/how-to-beat-minimal-wiki-features-out-of-redcloth/164772)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 6\
**Last updated:** [April 6, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-beat-minimal-wiki-features-out-of-redcloth/164772 "2009-04-06T19:03:48Z")

</div>

Rubies: I always see “redcloth” everywhere - a textile implementation for Ruby. So I try to use it. Firstly, my code has some tags and whatnot. This command line passed them through without decorating them: ruby …

---

## [MSpec fails to load dll](https://www.ruby-forum.com/t/mspec-fails-to-load-dll/164820)

<div class="topic-metadata">

**Author:** [@xerxesb](https://www.ruby-forum.com/u/xerxesb)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/mspec-fails-to-load-dll/164820 "2009-04-06T18:39:43Z")

</div>

howdy all, i’m new to ruby and ironruby, and trying to get a simple mspec sample working on my machine. i’m using the 0.3 drop of IR. When i’m running IronRuby for anything OTHER than mspec, it works perfectly fine. …

---

## [File copy](https://www.ruby-forum.com/t/file-copy/164808)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 8\
**Last updated:** [April 6, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/file-copy/164808 "2009-04-06T18:33:50Z")

</div>

Hi, I am facing a problem to copy the file. I am getting path of the file like this “http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931\_8289306.jpg”. I want to copy this file locally. I am tryin…

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

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