# Ruby

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

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

---

## [Handling week numbers according to US Standard and ISO 8601](https://www.ruby-forum.com/t/handling-week-numbers-according-to-us-standard-and-iso-8601/187762)

<div class="topic-metadata">

**Author:** [@Kasper\_T](https://www.ruby-forum.com/u/Kasper_T)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 5:54pm UTC](https://www.ruby-forum.com/t/handling-week-numbers-according-to-us-standard-and-iso-8601/187762 "2010-04-29T17:54:11Z")

</div>

Hi ruby-lang list, Thank you all for reading this mail. I am struggling to handle week numbers properly on a web platform made in Ruby that is used across several countries. I have googled this for days trying to fi…

---

## [Plan to Support Levels for Ruby 1.9.2](https://www.ruby-forum.com/t/plan-to-support-levels-for-ruby-1-9-2/187809)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/plan-to-support-levels-for-ruby-1-9-2/187809 "2010-04-29T15:39:31Z")

</div>

HI, Before release of Ruby 1.9.2, I would like to define a new guideline of the support levels for Ruby 1.9.2. == Definition of the support levels The Ruby 1.9 series have four support levels. (1) Supported: We ens…

---

## [\[Bug #2388\](Rejected) test-all $BCf$K(B popen $B$G(B ruby.exe $B$,Mn$A$k(B](https://www.ruby-forum.com/t/bug-2388-rejected-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/187803)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/bug-2388-rejected-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/187803 "2010-04-29T13:10:49Z")

</div>

e$B%A%1%C%He(B #2388 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B%9%F!\<%?%9e(B Feedbacke$B$+$ie(BRejectede$B$KJQ99e(B e$B$9$\_$^$;$s$,0lC6e(B Reject e$B$5$;$F$$$?$@$-$^$9!#e(B e$B$b$7:F8=$G$-$?J}$,$$$i$C$7$c$C$?$i$=$N$H…

---

## [Posting to Tumblr with Ruby](https://www.ruby-forum.com/t/posting-to-tumblr-with-ruby/187540)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 10:37am UTC](https://www.ruby-forum.com/t/posting-to-tumblr-with-ruby/187540 "2010-04-29T10:37:47Z")

</div>

I’m a Ruby/programming noob and one piece of advice I keep seeing pop up from Ruby “gurus” is that you should play with real code and build real things. Seeing as I would one day like to build a Tumblr client with Mac…

---

## [\[Bug:trunk\] backtrace of SystemStackError disappeared](https://www.ruby-forum.com/t/bug-trunk-backtrace-of-systemstackerror-disappeared/185890)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [April 29, 2010, 9:48am UTC](https://www.ruby-forum.com/t/bug-trunk-backtrace-of-systemstackerror-disappeared/185890 "2010-04-29T09:48:16Z")

</div>

e$B1sF#$G$9!#e(B e$B$J$\<$+e(B SystemStackError e$B$N;~$N%P%C%/%H%l!\<%9$,=P$J$/$J$C$F$$$k$h$&$G$9!#e(B $ ./ruby -ve ‘def foo; bar; end; def bar; foo; end; def baz; foo; end; baz’ ruby 1.9.2dev (2010-03-26 trunk 27063…

---

## [\[ANN\] Dfect 2.2.0](https://www.ruby-forum.com/t/ann-dfect-2-2-0/187782)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 6:58am UTC](https://www.ruby-forum.com/t/ann-dfect-2-2-0/187782 "2010-04-29T06:58:45Z")

</div>

Dfect Assertion testing library for Ruby http://snk.tuxfamily.org/lib/dfect/ Dfect is an assertion testing library for Ruby that emphasizes a simple assertion vocabu…

---

## [\[ANN\] Rumai 3.2.3](https://www.ruby-forum.com/t/ann-rumai-3-2-3/187779)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 6:11am UTC](https://www.ruby-forum.com/t/ann-rumai-3-2-3/187779 "2010-04-29T06:11:50Z")

</div>

Rumai Ruby interface to the wmii window manager http://snk.tuxfamily.org/lib/rumai/ Rumai is a pure \[1\]Ruby interface to the \[2\]wmii window manager. Its name is a portm…

---

## [Kcar - bytestream to Rack response converter](https://www.ruby-forum.com/t/kcar-bytestream-to-rack-response-converter/187768)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 12:42am UTC](https://www.ruby-forum.com/t/kcar-bytestream-to-rack-response-converter/187768 "2010-04-29T00:42:10Z")

</div>

kcar features an HTTP parser that will convert a bytestream into a 3-element array suitable for use as a Rack response. It is IO interface agnostic, so it may be used with HTTP streams over Unix domain sockets, regul…

---

## [Proc that takes a block](https://www.ruby-forum.com/t/proc-that-takes-a-block/187750)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 8:52pm UTC](https://www.ruby-forum.com/t/proc-that-takes-a-block/187750 "2010-04-28T20:52:06Z")

</div>

this works in native Ruby def foo yield Time.now end h = proc { |&blk| foo &blk } h.call { |t| puts t } In JRuby 1.4.0 and 1.5.0.RC1, I get unexpected tAMPER when defining ‘h’ TIA, Mike To unsubscribe from th…

---

## [Overload the normal behavior of an object/instance in string](https://www.ruby-forum.com/t/overload-the-normal-behavior-of-an-object-instance-in-string/187745)

<div class="topic-metadata">

**Author:** [@walle](https://www.ruby-forum.com/u/walle)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/overload-the-normal-behavior-of-an-object-instance-in-string/187745 "2010-04-28T19:31:09Z")

</div>

Long story short. I’m trying to overload the normal behavior of an object/instance in a string. Instead of replying “Test:0x101121db0” I would like it too return a specific string, or something similar. I have tried t…

---

## [Problem With Formatting](https://www.ruby-forum.com/t/problem-with-formatting/187716)

<div class="topic-metadata">

**Author:** [@souravhaldar](https://www.ruby-forum.com/u/souravhaldar)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/problem-with-formatting/187716 "2010-04-28T17:15:25Z")

</div>

The Below Code is not appropiate if some one explain Day = 60 \* 60 \* 24 Fromat = “http://www.google.com” # or any Image Files t = Time.local(2005, 2, 5) MWF = \[1,3,5\] until t == Time.local(2007, 7, 9) if MWF.includ…

---

## [Cannot freeze my gems](https://www.ruby-forum.com/t/cannot-freeze-my-gems/187738)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/cannot-freeze-my-gems/187738 "2010-04-28T17:01:23Z")

</div>

i cannot freeze my rails. i am running rails E:\\TradingTools\\torontotrader\>rails --version Rails 1.2.5 E:\\TradingTools\\torontotrader\>gem --version 1.3.6 E:\\TradingTools\\torontotrader\>ruby --version ruby 1.8.6 (2008…

---

## [Visitor pattern](https://www.ruby-forum.com/t/visitor-pattern/187680)

<div class="topic-metadata">

**Author:** [@lykos](https://www.ruby-forum.com/u/lykos)\
**Replies:** 5\
**Last updated:** [April 28, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/visitor-pattern/187680 "2010-04-28T17:00:11Z")

</div>

Hi, I heard many times that the visitor pattern is useless in Ruby and similar things. However, I’m just writing an interpreter for a small imperative language. I finished the parser and am just beginning to think ab…

---

## [\[ANN\] Trinidad 0.9.0 released, allowing hot deploys ala Passenger](https://www.ruby-forum.com/t/ann-trinidad-0-9-0-released-allowing-hot-deploys-ala-passenger/187697)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 5\
**Last updated:** [April 28, 2010, 4:59pm UTC](https://www.ruby-forum.com/t/ann-trinidad-0-9-0-released-allowing-hot-deploys-ala-passenger/187697 "2010-04-28T16:59:02Z")

</div>

Hi, seems today is the release day for everybody, so why not Trinidad? :slight\_smile: I release a new version of Trinidad with some improvements and new features. One of the most important is that I updated the versi…

---

## [Hidden object$B$C$F(B?](https://www.ruby-forum.com/t/hidden-object-b-c-f-b/179159)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [April 28, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/hidden-object-b-c-f-b/179159 "2010-04-28T16:30:21Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. e$B:G?7HG$Ne(Brubye$B$G0J2\<$N%a%C%;!\<%8$,=P$k$h$&$K$J$C$F$7$^$C$?$N$G$9$,e(B, e$B$3$le(B e$B$O$I$N$h$&$J0UL#$G$7$g$&$+e(B? % ruby -v ruby 1.9.2dev (2009-11-19 trunk 25848) \[i686-linux\] …

---

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

<div class="topic-metadata">

**Author:** [@olicat](https://www.ruby-forum.com/u/olicat)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/mutex/187731 "2010-04-28T16:06:39Z")

</div>

Hi all, I’ve been reading the RailsDispatch blog, and have been looking at this code. class BlacklistConstraint def initialize @ips = Blacklist.retrieve\_ips @mutex = Mutex.new @last\_update = Time.now end def mat…

---

## [\[Bug #1952\] cannot stop with Ctrl+C](https://www.ruby-forum.com/t/bug-1952-cannot-stop-with-ctrl-c/173950)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 13\
**Last updated:** [April 28, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/bug-1952-cannot-stop-with-ctrl-c/173950 "2010-04-28T15:59:54Z")

</div>

Bug #1952: cannot stop with Ctrl+C http://redmine.ruby-lang.org/issues/show/1952 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.x ruby -v: ruby 1.…

---

## [Uninitialized constant ActiveRecord (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-activerecord-nameerror/187726)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 11:59am UTC](https://www.ruby-forum.com/t/uninitialized-constant-activerecord-nameerror/187726 "2010-04-28T11:59:47Z")

</div>

Hi All, I am running a script from console line with command as ruby script/abc.rb. But i am getting error “uninitialized constant ActiveRecord (NameError)”. Why so … ? My first line of the script is class- CronJobs…

---

## [Adding days to date](https://www.ruby-forum.com/t/adding-days-to-date/187727)

<div class="topic-metadata">

**Author:** [@nfwt](https://www.ruby-forum.com/u/nfwt)\
**Replies:** 4\
**Last updated:** [April 28, 2010, 11:33am UTC](https://www.ruby-forum.com/t/adding-days-to-date/187727 "2010-04-28T11:33:48Z")

</div>

Hello, Does anyone know what the problem with the following code ??? Date.today.to\_s =\> “2010-04-28” (Date.today + 1.day).to\_s =\> “2246-11-17” (Date.today + 2.days).to\_s =\> “2483-06-07” Thanks in advance

---

## [A problem with work](https://www.ruby-forum.com/t/a-problem-with-work/187455)

<div class="topic-metadata">

**Author:** [@rachel](https://www.ruby-forum.com/u/rachel)\
**Replies:** 7\
**Last updated:** [April 28, 2010, 10:26am UTC](https://www.ruby-forum.com/t/a-problem-with-work/187455 "2010-04-28T10:26:05Z")

</div>

Hi guys! I found this site, and hopefully there is someone who can help. I’m a newbie, a code illiterate. But I’m resorceful enough to figure out 555, without knowing what on earth that was about! lol Anyhow, I do of…

---

## [Date.parse(nil) raises TypeError](https://www.ruby-forum.com/t/date-parse-nil-raises-typeerror/187707)

<div class="topic-metadata">

**Author:** [@Victor\_Kryukov](https://www.ruby-forum.com/u/Victor_Kryukov)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 9:42am UTC](https://www.ruby-forum.com/t/date-parse-nil-raises-typeerror/187707 "2010-04-28T09:42:17Z")

</div>

Hello, in Ruby 1.9 (ruby 1.9.1p378 (2010-01-10 revision 26273) \[i386- mingw32\]) the following code require ‘date’ Date.parse(nil) raises TypeError: can’t dup NilClass. I think it should be “ArgumentError: invalid d…

---

## [Custom rbconfig.rb](https://www.ruby-forum.com/t/custom-rbconfig-rb/187688)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 9:03am UTC](https://www.ruby-forum.com/t/custom-rbconfig-rb/187688 "2010-04-28T09:03:33Z")

</div>

On my system some settings for the compiler (Solaris) are wrong and i want to modify these. But since i dont have root access, i cannot modify that file directly. Is it possible to put a copy of that file like in .gem…

---

## [Issue in getting a pop up](https://www.ruby-forum.com/t/issue-in-getting-a-pop-up/187644)

<div class="topic-metadata">

**Author:** [@drk](https://www.ruby-forum.com/u/drk)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 7:45am UTC](https://www.ruby-forum.com/t/issue-in-getting-a-pop-up/187644 "2010-04-28T07:45:12Z")

</div>

I haave an employee data in an oracle table.It contains the columns employee\_name,Employee\_surname,XML\_info\_of\_emloyee. I am pulling the data to show in a windows report. And i want to show employee name and surname o…

---

## [Ncurses-ruby install failing on OS X Snow Leopard](https://www.ruby-forum.com/t/ncurses-ruby-install-failing-on-os-x-snow-leopard/187506)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 9\
**Last updated:** [April 28, 2010, 7:02am UTC](https://www.ruby-forum.com/t/ncurses-ruby-install-failing-on-os-x-snow-leopard/187506 "2010-04-28T07:02:16Z")

</div>

ncurses-ruby 1.2.4 is failing on Snow Leopard 10.6.3 (ruby 1.9.1). I am downloading the tar file from berlios.de and doing the extconf+make routine. The problem has been documented elsewhere but no fix/solution. ncur…

---

## [\[ANN\] Inochi 3.0.0](https://www.ruby-forum.com/t/ann-inochi-3-0-0/187715)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 6:37am UTC](https://www.ruby-forum.com/t/ann-inochi-3-0-0/187715 "2010-04-28T06:37:01Z")

</div>

Inochi Gives life to Ruby projects http://snk.tuxfamily.org/lib/inochi/ Inochi is an infrastructure for Ruby projects that helps you test, document, package, publi…

---

## [When to use a db?](https://www.ruby-forum.com/t/when-to-use-a-db/187324)

<div class="topic-metadata">

**Author:** [@moyapilot](https://www.ruby-forum.com/u/moyapilot)\
**Replies:** 8\
**Last updated:** [April 28, 2010, 6:19am UTC](https://www.ruby-forum.com/t/when-to-use-a-db/187324 "2010-04-28T06:19:46Z")

</div>

Dumb question but I am reading in a constant stream of lines via fastercsv and pushing it into an array. Each line is either a new object or will update some information in an existing object. 98% of all lines will …

---

## [\* Tight Teens Getting Plonked](https://www.ruby-forum.com/t/tight-teens-getting-plonked/187706)

<div class="topic-metadata">

**Author:** [@Custhelp\_Custhelp](https://www.ruby-forum.com/u/Custhelp_Custhelp)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 3:35am UTC](https://www.ruby-forum.com/t/tight-teens-getting-plonked/187706 "2010-04-28T03:35:54Z")

</div>

Tight Teens Getting Plonked Hi-Res photos, videos , clips, and articles free downloads! http://www.liquid-cash.net

---

## [Json 1.4.2 - Fixes a memory leak in versions 1.4.0 and 1.41, please upgrade](https://www.ruby-forum.com/t/json-1-4-2-fixes-a-memory-leak-in-versions-1-4-0-and-1-41-please-upgrade/187701)

<div class="topic-metadata">

**Author:** [@Florian\_F](https://www.ruby-forum.com/u/Florian_F)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 1:34am UTC](https://www.ruby-forum.com/t/json-1-4-2-fixes-a-memory-leak-in-versions-1-4-0-and-1-41-please-upgrade/187701 "2010-04-28T01:34:42Z")

</div>

There was a memory leak in the two previous versions that is triggered by calling the JSON#generate method and friends. If you use the affected versions, please upgrade to the newest version, 1.4.2. The new version ca…

---

## [\[ANN\] jruby-openssl 0.7 released](https://www.ruby-forum.com/t/ann-jruby-openssl-0-7-released/187693)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/ann-jruby-openssl-0-7-released/187693 "2010-04-27T22:28:59Z")

</div>

Here’s announcing jruby-openssl 0.7. This release should be usable on AppEngine, and contains many compatibility fixes, see below. Thanks so much to NaHi (NAKAMURA Hiroshi) for his impressive work on another jruby-ope…

---

## [Problem with require 'gemname'](https://www.ruby-forum.com/t/problem-with-require-gemname/187683)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 5\
**Last updated:** [April 27, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/problem-with-require-gemname/187683 "2010-04-27T21:07:41Z")

</div>

Howdy folks, Requiring gems doesn’t work unless I use gem ‘gemname’ before require ‘gemname’. Any idea why? Here is an example: gem list \*\*\* LOCAL GEMS \*\*\* abstract (1.0.0) . . . nokogiri (1.4.1) . . . irb i…

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

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