# Ruby

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

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

---

## [Undefined local variable](https://www.ruby-forum.com/t/undefined-local-variable/135846)

<div class="topic-metadata">

**Author:** [@Johan\_E](https://www.ruby-forum.com/u/Johan_E)\
**Replies:** 13\
**Last updated:** [April 28, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/undefined-local-variable/135846 "2008-04-28T12:38:12Z")

</div>

Hi! I have some troubles with this. obj\_as\_list.each do |att| if att\[1\].is\_a?(String) att\[1\] = "'#{att\[1\]'" end str = "new\_obj.#{att\[0\]} = #{att\[1\]}" eval(str) …

---

## [Re: Ruby For Hackers](https://www.ruby-forum.com/t/re-ruby-for-hackers/136049)

<div class="topic-metadata">

**Author:** [@Glenn\_West](https://www.ruby-forum.com/u/Glenn_West)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/re-ruby-for-hackers/136049 "2008-04-28T12:29:20Z")

</div>

For me, I find generally ruby is “nice”. Easy to do a gui (Either locally or via the web using rails Easy to use a database (In 6 months I’ve done Oracle, Pervasive, Unify, Firebird, and dbase) Generally easy to “scri…

---

## [Error loading fxruby fox16.so file](https://www.ruby-forum.com/t/error-loading-fxruby-fox16-so-file/136036)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 10:26am UTC](https://www.ruby-forum.com/t/error-loading-fxruby-fox16-so-file/136036 "2008-04-28T10:26:43Z")

</div>

Working under Windows “require ‘fox16’” gives …gems/fxruby-1.6.14-x86-mswin32/ext/fox16/fox16.so:1: Invalid char \`\\220’ (’?’) in expression (SyntaxError) If fxruby working under jruby ?

---

## [Floating point exception (core dumped) ./ruby -ve 'r = Marshal.load("\\x04\\bU:\\rRational\[\\ai\\x06i\\x0](https://www.ruby-forum.com/t/floating-point-exception-core-dumped-ruby-ve-r-marshal-load-x04-bu-rrational-ai-x06i-x0/136034)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 10:19am UTC](https://www.ruby-forum.com/t/floating-point-exception-core-dumped-ruby-ve-r-marshal-load-x04-bu-rrational-ai-x06i-x0/136034 "2008-04-28T10:19:42Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B floating point exception e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘r = Marshal.load("\\x04\\bU:\\rRational\[\\ai\\x06i\\x05"); r + r’ ruby 1.9.0 (2008-04-28 revision 16229) \[i686-linux\] -e:1: warning: useles…

---

## [IPv6 support for mswin](https://www.ruby-forum.com/t/ipv6-support-for-mswin/135915)

<div class="topic-metadata">

**Author:** [@MSKozuka](https://www.ruby-forum.com/u/MSKozuka)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 9:58am UTC](https://www.ruby-forum.com/t/ipv6-support-for-mswin/135915 "2008-04-28T09:58:14Z")

</div>

ruby-dev MLe$B$N3’MM!"$O$8$a$^$7$F!#e(B e$B\>.DM$H$$$$$^$9!#e(B e$B8=:\_!“e(B1.8e$B7O!“e(B1.9e$B7O6&$K!“e(Bmswine$B$G$O@596K!$G$Oe(BIPv6e$B$,e(B e$B$&$^$/;H$($:e(B(e$B%X%C%@$,ITE,@Z$J$?$ae(Bipv6e$B$NM-L5$,\>o$K\<:GT$9$ke(…

---

## [Help getting ruby-serialport to run in Windows XP](https://www.ruby-forum.com/t/help-getting-ruby-serialport-to-run-in-windows-xp/135861)

<div class="topic-metadata">

**Author:** [@ealdaz](https://www.ruby-forum.com/u/ealdaz)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 9:40am UTC](https://www.ruby-forum.com/t/help-getting-ruby-serialport-to-run-in-windows-xp/135861 "2008-04-28T09:40:53Z")

</div>

Dear All I have not been able to make ruby-serialport in Windows XP. http://ruby-serialport.rubyforge.org/ I have looked hard in the web and forums and have not been able to find help, although i have found many peop…

---

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

<div class="topic-metadata">

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

</div>

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

---

## [Language code list? (ISO 639-1?)](https://www.ruby-forum.com/t/language-code-list-iso-639-1/135969)

<div class="topic-metadata">

**Author:** [@unnali](https://www.ruby-forum.com/u/unnali)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 7:59am UTC](https://www.ruby-forum.com/t/language-code-list-iso-639-1/135969 "2008-04-28T07:59:29Z")

</div>

Hi there, I’m wondering there’s any built-in list or gem that has the list of language codes/country names/language names (native/foreign, either’s good) in it? Something like a list like this: I could scrape it …

---

## [Certification in ruby](https://www.ruby-forum.com/t/certification-in-ruby/136022)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 7:40am UTC](https://www.ruby-forum.com/t/certification-in-ruby/136022 "2008-04-28T07:40:07Z")

</div>

Hi all is there any certification courses in ruby on rails? if there is , can u please send the process to write the exam . just i want to do certification in ruby on rails and even i want to know how many levels are…

---

## [Lone Star Rubyconf 2008 - 6 Days Left to Submit a Proposal](https://www.ruby-forum.com/t/lone-star-rubyconf-2008-6-days-left-to-submit-a-proposal/196657)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 7:01am UTC](https://www.ruby-forum.com/t/lone-star-rubyconf-2008-6-days-left-to-submit-a-proposal/196657 "2008-04-28T07:01:14Z")

</div>

Time is almost up! The second annual Lone Star Ruby Conference is accepting speaker proposals for the Sep 4-6 conference in Austin, TX, for just six more days! The deadline is MIDNIGHT May 3. All Ruby-related topics …

---

## [Counting Program](https://www.ruby-forum.com/t/counting-program/135303)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 17\
**Last updated:** [April 28, 2008, 5:12am UTC](https://www.ruby-forum.com/t/counting-program/135303 "2008-04-28T05:12:59Z")

</div>

I recently actually started “studying” ruby again and attempted to create a program that would add numbers and print them out (on the screen of course). Of course the following code would not work: time1=1 10000000.t…

---

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

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 4:10am UTC](https://www.ruby-forum.com/t/no-subject/135994 "2008-04-28T04:10:06Z")

</div>

I’m trying to use win32/file to set permission on a file, but I can’t seem to get it working. Here’s what I’ve tried require “win32/file” File.set\_permissions(“C:\\foo.txt”, {“Domain\\username” =\> 2032127}) and I get…

---

## [Method#name](https://www.ruby-forum.com/t/method-name/136011)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 3:14am UTC](https://www.ruby-forum.com/t/method-name/136011 "2008-04-28T03:14:08Z")

</div>

e$B@\>;3OB9-$G$9!#e(B Method#namee$B$Oe(B1.9e$B$G$be(BStringe$B$rJV$9$N$O0U?^$7$?F0:n$G$7$g$&$+e(B? methods.include?(method(:method).name)e$B$N$h$&$K;H$($k$3$H$re(B e$BA\[Dj$7$F$$$k$N$J$ie(BSymbole$B$NJ}$,NI$$$N$+$J$H;W…

---

## [SVN r96 is out](https://www.ruby-forum.com/t/svn-r96-is-out/135909)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 2:30am UTC](https://www.ruby-forum.com/t/svn-r96-is-out/135909 "2008-04-28T02:30:52Z")

</div>

This revision integrates a number of smaller community contributions from Eric N., Wayne K., Jayme Edwards, and Seo S… Patches 19708, 19745, 19746, 19748, 19749 from Wayne K. Patch 19754 from Nobody (trivial fix for r…

---

## [Ruby For Hackers](https://www.ruby-forum.com/t/ruby-for-hackers/135992)

<div class="topic-metadata">

**Author:** [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Replies:** 20\
**Last updated:** [April 28, 2008, 1:31am UTC](https://www.ruby-forum.com/t/ruby-for-hackers/135992 "2008-04-28T01:31:12Z")

</div>

Anybody know how to writing Keyloggers in ruby, or trojans or other viruses? P.S. please nybody have book for networking and sockets? (for coding in ruby)

---

## [Getting Mac file paths from disk](https://www.ruby-forum.com/t/getting-mac-file-paths-from-disk/135998)

<div class="topic-metadata">

**Author:** [@vinnie](https://www.ruby-forum.com/u/vinnie)\
**Replies:** 5\
**Last updated:** [April 28, 2008, 12:00am UTC](https://www.ruby-forum.com/t/getting-mac-file-paths-from-disk/135998 "2008-04-28T00:00:54Z")

</div>

Hi, As part of my “training” with Ruby, I decided to try and get a list of files, then save based on size to a new folder for burning onto CD. When I do this using “Find”, I can get the files but if there are any bun…

---

## [Free disk space with VMI in megabyte](https://www.ruby-forum.com/t/free-disk-space-with-vmi-in-megabyte/135946)

<div class="topic-metadata">

**Author:** [@toki](https://www.ruby-forum.com/u/toki)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/free-disk-space-with-vmi-in-megabyte/135946 "2008-04-27T22:54:18Z")

</div>

Hi all! I’m new to ruby, I’ve found this pretty neat code linked on a thread on this forum, original post was at: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95197 require ‘win32ole’ wmi = WIN32OLE.c…

---

## [Linux starting](https://www.ruby-forum.com/t/linux-starting/135999)

<div class="topic-metadata">

**Author:** [@mailer\_mailer](https://www.ruby-forum.com/u/mailer_mailer)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/linux-starting/135999 "2008-04-27T22:16:15Z")

</div>

I’m starting to program in linux more often now and I’m starting on linux (Ubuntu). I’m using Kdevelop and I cannot get the program to run and take a gets statement meaning I cannot get user input. any advice would b…

---

## [How to match any character with ruby regexp?](https://www.ruby-forum.com/t/how-to-match-any-character-with-ruby-regexp/135990)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/how-to-match-any-character-with-ruby-regexp/135990 "2008-04-27T19:19:58Z")

</div>

I am writing a method to strip out (the link tag) from input text, and I use the gsub method to do the job: str = “please vist \<a href=”“http://www.abc.com”" title=““abc””\>abc.com for more info." str.gsub(Regexp…

---

## [Shattered gems?](https://www.ruby-forum.com/t/shattered-gems/135985)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/shattered-gems/135985 "2008-04-27T17:41:35Z")

</div>

This seems to be a basic thing: run rails under ruby and execute the ensuing system. Every Ruby on Rails books or tutorial does this. Here’s what’s happening for me: First, here’s my version information: michael@iso…

---

## [Newbie; needs direction](https://www.ruby-forum.com/t/newbie-needs-direction/135978)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 8\
**Last updated:** [April 27, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/newbie-needs-direction/135978 "2008-04-27T16:59:35Z")

</div>

I’m a very experienced programmer, but I’m new to ruby. I’ve studied the grammar of the language already, I found it easy, and I’m now looking for “good source code” that I can just read and learn from. I already stu…

---

## [Has anyone read this book?](https://www.ruby-forum.com/t/has-anyone-read-this-book/135923)

<div class="topic-metadata">

**Author:** [@Laurent\_J](https://www.ruby-forum.com/u/Laurent_J)\
**Replies:** 5\
**Last updated:** [April 27, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/has-anyone-read-this-book/135923 "2008-04-27T16:54:16Z")

</div>

Yesterday I cam across a Web page mentioning this book on “Data Structures and Algorithms with Object-Oriented Design Patterns in Ruby” by Bruno R. Preiss. http://www.brpreiss.com/books/opus8/ I’d like to know if any…

---

## [Calling C functions from Embedded Ruby Interpreter](https://www.ruby-forum.com/t/calling-c-functions-from-embedded-ruby-interpreter/135717)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 8\
**Last updated:** [April 27, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/calling-c-functions-from-embedded-ruby-interpreter/135717 "2008-04-27T14:49:53Z")

</div>

Hi Everyone, I know the subject line is quite a mouthful! Sorry about that. I’ve managed to embed a Ruby interpreter into my application and I can call Ruby functions from the code in my application. It works fine a…

---

## [make$B$G%(%i!\<(B](https://www.ruby-forum.com/t/make-b-g-i-b/135975)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/make-b-g-i-b/135975 "2008-04-27T13:36:51Z")

</div>

e$B$k$S$-$A$G$9!#e(B svne$B:G?7HG$Ne(BRuby 1.9e$B$Ne(Bmakee$B$G%(%i!\<$K$J$j$^$9!#e(B $ uname -a Linux meg 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 GNU/Linux $ gcc --version gcc (GCC) 4.1.2 20061115 (pr…

---

## [Floating point exception (core dumped) ./ruby -ve 'r = 0\*\*-1; p r + r'](https://www.ruby-forum.com/t/floating-point-exception-core-dumped-ruby-ve-r-0-1-p-r-r/135962)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/floating-point-exception-core-dumped-ruby-ve-r-0-1-p-r-r/135962 "2008-04-27T12:19:51Z")

</div>

e$B0J2\<$N$h$&$K$9$k$H!"e(Bfloating point exception e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘r = 0\*\*-1; p r + r’ ruby 1.9.0 (2008-04-26 revision 16213) \[i686-linux\] zsh: floating point exception (core dumped) ./ruby -ve 'r = …

---

## [Class variable on singleton class](https://www.ruby-forum.com/t/class-variable-on-singleton-class/135967)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 7:06am UTC](https://www.ruby-forum.com/t/class-variable-on-singleton-class/135967 "2008-04-27T07:06:26Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bsingleton class e$B$KDj5A$7$?e(B class variable e$B$O!$$I$&$"$D$+$C$?$b$N$Ge(B e$B$7$g$&$+!%e(B class C obj = Object.new @@vs = :Cvs class \<\< obj @@vs = :objvs # (A) end class \<\< o…

---

## [PartialInvocation sample](https://www.ruby-forum.com/t/partialinvocation-sample/135949)

<div class="topic-metadata">

**Author:** [@guoliang](https://www.ruby-forum.com/u/guoliang)\
**Replies:** 3\
**Last updated:** [April 27, 2008, 6:24am UTC](https://www.ruby-forum.com/t/partialinvocation-sample/135949 "2008-04-27T06:24:57Z")

</div>

Hi, I created a partial invocation example below, which I think can be useful in many cases. Since ruby 1.9 introduced curry as a syntax suger, perhaps a generic and consistent partial invocation can be given a thoug…

---

## [Patch for ruby-dev:34236](https://www.ruby-forum.com/t/patch-for-ruby-dev-34236/135273)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 6\
**Last updated:** [April 27, 2008, 5:56am UTC](https://www.ruby-forum.com/t/patch-for-ruby-dev-34236/135273 "2008-04-27T05:56:19Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B \[ruby-dev:34236\]e$B$KBP$9$k%Q%C%A$r=q$-$^$7$?!#e(B Proc e$B%\*%V%8%’%/%H$N:n@.$5$l$?0LCV$HL54X78$Ke(B module\_eval e$BCf$G$N%a%=%C%IDj5A$,$G$-$k$h$&$K$J$j$^$9!#e(B Index: eval.c — eval.c (revi…

---

## [Lending a hand](https://www.ruby-forum.com/t/lending-a-hand/135964)

<div class="topic-metadata">

**Author:** [@stenzer](https://www.ruby-forum.com/u/stenzer)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 4:16am UTC](https://www.ruby-forum.com/t/lending-a-hand/135964 "2008-04-27T04:16:21Z")

</div>

After lurking on these forums for a while, and getting myself up to speed on where the project is, I’d like to see if I can lend a hand by contributing to the project. I’ve taken care of getting the contributor agre…

---

## [Rbx.exe hits 3GB memory usage during "rake test"](https://www.ruby-forum.com/t/rbx-exe-hits-3gb-memory-usage-during-rake-test/135948)

<div class="topic-metadata">

**Author:** [@Paul\_Batum](https://www.ruby-forum.com/u/Paul_Batum)\
**Replies:** 4\
**Last updated:** [April 27, 2008, 3:08am UTC](https://www.ruby-forum.com/t/rbx-exe-hits-3gb-memory-usage-during-rake-test/135948 "2008-04-27T03:08:34Z")

</div>

Hi there, Today I decided to take a look at IronRuby. I pulled the source down as demonstrated in the video, followed the build instructions on the wiki, and then ran the unit tests using the command ‘rake test’. Aft…

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

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