# Ruby

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

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

---

## [Test\_should\_propagate\_signaled](https://www.ruby-forum.com/t/test-should-propagate-signaled/124579)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/test-should-propagate-signaled/124579 "2007-12-30T15:02:37Z")

</div>

e$B@\>;3OB9-$G$9!#e(B Vine Linux 4.2 e$B$N4D6-$Ge(B make test-all e$B$,e(B test/ruby/test\_beginendblock.rb e$B$Ne(B test\_should\_propagate\_signaled e$B$Ne(B loop{} e$B$NL58B%k!\<%W$G;$^$C$F$7$^$&$N$G!"e(Bloop{} e$B$N$h…

---

## [Find next occurence, regular expressions](https://www.ruby-forum.com/t/find-next-occurence-regular-expressions/124574)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 2\
**Last updated:** [December 30, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/find-next-occurence-regular-expressions/124574 "2007-12-30T14:35:54Z")

</div>

Hi, ok I’m none to good at regular expressions but i’ve got to do something and need a little help. Basically i’m trying to hunt down a particular word within a url string, so to test, i define a local variable, var\_s…

---

## [Integer overflow on struct timespec](https://www.ruby-forum.com/t/integer-overflow-on-struct-timespec/124569)

<div class="topic-metadata">

**Author:** [@zunda](https://www.ruby-forum.com/u/zunda)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 10:33am UTC](https://www.ruby-forum.com/t/integer-overflow-on-struct-timespec/124569 "2007-12-30T10:33:22Z")

</div>

zundae$B$H?=$7$^$9e(B e$B?H6a$K!"e(Bstruct timespece$B$Ne(Btv\_sece$B$,e(B4e$B%P%$%H$G!“e(Bstruct timevale$B$Ne(B tv\_sece$B$,e(B8e$B%P%$%H$N%7%9%F%\`$,$”$j$^$9!#$3$N$h$&$J4D6-$G$Oe(B ruby-1.9.0-0e$B$Ne(B make teste$B$…

---

## [Long line may dump core](https://www.ruby-forum.com/t/long-line-may-dump-core/124517)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [December 30, 2007, 6:40am UTC](https://www.ruby-forum.com/t/long-line-may-dump-core/124517 "2007-12-30T06:40:49Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$BD9$$9T$G%Q!\<%9%(%i!\<$9$k$He(B SEGV e$B$9$k$3$H$,$"$k$h$&$G$9!#e(B $ ./ruby -e ‘eval(%q(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = while true; \[1, break\]))’ -e:1: \[BUG\] Segmentation fau…

---

## [Mr Bones - 1.1.0](https://www.ruby-forum.com/t/mr-bones-1-1-0/124524)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 16\
**Last updated:** [December 30, 2007, 5:18am UTC](https://www.ruby-forum.com/t/mr-bones-1-1-0/124524 "2007-12-30T05:18:27Z")

</div>

Bones by Tim P. http://codeforpeople.rubyforge.org/bones == DESCRIPTION: Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton contains some starter code and a collection of rake …

---

## [Best Wishes for 2008](https://www.ruby-forum.com/t/best-wishes-for-2008/124550)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 4:29am UTC](https://www.ruby-forum.com/t/best-wishes-for-2008/124550 "2007-12-30T04:29:22Z")

</div>

Hello, Here’s wishing you a very happy and prosperous new year 2008. Warm regards, Satish T. http://satishtalim.com/

---

## [Ruby on Fastcgi (Apache)](https://www.ruby-forum.com/t/ruby-on-fastcgi-apache/124538)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 2\
**Last updated:** [December 30, 2007, 1:10am UTC](https://www.ruby-forum.com/t/ruby-on-fastcgi-apache/124538 "2007-12-30T01:10:12Z")

</div>

I got an free hosting package with ruby on rails based on Fastcgi (Part of Apache). I do not have SSH access, so I can not create applications on the server. Therefore I want to bring my own applications (I created on…

---

## [String highlighting problem (newbie)](https://www.ruby-forum.com/t/string-highlighting-problem-newbie/124514)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 7\
**Last updated:** [December 30, 2007, 1:01am UTC](https://www.ruby-forum.com/t/string-highlighting-problem-newbie/124514 "2007-12-30T01:01:17Z")

</div>

I have two questions: I have a string @string = “This is a long string”. How can I do to make two words “bold” or “italic” in this string, for example “is” and “long” shoudl be ? I am searching in the mysql databa…

---

## [\[ANN\] snippits 0.5.1 Released - Ruby text expansion on Linux](https://www.ruby-forum.com/t/ann-snippits-0-5-1-released-ruby-text-expansion-on-linux/124533)

<div class="topic-metadata">

**Author:** [@kuzb](https://www.ruby-forum.com/u/kuzb)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/ann-snippits-0-5-1-released-ruby-text-expansion-on-linux/124533 "2007-12-29T23:50:34Z")

</div>

Snippits version 0.5.1 has been released! http://ben.kudria.net/code/snippits This is Ruby program that will type text for you. Â It uses ‘snippits’, small text files with a simple syntax to determine what to typ…

---

## [\[ANN\] ruby-ole-1.2.3 released!](https://www.ruby-forum.com/t/ann-ruby-ole-1-2-3-released/124408)

<div class="topic-metadata">

**Author:** [@calande](https://www.ruby-forum.com/u/calande)\
**Replies:** 4\
**Last updated:** [December 29, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/ann-ruby-ole-1-2-3-released/124408 "2007-12-29T22:50:12Z")

</div>

The new version of ruby-ole has been released! ruby-ole is a library for read/write access to OLE2 structured storage files, such as those produced by Microsoft Office, eg \*.doc, \*.msg etc. It provides a simple filesy…

---

## [Virtual key codes?](https://www.ruby-forum.com/t/virtual-key-codes/124114)

<div class="topic-metadata">

**Author:** [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Replies:** 8\
**Last updated:** [December 29, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/virtual-key-codes/124114 "2007-12-29T21:03:01Z")

</div>

is it possible to send virtual keycodes through ruby?

---

## [Fulltext doesnÂ´t work for integer?](https://www.ruby-forum.com/t/fulltext-doesna-t-work-for-integer/124527)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/fulltext-doesna-t-work-for-integer/124527 "2007-12-29T21:02:38Z")

</div>

I have used the following code: a1 = “+” a2 = “" @searchstring = params\[:searching\].gsub(" ", " +”) @results = Product.find\_by\_sql(“SELECT \* FROM products WHERE MATCH (name,sku) AGAINST (’”+a1+@searchstring+a2+"’ IN…

---

## [Identifying a volume as being an iPod](https://www.ruby-forum.com/t/identifying-a-volume-as-being-an-ipod/121835)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 26\
**Last updated:** [December 29, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/identifying-a-volume-as-being-an-ipod/121835 "2007-12-29T20:10:51Z")

</div>

Does anybody know how to identify a mounted volume as being an iPod ? Or even more generally useful, is there a lib or gem to help identify the type of volume or disk ? I’m currently working on a prog to help transfer…

---

## [Qt4 bindings, threads](https://www.ruby-forum.com/t/qt4-bindings-threads/124169)

<div class="topic-metadata">

**Author:** [@daniel\_SSSSkerud](https://www.ruby-forum.com/u/daniel_SSSSkerud)\
**Replies:** 10\
**Last updated:** [December 29, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/qt4-bindings-threads/124169 "2007-12-29T20:03:13Z")

</div>

I couldn’t find a mailinglist for the Qt4 Ruby bindings, so I try here. It seems the Qt4 Ruby bindings lack Qt::Thread. So how do I create a Thread? Do I use Ruby’s build-in? I need a thread because I need to read fr…

---

## [Then clause needs pop for stack consistency](https://www.ruby-forum.com/t/then-clause-needs-pop-for-stack-consistency/124519)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [December 29, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/then-clause-needs-pop-for-stack-consistency/124519 "2007-12-29T19:40:57Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B0J2\<$r\<B9T$9$k$H0l2sL$N%k!\<%W$N=PNO$@$1JQ$K$J$j$^$9!#e(B $ ./ruby -e ’ f = true if false else while f p \[:foo, while true; break :bar; end\] redo end end ’ | head \[:bar, :bar\] \[:foo,…

---

## [Invoke INT in xp](https://www.ruby-forum.com/t/invoke-int-in-xp/124494)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [December 29, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/invoke-int-in-xp/124494 "2007-12-29T18:52:54Z")

</div>

Hello How do i invoke the INT signal in xp using ruby. i have this following code running to do something when its process has a INT signal. however i dont know how to invoke it. trap(“INT”) { begin bot.deliver(bot…

---

## [Trimming leading zeros](https://www.ruby-forum.com/t/trimming-leading-zeros/124509)

<div class="topic-metadata">

**Author:** [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Replies:** 3\
**Last updated:** [December 29, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/trimming-leading-zeros/124509 "2007-12-29T18:35:57Z")

</div>

Is there any function in ruby which allows you to trim leading zeros (or any specific character) from a string. Or if there is some reg expression that i can use?

---

## [Bug in ruby complex module:](https://www.ruby-forum.com/t/bug-in-ruby-complex-module/124520)

<div class="topic-metadata">

**Author:** [@fantomknight10](https://www.ruby-forum.com/u/fantomknight10)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/bug-in-ruby-complex-module/124520 "2007-12-29T18:19:30Z")

</div>

Transcript : emac$ irb require ‘complex’ =\> true cc = Complex(Float::MAX/2, Float::MAX / 2) =\> Complex(8.98846567431158e+307, 8.98846567431158e+307) cc / cc =\> Complex(NaN, NaN) require ‘cpfixup’ =\> true …

---

## [Organization of standard and 3rd party libraries](https://www.ruby-forum.com/t/organization-of-standard-and-3rd-party-libraries/123768)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [December 29, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/organization-of-standard-and-3rd-party-libraries/123768 "2007-12-29T17:53:11Z")

</div>

Do you think Ruby’s standard library would be better if it was organized more categorically? Might it, in turn, encourage 3rd party library developers to categorize their libraries better as well? AFAIK net/ is the on…

---

## [Makefile patch](https://www.ruby-forum.com/t/makefile-patch/124515)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/makefile-patch/124515 "2007-12-29T16:58:23Z")

</div>

æˆç€¬ã§ã™ã€‚ ä»¥ä¸‹ã®å•é¡Œã®ä¿®æ­£ãƒ‘ãƒƒãƒã§ã™ã€‚ make clean ã—ã¦ã‚‚ã„ãã¤ã‹ã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ®‹ã£ã¦ã—ã¾ã† lib/enc/\*\*/\*.so ãŒ libruby ã‚’è¦‹ã¤ã‘ã‚‰ã‚Œãªã„ å‰è€…ã® clean / distclean / realc…

---

## [Enumerable Integer? Nah. Integer#times Enumerator!](https://www.ruby-forum.com/t/enumerable-integer-nah-integer-times-enumerator/124357)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [December 29, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/enumerable-integer-nah-integer-times-enumerator/124357 "2007-12-29T14:23:18Z")

</div>

Just a little FYI. Not too long ago I noted this suggestion: class Integer alias\_method :each, :times include Enumerable end Which is kind of cool in that allows some convenient statements like 10.collect { |i| “N…

---

## [What is the $ in varaiable](https://www.ruby-forum.com/t/what-is-the-in-varaiable/124348)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 7\
**Last updated:** [December 29, 2007, 11:05am UTC](https://www.ruby-forum.com/t/what-is-the-in-varaiable/124348 "2007-12-29T11:05:34Z")

</div>

what is the meaning of the $ in the variable $tws = Twslinkrb::TWSLinkWrap.new(1)

---

## [Ruby 1.8.2 source?](https://www.ruby-forum.com/t/ruby-1-8-2-source/124507)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [December 29, 2007, 10:43am UTC](https://www.ruby-forum.com/t/ruby-1-8-2-source/124507 "2007-12-29T10:43:55Z")

</div>

Hi all, Where can I get the Ruby 1.8.2 source code? I poked around a bit on ruby-lang.org but I didn’t see it. Can someone please point me to it? Thanks, Dan

---

## [\*, z = 1 breaks stack consistency](https://www.ruby-forum.com/t/z-1-breaks-stack-consistency/124502)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 9:37am UTC](https://www.ruby-forum.com/t/z-1-breaks-stack-consistency/124502 "2007-12-29T09:37:49Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B 1.9 e$B$,0J2\<$GMn$A$^$9!#e(B $ ./ruby -e ‘while true; \*, z = 1; break; end’ -e:1: \[BUG\] Stack consistency error (sp: 8, bp: 7) ruby 1.9.0 (2007-12-29 revision 0) \[i686-linux\] – control frame -…

---

## [Emptstack dumps core](https://www.ruby-forum.com/t/emptstack-dumps-core/124455)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [December 29, 2007, 9:23am UTC](https://www.ruby-forum.com/t/emptstack-dumps-core/124455 "2007-12-29T09:23:46Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B emptstack e$B$r;H$&$H%i%Y%k$Ne(B sp e$B$N7W;;$,@5$7$/$G$-$J$/$J$j$^$9!#e(B e$B6qBNE\*$K$O!"0J2\<$Ne(B 3 e$B$D$N%W%m%0%i%\`$,$9$Y$FMn$A$^$9!#e(B next e$B$,e(B emptstack e$B$K%3%s%Q%$%k$5$l$kNce(B 1…

---

## [Gem install mongrel error? help](https://www.ruby-forum.com/t/gem-install-mongrel-error-help/124496)

<div class="topic-metadata">

**Author:** [@liyu](https://www.ruby-forum.com/u/liyu)\
**Replies:** 1\
**Last updated:** [December 29, 2007, 9:20am UTC](https://www.ruby-forum.com/t/gem-install-mongrel-error-help/124496 "2007-12-29T09:20:50Z")

</div>

gem install mongrel Updating metadata for 39 gems from http://gems.rubyforge.org … complete Building native extensions. This could take a while… ERROR: Error installing mongrel: ERROR: Failed to build gem native …

---

## [Ascii\_only? bug](https://www.ruby-forum.com/t/ascii-only-bug/124500)

<div class="topic-metadata">

**Author:** [@Vincent\_I](https://www.ruby-forum.com/u/Vincent_I)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 8:22am UTC](https://www.ruby-forum.com/t/ascii-only-bug/124500 "2007-12-29T08:22:24Z")

</div>

Vincent ISAMBARTã§ã™ã€‚ \[ruby-core:14566\], Sam RubyãŒã“ã®ãŠã‹ã—ã„ãªè¡Œå‹•ã‚’è¦‹ã¤ã‘ã¾ ã—ãŸï¼š input = ‘:frowning:’ puts input.ascii\_only? input.gsub!(/&#x(.\*);/) {\[$1.to\_i(16)\].pack(‘U’)} puts input.…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/124495)

<div class="topic-metadata">

**Author:** [@Gs\_Techie](https://www.ruby-forum.com/u/Gs_Techie)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 6:02am UTC](https://www.ruby-forum.com/t/no-subject/124495 "2007-12-29T06:02:09Z")

</div>

confirm 20071228160407642538035896 gs techie \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs

---

## [Testing for 64-bit environment](https://www.ruby-forum.com/t/testing-for-64-bit-environment/124372)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 11\
**Last updated:** [December 29, 2007, 4:45am UTC](https://www.ruby-forum.com/t/testing-for-64-bit-environment/124372 "2007-12-29T04:45:35Z")

</div>

subject says it all- anyone know a way to determine if the host system is 64-bit? i need to load a different module for different environments. thanks, tom

---

## [Clean-enc $B$,(B clean $B$K4^$^$l$F$$$J$$(B](https://www.ruby-forum.com/t/clean-enc-b-b-clean-b-k4-l-f-j-b/124492)

<div class="topic-metadata">

**Author:** [@Kentaro\_KAWAMOTO](https://www.ruby-forum.com/u/Kentaro_KAWAMOTO)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 4:43am UTC](https://www.ruby-forum.com/t/clean-enc-b-b-clean-b-k4-l-f-j-b/124492 "2007-12-29T04:43:50Z")

</div>

e$B@nK$H?=$7$^$9!#e(B Makefile e$B$Ne(B clean e$B%?!\<%2%C%H$Ke(B clean-enc e$B$,4^$^$l$F$$$^$;$s$,!“e(B e$B2?$+M}M3$,$”$k$N$G$7$g$&$+e(B? e$B$R$5$S$5$K!"e(Bsvn update e$B$7$F%S%k%I$7$h$&$H$7$?$i!"e(B e$B0J2\<$N$h$&$J…

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

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