# Ruby

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

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

---

## [Regexp$B$N;EMM$K$D$$$F(B](https://www.ruby-forum.com/t/regexp-b-n-emm-k-d-f-b/188313)

<div class="topic-metadata">

**Author:** [@Masaya\_TARUI](https://www.ruby-forum.com/u/Masaya_TARUI)\
**Replies:** 5\
**Last updated:** [May 11, 2010, 5:29am UTC](https://www.ruby-forum.com/t/regexp-b-n-emm-k-d-f-b/188313 "2010-05-11T05:29:35Z")

</div>

e$BC.2H$G$9!#e(B \[ruby-dev:41246\] e$B$+$i$G!“e(BRegexpe$B$N;EMM$K$D$$$F$G$9$,!”$I$3$r$\_$l$P$$$$$N$+J,$+$i$:!"e(B e$B0J2\<$K$D$$$F;EMM$J$N$+%P%0$J$N$+H=CG$,IU$-$^$;$s!#e(B e$B$=$l$\>$l$I$&$J$s$G$7$g$&$+!)e(B p /(?a)(b)…

---

## [\[Bug #3272\] BigDecimal#\*\* $B$,\<BMQE\*$JB.EY$G$O$J$$(B](https://www.ruby-forum.com/t/bug-3272-bigdecimal-b-bmqe-jb-ey-g-o-j-b/188384)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 4:55am UTC](https://www.ruby-forum.com/t/bug-3272-bigdecimal-b-bmqe-jb-ey-g-o-j-b/188384 "2010-05-11T04:55:37Z")

</div>

Bug #3272: BigDecimal#\*\* e$B$,\<BMQE\*$JB.EY$G$O$J$$e(B http://redmine.ruby-lang.org/issues/show/3272 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Kenta M., e$B%+%F%4%je(B: ext,…

---

## [\[Bug #3271\] BigMath.power $B$,CY$$(B](https://www.ruby-forum.com/t/bug-3271-bigmath-power-b-cy-b/188382)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 4:53am UTC](https://www.ruby-forum.com/t/bug-3271-bigmath-power-b-cy-b/188382 "2010-05-11T04:53:52Z")

</div>

Bug #3271: BigMath.power e$B$,CY$$e(B http://redmine.ruby-lang.org/issues/show/3271 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Kenta M., e$B%+%F%4%je(B: lib, Target version: 1.9…

---

## [\[Feature #3269\] BigMath.tan $B$,$J$$(B](https://www.ruby-forum.com/t/feature-3269-bigmath-tan-b-j-b/188379)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 4:52am UTC](https://www.ruby-forum.com/t/feature-3269-bigmath-tan-b-j-b/188379 "2010-05-11T04:52:42Z")

</div>

Feature #3269: BigMath.tan e$B$,$J$$e(B http://redmine.ruby-lang.org/issues/show/3269 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Kenta M., e$B%+%F%4%je(B: lib, Target version: 1…

---

## [\[Bug #3270\] BigMath.exp $B$,@dBPCM$,Bg$-$J0z?t$GCY$$(B](https://www.ruby-forum.com/t/bug-3270-bigmath-exp-b-dbpcm-bg-j0z-t-gcy-b/188380)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 4:52am UTC](https://www.ruby-forum.com/t/bug-3270-bigmath-exp-b-dbpcm-bg-j0z-t-gcy-b/188380 "2010-05-11T04:52:42Z")

</div>

Bug #3270: BigMath.exp e$B$,@dBPCM$,Bg$-$J0z?t$GCY$$e(B http://redmine.ruby-lang.org/issues/show/3270 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Kenta M., Target version: 1.9.x …

---

## [Wxruby2 - Error Message](https://www.ruby-forum.com/t/wxruby2-error-message/188305)

<div class="topic-metadata">

**Author:** [@iroupa](https://www.ruby-forum.com/u/iroupa)\
**Replies:** 4\
**Last updated:** [May 11, 2010, 2:00am UTC](https://www.ruby-forum.com/t/wxruby2-error-message/188305 "2010-05-11T02:00:55Z")

</div>

Hi all I don’t understand what’s going wrong when I try to use the wxruby2… I followed the http://wxruby.rubyforge.org/wiki/wiki.pl instructions but I always get this error when I run the following code: require “wxr…

---

## [Rails3 M17N](https://www.ruby-forum.com/t/rails3-m17n/187839)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 28\
**Last updated:** [May 11, 2010, 1:07am UTC](https://www.ruby-forum.com/t/rails3-m17n/187839 "2010-05-11T01:07:17Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B Yehuda Katze$B$+$ie(BRails2e$B$re(B1.9e$B$GF0$+$7$?\>l9g!"%(%s%3!\<%G%#%s%04Xe(B e$B78$NNc30$,BgNL$KH/@8$9$k$N$G!“0lHL%f!\<%6$Ne(BRail3e$B$X$N0\\9T$K\>ce(B e$B32$K$J$k2DG=@-$,$”$k$HO"Mm$r…

---

## [Ruby gems in lib - spare tire principle](https://www.ruby-forum.com/t/ruby-gems-in-lib-spare-tire-principle/188338)

<div class="topic-metadata">

**Author:** [@Fregas](https://www.ruby-forum.com/u/Fregas)\
**Replies:** 5\
**Last updated:** [May 11, 2010, 12:35am UTC](https://www.ruby-forum.com/t/ruby-gems-in-lib-spare-tire-principle/188338 "2010-05-11T00:35:05Z")

</div>

Hi, I’m working on a console ruby application (not rails!) I will be installing this application on several machines. I was wondering if there is a way i can build it so i dont have to install the gems i’m using for …

---

## [Solar System (#227)](https://www.ruby-forum.com/t/solar-system-227/181699)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 4\
**Last updated:** [May 10, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/solar-system-227/181699 "2010-05-10T22:30:59Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Win32 ruby1.9 regexp and cyrillic string](https://www.ruby-forum.com/t/win32-ruby1-9-regexp-and-cyrillic-string/187668)

<div class="topic-metadata">

**Author:** [@karevn](https://www.ruby-forum.com/u/karevn)\
**Replies:** 6\
**Last updated:** [May 10, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/win32-ruby1-9-regexp-and-cyrillic-string/187668 "2010-05-10T20:33:28Z")

</div>

\#coding: utf-8 str2 = “asdfÐœÐ¸ÐºÐ¸Ð¼Ð°ÑƒÑ” p str2.encoding #Encoding:UTF-8 p str2.scan /\\p{Cyrillic}/ #found all cyrillic charachters str2.gsub!(/\\w/u,‘’) #removes only latin characters puts str2 The question is …

---

## [Fwd: \[ANN\] Eastside Hackers Meetup (5/15/2010)](https://www.ruby-forum.com/t/fwd-ann-eastside-hackers-meetup-5-15-2010/188358)

<div class="topic-metadata">

**Author:** [@Zac\_Brown](https://www.ruby-forum.com/u/Zac_Brown)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 8:28pm UTC](https://www.ruby-forum.com/t/fwd-ann-eastside-hackers-meetup-5-15-2010/188358 "2010-05-10T20:28:38Z")

</div>

Hi all, We had a pretty successful meetup last week (5/8/2010). I was quite pleased to see a fair number of people showed (my last count was something like 10 or 11). Due to popular demand and other stuff like that, …

---

## [Regexp match error on windows and unicode error on linux](https://www.ruby-forum.com/t/regexp-match-error-on-windows-and-unicode-error-on-linux/188349)

<div class="topic-metadata">

**Author:** [@dominic](https://www.ruby-forum.com/u/dominic)\
**Replies:** 2\
**Last updated:** [May 10, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/regexp-match-error-on-windows-and-unicode-error-on-linux/188349 "2010-05-10T20:04:55Z")

</div>

Hi, I have a small problem with Regexp to match accented latin letters. I need this to match french words and \[\\wÃ©Ã¨Ã Ã‰Ã€…\] is the only way I found that works for me but it’s not great. I made a test file encoded i…

---

## [Issue with regular expressions and locales](https://www.ruby-forum.com/t/issue-with-regular-expressions-and-locales/188336)

<div class="topic-metadata">

**Author:** [@emili](https://www.ruby-forum.com/u/emili)\
**Replies:** 2\
**Last updated:** [May 10, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/issue-with-regular-expressions-and-locales/188336 "2010-05-10T15:58:25Z")

</div>

Hi there! I’ve experienced a courious issue with regular expressions: my locale is es\_ES.utf-8 and I use gsub with regular expresisons to transform an article title in a permalink like this permalink.gsub!(/\\W/, ‘-…

---

## [In Ruby, how does coerce() actually work?](https://www.ruby-forum.com/t/in-ruby-how-does-coerce-actually-work/188307)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [May 10, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/in-ruby-how-does-coerce-actually-work/188307 "2010-05-10T15:14:13Z")

</div>

It is said that when we have a class Point and knows how to perform point \* 3 like the following: class Point def initialize(x,y) @x, @y = x, y end def \*(c) Point.new(@x \* c, @y \* c) end end point =…

---

## [How to implement 20 - point and point - 20 using coerce()?](https://www.ruby-forum.com/t/how-to-implement-20-point-and-point-20-using-coerce/188322)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [May 10, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-implement-20-point-and-point-20-using-coerce/188322 "2010-05-10T13:50:27Z")

</div>

In Ruby, the operation of point - 20 20 - point are to be implemented. But the following code: class Point attr\_accessor :x, :y def initialize(x,y) @x, @y = x, y end def -(q) if (q.is\_a? Fixnum) …

---

## [Multiline gets?](https://www.ruby-forum.com/t/multiline-gets/188316)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 2\
**Last updated:** [May 10, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/multiline-gets/188316 "2010-05-10T13:49:17Z")

</div>

if a use : sml = “” while s = STDIN.gets sml += s end i get two times what’s on STDIN, why ? may be something to flush, generally it’s stdout hum ?

---

## [Files](https://www.ruby-forum.com/t/files/188304)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 8\
**Last updated:** [May 10, 2010, 11:48am UTC](https://www.ruby-forum.com/t/files/188304 "2010-05-10T11:48:43Z")

</div>

Hi folks, New to Ruby, with little previous coding experience. Anyway, trying out a few examples from a tut: junkfile = File.new(“junk”, “r+”) junkfile.write (‘junk line 1’) junkfile.write (‘junk line 2’) junkfile.…

---

## [Sqlite3-ruby 1.3.0.beta.1 Released](https://www.ruby-forum.com/t/sqlite3-ruby-1-3-0-beta-1-released/188318)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 6:57am UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-3-0-beta-1-released/188318 "2010-05-10T06:57:13Z")

</div>

sqlite3-ruby version 1.3.0.beta.1 has been released! Special thanks goes to Aaron P. for the improved Ruby 1.9 support in this release. http://github.com/luislavena/sqlite3-ruby http://rubyforge.org/projects/sqlite-r…

---

## [Failed open the sqlite3 db use sequel under padrino!](https://www.ruby-forum.com/t/failed-open-the-sqlite3-db-use-sequel-under-padrino/188311)

<div class="topic-metadata">

**Author:** [@limux](https://www.ruby-forum.com/u/limux)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 4:50am UTC](https://www.ruby-forum.com/t/failed-open-the-sqlite3-db-use-sequel-under-padrino/188311 "2010-05-10T04:50:13Z")

</div>

I use Padrino to develope a sample blog followed the tutorial in the offical web. First I use Sequel and sqlite3, all the rake task of migrates failed for the message of ‘can not open the database’. I do’t know where …

---

## [Strings iteration](https://www.ruby-forum.com/t/strings-iteration/188251)

<div class="topic-metadata">

**Author:** [@Viorel](https://www.ruby-forum.com/u/Viorel)\
**Replies:** 13\
**Last updated:** [May 9, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/strings-iteration/188251 "2010-05-09T22:35:38Z")

</div>

I have some names like aaxxbbyy where xx is ‘01’…‘10’ and yy is also ‘01’…‘10’. I think there is a simple, rubyst way of iterating through them, and I ask for your help in finding it. Thank you in advance!

---

## [\[Bug #3141\] yield in an eigenclass definition](https://www.ruby-forum.com/t/bug-3141-yield-in-an-eigenclass-definition/186863)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 2\
**Last updated:** [May 9, 2010, 8:28pm UTC](https://www.ruby-forum.com/t/bug-3141-yield-in-an-eigenclass-definition/186863 "2010-05-09T20:28:03Z")

</div>

Bug #3141: yield in an eigenclass definition http://redmine.ruby-lang.org/issues/show/3141 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yusuke E., e$B%+%F%4%je(B: core, Target ve…

---

## [GTK::ScrolledWindow](https://www.ruby-forum.com/t/gtk-scrolledwindow/188295)

<div class="topic-metadata">

**Author:** [@gotar](https://www.ruby-forum.com/u/gotar)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/gtk-scrolledwindow/188295 "2010-05-09T18:10:22Z")

</div>

I have GTK::ScrolledWindow with GTK::TreeView with a lot of elements. My question is how to determine location on some element (its coordinates) and how to scroll window to location where this element will be visible?

---

## [Tk Images - Transparency](https://www.ruby-forum.com/t/tk-images-transparency/188254)

<div class="topic-metadata">

**Author:** [@jcubed](https://www.ruby-forum.com/u/jcubed)\
**Replies:** 3\
**Last updated:** [May 9, 2010, 4:51pm UTC](https://www.ruby-forum.com/t/tk-images-transparency/188254 "2010-05-09T16:51:04Z")

</div>

I’m making a game with Ruby and Tk, but the transparency in the .gif images are not showing through in the program, the graphics are instead filled with white. I’m not sue if Tk can handle transparencies, but if there…

---

## [How to remove duplicates from hash](https://www.ruby-forum.com/t/how-to-remove-duplicates-from-hash/188289)

<div class="topic-metadata">

**Author:** [@lucky1234](https://www.ruby-forum.com/u/lucky1234)\
**Replies:** 4\
**Last updated:** [May 9, 2010, 2:26pm UTC](https://www.ruby-forum.com/t/how-to-remove-duplicates-from-hash/188289 "2010-05-09T14:26:17Z")

</div>

Hi , i have the values in hash is like list = {“1” =\> “ab” ,“2” =\> “ab”,“3” =\> “hjk”} now i want to remove duplicate value “ab” i want the result like list = {“1” =\> “ab” ,“3” =\> “hjk”}

---

## [Ruby gem not found although it is installed](https://www.ruby-forum.com/t/ruby-gem-not-found-although-it-is-installed/188283)

<div class="topic-metadata">

**Author:** [@eimantas](https://www.ruby-forum.com/u/eimantas)\
**Replies:** 2\
**Last updated:** [May 9, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/ruby-gem-not-found-although-it-is-installed/188283 "2010-05-09T13:12:19Z")

</div>

I found some similar problems here on SO, but none seem to match my case (sorry if I overlooked). Here’s my problem: I installed oauth-plugin gem to ruby gems dir, but trying to use it in rails app tells me that it’s …

---

## [Is Ruby ready to embrace new Linux face and UI realities?](https://www.ruby-forum.com/t/is-ruby-ready-to-embrace-new-linux-face-and-ui-realities/188223)

<div class="topic-metadata">

**Author:** [@rooby](https://www.ruby-forum.com/u/rooby)\
**Replies:** 4\
**Last updated:** [May 9, 2010, 11:30am UTC](https://www.ruby-forum.com/t/is-ruby-ready-to-embrace-new-linux-face-and-ui-realities/188223 "2010-05-09T11:30:03Z")

</div>

I may be utterly out of line expecting sympathy for my concerns about Ruby’s readiness to move on to the new and upcoming GNOME-3 environments, but I need to point out that after I embarked on completing the Ruby/GTK2…

---

## [Posix\_mq 0.5.1 - fix notify(&block)](https://www.ruby-forum.com/t/posix-mq-0-5-1-fix-notify-block/188281)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 10:21am UTC](https://www.ruby-forum.com/t/posix-mq-0-5-1-fix-notify-block/188281 "2010-05-09T10:21:03Z")

</div>

POSIX message queues allow local processes to exchange data in the form of messages. This API is distinct from that provided by System V message queues, but provides similar functionality. posix\_mq - POSIX message q…

---

## [\[Bug #3262\] can't create fiber & SEGV in windows](https://www.ruby-forum.com/t/bug-3262-cant-create-fiber-segv-in-windows/188270)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 9, 2010, 9:37am UTC](https://www.ruby-forum.com/t/bug-3262-cant-create-fiber-segv-in-windows/188270 "2010-05-09T09:37:44Z")

</div>

Bug #3262: can’t create fiber & SEGV in windows http://redmine.ruby-lang.org/issues/show/3262 e$B5/I\<\<Te(B: masaya tarui e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.2 ruby …

---

## [Rdoc-data vs rdoc\_osx\_dictionary](https://www.ruby-forum.com/t/rdoc-data-vs-rdoc-osx-dictionary/188280)

<div class="topic-metadata">

**Author:** [@n1ghtshade3](https://www.ruby-forum.com/u/n1ghtshade3)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 6:22am UTC](https://www.ruby-forum.com/t/rdoc-data-vs-rdoc-osx-dictionary/188280 "2010-05-09T06:22:17Z")

</div>

I’m still having trouble with rdoc. When I try to run rdoc-data, I get a message like this: can’t activate rdoc (~\> 2.5, runtime) for \[“rdoc-data-2.5.3”\], already activated rdoc-2.4.3 for \[“rdoc\_osx\_dictionary-1.3.1”\]…

---

## [Io/console IO#raw error when io is closed in the block](https://www.ruby-forum.com/t/io-console-io-raw-error-when-io-is-closed-in-the-block/188253)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [May 9, 2010, 6:00am UTC](https://www.ruby-forum.com/t/io-console-io-raw-error-when-io-is-closed-in-the-block/188253 "2010-05-09T06:00:03Z")

</div>

io/console e$B$r;H$C$F$\_$?$N$G$9$,!"$A$g$C$H$&$^$/;H$($^$;$s!#e(B IO#raw e$B$,e(B tty e$B$N\>uBV$rI,$:85$K$b$I$9$s$G$9$,!"$=$l$,$A$g$C$H:$$j$^$9!#e(B e$B0J2\<$N$h$&$K!"e(Bpty e$B$rDL$7$Fe(B factor e$B%3%^%s%I$r;H$&$3$H…

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

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