# Ruby

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

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

---

## [String.intern vs String.to\_sym](https://www.ruby-forum.com/t/string-intern-vs-string-to-sym/144350)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 2\
**Last updated:** [July 29, 2008, 12:24am UTC](https://www.ruby-forum.com/t/string-intern-vs-string-to-sym/144350 "2008-07-29T00:24:16Z")

</div>

Can anyone make a case for ever using String.intern? It seems to be nothing more than an alias to to\_sym on String, and since it’s not defined on Symbol, you can’t ducktype a var to get a symbol. I’m trying to unders…

---

## [System(ping)](https://www.ruby-forum.com/t/system-ping/135106)

<div class="topic-metadata">

**Author:** [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Replies:** 14\
**Last updated:** [July 29, 2008, 12:08am UTC](https://www.ruby-forum.com/t/system-ping/135106 "2008-07-29T00:08:06Z")

</div>

Hi, any idea how I can hand over each object of the array ip\_list to the system(ping) ? Here the code: ip\_list = \[‘192.168.1.1’ , ‘192.168.1.2’ , ‘192.168.1.3’ , ‘192.168.1.4’ , ‘192.168.1.5’ , ‘192.168.1.6’ , ‘192.…

---

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

<div class="topic-metadata">

**Author:** [@t3chn0n3rd](https://www.ruby-forum.com/u/t3chn0n3rd)\
**Replies:** 5\
**Last updated:** [July 28, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/ruby-on-windows/144346 "2008-07-28T23:25:43Z")

</div>

Which application is best for ruby on windows?

---

## [Fail to compile extension library in Cygwin (trunk r18249)](https://www.ruby-forum.com/t/fail-to-compile-extension-library-in-cygwin-trunk-r18249/144316)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/fail-to-compile-extension-library-in-cygwin-trunk-r18249/144316 "2008-07-28T23:21:01Z")

</div>

e$B=uED$G$9!#e(B Cygwin e$B4D6-$Ge(B configuree$B$r\<B9T$9$k$H$-$KAjBP%Q%9$G\<B9T$9$k$He(B e$B3HD%%i%$%V%i%j$N%3%s%Q%$%k$K\<:GT$7$^$9!#e(B (trunke$B$Ne(B r18249e$B$G$9e(B) $ …/…/…/…/svn/ruby/trunk/configure && make … (…

---

## [Invoke block in current binding?](https://www.ruby-forum.com/t/invoke-block-in-current-binding/144228)

<div class="topic-metadata">

**Author:** [@kipcole9](https://www.ruby-forum.com/u/kipcole9)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/invoke-block-in-current-binding/144228 "2008-07-28T22:59:13Z")

</div>

I have a design pattern (Rails app, using RestfulAuthentication plugin with modifications) that wants to have a method that will temporarily elevate user privileges like so: def sudo saved\_current\_user = current\_user …

---

## [Warbler and lowercase web-inf folder](https://www.ruby-forum.com/t/warbler-and-lowercase-web-inf-folder/144337)

<div class="topic-metadata">

**Author:** [@Juan\_PSTarquino](https://www.ruby-forum.com/u/Juan_PSTarquino)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/warbler-and-lowercase-web-inf-folder/144337 "2008-07-28T22:14:13Z")

</div>

I tried to deploy a warbler-generated war file in Tomcat but it did not work until I renamed the web-inf folder to uppercase WEB-INF. I am not sure if this issue has been mentioned before. I am using the latest warble…

---

## [Error running .class generated by jrubyc](https://www.ruby-forum.com/t/error-running-class-generated-by-jrubyc/144020)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/error-running-class-generated-by-jrubyc/144020 "2008-07-28T21:35:32Z")

</div>

Hello guys, I have a ruby script that runs perfect from the command line using jruby. So I tried to compile it with jrubyc and the .class is now generated. Then I proceed to run it with java -cp .:/pathto/jruby.jar c…

---

## [Require war file within JRuby](https://www.ruby-forum.com/t/require-war-file-within-jruby/144323)

<div class="topic-metadata">

**Author:** [@0ffh](https://www.ruby-forum.com/u/0ffh)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/require-war-file-within-jruby/144323 "2008-07-28T20:49:52Z")

</div>

Hello, I am a beginner with JRuby so please show mercy. My question is that can I require a war file within JRuby? When I do a require ‘file.war’ I get an error about not being able to load? testJava.rb:5:in \`require…

---

## [Calling Jruby -S from a java code](https://www.ruby-forum.com/t/calling-jruby-s-from-a-java-code/144329)

<div class="topic-metadata">

**Author:** [@alisajjad\_mushtaq](https://www.ruby-forum.com/u/alisajjad_mushtaq)\
**Replies:** 1\
**Last updated:** [July 28, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/calling-jruby-s-from-a-java-code/144329 "2008-07-28T20:20:35Z")

</div>

Hi, I am trying to integrate JRuby with some other java programs I’m using. I managed to pack jruby with all the required gems inside the jruby-complete.jar file. The problem is about how to load gems in my ruby prog…

---

## [Packaging JRuby Swing app using Profligacy into a .jar](https://www.ruby-forum.com/t/packaging-jruby-swing-app-using-profligacy-into-a-jar/144336)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [July 28, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/packaging-jruby-swing-app-using-profligacy-into-a-jar/144336 "2008-07-28T20:01:50Z")

</div>

Hi, I’ve been playing with Profligacy (a JRuby library that makes it easier to build Swing GUIs) and have reached a point where I want to create a .jar for deployment. Has anyone here actually done such a thing? If y…

---

## [Require war file within JRuby](https://www.ruby-forum.com/t/require-war-file-within-jruby/196760)

<div class="topic-metadata">

**Author:** [@0ffh](https://www.ruby-forum.com/u/0ffh)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/require-war-file-within-jruby/196760 "2008-07-28T20:00:39Z")

</div>

Hello, I am a beginner with JRuby so please show mercy. My question is that can I require a war file within JRuby? When I do a require ‘file.war’ I get an error about not being able to load? testJava.rb:5:in \`require…

---

## [Q: postgres access in Windows](https://www.ruby-forum.com/t/q-postgres-access-in-windows/144304)

<div class="topic-metadata">

**Author:** [@GSRalph\_KuntzS\_MD](https://www.ruby-forum.com/u/GSRalph_KuntzS_MD)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/q-postgres-access-in-windows/144304 "2008-07-28T19:47:09Z")

</div>

I spent a couple of hour this weekend trying to get Ruby to talk to PostgreSQL on a Windows Vista machine without success. I am working with both Cygwin Ruby and JRuby. I installed the DBI gem, including dbd\_pg. I get…

---

## [Regarding validation of email address](https://www.ruby-forum.com/t/regarding-validation-of-email-address/144305)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 3\
**Last updated:** [July 28, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/regarding-validation-of-email-address/144305 "2008-07-28T19:13:47Z")

</div>

hi all i used the following reg. expression /^(\[^@\\s\]+)@((?:\[-a-z0-9\]+.)+\[a-z\]{2,})$/i for validating an email address. and its work nice. \*but i need to add + in the validation as i need it ex: removed\_email\_addres…

---

## [Installing gem for jRuby](https://www.ruby-forum.com/t/installing-gem-for-jruby/144240)

<div class="topic-metadata">

**Author:** [@Yvon\_T](https://www.ruby-forum.com/u/Yvon_T)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/installing-gem-for-jruby/144240 "2008-07-28T19:09:41Z")

</div>

Hey all, i’ve installed jRuby under /opt : ~/work/jRuby%\> ls -al /opt lrwxr-xr-x 1 root admin 17 21 jul 07:16 jruby -\> /opt/jruby-1.1RC3 drwxr-xr-x 12 root admin 408 21 jul 07:14 jruby-1.1RC3 added /opt…

---

## [Head/tail split for path](https://www.ruby-forum.com/t/head-tail-split-for-path/144218)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 12\
**Last updated:** [July 28, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/head-tail-split-for-path/144218 "2008-07-28T17:30:36Z")

</div>

I need to split a path by head/\*tail. Ex. File.head\_tail\_split('home/foo/bar') #=\> \[ 'home', 'foo/bar' \] Sure, I can write a clumsy loop like the following: def File.head\_tail\_split(fname) s = fname t = \[\] h = ni…

---

## [My simple downloader doesn't work](https://www.ruby-forum.com/t/my-simple-downloader-doesnt-work/144320)

<div class="topic-metadata">

**Author:** [@wujciol](https://www.ruby-forum.com/u/wujciol)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/my-simple-downloader-doesnt-work/144320 "2008-07-28T16:50:47Z")

</div>

Hello, I’m learning Ruby for some time. Today I started to write simple code which will download specified files from specified servers but it doesn’t work. It always showing me error 500 when code is going to downlo…

---

## [Export to PDF with google maps + msacces export](https://www.ruby-forum.com/t/export-to-pdf-with-google-maps-msacces-export/144299)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 1\
**Last updated:** [July 28, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/export-to-pdf-with-google-maps-msacces-export/144299 "2008-07-28T15:46:17Z")

</div>

Hi, my client is looking for an application with different forms. Things are a bit nasty because of some requirements: each form has a google map included. after submitting the form, a pdf needs to be generated (goog…

---

## [RackInitializationException: Unknown error - mkdir failed](https://www.ruby-forum.com/t/rackinitializationexception-unknown-error-mkdir-failed/144311)

<div class="topic-metadata">

**Author:** [@janis](https://www.ruby-forum.com/u/janis)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/rackinitializationexception-unknown-error-mkdir-failed/144311 "2008-07-28T15:11:06Z")

</div>

I’m using OSX 10.5, Tomcat 6, Jruby 1.1.3, Java 1.6.0, Rails 2.10. I’m trying to make war file with warbler and deploy to tomcat. With simple application all OK. But when active scaffold is used I’m gettin error. Did …

---

## [CAPTCHA gem](https://www.ruby-forum.com/t/captcha-gem/144306)

<div class="topic-metadata">

**Author:** [@babysudhas](https://www.ruby-forum.com/u/babysudhas)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/captcha-gem/144306 "2008-07-28T14:31:29Z")

</div>

while i am using captcha GEM to get for CAPTCHA images. i give the font path as where the font file is available. But at the time of execution i got the error as " could not open/find font " and also at default it co…

---

## [Is there a better way to do this wxPython example in Ruby?](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-wxpython-example-in-ruby/144234)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [July 28, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-wxpython-example-in-ruby/144234 "2008-07-28T14:13:37Z")

</div>

I have been translating examples from the book “wxPython in Action” into Ruby using wxRuby2. I ran into one example where a method was passed as a parameter in Python. I came up with the solution shown below in Ruby…

---

## [Is it possible to change the superclass of one class dynamic](https://www.ruby-forum.com/t/is-it-possible-to-change-the-superclass-of-one-class-dynamic/144277)

<div class="topic-metadata">

**Author:** [@sean-lerner](https://www.ruby-forum.com/u/sean-lerner)\
**Replies:** 3\
**Last updated:** [July 28, 2008, 11:40am UTC](https://www.ruby-forum.com/t/is-it-possible-to-change-the-superclass-of-one-class-dynamic/144277 "2008-07-28T11:40:33Z")

</div>

I want to change the super class of one class in one of plugins, for example, in plugin class A \< B end in rails initialization configuration file, class A \< C end but when i did this, the error: “TypeError: supe…

---

## [Re: EXCEPTION\_ACCESS\_VIOLATION since 1.1.3](https://www.ruby-forum.com/t/re-exception-access-violation-since-1-1-3/144291)

<div class="topic-metadata">

**Author:** [@P\_Heemskerk](https://www.ruby-forum.com/u/P_Heemskerk)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 10:33am UTC](https://www.ruby-forum.com/t/re-exception-access-violation-since-1-1-3/144291 "2008-07-28T10:33:16Z")

</div>

The --server option also solves the problem. I’ve reported my findings in http://jira.codehaus.org/browse/JRUBY-2871. Thanks. ----- Original Message ---- From: Charles Oliver N. removed\_email\_address@domain.invalid T…

---

## [Faster Marshaling?](https://www.ruby-forum.com/t/faster-marshaling/144231)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 12\
**Last updated:** [July 28, 2008, 9:53am UTC](https://www.ruby-forum.com/t/faster-marshaling/144231 "2008-07-28T09:53:33Z")

</div>

Exploring options… wondering if there’s anything that can replace marshaling that’s similar in usage (dump & load to/from disk file), but faster than the native implementation in Ruby 1.8.6 I can explain some details …

---

## [Re: EXCEPTION\_ACCESS\_VIOLATION since 1.1.3](https://www.ruby-forum.com/t/re-exception-access-violation-since-1-1-3/144288)

<div class="topic-metadata">

**Author:** [@P\_Heemskerk](https://www.ruby-forum.com/u/P_Heemskerk)\
**Replies:** 1\
**Last updated:** [July 28, 2008, 9:04am UTC](https://www.ruby-forum.com/t/re-exception-access-violation-since-1-1-3/144288 "2008-07-28T09:04:17Z")

</div>

Thanks for your reply. (2) Specifying jruby.jit.exclude=parse solved the problem and (1) I’ll do my best to specify the symptoms. Thanks again! ----- Original Message ---- From: Charles Oliver N. removed\_email\_addres…

---

## [Gem\_original\_require](https://www.ruby-forum.com/t/gem-original-require/144284)

<div class="topic-metadata">

**Author:** [@letsask](https://www.ruby-forum.com/u/letsask)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 7:40am UTC](https://www.ruby-forum.com/t/gem-original-require/144284 "2008-07-28T07:40:09Z")

</div>

Hi All I m new to Ruby and trying to add ‘require’ statement in my program i get following error messages. LoadError: no such file to load – builder from /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in …

---

## [Chmod -R u+X in ruby](https://www.ruby-forum.com/t/chmod-r-u-x-in-ruby/144190)

<div class="topic-metadata">

**Author:** [@Tammo\_T](https://www.ruby-forum.com/u/Tammo_T)\
**Replies:** 3\
**Last updated:** [July 28, 2008, 2:24am UTC](https://www.ruby-forum.com/t/chmod-r-u-x-in-ruby/144190 "2008-07-28T02:24:34Z")

</div>

I want to do a recursive changemod. But the chmod in File and FileUtils allows only, at least as far as I have seen, to set absolute file permission. But I want not to make all Files executable and also do not want th…

---

## [Ditz 0.4 released](https://www.ruby-forum.com/t/ditz-0-4-released/144271)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 12:20am UTC](https://www.ruby-forum.com/t/ditz-0-4-released/144271 "2008-07-28T00:20:29Z")

</div>

Ditz version 0.4 has been released! This release features improved git integration. http://ditz.rubyforge.org Ditz is a simple, light-weight distributed issue tracker designed to work with distributed version contr…

---

## [\[ANN\] Radiant CMS 0.6.8 "Incise" Release](https://www.ruby-forum.com/t/ann-radiant-cms-0-6-8-incise-release/144268)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/ann-radiant-cms-0-6-8-incise-release/144268 "2008-07-27T23:33:36Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.6.8 “Incise” adds a number of new features that enhance support for extensions and completes the project’s move to github…

---

## [Re: EXCEPTION\_ACCESS\_VIOLATION since 1.1.3](https://www.ruby-forum.com/t/re-exception-access-violation-since-1-1-3/144245)

<div class="topic-metadata">

**Author:** [@P\_Heemskerk](https://www.ruby-forum.com/u/P_Heemskerk)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/re-exception-access-violation-since-1-1-3/144245 "2008-07-27T21:06:11Z")

</div>

I’m still experiencing the problem after all. JRuby 1.1.3 does give me the EXCEPTION\_ACCESS\_VIOLATION as I described in the first post, even after removing json-jruby-1.1.2-universal-java-1.6. No problems with JRuby …

---

## [Planet Vancouver.rb Now Live - Ruby Postings, Discussions and More from Canada's West Coast](https://www.ruby-forum.com/t/planet-vancouver-rb-now-live-ruby-postings-discussions-and-more-from-canadas-west-coast/144259)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/planet-vancouver-rb-now-live-ruby-postings-discussions-and-more-from-canadas-west-coast/144259 "2008-07-27T21:03:15Z")

</div>

Hello, Planet Vancouver.rb is now live collecting and publishing Ruby/Rails news, postings, discussions from in and around Vancouver, B.C. on Canada’s West Coast in the Americas. Get your feed included. The latest po…

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

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