# Ruby

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

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

---

## [Building a JRuby Quartz gem for scheduling; running into problems passing a JRuby object's class whe](https://www.ruby-forum.com/t/building-a-jruby-quartz-gem-for-scheduling-running-into-problems-passing-a-jruby-objects-class-whe/157758)

<div class="topic-metadata">

**Author:** [@ilan](https://www.ruby-forum.com/u/ilan)\
**Replies:** 7\
**Last updated:** [January 17, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/building-a-jruby-quartz-gem-for-scheduling-running-into-problems-passing-a-jruby-objects-class-whe/157758 "2009-01-17T13:35:20Z")

</div>

I had a lot of hope for the Quartz-Rails plugin that was created a while ago: http://www.jkraemer.net/2008/1/12/job-scheduling-with-jruby-and-rails Unfortunately, it doesn’t work with the newest versions of JRuby and …

---

## [Open\_uri.rb -- 500 Internal Server Error](https://www.ruby-forum.com/t/open-uri-rb-500-internal-server-error/157973)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/open-uri-rb-500-internal-server-error/157973 "2009-01-17T13:02:29Z")

</div>

Hello to all, I am using ‘open-uri’ & ‘pp’ ruby library, to open url and gather some data from given web page. But it throws following error c:/ruby/lib/ruby/1.8/open-uri.rb:278:in open\_http': 500 Internal Server Erro…

---

## [Defining an object constructor that look like \[\] or {} ...?](https://www.ruby-forum.com/t/defining-an-object-constructor-that-look-like-or/157949)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 4\
**Last updated:** [January 17, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/defining-an-object-constructor-that-look-like-or/157949 "2009-01-17T12:10:35Z")

</div>

Hey Guys, Ruby has built in object constuctors for Array and Hash via \[\] and {}… ie: an\_array = \[1, 2, 3, 6\] a\_hash = {1=\>3, 2=\>5, ‘a’=\>‘green’} I would like to do the same for one of my classes… i.e. my\_object = |…

---

## [Perception System Requires iPhone Developer](https://www.ruby-forum.com/t/perception-system-requires-iphone-developer/157988)

<div class="topic-metadata">

**Author:** [@perceptwilli](https://www.ruby-forum.com/u/perceptwilli)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 11:29am UTC](https://www.ruby-forum.com/t/perception-system-requires-iphone-developer/157988 "2009-01-17T11:29:11Z")

</div>

Job Description / Responsibilities: â€¢ iPhone Application/Software/Game development Desired Profile of the Candidate: â€¢ Candidate should have worked on iPhone application development (at least completed 2 small …

---

## [Ruby macro bind conflicts tr1 on msvc9.0](https://www.ruby-forum.com/t/ruby-macro-bind-conflicts-tr1-on-msvc9-0/157984)

<div class="topic-metadata">

**Author:** [@Christoph\_Heindl](https://www.ruby-forum.com/u/Christoph_Heindl)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 10:27am UTC](https://www.ruby-forum.com/t/ruby-macro-bind-conflicts-tr1-on-msvc9-0/157984 "2009-01-17T10:27:29Z")

</div>

Hi, It seems that the macro bind as defined in trunk/include/ruby/win32.h conflicts with added tr1 support to msvc9.0 (which is essentially SP1). The conflict arises when \<trunk/include/ruby/win32.h\> is included alon…

---

## [SOAP wsdlDriver doesn't work without soap4r?](https://www.ruby-forum.com/t/soap-wsdldriver-doesnt-work-without-soap4r/157983)

<div class="topic-metadata">

**Author:** [@Henry\_Jen](https://www.ruby-forum.com/u/Henry_Jen)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 9:39am UTC](https://www.ruby-forum.com/t/soap-wsdldriver-doesnt-work-without-soap4r/157983 "2009-01-17T09:39:31Z")

</div>

Hi, I am trying to access a SOAP web service implemented in Java(I believe), but there is a problem for xsd:string type argument, the result request message always be empty string if I don’t have ‘soap4r’ (Inspired b…

---

## [Compiling Ruby with MSVC](https://www.ruby-forum.com/t/compiling-ruby-with-msvc/157977)

<div class="topic-metadata">

**Author:** [@Sergey\_Haritonov](https://www.ruby-forum.com/u/Sergey_Haritonov)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 7:45am UTC](https://www.ruby-forum.com/t/compiling-ruby-with-msvc/157977 "2009-01-17T07:45:28Z")

</div>

Hi all. Well, I managed to build Ruby latest snapshot with nmake. Now I need to build Ruby as Visual Studio solution, but I just stuck in error messages. I spent some time in lurking around and found this post: http:…

---

## [First bit of hacked-together code, and not sure where I've gone wrong](https://www.ruby-forum.com/t/first-bit-of-hacked-together-code-and-not-sure-where-ive-gone-wrong/157971)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 7:11am UTC](https://www.ruby-forum.com/t/first-bit-of-hacked-together-code-and-not-sure-where-ive-gone-wrong/157971 "2009-01-17T07:11:00Z")

</div>

Hi there, this is my first program in any programming language, and I’m not quite sure how to help myself learn yet, so here is my mal- formed code: sum = 0 print "Type the number to add up until: " gets chomp for…

---

## [Rake project structure,? good?](https://www.ruby-forum.com/t/rake-project-structure-good/157976)

<div class="topic-metadata">

**Author:** [@peterk](https://www.ruby-forum.com/u/peterk)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 6:22am UTC](https://www.ruby-forum.com/t/rake-project-structure-good/157976 "2009-01-17T06:22:04Z")

</div>

So more Raking - wanting to divide up projects in subdirs into sandbox directories but also have parent rakefile actually include their “children” into the dependency graph to be more efficient and accurate. and yet a…

---

## [Desktop Database Application in Ruby](https://www.ruby-forum.com/t/desktop-database-application-in-ruby/157876)

<div class="topic-metadata">

**Author:** [@rapido](https://www.ruby-forum.com/u/rapido)\
**Replies:** 5\
**Last updated:** [January 17, 2009, 1:06am UTC](https://www.ruby-forum.com/t/desktop-database-application-in-ruby/157876 "2009-01-17T01:06:07Z")

</div>

Has anyone among the members made database application in Ruby? I want to learn ruby and create a desktop database application like Point of Sale, Inventory, Library management System etc wherein updates in 2 or more …

---

## [Convert String to Float if and only if the content of the string are digits](https://www.ruby-forum.com/t/convert-string-to-float-if-and-only-if-the-content-of-the-string-are-digits/157962)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 2\
**Last updated:** [January 17, 2009, 12:31am UTC](https://www.ruby-forum.com/t/convert-string-to-float-if-and-only-if-the-content-of-the-string-are-digits/157962 "2009-01-17T00:31:00Z")

</div>

Hi All, Long time reader – first time poster. Basically, I have a bunch of data that is sucked in from a file. From reading the pick axe book, it is my understanding that this data by default will be a string even …

---

## [SVN and Git pushes](https://www.ruby-forum.com/t/svn-and-git-pushes/157964)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 12:28am UTC](https://www.ruby-forum.com/t/svn-and-git-pushes/157964 "2009-01-17T00:28:04Z")

</div>

I’ve pushed SVN revision 185, and Git revision 13dd51f. This is the final push to SVN. JD

---

## [Quizmaster Retiring: Revenge of the Sith](https://www.ruby-forum.com/t/quizmaster-retiring-revenge-of-the-sith/157750)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 37\
**Last updated:** [January 17, 2009, 12:15am UTC](https://www.ruby-forum.com/t/quizmaster-retiring-revenge-of-the-sith/157750 "2009-01-17T00:15:46Z")

</div>

Sorry for the dorky subject line… A bit over a year ago, mid-November of 2007, James G. announced he was retiring as the Ruby Q. master. He had run the quiz for nearly three years, a wonderful achievement enjoyed by m…

---

## [Create copy of array without changing original](https://www.ruby-forum.com/t/create-copy-of-array-without-changing-original/157950)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/create-copy-of-array-without-changing-original/157950 "2009-01-16T23:06:33Z")

</div>

Why is it that if I create an array, a = \[1,2,3\] then do b = a then b\[0\] = 99 why is that a\[0\] magically becomes 99 too? how can I preserve ‘a’ after I make a copy of it, then change that new copy?

---

## [Should 1.1.6 work with Java 5?](https://www.ruby-forum.com/t/should-1-1-6-work-with-java-5/157954)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/should-1-1-6-work-with-java-5/157954 "2009-01-16T21:46:42Z")

</div>

When I try to do anything with JRuby 1.1.6 and Java 5, I get this error: Error: Some library (perhaps JRuby) was built with a later JVM version. Please use libraries built with the version you intend to use or an earl…

---

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

<div class="topic-metadata">

**Author:** [@Emily\_Hakey](https://www.ruby-forum.com/u/Emily_Hakey)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/no-subject/157953 "2009-01-16T21:24:22Z")

</div>

unsubscribe

---

## [Bloc param parens |memo, (a, b)|](https://www.ruby-forum.com/t/bloc-param-parens-memo-a-b/157939)

<div class="topic-metadata">

**Author:** [@tjholowaychuk](https://www.ruby-forum.com/u/tjholowaychuk)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/bloc-param-parens-memo-a-b/157939 "2009-01-16T21:09:19Z")

</div>

In Ruby \< 1.9 what does this really do? For example I wrote class String def tokenize! hash hash.inject(self) { |s, (k, v)| s.gsub! /:#{k}/, v } end end Which has a usage of: ‘Welcome :name, enjoy your :object’.to…

---

## [Runtime error after moving to 1.8.7](https://www.ruby-forum.com/t/runtime-error-after-moving-to-1-8-7/156041)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 4\
**Last updated:** [January 16, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/runtime-error-after-moving-to-1-8-7/156041 "2009-01-16T19:55:00Z")

</div>

Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby 1.8.7 and calling CursorBase#drop I get the following error message wrong number of arguments (0 for 1) (ArgumentError) CursorBase#drop is declared…

---

## [Printing problems with 'spreadsheet' gem](https://www.ruby-forum.com/t/printing-problems-with-spreadsheet-gem/157929)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/printing-problems-with-spreadsheet-gem/157929 "2009-01-16T19:54:17Z")

</div>

Hi, I’m using the ‘spreadsheet’ gem to generate a number of invoices automatically. In itself that works great, but when I come to print the files I have generated I get the error message “Microsoft Excel did not fin…

---

## [String interpolation at a later stage](https://www.ruby-forum.com/t/string-interpolation-at-a-later-stage/157928)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/string-interpolation-at-a-later-stage/157928 "2009-01-16T19:25:01Z")

</div>

x = ‘hello’ y = ‘#{x} world’ desired result = ‘hello world’ Please note that variable y has the string interpolation code under single quotes. I have these two values x and y. And with that I need to get to the des…

---

## [RubyGem, find path of installed gem through ruby](https://www.ruby-forum.com/t/rubygem-find-path-of-installed-gem-through-ruby/157855)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 10\
**Last updated:** [January 16, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/rubygem-find-path-of-installed-gem-through-ruby/157855 "2009-01-16T19:12:15Z")

</div>

Hey All, First, where is there some api docs for rubygem related methods and classes? Second, I have a gem that bundles some required files for the gem. How do I find the path of the installed gem, so that I can load…

---

## [Timeout error--newbie needs help, please](https://www.ruby-forum.com/t/timeout-error-newbie-needs-help-please/157931)

<div class="topic-metadata">

**Author:** [@LinuxMercedes](https://www.ruby-forum.com/u/LinuxMercedes)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/timeout-error-newbie-needs-help-please/157931 "2009-01-16T17:05:45Z")

</div>

Hi, I’m trying to interface with NewsGator’s API, which is a RESTful interface. I’m using their sample code: def loadLocations(username, password) http = Net::HTTP.start(‘services.newsgator.com’) req = Net::HTTP::G…

---

## [Programmatically adding an Excel attachment](https://www.ruby-forum.com/t/programmatically-adding-an-excel-attachment/157846)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/programmatically-adding-an-excel-attachment/157846 "2009-01-16T16:35:51Z")

</div>

I’ve checked out this page → that shows how to e-mail a text file attachment.I’m trying to attach an Excel file, but the receiver gets a corrupted file attachment. I’ve changed the Content-Type: in the MIME header t…

---

## [To\_s(base=2) in 1.8 only?](https://www.ruby-forum.com/t/to-s-base-2-in-1-8-only/157886)

<div class="topic-metadata">

**Author:** [@tststs](https://www.ruby-forum.com/u/tststs)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/to-s-base-2-in-1-8-only/157886 "2009-01-16T16:10:53Z")

</div>

f.each\_byte {|x| print x.to\_s(base=2).rjust(8,‘0’) the above will fail in 1.6.4 wanna ask if to\_s(base=2) is only available in 1.8? my intention is to get each byte and output it as 10101010 format. Is there any way …

---

## [XSLT help](https://www.ruby-forum.com/t/xslt-help/196880)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/xslt-help/196880 "2009-01-16T15:51:49Z")

</div>

is there any tool which will generate XSLT for converting from XML to fixed lenght Text format.I mean is there any IDE which will let us drag and drop the contents of XML and set some properties and give us the XSLT c…

---

## [10 things to be aware of in 1.8 -\> 1.9 transition](https://www.ruby-forum.com/t/10-things-to-be-aware-of-in-1-8-1-9-transition/157723)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 22\
**Last updated:** [January 16, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/10-things-to-be-aware-of-in-1-8-1-9-transition/157723 "2009-01-16T14:47:20Z")

</div>

Hi – I know it’s not usual to announce blog posts here, but I’m going to indulge the impulse as the content of this one is something I might have posted here anyway: http://dablog.rubypal.com/2009/1/14/10-things-to-b…

---

## [Ncurses like library?](https://www.ruby-forum.com/t/ncurses-like-library/157705)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 19\
**Last updated:** [January 16, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/ncurses-like-library/157705 "2009-01-16T14:47:15Z")

</div>

Excuse me, but does anyone know of an Ncurses-like library for Ruby? For putting graphics made with static text onto a terminal/DOS window?

---

## [How to execute URL in ruby on rails.?](https://www.ruby-forum.com/t/how-to-execute-url-in-ruby-on-rails/157893)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/how-to-execute-url-in-ruby-on-rails/157893 "2009-01-16T14:13:51Z")

</div>

i have problem, how to excute a URL string in ruby. Input ------\> if i provide url in textfield named “song\_url” like “mywebsite.com is available for purchase - Sedo.com”. and i click on submit button. output -----\> …

---

## [\[JOB\] Ruby on Rails developers needed at assembla.com](https://www.ruby-forum.com/t/job-ruby-on-rails-developers-needed-at-assembla-com/157900)

<div class="topic-metadata">

**Author:** [@assembla](https://www.ruby-forum.com/u/assembla)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-developers-needed-at-assembla-com/157900 "2009-01-16T12:52:54Z")

</div>

Please apply online at https://www.assembla.com/search/show\_job/164 Assembla seeks talented Ruby on Rails developers. We are looking for productive coders to drive our code forward with rails and JavaScript. You will …

---

## [Will\_paginate using post method](https://www.ruby-forum.com/t/will-paginate-using-post-method/157870)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/will-paginate-using-post-method/157870 "2009-01-16T12:25:34Z")

</div>

Hi All, Is the will\_paginate plugin will work only for method get… is it so why it is not working post method is there any solution … plz reply me

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

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