# Ruby

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

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

---

## [Works in irb but not elsewhere](https://www.ruby-forum.com/t/works-in-irb-but-not-elsewhere/145407)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 9\
**Last updated:** [August 9, 2008, 10:30am UTC](https://www.ruby-forum.com/t/works-in-irb-but-not-elsewhere/145407 "2008-08-09T10:30:59Z")

</div>

Hi i’m creating a DSL, and would like to use the following functionality.It works fine in irb but when I run it from the commandline. Does it look like my fault or a ruby bug? class A def method puts “a” end def A…

---

## [What to do?](https://www.ruby-forum.com/t/what-to-do/145425)

<div class="topic-metadata">

**Author:** [@miniskirt](https://www.ruby-forum.com/u/miniskirt)\
**Replies:** 1\
**Last updated:** [August 9, 2008, 10:21am UTC](https://www.ruby-forum.com/t/what-to-do/145425 "2008-08-09T10:21:02Z")

</div>

Hey, I learnt Ruby for a school project I had to do a while ago. It was superficial knowledge so I wanted to develop it so I read the Pickaxe book as well as the Ruby Way. Now I know a lot about Ruby … but don’t know …

---

## [Re: Ruby IDE](https://www.ruby-forum.com/t/re-ruby-ide/145430)

<div class="topic-metadata">

**Author:** [@Andrew\_PSTasi](https://www.ruby-forum.com/u/Andrew_PSTasi)\
**Replies:** 0\
**Last updated:** [August 9, 2008, 7:09am UTC](https://www.ruby-forum.com/t/re-ruby-ide/145430 "2008-08-09T07:09:20Z")

</div>

+1 for NetBeans. Or if you want to try something else, also look using the Aptana Studio or the related plugins for Eclipse. That includes all of the functionality formerly captured by “Rad Rails” Regards, Andrew P…

---

## [Net::SMTP and Unknown User](https://www.ruby-forum.com/t/net-smtp-and-unknown-user/145294)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [August 9, 2008, 6:38am UTC](https://www.ruby-forum.com/t/net-smtp-and-unknown-user/145294 "2008-08-09T06:38:57Z")

</div>

Hi, Situation: I’ve got a program that automatically sends out emails to large numbers of people in certain situations. Problem: Sometimes people leave the company and their managers aren’t always good about updating…

---

## [Code Heuristics (#172)](https://www.ruby-forum.com/t/code-heuristics-172/144737)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 5\
**Last updated:** [August 9, 2008, 1:54am UTC](https://www.ruby-forum.com/t/code-heuristics-172/144737 "2008-08-09T01:54:17Z")

</div>

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

---

## [Juggernaut problems](https://www.ruby-forum.com/t/juggernaut-problems/145372)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 9, 2008, 1:30am UTC](https://www.ruby-forum.com/t/juggernaut-problems/145372 "2008-08-09T01:30:40Z")

</div>

Hi All, I am new at RoR, I am trying to do “gem install juggernaut”, this requires json and event machine. I have successfully installed event machine, but when I am trying to install juggernaut or json, this is happ…

---

## [Code Review: context](https://www.ruby-forum.com/t/code-review-context/145418)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [August 9, 2008, 1:15am UTC](https://www.ruby-forum.com/t/code-review-context/145418 "2008-08-09T01:15:07Z")

</div>

tfpt review “/shelveset:context;REDMOND\\jdeville” Comment : missing parens caused find\_executable not to work in context.rb. This fixes that problem

---

## [org.jruby.exceptions.RaiseException: No such file to load -- thread.so](https://www.ruby-forum.com/t/org-jruby-exceptions-raiseexception-no-such-file-to-load-thread-so/145416)

<div class="topic-metadata">

**Author:** [@Padmapriya\_Mahaling](https://www.ruby-forum.com/u/Padmapriya_Mahaling)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/org-jruby-exceptions-raiseexception-no-such-file-to-load-thread-so/145416 "2008-08-08T23:38:39Z")

</div>

Hi I am trying to call my ruby active record from java using JSR223. I am running this in Windows Environment. Here is my code: public static void main(String\[\] args) throws Exception { try{ ScriptEng…

---

## [Bytes or Characters?](https://www.ruby-forum.com/t/bytes-or-characters/145323)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/bytes-or-characters/145323 "2008-08-08T23:09:57Z")

</div>

Hey, I’m curious how IronRuby is handling the bytes versus characters issue for Ruby strings. JRuby currently only has byte\[\]-based strings, a decision we made mostly for Ruby performance. But it has obvious implicati…

---

## [Inconsistent block parameters handling by instance\_eval](https://www.ruby-forum.com/t/inconsistent-block-parameters-handling-by-instance-eval/145415)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/inconsistent-block-parameters-handling-by-instance-eval/145415 "2008-08-08T23:02:57Z")

</div>

class A def A.method &block A.new.instance\_eval &block end def A.method2 &block A.new.instance\_eval {block.call} end end A.method{p self} #prints #\<A:0x28c2858\> A.method2{p self} #prints main From this example:…

---

## [Fail to make ruby(trunk r18441)](https://www.ruby-forum.com/t/fail-to-make-ruby-trunk-r18441/145414)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/fail-to-make-ruby-trunk-r18441/145414 "2008-08-08T22:57:04Z")

</div>

e$B=uED$G$9!#e(B trunk e$B$G!"2?$b$J$$%G%#%l%/%H%j$G:G=i$+$ie(B ruby e$B$re(B make e$B$9$k$He(B e$BESCf$G\<:GT$7$^$9!#e(B …/…/…/…/svn/ruby/trunk/enc/make\_encdb.rb:30:in \`open’: No such file or directory - enc (Errno…

---

## [Code Review: readlink](https://www.ruby-forum.com/t/code-review-readlink/145410)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/code-review-readlink/145410 "2008-08-08T22:28:58Z")

</div>

tfpt review “/shelveset:readlink;REDMOND\\jdeville” Comment : implemented File.readlink in order to run MSpec unpatched

---

## [Find\_all\_by returning nil with rspec](https://www.ruby-forum.com/t/find-all-by-returning-nil-with-rspec/145411)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/find-all-by-returning-nil-with-rspec/145411 "2008-08-08T22:25:12Z")

</div>

The statement products = find\_all\_by\_category\_id(category\_id) in the Product model is returning nil with rspec. I am expecting it to to return the stub that I provided it with. It does not also work with fixtures. P…

---

## [Ruby patch numbers silently rise](https://www.ruby-forum.com/t/ruby-patch-numbers-silently-rise/145324)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/ruby-patch-numbers-silently-rise/145324 "2008-08-08T21:33:25Z")

</div>

Does anybody else find it odd that Ruby doesn’t seem to advertise when the patch number increases? Would it be useful for me to post here when they do, as an announcement? Thanks! -R

---

## [Validating form input](https://www.ruby-forum.com/t/validating-form-input/145340)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/validating-form-input/145340 "2008-08-08T21:12:50Z")

</div>

Hi Everybody, I have a simple form whose input I am trying to validate in the controller. However, this if clause is not getting called at all… Is this a correct way to do it? Please help. In Controller (action is…

---

## [Ruby-doc.org now showing 1.8.6 docs by default](https://www.ruby-forum.com/t/ruby-doc-org-now-showing-1-8-6-docs-by-default/145403)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/ruby-doc-org-now-showing-1-8-6-docs-by-default/145403 "2008-08-08T20:56:26Z")

</div>

I changed ruby-doc.org to offer up the 1.8.6 docs by default. My understanding is that there are far more people sticking with 1.8.6 (such as myself) instead of moving to 1.8.7, so making 1.8.6 the default is less co…

---

## [Rubygame -- need help with zoom](https://www.ruby-forum.com/t/rubygame-need-help-with-zoom/145395)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/rubygame-need-help-with-zoom/145395 "2008-08-08T20:50:22Z")

</div>

Hello all, I’m trying to get a Rubygame example to zoom, and can’t seem to do so. Right now, I’m simply drawing a single pixel at the center of the screen, then trying to zoom when I press the space bar. I have my ev…

---

## [Still missing the boat on class/instance methods](https://www.ruby-forum.com/t/still-missing-the-boat-on-class-instance-methods/144981)

<div class="topic-metadata">

**Author:** [@laredotornado](https://www.ruby-forum.com/u/laredotornado)\
**Replies:** 8\
**Last updated:** [August 8, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/still-missing-the-boat-on-class-instance-methods/144981 "2008-08-08T19:39:43Z")

</div>

Hi, Yesterday the group was kind enough to explain distinctions between class and instance methods, but I guess I still missed something b/c I’m getting an error. I have this method in my EcOrder model … class EcOrd…

---

## [Ruby-ldap on Windows (built)](https://www.ruby-forum.com/t/ruby-ldap-on-windows-built/58123)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 36\
**Last updated:** [August 8, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/ruby-ldap-on-windows-built/58123 "2008-08-08T19:31:18Z")

</div>

I have finally managed to build the ruby-ldap library for the Windows platform (i.e. not a cygwin or ming build, but an mswin32 build). This has been an issue for awhile as the maintainer of the project does not have …

---

## [Emacs .el files](https://www.ruby-forum.com/t/emacs-el-files/145390)

<div class="topic-metadata">

**Author:** [@orlick](https://www.ruby-forum.com/u/orlick)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/emacs-el-files/145390 "2008-08-08T18:39:27Z")

</div>

Hi All, It would be nice if there was a README file in the “ruby/misc” directory on how to apply the emacs .el files to .emacs. I copied all the .el files into the /usr/share/emacs/site-list/site-start.d directory.…

---

## [Code Review: unniseo](https://www.ruby-forum.com/t/code-review-unniseo/145351)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/code-review-unniseo/145351 "2008-08-08T18:30:05Z")

</div>

tfpt review “/shelveset:unniseo;REDMOND\\jdeville” Comment : -Patch from Unni to return true for File.zero? ‘nul’ and File.zero? ‘NUL’ -Patch from Seo to search for both ruby and ruby.exe when searching for a ruby b…

---

## [.lang.NoSuchMethodError: org.jruby.Ruby.newInstance()](https://www.ruby-forum.com/t/lang-nosuchmethoderror-org-jruby-ruby-newinstance/145392)

<div class="topic-metadata">

**Author:** [@padmapriya](https://www.ruby-forum.com/u/padmapriya)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/lang-nosuchmethoderror-org-jruby-ruby-newinstance/145392 "2008-08-08T18:07:52Z")

</div>

I am trying to JSR223 to call ruby method from java. My Jruby version is 0.9.8. My Java Version 6. Here is my Code import javax.script.; import java.util.; public class EvalScript { public static void main(String\[\]…

---

## [August Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/145391)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/145391 "2008-08-08T18:04:55Z")

</div>

August Phoenix Ruby U. Group Meeting Date: Monday, August 11, 2008 Time: 6:30 pm - at Saguaro branch Phoenix Public Library Place: Saguaro branch Phoenix Public Library 2808 N. 46th Street Phoenix, AZ 85008 IMPOR…

---

## [BIG memory problem](https://www.ruby-forum.com/t/big-memory-problem/145364)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 8, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/big-memory-problem/145364 "2008-08-08T17:52:00Z")

</div>

Hi all, I’m having a really odd memory problem with a small ruby program I’ve written. It basically takes in lines from input files (which represent router flows), deduplicates them (based on elements of the line) and …

---

## [Storing encrypted password in to database](https://www.ruby-forum.com/t/storing-encrypted-password-in-to-database/145360)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 5\
**Last updated:** [August 8, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/storing-encrypted-password-in-to-database/145360 "2008-08-08T17:40:52Z")

</div>

Hi, I want to store encrypted password in to database… If you have any solution plz reply Thanx in advance

---

## [BIG memory problem](https://www.ruby-forum.com/t/big-memory-problem/145365)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/big-memory-problem/145365 "2008-08-08T17:06:50Z")

</div>

Hi all, I’m having a really odd memory problem with a small ruby program I’ve written. It basically takes in lines from input files (which represent router flows), deduplicates them (based on elements of the line) and …

---

## [Image\_voodoo and attachment\_fu](https://www.ruby-forum.com/t/image-voodoo-and-attachment-fu/145320)

<div class="topic-metadata">

**Author:** [@Matthew\_McKnight](https://www.ruby-forum.com/u/Matthew_McKnight)\
**Replies:** 4\
**Last updated:** [August 8, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/image-voodoo-and-attachment-fu/145320 "2008-08-08T17:00:24Z")

</div>

I’m running into an error with image\_voodoo 0.4 and attachment\_fu, it doesn’t appear to be creating any thumbnails. No error messages…except on the view page where the public\_filename is coming up nil. Any ideas as …

---

## [State of Ruby 1.8.6?](https://www.ruby-forum.com/t/state-of-ruby-1-8-6/145094)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 18\
**Last updated:** [August 8, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/state-of-ruby-1-8-6/145094 "2008-08-08T16:07:05Z")

</div>

Can anyone provide an update to the state of Ruby 1.8.6? I tried to follow the threads on ruby-core, but it seemed discussions were happening in multiple places (some mailing list, some irc, etc.) and I can’t understa…

---

## [Rb\_sys\_fail(socket(2)) - errno == 0](https://www.ruby-forum.com/t/rb-sys-fail-socket-2-errno-0/145079)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 8\
**Last updated:** [August 8, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/rb-sys-fail-socket-2-errno-0/145079 "2008-08-08T15:56:33Z")

</div>

That is the error message I get when I try either of these methods for creating an ICMP packet: socket = Socket.new(Socket::PF\_INET, Socket::SOCK\_RAW, Socket::IPPROTO\_ICMP) or with net-ping icmp = Ping::ICMP.new(‘m…

---

## [Regex. How to return multiple lines](https://www.ruby-forum.com/t/regex-how-to-return-multiple-lines/145363)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 9\
**Last updated:** [August 8, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/regex-how-to-return-multiple-lines/145363 "2008-08-08T15:55:22Z")

</div>

I have a text file containing some data. Rows are normaly delimited with newline char. I assume that file would be read in one chunk into memory. Is it possible with regex and how to return all lines containing some s…

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

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