# Ruby

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

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

---

## [Yet another MySQL issue on WinXP](https://www.ruby-forum.com/t/yet-another-mysql-issue-on-winxp/173068)

<div class="topic-metadata">

**Author:** [@mmx](https://www.ruby-forum.com/u/mmx)\
**Replies:** 6\
**Last updated:** [August 1, 2009, 8:18pm UTC](https://www.ruby-forum.com/t/yet-another-mysql-issue-on-winxp/173068 "2009-08-01T20:18:54Z")

</div>

I know that my questions will NOT be answered even thogh are pretty simple for some guru guys like you… I hope is posted in the correct section… Like a classic n00b I followed a video tutorial to install ruby, rails, …

---

## [Irake db:create](https://www.ruby-forum.com/t/irake-db-create/173073)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 0\
**Last updated:** [August 1, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/irake-db-create/173073 "2009-08-01T18:48:07Z")

</div>

\[Sorry if it’s the third time you receive that, I’m having a hard time with the mailing list…\] Hi, I try to run “irake db:create” on my IronRuby on Rails app but it doesn’t create the database. I have changed the con…

---

## [BlueFeather 0.30 released](https://www.ruby-forum.com/t/bluefeather-0-30-released/173071)

<div class="topic-metadata">

**Author:** [@dice](https://www.ruby-forum.com/u/dice)\
**Replies:** 0\
**Last updated:** [August 1, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/bluefeather-0-30-released/173071 "2009-08-01T18:42:47Z")

</div>

Hello, my name is Dice. I’m rubyist in Japan. I have released BlueFeather 0.30. This software is extended Markdown converter based on BlueCloth 1.0.0. These are changes from BlueFeather 0.20. Add header numbering. …

---

## [Ruby 1.9.1-p243 and Ruby 1.9.2-preview1 Released](https://www.ruby-forum.com/t/ruby-1-9-1-p243-and-ruby-1-9-2-preview1-released/172285)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 8\
**Last updated:** [August 1, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p243-and-ruby-1-9-2-preview1-released/172285 "2009-08-01T18:36:21Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, RubyKaigi2009 is being held since yesterday. It is the best time to release new tarball of Ruby 1.9. Ruby 1.9.1-p243 and Ruby 1.9.2-preview1 have just been released. …

---

## [Syntax error from element.rb](https://www.ruby-forum.com/t/syntax-error-from-element-rb/173070)

<div class="topic-metadata">

**Author:** [@Grimble](https://www.ruby-forum.com/u/Grimble)\
**Replies:** 3\
**Last updated:** [August 1, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/syntax-error-from-element-rb/173070 "2009-08-01T18:35:46Z")

</div>

Not a regular Ruby developer. Rebuilding a Ruby environment after moving from Mandriva 2008.0 to 2009.1. ruby 1.8.7 (2008-08-11 patchlevel 72) \[i586-linux\] ruby-svg-1.0.2 I get the following error trace /usr/lib/ru…

---

## [Define === for some classes](https://www.ruby-forum.com/t/define-for-some-classes/173069)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [August 1, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/define-for-some-classes/173069 "2009-08-01T17:45:25Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$BDs0F!'e(B e$B!!$$$/$D$+$N%/%i%9!"Nc$($Pe(B Fixnum e$B$de(B Bignume$B!"e(BSymbol e$B$de(B String e$B$J$I$Ke(B === e$B$rDj5A$7$F$b$$$$$G$7$g$&$+!#e(B e$BM}M3!'e(B e$B!!e(Bcase/when e$B$N:GE,2=…

---

## [Best practice question: logging](https://www.ruby-forum.com/t/best-practice-question-logging/172442)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 5\
**Last updated:** [August 1, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/best-practice-question-logging/172442 "2009-08-01T16:13:32Z")

</div>

I want to sprinkle my code (Ruby, not Rails) liberally with logging calls so that when things go wrong I can see what happened. is Ruby’s Logger class the best practice to use, or is there another that’s cooler? For…

---

## [Ruby-debug for Ruby 1.9 released](https://www.ruby-forum.com/t/ruby-debug-for-ruby-1-9-released/173035)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [August 1, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/ruby-debug-for-ruby-1-9-released/173035 "2009-08-01T15:17:41Z")

</div>

see: mark-moseley (Mark Moseley) · GitHub

---

## [Debugger problem in 1.9?](https://www.ruby-forum.com/t/debugger-problem-in-1-9/167209)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 1\
**Last updated:** [August 1, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/debugger-problem-in-1-9/167209 "2009-08-01T15:07:55Z")

</div>

My first attempt to move to ruby 1.9, and it’s not going well. I need the debugger. I usually use the ruby-debug gem, but that’s inexplicably not working in 1.9 - won’t install. So and now I’m invoking the debugger fr…

---

## [Slow regular-expression engine](https://www.ruby-forum.com/t/slow-regular-expression-engine/173031)

<div class="topic-metadata">

**Author:** [@w\_a\_x\_man](https://www.ruby-forum.com/u/w_a_x_man)\
**Replies:** 6\
**Last updated:** [August 1, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/slow-regular-expression-engine/173031 "2009-08-01T14:45:46Z")

</div>

This Awk code takes less than one hundredth of a second to run: BEGIN { regex = “o?o?o?o?o?o?o?o?o?o?o?o?o?o?” “o?o?o?o?o?o?o?o?o?o?o?o?o?” “ooooooooooooooooooooooooooooo” print “ooooooooooooooooooooooooooooo” …

---

## [How to stop the subclass from overriding a method](https://www.ruby-forum.com/t/how-to-stop-the-subclass-from-overriding-a-method/172982)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 11\
**Last updated:** [August 1, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/how-to-stop-the-subclass-from-overriding-a-method/172982 "2009-08-01T14:40:30Z")

</div>

Hi How would one create a method that is accessible from outside but avoid the subclass from overriding and changing the definition? I could declare the private block but this would will not prov…

---

## [Timeout errors using Net::HTTP on Windows](https://www.ruby-forum.com/t/timeout-errors-using-net-http-on-windows/92267)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 11\
**Last updated:** [August 1, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/timeout-errors-using-net-http-on-windows/92267 "2009-08-01T14:03:54Z")

</div>

Hi all, I’m having a problem here running some file upload code on Windows. I’ve installed Ruby 1.8.6 from the one-click installer on Windows 2000 Server in VMware and on real hardware with Windows XP. The client, whe…

---

## [Debugging messages from a daemon program](https://www.ruby-forum.com/t/debugging-messages-from-a-daemon-program/173047)

<div class="topic-metadata">

**Author:** [@will\_p](https://www.ruby-forum.com/u/will_p)\
**Replies:** 3\
**Last updated:** [August 1, 2009, 10:35am UTC](https://www.ruby-forum.com/t/debugging-messages-from-a-daemon-program/173047 "2009-08-01T10:35:49Z")

</div>

I’m developing a daemon written in Ruby and in the course of development I like to see various status messages printed at crucial points to aid in debugging. Since this is a daemon, I use syslog and create a global …

---

## [\[Bug #1503\] -Ku$B$r$D$1$?;~!"(B/\[#{s}\]/n $B$H(B Regexp.new("\[#{s}\]",nil,"n") $B$G\<B9T7k2L$,0\[$J](https://www.ruby-forum.com/t/bug-1503-ku-b-r-d-1-b-s-n-b-h-b-regexp-new-s-nil-n-b-g-b9t7k2l-0-j/168538)

<div class="topic-metadata">

**Author:** [@sinnichi\_eguchi](https://www.ruby-forum.com/u/sinnichi_eguchi)\
**Replies:** 7\
**Last updated:** [August 1, 2009, 10:08am UTC](https://www.ruby-forum.com/t/bug-1503-ku-b-r-d-1-b-s-n-b-h-b-regexp-new-s-nil-n-b-g-b9t7k2l-0-j/168538 "2009-08-01T10:08:55Z")

</div>

Bug #1503: -Kue$B$r$D$1$?;~!“e(B/\[#{s}\]/n e$B$He(B Regexp.new(”\[#{s}\]",nil,“n”) e$B$G\<B9T7k2L$,0\[$J$ke(B http://redmine.ruby-lang.org/issues/show/1503 e$B5/I\<\<Te(B: sinnichi eguchi e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(…

---

## [\[Bug #1842\](Closed) mspec $B$G(B SIGABRT](https://www.ruby-forum.com/t/bug-1842-closed-mspec-b-g-b-sigabrt/173057)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [August 1, 2009, 3:02am UTC](https://www.ruby-forum.com/t/bug-1842-closed-mspec-b-g-b-sigabrt/173057 "2009-08-01T03:02:12Z")

</div>

e$B%A%1%C%He(B #1842 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B fix in r24332 (MLe$BO"7H$,$&$^$/F0$$$F$$$J$$$h$&$J$N$G\<jF0$Ge(Bclose) http://redmine.ruby-lang.o…

---

## [Looksee 0.0.2 Released](https://www.ruby-forum.com/t/looksee-0-0-2-released/173056)

<div class="topic-metadata">

**Author:** [@cage](https://www.ruby-forum.com/u/cage)\
**Replies:** 0\
**Last updated:** [August 1, 2009, 2:41am UTC](https://www.ruby-forum.com/t/looksee-0-0-2-released/173056 "2009-08-01T02:41:08Z")

</div>

looksee version 0.0.2 has been released! http://github.com/oggy/looksee Looksee lets you examine the method lookup path of objects in ways not possible in plain ruby. Changes: 0.0.2 2009-07-28 Added #grep to filt…

---

## [Modifying Struct members](https://www.ruby-forum.com/t/modifying-struct-members/173032)

<div class="topic-metadata">

**Author:** [@Yossef\_M](https://www.ruby-forum.com/u/Yossef_M)\
**Replies:** 9\
**Last updated:** [August 1, 2009, 2:29am UTC](https://www.ruby-forum.com/t/modifying-struct-members/173032 "2009-08-01T02:29:25Z")

</div>

Is it possible to modify the members of a Struct class once it’s been created, yet retain all other behavior? An example: Thing = Struct.new(:a, :b, :c) do def some\_method end end Is there a way to modify Thing so…

---

## [(newbie question) gem](https://www.ruby-forum.com/t/newbie-question-gem/173049)

<div class="topic-metadata">

**Author:** [@Tena\_S](https://www.ruby-forum.com/u/Tena_S)\
**Replies:** 3\
**Last updated:** [August 1, 2009, 1:22am UTC](https://www.ruby-forum.com/t/newbie-question-gem/173049 "2009-08-01T01:22:07Z")

</div>

Hi, I am a Ruby newbie. The version I am using is: ruby 1.8.7 (2008-08-11 patchlevel 72) \[x86\_64-linux\] The following commands work (or I haven’t found anything disagreeable so far): irb ruby ri But gem doesn’t …

---

## [\`+': Range can't be coerced into Fixnum (TypeError)](https://www.ruby-forum.com/t/range-cant-be-coerced-into-fixnum-typeerror/173005)

<div class="topic-metadata">

**Author:** [@prateekagarwal](https://www.ruby-forum.com/u/prateekagarwal)\
**Replies:** 4\
**Last updated:** [July 31, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/range-cant-be-coerced-into-fixnum-typeerror/173005 "2009-07-31T22:08:57Z")

</div>

I am getting the follower \`+’: Range can’t be coerced into Fixnum (TypeError) How to get rid of this?

---

## [Fast\_xs 0.7.1 Released](https://www.ruby-forum.com/t/fast-xs-0-7-1-released/173004)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 2\
**Last updated:** [July 31, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/fast-xs-0-7-1-released/173004 "2009-07-31T21:12:11Z")

</div>

fast\_xs version 0.7.1 has been released! http://fast-xs.rubyforge.org/ fast\_xs provides C extensions for escaping text. The original String#fast\_xs method is based on the xchar code by Sam Ruby: http://intertwingl…

---

## [Interesting behaviour](https://www.ruby-forum.com/t/interesting-behaviour/173021)

<div class="topic-metadata">

**Author:** [@Deepak\_G](https://www.ruby-forum.com/u/Deepak_G)\
**Replies:** 3\
**Last updated:** [July 31, 2009, 2:59pm UTC](https://www.ruby-forum.com/t/interesting-behaviour/173021 "2009-07-31T14:59:02Z")

</div>

When I does following thing on irb console def foo 1 end foo ===\>o/p 1 foo.foo ===\>o/p 1 foo.foo.foo ===\>o/p 1 foo.foo.foo.foo.foo.foo.foo.foo.foo.foo.foo.foo.foo.foo.foo…foo ===\>o/p 1 I got above o/p Bu…

---

## [How many thread?!](https://www.ruby-forum.com/t/how-many-thread/173014)

<div class="topic-metadata">

**Author:** [@al\_S](https://www.ruby-forum.com/u/al_S)\
**Replies:** 1\
**Last updated:** [July 31, 2009, 2:32pm UTC](https://www.ruby-forum.com/t/how-many-thread/173014 "2009-07-31T14:32:21Z")

</div>

Hi list, I’ve a question about threads counting… :slight\_smile: #!/usr/bin/ruby require ‘timeout’ timeout = 2 server = %w(127.0.0.1 127.0.0.2 127.0.0.3 127.0.0.4) def check (host,timeout) puts “checking… #{host}…

---

## [1.9 Installer](https://www.ruby-forum.com/t/1-9-installer/172989)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 9\
**Last updated:** [July 31, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/1-9-installer/172989 "2009-07-31T14:03:05Z")

</div>

Why they don’t release a ruby 1.8.7 or ruby 1.9 installer for windows? regards

---

## [Heist 0.3.0 Released](https://www.ruby-forum.com/t/heist-0-3-0-released/173017)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [July 31, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/heist-0-3-0-released/173017 "2009-07-31T12:36:30Z")

</div>

heist version 0.3.0 has been released! http://github.com/jcoglan/heist Heist is a Scheme interpreter written in Ruby. It provides an executable for running Scheme code directly, and also allows the interpreter to be …

---

## [How to include a string into a regex comparison?](https://www.ruby-forum.com/t/how-to-include-a-string-into-a-regex-comparison/173016)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [July 31, 2009, 11:50am UTC](https://www.ruby-forum.com/t/how-to-include-a-string-into-a-regex-comparison/173016 "2009-07-31T11:50:50Z")

</div>

Hi, I don’t get solving the following issue (sure it’s easy but I cannot do it): valid\_content\_type = “application/auth-policy+xml” received\_content\_type = “application/auth-policy+xml;charset=ISO-8859-1” receiv…

---

## [Make IR run as an external tool in VS](https://www.ruby-forum.com/t/make-ir-run-as-an-external-tool-in-vs/172959)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 4\
**Last updated:** [July 31, 2009, 11:30am UTC](https://www.ruby-forum.com/t/make-ir-run-as-an-external-tool-in-vs/172959 "2009-07-31T11:30:49Z")

</div>

hi, was wondering if anyone could help. i’d like to be able to edit a ruby file in visual studio and just fire a key seqeunce to run the file. similar to how rob conery set up the machine specifications runner in hi…

---

## [Failed to compile ruby 1.9.1-p129 with MinGW 4.4.0](https://www.ruby-forum.com/t/failed-to-compile-ruby-1-9-1-p129-with-mingw-4-4-0/173015)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 0\
**Last updated:** [July 31, 2009, 11:24am UTC](https://www.ruby-forum.com/t/failed-to-compile-ruby-1-9-1-p129-with-mingw-4-4-0/173015 "2009-07-31T11:24:38Z")

</div>

Here’s my configure command: ./configure --prefix=/c/ruby --disable-pthread --enable-shared –disable-install-doc optflags=‘-s -O4’ debugflags=‘’ && make && make test && make install And here’s a few last lines of the…

---

## [For GIS applications](https://www.ruby-forum.com/t/for-gis-applications/173012)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [July 31, 2009, 10:25am UTC](https://www.ruby-forum.com/t/for-gis-applications/173012 "2009-07-31T10:25:01Z")

</div>

Hi Could anybody please suggest which is the most widely used gem for GIS applications? I came across http://ym4r.rubyforge.org/ym4r-doc/ But seen it has not been updated since 2006 Thanks in advance Sijo

---

## [Deployment of non rails ruby apps to tomcat using warbler](https://www.ruby-forum.com/t/deployment-of-non-rails-ruby-apps-to-tomcat-using-warbler/173011)

<div class="topic-metadata">

**Author:** [@jackycheung](https://www.ruby-forum.com/u/jackycheung)\
**Replies:** 0\
**Last updated:** [July 31, 2009, 9:49am UTC](https://www.ruby-forum.com/t/deployment-of-non-rails-ruby-apps-to-tomcat-using-warbler/173011 "2009-07-31T09:49:18Z")

</div>

Hi I am a newbie to ruby. Tried using warbler to package a ruby app to be deployed onto tomcat 6.0 Have checked out http://kenai.com/projects/warbler/pages/Home http://stufftohelpyouout.blogspot.com/2009/06/how-to-g…

---

## [1.9 inverse of String#ord](https://www.ruby-forum.com/t/1-9-inverse-of-string-ord/172980)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 2\
**Last updated:** [July 30, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/1-9-inverse-of-string-ord/172980 "2009-07-30T20:46:41Z")

</div>

Is there a simple inverse of String#ord in ruby 1.9? This is the best I can come up with: cp = “Å‚”.ord =\> 322 \[cp\].pack(“N”).force\_encoding(“UTF-32BE”).encode!(“UTF-8”) =\> “Å‚” Note that Integer#chr only wor…

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

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