# Ruby

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

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

---

## [Cext build error on Win7 32-bit](https://www.ruby-forum.com/t/cext-build-error-on-win7-32-bit/194721)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 5\
**Last updated:** [September 10, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/cext-build-error-on-win7-32-bit/194721 "2010-09-10T21:09:28Z")

</div>

C:\\Users\\Jon\\Documents\\JavaDev\\jruby\>g++ --version g++ (tdm-1) 4.5.1 C:\\Users\\Jon\\Documents\\JavaDev\\jruby\>ant clean cext …… \[exec\] g++ -DNDEBUG -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Wall -Wno-unused -…

---

## [Complete newb stuck on command](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794)

<div class="topic-metadata">

**Author:** [@xogue](https://www.ruby-forum.com/u/xogue)\
**Replies:** 3\
**Last updated:** [September 10, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794 "2010-09-10T20:59:31Z")

</div>

going through chris pine tutorial and am stuck on command line. when i get to the folder that has my script and i enter calc.rb it opens my pdf reader for whatever reason and says it cannot run. ive been stuck at the …

---

## [Making an application that can run the program on a computer](https://www.ruby-forum.com/t/making-an-application-that-can-run-the-program-on-a-computer/194685)

<div class="topic-metadata">

**Author:** [@kasenath](https://www.ruby-forum.com/u/kasenath)\
**Replies:** 3\
**Last updated:** [September 10, 2010, 8:48pm UTC](https://www.ruby-forum.com/t/making-an-application-that-can-run-the-program-on-a-computer/194685 "2010-09-10T20:48:52Z")

</div>

How do you make an application that can run the program on a computer that doesn’t have Ruby?

---

## [Mechanize Cache problem](https://www.ruby-forum.com/t/mechanize-cache-problem/194790)

<div class="topic-metadata">

**Author:** [@cameron1inm](https://www.ruby-forum.com/u/cameron1inm)\
**Replies:** 4\
**Last updated:** [September 10, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/mechanize-cache-problem/194790 "2010-09-10T19:26:08Z")

</div>

Hi ok hears the deal, I’m building a program that notify’s you when theres a new entry on a webpage. Problem is my mechanize results seems to be about 10 minutes behind! Mechanize is not returning the most current st…

---

## [Object equality](https://www.ruby-forum.com/t/object-equality/194708)

<div class="topic-metadata">

**Author:** [@Davy\_B](https://www.ruby-forum.com/u/Davy_B)\
**Replies:** 9\
**Last updated:** [September 10, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/object-equality/194708 "2010-09-10T18:43:42Z")

</div>

If i have the following class in ruby: class TestClass def initialize(value) @value = value end def ==(other) return false if other.nil? self.value == other.value end protected def value @value end end test…

---

## [Class Extension Mixin](https://www.ruby-forum.com/t/class-extension-mixin/194769)

<div class="topic-metadata">

**Author:** [@eugen](https://www.ruby-forum.com/u/eugen)\
**Replies:** 1\
**Last updated:** [September 10, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/class-extension-mixin/194769 "2010-09-10T18:06:13Z")

</div>

Hi I want to buid up module of Financial variables. It can be used like this Financial.year.start #returns start of … guess what :slight\_smile: Financial.year.finish Financial.quarter.start Financial.quarter.end …

---

## [Calling private accessors](https://www.ruby-forum.com/t/calling-private-accessors/194784)

<div class="topic-metadata">

**Author:** [@Davy\_B](https://www.ruby-forum.com/u/Davy_B)\
**Replies:** 3\
**Last updated:** [September 10, 2010, 5:04pm UTC](https://www.ruby-forum.com/t/calling-private-accessors/194784 "2010-09-10T17:04:44Z")

</div>

Hi, i bumbed into something weird today, and would like to know what’s going on… here’s a contrived example: class Test attr\_reader :name def set\_the\_name(value) name = value end private def name=(value) @name …

---

## [Where to start for developing a service REST API?](https://www.ruby-forum.com/t/where-to-start-for-developing-a-service-rest-api/194768)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 2\
**Last updated:** [September 10, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/where-to-start-for-developing-a-service-rest-api/194768 "2010-09-10T17:02:24Z")

</div>

Hi, I’m toying with the idea of a private project which exposes a HTTP REST API. It will not start out with any HTML/UI stuff at first and will be strictly json (because a desktop client already exists), although a HT…

---

## [Receiving array naturally?](https://www.ruby-forum.com/t/receiving-array-naturally/194629)

<div class="topic-metadata">

**Author:** [@callyworld](https://www.ruby-forum.com/u/callyworld)\
**Replies:** 13\
**Last updated:** [September 10, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/receiving-array-naturally/194629 "2010-09-10T16:31:57Z")

</div>

As I learn Ruby, I find a lot of flexibility in the syntax. I was thinking there was a way to do something like so: Say I had a method that would receive an array. Is it possible to define the method so that it can ta…

---

## [Get particular thing from #\<Net::HTTP google.com:80 open=tru](https://www.ruby-forum.com/t/get-particular-thing-from-net-http-google-com-80-open-tru/194779)

<div class="topic-metadata">

**Author:** [@pshah](https://www.ruby-forum.com/u/pshah)\
**Replies:** 1\
**Last updated:** [September 10, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/get-particular-thing-from-net-http-google-com-80-open-tru/194779 "2010-09-10T16:19:53Z")

</div>

hi, #\<Net::HTTP google.com:80 open=true\> I get this by using p http now i want to get “google.com” from it how can i get? Thanks,

---

## [Connection with MS SQL Server](https://www.ruby-forum.com/t/connection-with-ms-sql-server/194653)

<div class="topic-metadata">

**Author:** [@stamppot](https://www.ruby-forum.com/u/stamppot)\
**Replies:** 2\
**Last updated:** [September 10, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/connection-with-ms-sql-server/194653 "2010-09-10T15:26:22Z")

</div>

Hi, I’m looking for a library which enables me to execute SQL statements on a MS SQL database server. The libs I found until now on the Net seemed to allow only SELECT statements, I need to to the following operations…

---

## [ã‚¹ãƒˆãƒªãƒ¼ãƒ æ¯Žã«æ”¹è¡Œæ–‡å­—ã‚’è¨­å®š ã—ãŸã„](https://www.ruby-forum.com/t/a-a-a-a-a-ae-za-ae-e-oeae-a-a-e-a-s-a-a-ya/194693)

<div class="topic-metadata">

**Author:** [@MoonWolf](https://www.ruby-forum.com/u/MoonWolf)\
**Replies:** 3\
**Last updated:** [September 10, 2010, 1:42pm UTC](https://www.ruby-forum.com/t/a-a-a-a-a-ae-za-ae-e-oeae-a-a-e-a-s-a-a-ya/194693 "2010-09-10T13:42:10Z")

</div>

gets,putsãªã©ã®è¡ŒæŒ‡å‘å…¥å‡ºåŠ›ã§ã‚¹ãƒˆãƒªãƒ¼ãƒ æ¯Žã«æ”¹è¡Œæ–‡å­—ãŒè¨­å®šã—ãŸã„ã®ã§ãƒ‘ãƒƒ ãƒã‚’æ›¸ã„ã¦ã¿ã¾ã—ãŸã€‚ IO#rs,IO#rs=ãƒ¡ã‚½ãƒƒãƒ‰ã§ãƒ¬ã‚³ãƒ¼ãƒ‰ã‚»ãƒ‘ãƒ¬ãƒ¼ã‚¿ãŒè¨­å®šã§ãã¾ã™ã€‚ open…

---

## [Spamassassin assasinated](https://www.ruby-forum.com/t/spamassassin-assasinated/194781)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 0\
**Last updated:** [September 10, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/spamassassin-assasinated/194781 "2010-09-10T13:14:40Z")

</div>

Well, of course it’s a Perl program. :wink: Cheers robert ---------- Forwarded message ---------- From: Mail Delivery S. removed\_email\_address@domain.invalid Date: Fri, Sep 10, 2010 at 12:58 PM Subject: Undelivered…

---

## [Ruby Documentation](https://www.ruby-forum.com/t/ruby-documentation/194694)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 10\
**Last updated:** [September 10, 2010, 8:07am UTC](https://www.ruby-forum.com/t/ruby-documentation/194694 "2010-09-10T08:07:24Z")

</div>

Hi All, I’m looking to move from PHP to Ruby as my web development platform of choice. Over the years, I’ve become very fond of PHP’s documentation simply because it’s easy to find the information your after, and the …

---

## [Rounding UP by 0.05](https://www.ruby-forum.com/t/rounding-up-by-0-05/194760)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 3\
**Last updated:** [September 10, 2010, 3:34am UTC](https://www.ruby-forum.com/t/rounding-up-by-0-05/194760 "2010-09-10T03:34:38Z")

</div>

I am almost there but not quite. I need to round UP the computed tax amount to the nearest 5 cents (or $ 0.05). I have gotten to the point where I can round (up or down) to the nearest 5 cents. Here is my funtion: …

---

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

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [September 10, 2010, 3:12am UTC](https://www.ruby-forum.com/t/september-phoenix-ruby-user-group-meeting/194763 "2010-09-10T03:12:20Z")

</div>

September Phoenix Ruby U. Group Meeting When: Monday, September 13, 2010 6:30pm doors open. Laptop power and Wi-Fi available. 7:00pm Show time 8:30pm Migrate to Four Peaks Brewery Topic: JavaScript! Naum Tri…

---

## [Method not inherit?](https://www.ruby-forum.com/t/method-not-inherit/194762)

<div class="topic-metadata">

**Author:** [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Replies:** 2\
**Last updated:** [September 10, 2010, 2:09am UTC](https://www.ruby-forum.com/t/method-not-inherit/194762 "2010-09-10T02:09:06Z")

</div>

Hi, I’m a newbie in Ruby and created this module: require ‘couchrest\_model’ module RdfModelModule class RdfModel \< CouchRest::Model::Base def rdf\_schema p ‘hello’ end end end When I create a new class based no …

---

## [ACCU 2011 Conference Call for Proposals -- deadline approaching](https://www.ruby-forum.com/t/accu-2011-conference-call-for-proposals-deadline-approaching/194758)

<div class="topic-metadata">

**Author:** [@aspro](https://www.ruby-forum.com/u/aspro)\
**Replies:** 0\
**Last updated:** [September 10, 2010, 12:25am UTC](https://www.ruby-forum.com/t/accu-2011-conference-call-for-proposals-deadline-approaching/194758 "2010-09-10T00:25:27Z")

</div>

Hi all, This is a reminder that the deadline for the ACCU 2011 CfP is approaching fast–26th of September 2010. If you have not sent your proposals yet, below there are more details on how to do so. Call for Proposal…

---

## [RSP Web Framework, first public release](https://www.ruby-forum.com/t/rsp-web-framework-first-public-release/194759)

<div class="topic-metadata">

**Author:** [@Mike\_Owens](https://www.ruby-forum.com/u/Mike_Owens)\
**Replies:** 0\
**Last updated:** [September 10, 2010, 12:06am UTC](https://www.ruby-forum.com/t/rsp-web-framework-first-public-release/194759 "2010-09-10T00:06:43Z")

</div>

RSP Web Framework This is the first public release of RSP. What is RSP? RSP is a modular platform built from the ground up for developing Ruby applications on Apache Web Server. It consists of an Apache module which …

---

## [Code Review: 19compat](https://www.ruby-forum.com/t/code-review-19compat/194753)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/code-review-19compat/194753 "2010-09-09T23:22:48Z")

</div>

tfpt review “/shelveset:19compat;REDMOND\\tomat” Comment : 1.9 compat fixes. Tomas

---

## [RubyFlow Support](https://www.ruby-forum.com/t/rubyflow-support/194752)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/rubyflow-support/194752 "2010-09-09T23:14:01Z")

</div>

Who to contact about Rubyflow.com? I have had a re-occuring issue with my most recent posts to the site and I’d like to get it resolved --and in so doing, my last two posts edited. Thanks.

---

## [Regex help please?](https://www.ruby-forum.com/t/regex-help-please/194726)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 5\
**Last updated:** [September 9, 2010, 10:52pm UTC](https://www.ruby-forum.com/t/regex-help-please/194726 "2010-09-09T22:52:16Z")

</div>

I’ve looked at regular expression documentation for hours, but I’m wondering if someone would have pity on me and just slip me the answer. What I want to do is get each of the item numbers on a list: onscreen: pens …

---

## [Overriding Java methods defined with the same name](https://www.ruby-forum.com/t/overriding-java-methods-defined-with-the-same-name/194745)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/overriding-java-methods-defined-with-the-same-name/194745 "2010-09-09T22:41:57Z")

</div>

Hi, I’m trying to replicate the example from http://code.google.com/p/javaparser/wiki/UsingThisParser#Visiting\_class\_methods in Jruby. In the original example, the abstract class VoidVisitorAdapter defines various ‘…

---

## [File upload help](https://www.ruby-forum.com/t/file-upload-help/194741)

<div class="topic-metadata">

**Author:** [@Shef](https://www.ruby-forum.com/u/Shef)\
**Replies:** 3\
**Last updated:** [September 9, 2010, 10:04pm UTC](https://www.ruby-forum.com/t/file-upload-help/194741 "2010-09-09T22:04:31Z")

</div>

I’m fairly new to rails and I’m trying to understand an error it’s giving me. I’m trying to upload some text files to a rails app of mine and I keep getting a SystemStackError error(stack too deep), but what I’m tryin…

---

## [Unable to access non final static variables?](https://www.ruby-forum.com/t/unable-to-access-non-final-static-variables/194742)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 8:37pm UTC](https://www.ruby-forum.com/t/unable-to-access-non-final-static-variables/194742 "2010-09-09T20:37:45Z")

</div>

Hi all. Noticed this: load\_em.rb:47: uninitialized constant Java::OrgFamilysearchDigitalarchiveTapeingestreader::TapeIngestConstants::CONFIG\_FILE\_PATH (NameError) the string attempted to be accessed in question look…

---

## [Exception\_access\_violation](https://www.ruby-forum.com/t/exception-access-violation/183295)

<div class="topic-metadata">

**Author:** [@olivert](https://www.ruby-forum.com/u/olivert)\
**Replies:** 6\
**Last updated:** [September 9, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/exception-access-violation/183295 "2010-09-09T20:23:39Z")

</div>

Hi, I have some serious crash’s outside the jvm. It happens when using mechanize (0.9.3) and nokogiri (1.4.1-java) on Windows XP 32. jruby -v jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-12-04 6586) (Java HotSpo…

---

## [Super.inspect returning escaped control chars? Why?](https://www.ruby-forum.com/t/super-inspect-returning-escaped-control-chars-why/194733)

<div class="topic-metadata">

**Author:** [@mydarkpassenger](https://www.ruby-forum.com/u/mydarkpassenger)\
**Replies:** 3\
**Last updated:** [September 9, 2010, 7:24pm UTC](https://www.ruby-forum.com/t/super-inspect-returning-escaped-control-chars-why/194733 "2010-09-09T19:24:32Z")

</div>

Hello, I am new to Ruby please help… Two questions… I do not know why Contact#inspect returns an escaped string (e.g. \\n changed to \\n, etc.). Can someone help? I have a Classes Contact and Person… class Contact …

---

## [Run code run!](https://www.ruby-forum.com/t/run-code-run/194718)

<div class="topic-metadata">

**Author:** [@eugen](https://www.ruby-forum.com/u/eugen)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 7:17pm UTC](https://www.ruby-forum.com/t/run-code-run/194718 "2010-09-09T19:17:29Z")

</div>

Hi, What is the best practice to code writing cycle for a typical ruby project? What are you using most often ? Here are two possibilities that I can think of A) Run code as frequently as you can Think about design …

---

## [\`synchronize': stopping only thread](https://www.ruby-forum.com/t/synchronize-stopping-only-thread/194722)

<div class="topic-metadata">

**Author:** [@malvadomx](https://www.ruby-forum.com/u/malvadomx)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/synchronize-stopping-only-thread/194722 "2010-09-09T19:12:48Z")

</div>

Hi. I am having trouble with threading in Ruby. My code outputs: \`synchronize’: stopping only thread (ThreadError). What does this mean and what could the cause of this error be?! I have a method named p, defined as …

---

## [How to require a straight '.class' file](https://www.ruby-forum.com/t/how-to-require-a-straight-class-file/194688)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/how-to-require-a-straight-class-file/194688 "2010-09-09T19:09:54Z")

</div>

I’m familiar with how to require jar files, but I can’t seem to quite be able to figure out how to reference a class like this: Dir\[’\*\*/\*.class’\] =\> \[“target/classes/org/familysearch/digitalarchive/tapeingestreader…

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

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