# Ruby

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

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

---

## [I am able to upload a 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?](https://www.ruby-forum.com/t/i-am-able-to-upload-a-28-meg-file-yet-php-ini-limits-posts-to-10-megs-what-is-up-with-that/139130)

<div class="topic-metadata">

**Author:** [@Lawrence\_Krubner](https://www.ruby-forum.com/u/Lawrence_Krubner)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/i-am-able-to-upload-a-28-meg-file-yet-php-ini-limits-posts-to-10-megs-what-is-up-with-that/139130 "2008-05-31T16:52:11Z")

</div>

To guard against users uploading huge files, I’ve got this in my php.ini file: ; Maximum size of POST data that PHP will accept. post\_max\_size = 10M On a server running Ubuntu Linux. The PHP version: root@ldc310:/et…

---

## [JRUBY-2404/1638 Table name parse error not fixed in 1.1.2?](https://www.ruby-forum.com/t/jruby-2404-1638-table-name-parse-error-not-fixed-in-1-1-2/139132)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 3\
**Last updated:** [May 31, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/jruby-2404-1638-table-name-parse-error-not-fixed-in-1-1-2/139132 "2008-05-31T13:45:56Z")

</div>

This bug was apparently fixed (http://jira.codehaus.org/browse/JRUBY-2404), but according to the list at http://wiki.jruby.org/wiki/JRuby\_1.1.2 did not make it into this release. Just tried 1.1.2 out, and I am getti…

---

## [Compiling "pure" ruby + installing gpref for msys](https://www.ruby-forum.com/t/compiling-pure-ruby-installing-gpref-for-msys/139140)

<div class="topic-metadata">

**Author:** [@gogmangog](https://www.ruby-forum.com/u/gogmangog)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 10:59am UTC](https://www.ruby-forum.com/t/compiling-pure-ruby-installing-gpref-for-msys/139140 "2008-05-31T10:59:07Z")

</div>

Hey guys, it’s my first post and I hope I put it in the right category. Background: I’m experimenting a little bit with Ruby. I wanted to compile Ruby only with the only needed libs. So that the compiled Ruby onl…

---

## [Defining Private/Protected class attributes](https://www.ruby-forum.com/t/defining-private-protected-class-attributes/139047)

<div class="topic-metadata">

**Author:** [@carbon\_monoxide](https://www.ruby-forum.com/u/carbon_monoxide)\
**Replies:** 3\
**Last updated:** [May 31, 2008, 6:12am UTC](https://www.ruby-forum.com/t/defining-private-protected-class-attributes/139047 "2008-05-31T06:12:12Z")

</div>

If I would like to define some private/protected class attributes, I would have to list all their getters or setters under “private” like the code below. Is there any way that makes it faster? class HelloRuby attr\_ac…

---

## [\[1,2,3\].delete\_if](https://www.ruby-forum.com/t/1-2-3-delete-if/139129)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 5:15am UTC](https://www.ruby-forum.com/t/1-2-3-delete-if/139129 "2008-05-31T05:15:08Z")

</div>

e$B0J2\<$N$h$&$Ke(B \[1,2,3\].delete\_if e$B$,e(B \[1,2,3\] e$B$K$J$k$N$O4qL/$J$se(B e$B$8$c$J$$$G$7$g$&$+!#e(B % ./ruby -ve ‘p \[1,2,3\].delete\_if’ ruby 1.9.0 (2008-05-30 revision 16709) \[i686-linux\] \[1, 2, 3\]

---

## [Silly issue with if / else with pingecho](https://www.ruby-forum.com/t/silly-issue-with-if-else-with-pingecho/138976)

<div class="topic-metadata">

**Author:** [@garg](https://www.ruby-forum.com/u/garg)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 2:41am UTC](https://www.ruby-forum.com/t/silly-issue-with-if-else-with-pingecho/138976 "2008-05-31T02:41:57Z")

</div>

I’m positive that this is something incredibly silly. I have a text file with computer names. I’m assuming that if a computer returns a ping then it exists. To check this I have the following in a script: def computer…

---

## [JRuby and Apache FOP](https://www.ruby-forum.com/t/jruby-and-apache-fop/139118)

<div class="topic-metadata">

**Author:** [@Alexander\_KSSS\_ken](https://www.ruby-forum.com/u/Alexander_KSSS_ken)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 1:04am UTC](https://www.ruby-forum.com/t/jruby-and-apache-fop/139118 "2008-05-31T01:04:42Z")

</div>

Hi all, I am working on a rails based project. The application will generate a lot of documents in different kind of file formats, based on a XSLT toolchain. In a previous project I used BackgrounDrb for the XSLT and …

---

## [Proc multiple returns?](https://www.ruby-forum.com/t/proc-multiple-returns/139049)

<div class="topic-metadata">

**Author:** [@lazukars](https://www.ruby-forum.com/u/lazukars)\
**Replies:** 12\
**Last updated:** [May 30, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/proc-multiple-returns/139049 "2008-05-30T23:41:28Z")

</div>

code: def foo(&block) block.call if block end p foo { “bar” “baz” } =\> “baz” Now, any ideas on how to make it return =\> \[“bar”, “baz”\] I’ve been tryin all night -\_-

---

## [IDE Supporting Global Class List (Yes I searched)](https://www.ruby-forum.com/t/ide-supporting-global-class-list-yes-i-searched/139110)

<div class="topic-metadata">

**Author:** [@linchat](https://www.ruby-forum.com/u/linchat)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/ide-supporting-global-class-list-yes-i-searched/139110 "2008-05-30T23:29:21Z")

</div>

Before I post this, I did search this site + google for the answer. I know their has been a great deal of discussion regarding Ruby & IDE’s. Having said that, what I am looking for an IDE that supports Global Project …

---

## [Newbie executing app after deployed in Tomcat](https://www.ruby-forum.com/t/newbie-executing-app-after-deployed-in-tomcat/138987)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 10\
**Last updated:** [May 30, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/newbie-executing-app-after-deployed-in-tomcat/138987 "2008-05-30T23:09:41Z")

</div>

Hi you all, I have installed jruby 1.1.2. I’ve made a simple application (copied from \[1\]), and this application works fine with Mongrel. Problems have come when trying to execute it in Tomcat. I have installed Warb…

---

## [Gdata-ruby and all other Google Data Api'S](https://www.ruby-forum.com/t/gdata-ruby-and-all-other-google-data-apis/139113)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/gdata-ruby-and-all-other-google-data-apis/139113 "2008-05-30T23:01:29Z")

</div>

There are about 5 projects that implement various google apis, be it contacts or videos, or whatever. The gdata-ruby api has a good base client and has some support for a few of the main services. I just did a git-s…

---

## [Address search algorithms](https://www.ruby-forum.com/t/address-search-algorithms/139087)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/address-search-algorithms/139087 "2008-05-30T20:12:41Z")

</div>

Heya all, Got an interesting little problem, not specifically Ruby, but I hope to solve it with some nice ruby :slight\_smile: I need to be able to do searches on a data set of a street address. The address has three …

---

## [Problem of trying to get gmail atom feed in ruby](https://www.ruby-forum.com/t/problem-of-trying-to-get-gmail-atom-feed-in-ruby/139104)

<div class="topic-metadata">

**Author:** [@Carfield\_Yim](https://www.ruby-forum.com/u/Carfield_Yim)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/problem-of-trying-to-get-gmail-atom-feed-in-ruby/139104 "2008-05-30T20:01:29Z")

</div>

I write some simple ruby code to try to get gmail atom feed: http = Net::HTTP::new(‘mail.google.com’, 443); http.use\_ssl = true ; http.start { request = Net::HTTP::Get.new(‘/mail/feed/atom"’); request.basic\_auth(USE…

---

## [Re: Address search algorithms](https://www.ruby-forum.com/t/re-address-search-algorithms/139103)

<div class="topic-metadata">

**Author:** [@skade](https://www.ruby-forum.com/u/skade)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/re-address-search-algorithms/139103 "2008-05-30T19:32:03Z")

</div>

Actually, i had such a problem. You problem is the adress normalization. We solved it by using an external resource: google maps - they are really good at that. When someone enters an address, you do a call to google …

---

## [Surprising Extend](https://www.ruby-forum.com/t/surprising-extend/138977)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 12\
**Last updated:** [May 30, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/surprising-extend/138977 "2008-05-30T19:09:39Z")

</div>

Hi people I want to make a library which can extend the String class. I don’t want to keep putting the class String; def blah; end; end; at the top of all my files, I just want to require ‘StringExt’ This doesn’t wo…

---

## [Newbie question: Value from YML file into a class](https://www.ruby-forum.com/t/newbie-question-value-from-yml-file-into-a-class/139071)

<div class="topic-metadata">

**Author:** [@Darryl\_LSPierce](https://www.ruby-forum.com/u/Darryl_LSPierce)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/newbie-question-value-from-yml-file-into-a-class/139071 "2008-05-30T19:09:38Z")

</div>

On my project we’re using ActiveLdap. One of our classes, called Account. It extends the ActiveLdap::Base class and has a call to define it’s LDAP mappings as follows: class Account \< ActiveLdap::Base ldap\_mapping :…

---

## [Newby Question: Check image size before getting with Net::Http](https://www.ruby-forum.com/t/newby-question-check-image-size-before-getting-with-net-http/139079)

<div class="topic-metadata">

**Author:** [@Ruchira\_B](https://www.ruby-forum.com/u/Ruchira_B)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/newby-question-check-image-size-before-getting-with-net-http/139079 "2008-05-30T18:27:41Z")

</div>

Dear Expert, I want to check the file size of a URI to identify large files (I will decide on threshold) without having to get the whole file first. Can I get just the file size using something related to Net::Http (…

---

## [Full path require](https://www.ruby-forum.com/t/full-path-require/139086)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/full-path-require/139086 "2008-05-30T18:13:34Z")

</div>

Hi, Is it possible to find out the full path of all the files that have been required within a currently running script? Aidy

---

## [Ruby gem to do https connection](https://www.ruby-forum.com/t/ruby-gem-to-do-https-connection/139090)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/ruby-gem-to-do-https-connection/139090 "2008-05-30T18:10:37Z")

</div>

is there a ruby gem that can do a https connection to the following url https://www.interactivebrokers.com/Universal/servlet/FlexStatementService.SendRequest

---

## [Not a valid win32 application? help, please](https://www.ruby-forum.com/t/not-a-valid-win32-application-help-please/139050)

<div class="topic-metadata">

**Author:** [@zoephoenix](https://www.ruby-forum.com/u/zoephoenix)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/not-a-valid-win32-application-help-please/139050 "2008-05-30T18:05:33Z")

</div>

I don’t understand why my computer won’t run any of my Ruby programs now. It keeps saying that they’re not valid applications… I’ve tried uninstalling and re-installing Ruby and restarting my computer, but it didn’t …

---

## [Using gem to deploy a autoconf packages, expriences?](https://www.ruby-forum.com/t/using-gem-to-deploy-a-autoconf-packages-expriences/139074)

<div class="topic-metadata">

**Author:** [@olf](https://www.ruby-forum.com/u/olf)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/using-gem-to-deploy-a-autoconf-packages-expriences/139074 "2008-05-30T17:58:13Z")

</div>

I’m just thinking about how well suited RubyGems might be to manage non-Ruby packages, as a quite portable generic package manager. So these would be probably autoconf style native things which get exclusively used by…

---

## [Problem with text\_width and UTF-8 characters in PDF-writer](https://www.ruby-forum.com/t/problem-with-text-width-and-utf-8-characters-in-pdf-writer/138948)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/problem-with-text-width-and-utf-8-characters-in-pdf-writer/138948 "2008-05-30T17:51:08Z")

</div>

Hi I’ve many problems with the method text\_width in PDF-writer. It doesn’t give the true values for text with UTF-8 characters. (I used iconv to diplay this text.) Any idea?? thanks

---

## [\[#19002\] RUBY\_\* constants](https://www.ruby-forum.com/t/19002-ruby-constants/138946)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/19002-ruby-constants/138946 "2008-05-30T17:45:44Z")

</div>

e$B@\>;3OB9-$G$9!#e(B http://rubyforge.org/tracker/index.php?func=detail&aid=19002&group\_id=426&atid=22040 e$B$N%Q%C%A$G$9!#e(B r14469e$B$r85$K$7$F$$$^$9!#e(B error.ce$B$NJQ99$Ge(B\[ruby-dev:34826\]e$B$bD\>$j$^$9!#e(B e…

---

## [7 Ruby Programming ebook](https://www.ruby-forum.com/t/7-ruby-programming-ebook/137665)

<div class="topic-metadata">

**Author:** [@Laurynn](https://www.ruby-forum.com/u/Laurynn)\
**Replies:** 42\
**Last updated:** [May 30, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/7-ruby-programming-ebook/137665 "2008-05-30T17:32:06Z")

</div>

Found this on free ebook site. Addison Wesley The Ruby Way 2nd Edition Oct 2006 learning-ruby OReilly - Ruby In a Nutshell OReilly Ruby Cookbook Jul 2006 Programming Ruby - The Pragmatic Programmer’s Guide Ruby Co…

---

## [Parsing a URI's base authority](https://www.ruby-forum.com/t/parsing-a-uris-base-authority/139083)

<div class="topic-metadata">

**Author:** [@and80](https://www.ruby-forum.com/u/and80)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/parsing-a-uris-base-authority/139083 "2008-05-30T17:21:25Z")

</div>

Hi all, I am looking for a ruby library to reliably determine the base authority of a URI host. example: www.google.com =\> google.com subdomain.domain.com.au =\> domain.com.au www1.o2.co.uk =\> 02.co.uk blah.jp =\> b…

---

## [Re: Quickie: Monkey patching Array](https://www.ruby-forum.com/t/re-quickie-monkey-patching-array/139082)

<div class="topic-metadata">

**Author:** [@reidmix](https://www.ruby-forum.com/u/reidmix)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/re-quickie-monkey-patching-array/139082 "2008-05-30T17:14:50Z")

</div>

you are just assigning a to an array literal This is equivalent to a = Array.new(\[‘one’,‘two’,‘three’\]) Like Siep said, array access a\[0\] will raise the error. r ----- Original Message ---- From: Siep K. removed\_em…

---

## [Strings, postgresql and gsub](https://www.ruby-forum.com/t/strings-postgresql-and-gsub/138956)

<div class="topic-metadata">

**Author:** [@J-H\_Johansen](https://www.ruby-forum.com/u/J-H_Johansen)\
**Replies:** 8\
**Last updated:** [May 30, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/strings-postgresql-and-gsub/138956 "2008-05-30T16:59:56Z")

</div>

Hi, I’m somewhat stumped at the moment due to problems with inserting strings in postgresql containing 's. Normally, I’d just add a \\ to escape the ’ and everything would be just fine. But for some reason, Ruby won’…

---

## [RE: Rake not working in JRuby 1.1.2](https://www.ruby-forum.com/t/re-rake-not-working-in-jruby-1-1-2/139070)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/re-rake-not-working-in-jruby-1-1-2/139070 "2008-05-30T16:48:03Z")

</div>

Vladimir, I’m sorry but I don’t know how to get the whole stacktrace, but this is the last lines of it: 03) at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:620) at org.jruby.evaluator.ASTI…

---

## [RE: Rake not working in JRuby 1.1.2](https://www.ruby-forum.com/t/re-rake-not-working-in-jruby-1-1-2/139073)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/re-rake-not-working-in-jruby-1-1-2/139073 "2008-05-30T16:45:03Z")

</div>

Thanks for the hint on exposing the stacktrace to a file. The problem is I didn’t install active-record-jdbc-adapter gem. Best regards,

---

## [In the callback why I must use self](https://www.ruby-forum.com/t/in-the-callback-why-i-must-use-self/139059)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/in-the-callback-why-i-must-use-self/139059 "2008-05-30T16:22:16Z")

</div>

class User \< ActiveRecord::Base def before\_save self.name1 = fname + ’ ’ + lname name2 = fname + ’ ’ + lname end end In the callback I am using self for name1 and NOT using self for name2. When a record is saved i…

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

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