# Ruby

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

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

---

## [Date.parse("##-##-##")](https://www.ruby-forum.com/t/date-parse/137955)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 5\
**Last updated:** [May 19, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/date-parse/137955 "2008-05-19T14:50:57Z")

</div>

ã€€Date.parse("##.##.##") ã® ruby\_1\_8 ã«ãŠã‘ã‚‹æŒ™å‹•ãŒ trunk ã¨ã‚‚ ruby\_1\_8\_6 ã¨ã‚‚ç•°ãªã‚Šã¾ã™ã€‚ % for ruby in ruby-{1.8.6,1.8,1.9}; do $ruby -rdate -ve ‘p Date.parse(“10.09.08”).strftime("%Y-%m-%d")’; do…

---

## [Ruby Project Recommendations](https://www.ruby-forum.com/t/ruby-project-recommendations/137967)

<div class="topic-metadata">

**Author:** [@licinius](https://www.ruby-forum.com/u/licinius)\
**Replies:** 5\
**Last updated:** [May 19, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/ruby-project-recommendations/137967 "2008-05-19T14:10:42Z")

</div>

Hi, I’m new to ruby and I am considering contributing to one or two small to medium sized projects. A top 3 list of recommendations would be a great help. I also would find it helpful if some would offer some coaching…

---

## [Ruby 1.9 compatibility and performance](https://www.ruby-forum.com/t/ruby-1-9-compatibility-and-performance/137730)

<div class="topic-metadata">

**Author:** [@djconcepcion](https://www.ruby-forum.com/u/djconcepcion)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/ruby-1-9-compatibility-and-performance/137730 "2008-05-19T14:03:38Z")

</div>

I have pretty much committed to Ruby for several projects - and two things make me nervous: Ruby seems to be changing fundamental things - like Strings - in 1.9. The changes are incompatible and seem fundamental (e.g…

---

## [Webservice Problem?](https://www.ruby-forum.com/t/webservice-problem/138010)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/webservice-problem/138010 "2008-05-19T13:58:26Z")

</div>

Hi All, I am creating one web service in ror.It’s working fine but now i wanna make a method in webservice in which i want to pass hash as parameter. But i don’t have any idea how to do this. like api\_method :get\_v…

---

## [How to clear browser cache using ruby code?](https://www.ruby-forum.com/t/how-to-clear-browser-cache-using-ruby-code/137992)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-clear-browser-cache-using-ruby-code/137992 "2008-05-19T13:50:34Z")

</div>

Hi, I need some help for clearing browser cache through ruby code how it is possible?

---

## [Using a @@class\_variable into a Module](https://www.ruby-forum.com/t/using-a-class-variable-into-a-module/138006)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/using-a-class-variable-into-a-module/138006 "2008-05-19T13:11:26Z")

</div>

I resend this mail because it was considered SPAM, I hope it doesn’t appear twice. I want to declare a @@class\_variable in class A. Class A includes a Module M and I want some methods in M using the @@class\_variable …

---

## [Rake 0.8.1 command line parameter problem?](https://www.ruby-forum.com/t/rake-0-8-1-command-line-parameter-problem/137943)

<div class="topic-metadata">

**Author:** [@vh1](https://www.ruby-forum.com/u/vh1)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/rake-0-8-1-command-line-parameter-problem/137943 "2008-05-19T12:11:00Z")

</div>

This could be just me and my ignorance, but I can’t seem to figure it out. I’ve been playing with the new command-line parameters feature in Rake 0.8.1 (for which I give much thanks, btw - setting those environment v…

---

## [Captcha in Ruby](https://www.ruby-forum.com/t/captcha-in-ruby/137996)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 11:36am UTC](https://www.ruby-forum.com/t/captcha-in-ruby/137996 "2008-05-19T11:36:56Z")

</div>

Hi, I am trying to implement captcha in ruby by using pliugin called validate\_captcha See link below: It gives me following error: Plugin Not found Actually one folder for plugin gets created in vendor but it is …

---

## [Bignum $B$N%a%=%C%I$+$i$N(B bigzero\_p](https://www.ruby-forum.com/t/bignum-b-n-a-c-i-i-n-b-bigzero-p/137272)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 11:32am UTC](https://www.ruby-forum.com/t/bignum-b-n-a-c-i-i-n-b-bigzero-p/137272 "2008-05-19T11:32:02Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B Ruby e$B$+$ie(B Bignum e$B%$%s%9%?%s%9$N%a%=%C%I$,8F$P$l$?\>l9g$K$Oe(B bigzero\_p e$B$G$9$Y$F$N%S%C%H$r8+$kI,MW$O$"$^$jL5$$$h$&$K;W$$$^$9!#e(B e$B$=$3$G!"3N\<B$Ke(B Fixnum e$B$NHO0O$K$J$$$3$H$r\<(…

---

## [Captcha in Ruby](https://www.ruby-forum.com/t/captcha-in-ruby/137995)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 11:31am UTC](https://www.ruby-forum.com/t/captcha-in-ruby/137995 "2008-05-19T11:31:03Z")

</div>

Hi, I am trying to implement captcha in ruby by using pliugin called validate\_captcha See link below: It gives me following error: Plugin Not found Actually one folder for plugin gets created in vendor but it is …

---

## [Tenjin template engine caching?](https://www.ruby-forum.com/t/tenjin-template-engine-caching/137990)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 10:35am UTC](https://www.ruby-forum.com/t/tenjin-template-engine-caching/137990 "2008-05-19T10:35:32Z")

</div>

Hy! How do a set the cache directory when using the tenjin template engine? As standard setting the cache files are created in the folder where the template files are located. I want to move them into a own cache dir…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/137985)

<div class="topic-metadata">

**Author:** [@prabhas](https://www.ruby-forum.com/u/prabhas)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 9:37am UTC](https://www.ruby-forum.com/t/unsubscribe/137985 "2008-05-19T09:37:07Z")

</div>

unsubscribe

---

## [Mutex question](https://www.ruby-forum.com/t/mutex-question/137972)

<div class="topic-metadata">

**Author:** [@snowdall](https://www.ruby-forum.com/u/snowdall)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 9:03am UTC](https://www.ruby-forum.com/t/mutex-question/137972 "2008-05-19T09:03:17Z")

</div>

Ok … I’m not sure what the story is with this (perhaps I’m just clueless). But, when I do this: class MutexTest def initialize @lock = Mutex.new end end test = MutexTest.new I get this: mutex\_test.rb:3:in initi…

---

## [Bug or feature?](https://www.ruby-forum.com/t/bug-or-feature/137794)

<div class="topic-metadata">

**Author:** [@varezhka](https://www.ruby-forum.com/u/varezhka)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 9:01am UTC](https://www.ruby-forum.com/t/bug-or-feature/137794 "2008-05-19T09:01:21Z")

</div>

Can anybody explain to me what does it mean? code -\> a1 = Array.new(1000000) a2 = Array.new(1000000) t = Time.now 1000000.times { |i| a1\[i\] = i; a2\[i\] = i } print "1. Elapsed time: “, Time.now - t, " seconds\\n” t …

---

## [Autocommit error with AR-JDBC - solved](https://www.ruby-forum.com/t/autocommit-error-with-ar-jdbc-solved/137982)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 8:50am UTC](https://www.ruby-forum.com/t/autocommit-error-with-ar-jdbc-solved/137982 "2008-05-19T08:50:02Z")

</div>

Hi, this is a follow-up to the autocommit/JDBC thread. I thought this post would better fit in a new thread. I finally managed to solve the issue. Please forget my comments about JDBC drivers and jar files, this ha…

---

## [Problem with Active Record and Oracle using oracle\_enhanced adapter](https://www.ruby-forum.com/t/problem-with-active-record-and-oracle-using-oracle-enhanced-adapter/137504)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 7:38am UTC](https://www.ruby-forum.com/t/problem-with-active-record-and-oracle-using-oracle-enhanced-adapter/137504 "2008-05-19T07:38:56Z")

</div>

Hi, I’m having problem connecting activerecord and ruby with oracle\_enhanced adapter. I’m running this script directly in the machine with the DB. This is the example that I’m trying to run: require ‘rubygems’ requ…

---

## [Sub/gsub bug?](https://www.ruby-forum.com/t/sub-gsub-bug/137911)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 5\
**Last updated:** [May 19, 2008, 6:53am UTC](https://www.ruby-forum.com/t/sub-gsub-bug/137911 "2008-05-19T06:53:12Z")

</div>

Is this a bug? irb(main):032:0\> “matt’s test”.sub(/’/, “\\’”) =\> “matts tests test” It’s trying to replace a single quote with an escaped quote. Thanks in advance, Matt

---

## [Defining a variable from the command prompt](https://www.ruby-forum.com/t/defining-a-variable-from-the-command-prompt/137970)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 4:17am UTC](https://www.ruby-forum.com/t/defining-a-variable-from-the-command-prompt/137970 "2008-05-19T04:17:02Z")

</div>

hello, I have a script that sends emails out to my company, and I would like to be able to run it by saying (from the command prompt): sendemail.rb “this is my message” then it would take “this is my message” and use…

---

## [\[ANN\] Rassmalog 11.0.2](https://www.ruby-forum.com/t/ann-rassmalog-11-0-2/137968)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 2:05am UTC](https://www.ruby-forum.com/t/ann-rassmalog-11-0-2/137968 "2008-05-19T02:05:46Z")

</div>

Rassmalog A static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that you can view on your computer or …

---

## [Using Mechanize and hpricot to get property taxes](https://www.ruby-forum.com/t/using-mechanize-and-hpricot-to-get-property-taxes/137957)

<div class="topic-metadata">

**Author:** [@goodcy](https://www.ruby-forum.com/u/goodcy)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 1:36am UTC](https://www.ruby-forum.com/t/using-mechanize-and-hpricot-to-get-property-taxes/137957 "2008-05-19T01:36:43Z")

</div>

after reading about hpricot, mechanize and htree gems, I made an attempt to write a simple code to grab property tax info for homes in Los Angeles. i wrote this fragment which goes to the assessor’s website, finds th…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/137963)

<div class="topic-metadata">

**Author:** [@Javier\_Garcia](https://www.ruby-forum.com/u/Javier_Garcia)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 1:20am UTC](https://www.ruby-forum.com/t/unsubscribe/137963 "2008-05-19T01:20:54Z")

</div>

unsubscribe \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Enviado desde Correo Yahoo! La bandeja de entrada mÃ¡s inteligente.

---

## [Array.sort with bignum fails?](https://www.ruby-forum.com/t/array-sort-with-bignum-fails/137947)

<div class="topic-metadata">

**Author:** [@rafa](https://www.ruby-forum.com/u/rafa)\
**Replies:** 8\
**Last updated:** [May 19, 2008, 12:35am UTC](https://www.ruby-forum.com/t/array-sort-with-bignum-fails/137947 "2008-05-19T00:35:50Z")

</div>

I have a array with big numbers and sort method does not order it correctly. irb(main):017:0\> a = \[ “8412478247689”, “25977”, “88582”, “8410347003107” \] =\> \[“8412478247689”, “25977”, “88582”, “8410347003107”\] irb(ma…

---

## [A Couple of Questions Regarding Ruby Style](https://www.ruby-forum.com/t/a-couple-of-questions-regarding-ruby-style/137771)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 5\
**Last updated:** [May 18, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/a-couple-of-questions-regarding-ruby-style/137771 "2008-05-18T23:46:01Z")

</div>

While working on my rational class I came up with a couple of questions regarding the accepted way to do things. I looked up a couple of Style guides on the net but they seemed to cover only the formatting of code an…

---

## [WET/RubyGems won't work](https://www.ruby-forum.com/t/wet-rubygems-wont-work/137916)

<div class="topic-metadata">

**Author:** [@renian](https://www.ruby-forum.com/u/renian)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/wet-rubygems-wont-work/137916 "2008-05-18T22:50:51Z")

</div>

I’m having problems getting WET (rubygem: wet-winobj) to work. My main problem is that it just can’t seem to find its own files. For example, if I do: gem ‘wet-winobj’ require ‘wet/winobjects/AppWindow.rb’ It then r…

---

## [Dude?](https://www.ruby-forum.com/t/dude/137875)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 38\
**Last updated:** [May 18, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/dude/137875 "2008-05-18T20:47:56Z")

</div>

Dear native speakers I have been quite bothered with the usage of the word “dude” recently. Not that I dislike the word itself but I feel it should be reserved to friends using it in a quite informal context. Am I wr…

---

## [Convert single quoted string to double quoted string](https://www.ruby-forum.com/t/convert-single-quoted-string-to-double-quoted-string/137944)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/convert-single-quoted-string-to-double-quoted-string/137944 "2008-05-18T19:13:28Z")

</div>

Hi, How can I convert a single quoted string to a double quoted string? For example: ‘hi there’ should become “hi there”

---

## [Load bug?](https://www.ruby-forum.com/t/load-bug/137912)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [May 18, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/load-bug/137912 "2008-05-18T18:17:38Z")

</div>

require ‘…/ext/rubyeventmachine’ =\> true require ‘eventmachine’ hmm. Typically this works. On my newest machine, however, it errs as above. LoadError: no such file to load – rubyeventmachine It’s trying to l…

---

## [Class methods in modules](https://www.ruby-forum.com/t/class-methods-in-modules/137841)

<div class="topic-metadata">

**Author:** [@adrian](https://www.ruby-forum.com/u/adrian)\
**Replies:** 4\
**Last updated:** [May 18, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/class-methods-in-modules/137841 "2008-05-18T16:10:08Z")

</div>

Hi This maybe a pretty obvious question - but I decided to ask anyway. I am trying to class a method defined within an included module from a class level method as below. Is there a better way to do this? (Assumming …

---

## [0.instance\_eval { def m() :m end }; p 1.m](https://www.ruby-forum.com/t/0-instance-eval-def-m-m-end-p-1-m/136537)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [May 18, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/0-instance-eval-def-m-m-end-p-1-m/136537 "2008-05-18T14:47:17Z")

</div>

e$B0J2\<$N$h$&$Ke(B 0.m e$B$rDj5A$G$-!"$=$l$re(B 1.m e$B$H$7$F8F$S=P$;$k$N$Oe(B e$BJQ$@$H;W$$$^$9!#e(B % ./ruby -ve ‘0.instance\_eval { def m() :m end }; p 1.m’ ruby 1.9.0 (2008-05-02 revision 16276) \[i686-linux\] :m

---

## [Newbies : howto manage session using mongrel lib](https://www.ruby-forum.com/t/newbies-howto-manage-session-using-mongrel-lib/137924)

<div class="topic-metadata">

**Author:** [@johny006](https://www.ruby-forum.com/u/johny006)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/newbies-howto-manage-session-using-mongrel-lib/137924 "2008-05-18T12:07:07Z")

</div>

Hi im trying to make a small web server using mongrel lib, but I cant figure out how to manage user session ? Thx

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

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