# Ruby

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

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

---

## [Reusable Applications - Architecture Question](https://www.ruby-forum.com/t/reusable-applications-architecture-question/189332)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/reusable-applications-architecture-question/189332 "2010-05-28T21:21:30Z")

</div>

Some times i ask my self about reusable applications, ive build several rails/.net applications where it need a ticket system, forum and wiki. All the time i copy and paste the code. Now we have the Rails 3 with Plugg…

---

## [Hash : TypeError: can't convert Symbol into Integer](https://www.ruby-forum.com/t/hash-typeerror-cant-convert-symbol-into-integer/189324)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 4\
**Last updated:** [May 28, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/hash-typeerror-cant-convert-symbol-into-integer/189324 "2010-05-28T20:10:18Z")

</div>

here is my code : h = Hash.new (same error with h = {} ) h\[:path\] = “/Users/yt/lib/ruby-i386/” puts “# -\> h\[:path\] = #{h\[:path\]}” info\_for(h\[:path\]).each {|k,v| puts “# -\> #{k} (#{k.class}) =\> #{v} (#{v.class})”} w…

---

## [Ruby Core - Lambda function](https://www.ruby-forum.com/t/ruby-core-lambda-function/189296)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 10\
**Last updated:** [May 28, 2010, 6:08pm UTC](https://www.ruby-forum.com/t/ruby-core-lambda-function/189296 "2010-05-28T18:08:33Z")

</div>

Hi, Just a thin post in order to purpose this: I think it could be cool to call lambda function just like: Î» Such as: a = 0 my\_while Î» { a \< 5 } do puts a a += 1 end I think Î» is more human then -\> Regards …

---

## [ANN: guirb 0.02: The return of fxirb](https://www.ruby-forum.com/t/ann-guirb-0-02-the-return-of-fxirb/189320)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/ann-guirb-0-02-the-return-of-fxirb/189320 "2010-05-28T17:44:33Z")

</div>

What: IRB session in a GUI text widget, now with FXRuby and TkRuby support Where: GitHub - martindemello/guirb: Graphical IRB wrappers Prerequisite: You need to build FXRuby from the source gem on ruby 1.9 Changes: …

---

## [Reports & Graphs](https://www.ruby-forum.com/t/reports-graphs/189318)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 4\
**Last updated:** [May 28, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/reports-graphs/189318 "2010-05-28T17:34:53Z")

</div>

Hey all, I was doing a bit of looking around for the best reporting and graph libraries in Ruby and I was wondering which ones you would recommend? Thanks a lot

---

## [Append a file to another file](https://www.ruby-forum.com/t/append-a-file-to-another-file/189312)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 1\
**Last updated:** [May 28, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/append-a-file-to-another-file/189312 "2010-05-28T16:41:19Z")

</div>

Hi, What is the best way to append the content from one file to another file? Thanks!

---

## [Permissions problem when running Ruby](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278)

<div class="topic-metadata">

**Author:** [@hj-lancaster](https://www.ruby-forum.com/u/hj-lancaster)\
**Replies:** 4\
**Last updated:** [May 28, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278 "2010-05-28T16:31:07Z")

</div>

I am having a permissions problem which no one else on the developement team is having and no one knows how to fix it. I had talked with the IT department and they checked a couple of things and said it was not a stan…

---

## [What 's wrong with my fxruby?](https://www.ruby-forum.com/t/what-s-wrong-with-my-fxruby/188123)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 3\
**Last updated:** [May 28, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/what-s-wrong-with-my-fxruby/188123 "2010-05-28T16:18:29Z")

</div>

pt@pt-laptop:~$ sudo gem install fxruby Successfully installed fxruby-1.6.20-x86-linux 1 gem installed Installing ri documentation for fxruby-1.6.20-x86-linux… Updating class cache with 2834 classes… Installing RDoc…

---

## [Get Google adsense account approval in 4 hours](https://www.ruby-forum.com/t/get-google-adsense-account-approval-in-4-hours/189291)

<div class="topic-metadata">

**Author:** [@Harika](https://www.ruby-forum.com/u/Harika)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 5:05am UTC](https://www.ruby-forum.com/t/get-google-adsense-account-approval-in-4-hours/189291 "2010-05-28T05:05:23Z")

</div>

Get Google adsense account approval in 4 hours I will Get you legitimate genuine google adsense with your name and address in just 4 hrs. Charges: Google adsense account: Rs.250 Google adsense account + nice color…

---

## [\[Backport #3357\] r25671](https://www.ruby-forum.com/t/backport-3357-r25671/189286)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 2:20am UTC](https://www.ruby-forum.com/t/backport-3357-r25671/189286 "2010-05-28T02:20:55Z")

</div>

Backport #3357: r25671 http://redmine.ruby-lang.org/issues/show/3357 e$B5/I\<\<Te(B: Nobuyoshi N. e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., e$B%+%F%4%je(B: build r25671e$B$Ne(Bbackporte$B…

---

## [Io\_splice 1.0.0 - zero-copy pipe I/O for Linux](https://www.ruby-forum.com/t/io-splice-1-0-0-zero-copy-pipe-i-o-for-linux/189280)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/io-splice-1-0-0-zero-copy-pipe-i-o-for-linux/189280 "2010-05-27T22:55:25Z")

</div>

The splice family of Linux system calls can transfer data between file descriptors without the need to copy data into userspace. Instead of a userspace buffer, they rely on an ordinary Unix pipe as a kernel-level buf…

---

## [Funny IO.select behaviour](https://www.ruby-forum.com/t/funny-io-select-behaviour/189148)

<div class="topic-metadata">

**Author:** [@denno](https://www.ruby-forum.com/u/denno)\
**Replies:** 12\
**Last updated:** [May 27, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/funny-io-select-behaviour/189148 "2010-05-27T22:51:19Z")

</div>

I’ve been debugging my full screen console ruby editor. Suddenly, for no apparent reason, I’m starting to get (a) random quits while typing. espically when pressing “t”. (b) Select:Interrupt while typing. This didn’…

---

## [RubyInline folder](https://www.ruby-forum.com/t/rubyinline-folder/189274)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 3\
**Last updated:** [May 27, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/rubyinline-folder/189274 "2010-05-27T22:37:06Z")

</div>

Hi! “# gem install RubyInline” installs its files in /root/.ruby\_inline Files: ~# ls .ruby\_inline/ Inline\_\_ca4f.c Inline\_\_ca4f.so Inline\_ImageScience\_cdab.c Inline\_ImageScience\_cdab.c.old Inline\_ImageScience\_cdab…

---

## [Ruby confused about current directory?](https://www.ruby-forum.com/t/ruby-confused-about-current-directory/189272)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 5\
**Last updated:** [May 27, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/ruby-confused-about-current-directory/189272 "2010-05-27T22:29:05Z")

</div>

Hi all, Something is wrong with my environment such that ruby occasionally gets confused about the ‘current directory’. I’m running ruby 1.8.6 (2010-02-04 patchlevel 398) \[i386-mingw32\] on Windows XP. The root probl…

---

## [Module methods](https://www.ruby-forum.com/t/module-methods/189252)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 2\
**Last updated:** [May 27, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/module-methods/189252 "2010-05-27T20:51:50Z")

</div>

i wanted to have a Module method having the same name as another one (from Kernel ?) : module PlaySound … def PlaySound.rand play a random sound end … end then i had a stack overflow and found renaming the metho…

---

## [Heads-up for arch linux users: rvm installer workaround](https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 2\
**Last updated:** [May 27, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262 "2010-05-27T19:40:23Z")

</div>

Anyone on arch linux planning on using rvm, note that the installer script is broken. The basic problem is that arch linux by default installs hd2u to provide dos2unix, and this does the wrong thing when run on a unix…

---

## [RDoc and HTML5: 'tt' -\> 'code'](https://www.ruby-forum.com/t/rdoc-and-html5-tt-code/189265)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/rdoc-and-html5-tt-code/189265 "2010-05-27T18:37:09Z")

</div>

I read that HTML5 has deprecated the tag. In that case I suggest that RDoc change the inline markup of +foo+ to output foo instead. (It will look better on github anyway). Also, I find Markdowns foo syntax to be much…

---

## [\[Bug #2402\] super in instance\_eval](https://www.ruby-forum.com/t/bug-2402-super-in-instance-eval/179452)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 4\
**Last updated:** [May 27, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/bug-2402-super-in-instance-eval/179452 "2010-05-27T17:50:18Z")

</div>

Bug #2402: super in instance\_eval http://redmine.ruby-lang.org/issues/show/2402 e$B5/I\<\<Te(B: Shugo M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-11-24 trunk 25909) \[i686-linux\] instan…

---

## [Badly organized code?](https://www.ruby-forum.com/t/badly-organized-code/189239)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 8\
**Last updated:** [May 27, 2010, 5:04pm UTC](https://www.ruby-forum.com/t/badly-organized-code/189239 "2010-05-27T17:04:23Z")

</div>

Hi all, I am writing generic command line scripts and here is a minimal example: http://pastie.org/979581 - which I am quite happy with. Now the required ‘biopieces’ class is here http://pastie.org/979577 - but this I…

---

## [\[Bug #3347\] Dir.tmpdir$B$,!"(Bfilesystem encoding$B$rJV$5$J$$(B](https://www.ruby-forum.com/t/bug-3347-dir-tmpdir-b-bfilesystem-encoding-b-rjv-5-j-b/189206)

<div class="topic-metadata">

**Author:** [@Tohru\_Hashimoto](https://www.ruby-forum.com/u/Tohru_Hashimoto)\
**Replies:** 1\
**Last updated:** [May 27, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/bug-3347-dir-tmpdir-b-bfilesystem-encoding-b-rjv-5-j-b/189206 "2010-05-27T16:57:38Z")

</div>

Bug #3347: Dir.tmpdire$B$,!"e(Bfilesystem encodinge$B$rJV$5$J$$e(B http://redmine.ruby-lang.org/issues/show/3347 e$B5/I\<\<Te(B: Tohru Hashimoto e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2010…

---

## [If call method HTML file not create](https://www.ruby-forum.com/t/if-call-method-html-file-not-create/189243)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 1\
**Last updated:** [May 27, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/if-call-method-html-file-not-create/189243 "2010-05-27T16:41:49Z")

</div>

def Readfrom\_file(fieldata,log,result) @fielddata = 1234 @log = 123 @result = 12322 puts @fielddata puts @log puts @result fileHtml = File.new(“C:\\test\\test.html”, “w+”) fileHtml.puts “RESULT\<\\B\> ” fileHtml.puts…

---

## [Compleat Rubyist in Chicago -- space still available!](https://www.ruby-forum.com/t/compleat-rubyist-in-chicago-space-still-available/189251)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/compleat-rubyist-in-chicago-space-still-available/189251 "2010-05-27T13:47:57Z")

</div>

Hi everybody – There are still spaces available for The Compleat Rubyist, a two-day Ruby training event with me, Gregory B., and Jeremy McAnally, taking place in the Chicago area (Arlington Heights), June 18-19, 2010…

---

## [Regarding Arrays](https://www.ruby-forum.com/t/regarding-arrays/189191)

<div class="topic-metadata">

**Author:** [@souravhaldar](https://www.ruby-forum.com/u/souravhaldar)\
**Replies:** 5\
**Last updated:** [May 27, 2010, 1:41pm UTC](https://www.ruby-forum.com/t/regarding-arrays/189191 "2010-05-27T13:41:19Z")

</div>

I am trying to build a Class ‘Employee’ in which age,address,idno methods should be there . So i need to built a Array in which the elements are called by idno and get sorted.

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/189249)

<div class="topic-metadata">

**Author:** [@Howard\_Hunt](https://www.ruby-forum.com/u/Howard_Hunt)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/unsubscribe/189249 "2010-05-27T13:25:07Z")

</div>

unsubscribe

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/189245)

<div class="topic-metadata">

**Author:** [@Cooper\_Geng](https://www.ruby-forum.com/u/Cooper_Geng)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 1:09pm UTC](https://www.ruby-forum.com/t/unsubscribe/189245 "2010-05-27T13:09:18Z")

</div>

unsubscribe

---

## [\[bug:trunk\] rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR](https://www.ruby-forum.com/t/bug-trunk-rubyspec-kernel-spawn-redirects-both-stderr-and-stdout-to-the-given-name-error/189215)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [May 27, 2010, 11:09am UTC](https://www.ruby-forum.com/t/bug-trunk-rubyspec-kernel-spawn-redirects-both-stderr-and-stdout-to-the-given-name-error/189215 "2010-05-27T11:09:50Z")

</div>

e$B1sF#$G$9!#e(B spawn e$B$N%j%@%$%l%/%H$N0z?t$Ge(B :out =\> “foo” e$B$H$7$?$H$-!"%U%!%$%ke(B foo e$B$,B8:\_e(B e$B$7$J$1$l$P:n$C$F$/$l$^$9$,!"e(B\[:out, :err\] =\> “foo” e$B$@$H:n$C$F$/$l$^$;$s!#e(B ruby -e ‘pid = spawn…

---

## [File copy](https://www.ruby-forum.com/t/file-copy/189228)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 2\
**Last updated:** [May 27, 2010, 11:06am UTC](https://www.ruby-forum.com/t/file-copy/189228 "2010-05-27T11:06:37Z")

</div>

Hi I am having a weird problem. I have the following code. require “fileutils” FileUtils.cp ‘/path/to/file.txt’, ‘/path/to/archive/file-date.txt’ File.open(’/path/to/file.txt’, ‘w’) What I want to do is copy file.tx…

---

## [Scrape javascript content](https://www.ruby-forum.com/t/scrape-javascript-content/188900)

<div class="topic-metadata">

**Author:** [@csitol](https://www.ruby-forum.com/u/csitol)\
**Replies:** 10\
**Last updated:** [May 27, 2010, 7:28am UTC](https://www.ruby-forum.com/t/scrape-javascript-content/188900 "2010-05-27T07:28:44Z")

</div>

I’m trying to scrape a page that hides some data behind a javascript function. Is there any way to get this data? I’ve been using Mechanize, but I’m not sure it can do this. Is there a better library to use for thi…

---

## [Hosting IronRuby/DLR in long running applications](https://www.ruby-forum.com/t/hosting-ironruby-dlr-in-long-running-applications/189220)

<div class="topic-metadata">

**Author:** [@Josh\_Flanagan](https://www.ruby-forum.com/u/Josh_Flanagan)\
**Replies:** 1\
**Last updated:** [May 27, 2010, 7:06am UTC](https://www.ruby-forum.com/t/hosting-ironruby-dlr-in-long-running-applications/189220 "2010-05-27T07:06:54Z")

</div>

Following up on this discussion on ASP.NET: http://rubyforge.org/pipermail/ironruby-core/2010-February/006225.html We are considering hosting IronRuby in our application (ASP.NET website & a couple windows services). …

---

## [Variable send value as true or false instend to string](https://www.ruby-forum.com/t/variable-send-value-as-true-or-false-instend-to-string/189232)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 7:01am UTC](https://www.ruby-forum.com/t/variable-send-value-as-true-or-false-instend-to-string/189232 "2010-05-27T07:01:12Z")

</div>

Method: def Readfrom\_file(fieldata,log,result) @fielddata = fieldata @log = log @result = result puts @fielddata puts @log puts @result end if(ie.text\_field(:name,“firstName”).value == @FirstName) @result = ‘PA…

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

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