# Ruby

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

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

---

## [Ruby signals](https://www.ruby-forum.com/t/ruby-signals/135345)

<div class="topic-metadata">

**Author:** [@martin\_gnu](https://www.ruby-forum.com/u/martin_gnu)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 9:04am UTC](https://www.ruby-forum.com/t/ruby-signals/135345 "2008-04-22T09:04:02Z")

</div>

Someone know like connect a signal inside a class?? I am working in ruby gnome, but i thinkl this is a ruby generic question. class One def initialize(callback) callback end end class Main def initialize One.ne…

---

## [Win32 OLE event sink & Quit](https://www.ruby-forum.com/t/win32-ole-event-sink-quit/135387)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 8:32am UTC](https://www.ruby-forum.com/t/win32-ole-event-sink-quit/135387 "2008-04-22T08:32:49Z")

</div>

Hi, I’m trying to setup a win32 ole callback that would notify me that the application that was launched has quit, in order to release the process from memory. The code I’m playing with looks like: @@access = WIN3…

---

## [Object#tap $B$N%5%s%W%k(B](https://www.ruby-forum.com/t/object-tap-b-n-5-s-w-k-b/135338)

<div class="topic-metadata">

**Author:** [@okkez](https://www.ruby-forum.com/u/okkez)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 8:14am UTC](https://www.ruby-forum.com/t/object-tap-b-n-5-s-w-k-b/135338 "2008-04-22T08:14:33Z")

</div>

okkez e$B$G$9!#e(B 1.8 e$B$Ne(B HEAD e$B$Ge(B Object#tap e$B$N%5%s%W%k%3!\<%I$,e(B Syntax Error e$B$K$J$C$FF0$-$^$;$s!#e(B % ruby-1.8.x -v sample\_tap.rb ruby 1.8.7 (2008-04-20 patchlevel 5000) \[i686-linux\] sample\_tap…

---

## [$B%G%6%$%s%\_!\<%F%#%s%0(B 4/22](https://www.ruby-forum.com/t/b-g-6-s-f-s-0-b-4-22/135428)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 3:22am UTC](https://www.ruby-forum.com/t/b-g-6-s-f-s-0-b-4-22/135428 "2008-04-22T03:22:10Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$BDjNce(B(e$B$K$J$kM=Dje(B)e$B$Ne(BRubye$B%G%6%$%s%\_!\<%F%#%s%0$rK\\F|e(B11e$B;~e(B(e$BF|K;~e(B e$B4Ve(B)e$B$+$ie(BIRCe$B\>ee(Bfreenodee$B$Ne(B#ruby-coree$B%A%c%s%M%k$G9T$$$^$9!#e(BRubye…

---

## [Leeching site with ruby](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422)

<div class="topic-metadata">

**Author:** [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 2:43am UTC](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422 "2008-04-22T02:43:00Z")

</div>

Hello, i need something similiar to hpriocot but with site leeeching functionality. I need some code which grab a given page from url, leechs images, css, and convert url&etc. Does you know something about similiar so…

---

## [Forkoff-0.0.1](https://www.ruby-forum.com/t/forkoff-0-0-1/135424)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 2:30am UTC](https://www.ruby-forum.com/t/forkoff-0-0-1/135424 "2008-04-22T02:30:42Z")

</div>

NAME forkoff SYNOPSIS brain-dead simple parallel processing for ruby URI http://rubyforge.org/projects/codeforpeople INSTALL gem install forkoff HISTORY 0.0.1 updated to use producer threds pushing onto a Siz…

---

## [Database construction in Ruby](https://www.ruby-forum.com/t/database-construction-in-ruby/135259)

<div class="topic-metadata">

**Author:** [@mellifluidic](https://www.ruby-forum.com/u/mellifluidic)\
**Replies:** 7\
**Last updated:** [April 22, 2008, 1:57am UTC](https://www.ruby-forum.com/t/database-construction-in-ruby/135259 "2008-04-22T01:57:46Z")

</div>

Background: I’m interested in building a database for my company so that we can store information on accounts, work orders, production records, experimental data, etc. My programming experience started with Mathemati…

---

## [Interpreter doesnt work?](https://www.ruby-forum.com/t/interpreter-doesnt-work/135401)

<div class="topic-metadata">

**Author:** [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 1:00am UTC](https://www.ruby-forum.com/t/interpreter-doesnt-work/135401 "2008-04-22T01:00:41Z")

</div>

so i downloaded and installed ruby and there is no APPlicatin/Exe int he main directory but in bin there is the interpreter but ti doesnt work, it aluches a DOS-window but there is no evaluator. do i have to install a…

---

## [\<no subject\>](https://www.ruby-forum.com/t/no-subject/135400)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/no-subject/135400 "2008-04-21T23:11:09Z")

</div>

Afternoon all, I have a set of files that are downloaded via ftp which I iterate over and grab account numbers are their balances. I have been able to iterate over the individual lines and get my data however the a…

---

## [Can I use xmlrpc to manage my msn spaces](https://www.ruby-forum.com/t/can-i-use-xmlrpc-to-manage-my-msn-spaces/135215)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/can-i-use-xmlrpc-to-manage-my-msn-spaces/135215 "2008-04-21T19:57:33Z")

</div>

I have encountered a problem to use xmlrpc to connect to my msn spaces. I use rmetaweblog which is inherit from xmlrpc/client, the error is shown below: irb(main):001:0\> require ‘rubygems’ =\> true irb(main):002:0\> …

---

## [Require 'msn/msn'?](https://www.ruby-forum.com/t/require-msn-msn/135380)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 4\
**Last updated:** [April 21, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/require-msn-msn/135380 "2008-04-21T19:55:04Z")

</div>

hi. I try to make ruby msn bot like this tutorial. http://code.google.com/p/rubymsn/wiki/Tutorial but I have some problem when I use require ‘msn/msn’ on my code and I’ve got error. C:/Program Files/Ruby/lib/ruby/si…

---

## [Line breaks in multiline regexp](https://www.ruby-forum.com/t/line-breaks-in-multiline-regexp/135152)

<div class="topic-metadata">

**Author:** [@chaschev](https://www.ruby-forum.com/u/chaschev)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/line-breaks-in-multiline-regexp/135152 "2008-04-21T17:19:11Z")

</div>

Hi! I really want to know how to denote line breaks in multiline regexp. The problem is that \\s is not only a line break. I.e. how to parse this in a general way? s=\<\<HERE a loooong-loooong text with MANY spaces…

---

## [\[ANN\] Ruby In Steel 1.2 - Fast Debugging, 'Visual' Rails](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-2-fast-debugging-visual-rails/135339)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-2-fast-debugging-visual-rails/135339 "2008-04-21T17:08:19Z")

</div>

SapphireSteel Software has just released a major update to its Ruby and Rails IDE, Ruby In Steel Developer. This edition includes a unique visual drag and drop environment - The Visual Rails Workbench - for designing …

---

## [Heel 1.0.0 Released](https://www.ruby-forum.com/t/heel-1-0-0-released/135330)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/heel-1-0-0-released/135330 "2008-04-21T16:44:02Z")

</div>

heel version 1.0.0 has been released. http://copiousfreetime.rubyforge.org/heel/ Heel is a small static web server for use when you need a quick web server for a directory. Once the server is running, heel will use …

---

## [Hash#== $B%a%=%C%I$K$D$$$F(B](https://www.ruby-forum.com/t/hash-b-a-c-i-k-d-f-b/135359)

<div class="topic-metadata">

**Author:** [@Hajime\_H](https://www.ruby-forum.com/u/Hajime_H)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/hash-b-a-c-i-k-d-f-b/135359 "2008-04-21T15:12:47Z")

</div>

e$B@1$H?=$7$^$9!#e(B e$B0c$&%G%U%)%k%He(B proc e$B$rM?$($?e(B Hash e$B%\*%V%8%’%/%HF1;N$re(B Hash#== e$B%a%=%C%I$GHf3S$9$k$H!"e(B true e$B$K$J$j$^$9!#e(B 1.8 e$B$He(B 1.9 e$B$G3NG’$7$^$7$?!#e(B Hash.new{:foo} == Hash.…

---

## [Most Maintained Asterisk Ruby API?](https://www.ruby-forum.com/t/most-maintained-asterisk-ruby-api/135350)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/most-maintained-asterisk-ruby-api/135350 "2008-04-21T13:55:32Z")

</div>

Hello all, I have a need to start mucking around with Asterisk and integrating it into an existing internal Ruby application. I’ve looked around on Ruby Forge and found RAGI and Ruby-AGI as looking the most complete. …

---

## [What's the 'portable' way to do this?](https://www.ruby-forum.com/t/whats-the-portable-way-to-do-this/135123)

<div class="topic-metadata">

**Author:** [@flowerborn](https://www.ruby-forum.com/u/flowerborn)\
**Replies:** 10\
**Last updated:** [April 21, 2008, 11:59am UTC](https://www.ruby-forum.com/t/whats-the-portable-way-to-do-this/135123 "2008-04-21T11:59:12Z")

</div>

Hi, I want to know if there’s a more ‘portable’ way to do this in ruby: I hope my programe will accept data from redirected stdin or pipe, like cat bar | foo.rb foo.rb \< bar And after read the data I want to interac…

---

## [This Week in Ruby (April 21, 2008)](https://www.ruby-forum.com/t/this-week-in-ruby-april-21-2008/135343)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 0\
**Last updated:** [April 21, 2008, 11:36am UTC](https://www.ruby-forum.com/t/this-week-in-ruby-april-21-2008/135343 "2008-04-21T11:36:11Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, here you can find the new edition of “This Week in Ruby”: Cheers, Antonio http://antoniocangiano.com - Zen and the Art of Programming http://stacktrace.it - …

---

## [Extract lines with regular expressions](https://www.ruby-forum.com/t/extract-lines-with-regular-expressions/135321)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 10:54am UTC](https://www.ruby-forum.com/t/extract-lines-with-regular-expressions/135321 "2008-04-21T10:54:37Z")

</div>

I am a newb trying to take a list of data in a text file and print out a new list of lines that contain certain characters… I am not too worried about the actual regex - I can figure that out - but I cannot seem to ge…

---

## [Bug: multiline ruby expressions with parens](https://www.ruby-forum.com/t/bug-multiline-ruby-expressions-with-parens/135297)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 10:41am UTC](https://www.ruby-forum.com/t/bug-multiline-ruby-expressions-with-parens/135297 "2008-04-21T10:41:03Z")

</div>

Hi, Anyone aware of this bug? $ cat expr-bug.rb a = (2 / 2 p a a = (2 \\ / 2 p a $ ruby expr-bug.rb 1 2 $ ruby --version ruby 1.8.6 (2008-03-03 patchlevel 114) \[x86\_64-linux\]

---

## [How to build Ruby 1.9 with TK 8.5?](https://www.ruby-forum.com/t/how-to-build-ruby-1-9-with-tk-8-5/135331)

<div class="topic-metadata">

**Author:** [@nop](https://www.ruby-forum.com/u/nop)\
**Replies:** 0\
**Last updated:** [April 21, 2008, 8:58am UTC](https://www.ruby-forum.com/t/how-to-build-ruby-1-9-with-tk-8-5/135331 "2008-04-21T08:58:31Z")

</div>

Hello, gents I’ve just built latest Ruby version from svn (for win32). Seems it lacks Tk. How to configure it to build with Tk 8.5? ActiveTCL 8.5.2 distribution is already installed. Thanks in advance, Nop

---

## [Rakefile gives syntax error, unexpected ':', expecting $end](https://www.ruby-forum.com/t/rakefile-gives-syntax-error-unexpected-expecting-end/135312)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 5:51am UTC](https://www.ruby-forum.com/t/rakefile-gives-syntax-error-unexpected-expecting-end/135312 "2008-04-21T05:51:18Z")

</div>

I want to make run dependant on the compile and cat tasks, but don’t seem to have the syntax quite correct: thufir@arrakis:~/foo$ thufir@arrakis:~/foo$ rake run (in /home/thufir/foo) rake aborted! /home/thufir/foo…

---

## [Patch for ruby-core:16010](https://www.ruby-forum.com/t/patch-for-ruby-core-16010/135274)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 4:03am UTC](https://www.ruby-forum.com/t/patch-for-ruby-core-16010/135274 "2008-04-21T04:03:45Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B \[ruby-core:16010\]e$B$N8e\<T$NLdBj$KBP$9$k%Q%C%A$r=q$-$^$7$?!#e(B defined? e$B9=J8Cf$N%a%=%C%I8F$S=P$7$GNc30$,5/$-$?\>l9g$Ke(B e$B\<0A4BN$,e(B nil e$B$rJV$9$h$&$K$J$j$^$9!#e(B Index: compile.c — …

---

## [Binary in "big endian" representation](https://www.ruby-forum.com/t/binary-in-big-endian-representation/135311)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 2:58am UTC](https://www.ruby-forum.com/t/binary-in-big-endian-representation/135311 "2008-04-21T02:58:52Z")

</div>

Hello, I would like to convert an input (like a file, or a password) into binary format. After reading my Ruby in a nutshell book, I belive I can use this method: unpack(‘C\*’) But do the binary representation will …

---

## [Effect.Fade and Back Button](https://www.ruby-forum.com/t/effect-fade-and-back-button/135310)

<div class="topic-metadata">

**Author:** [@judith](https://www.ruby-forum.com/u/judith)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 2:55am UTC](https://www.ruby-forum.com/t/effect-fade-and-back-button/135310 "2008-04-21T02:55:56Z")

</div>

Hi, i have a picture which dissapeares via Effect.Fade, but i’d like it to be seen when you leave the site and come back. but this doesn’t work out when the back button is used, as the site is not reloaded then and t…

---

## [Defining attr like methods](https://www.ruby-forum.com/t/defining-attr-like-methods/135304)

<div class="topic-metadata">

**Author:** [@chadmontplaisir](https://www.ruby-forum.com/u/chadmontplaisir)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 2:36am UTC](https://www.ruby-forum.com/t/defining-attr-like-methods/135304 "2008-04-21T02:36:05Z")

</div>

Here is what I’m trying to do class List Method item Pushes an item into an array @items Method to\_s returns elements within @items into a string end class Groceries \< List item :lettuce item :potato item :ham en…

---

## [Thin 0.8.1 Rebel Porpoise release](https://www.ruby-forum.com/t/thin-0-8-1-rebel-porpoise-release/135313)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 0\
**Last updated:** [April 21, 2008, 2:18am UTC](https://www.ruby-forum.com/t/thin-0-8-1-rebel-porpoise-release/135313 "2008-04-21T02:18:33Z")

</div>

Hey all, Thin version 0.8.1 (codename Rebel Porpoise) is out! == What’s new? \[bug\] Rescue all types of errors when processing request, fixes #62 \[bug\] Use Swiftiply backend when -y option is specified, fixes #63 an…

---

## [Shortcut for x = \[x\] unless x.is\_a?(Array)](https://www.ruby-forum.com/t/shortcut-for-x-x-unless-x-is-a-array/131522)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 14\
**Last updated:** [April 21, 2008, 1:28am UTC](https://www.ruby-forum.com/t/shortcut-for-x-x-unless-x-is-a-array/131522 "2008-04-21T01:28:20Z")

</div>

Is there any prettier or cleaner way to write x = \[x\] unless x.is\_a?(Array)

---

## [Nice Inspiration for IronRuby, online Codes](https://www.ruby-forum.com/t/nice-inspiration-for-ironruby-online-codes/135204)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 2\
**Last updated:** [April 20, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/nice-inspiration-for-ironruby-online-codes/135204 "2008-04-20T19:42:39Z")

</div>

Hello, Here is a nice inspiration to put " IronRuby and IronPython Codes online. Have a look here to work with plethora of languages. http://codepad.org Just go to codepad.org and enter your code in any of the follo…

---

## [\[ANN\] Radiant 0.6.6 - Chiseled Release (bugfixes)](https://www.ruby-forum.com/t/ann-radiant-0-6-6-chiseled-release-bugfixes/135293)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-6-6-chiseled-release-bugfixes/135293 "2008-04-20T19:37:03Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.6.6 “Chiseled” corrects two showstopper bugs in yesterday’s 0.6.5 release that affect upgrading existing installations an…

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

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