# Ruby

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

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

---

## [General advice](https://www.ruby-forum.com/t/general-advice/125048)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 3\
**Last updated:** [January 5, 2008, 8:52am UTC](https://www.ruby-forum.com/t/general-advice/125048 "2008-01-05T08:52:35Z")

</div>

Hi For the book I’m writing on IronRuby I’m deciding which way to go to demonstrate how IronRuby can leverage the .NET framework. The beginning of the sample application should implement some database layer. My first…

---

## [10-Minute Quick Start Guide for Facebooker - Create a Facebook Desktop Script Using Ruby in 5 Easy S](https://www.ruby-forum.com/t/10-minute-quick-start-guide-for-facebooker-create-a-facebook-desktop-script-using-ruby-in-5-easy-s/125082)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [January 5, 2008, 4:23am UTC](https://www.ruby-forum.com/t/10-minute-quick-start-guide-for-facebooker-create-a-facebook-desktop-script-using-ruby-in-5-easy-s/125082 "2008-01-05T04:23:45Z")

</div>

Hello, I’ve published a new 10-Minute Quick Start Guide for Facebooker showing you how to use the Facebook API using the Facebooker Ruby library in 5 easy steps: o Checkout the Facebooker source from Subversion o Bu…

---

## [Some help needed on regex](https://www.ruby-forum.com/t/some-help-needed-on-regex/125081)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 3:58am UTC](https://www.ruby-forum.com/t/some-help-needed-on-regex/125081 "2008-01-05T03:58:03Z")

</div>

I have a very complex regex requirement and need some hand here. I can do only very basic regex. I need to do the following add \<symbol f|s i|p|e h|l number \> has to be either of the following strings add , modify f…

---

## [IronRuby on Rails or Ruby on Rails... Are we getting it](https://www.ruby-forum.com/t/ironruby-on-rails-or-ruby-on-rails-are-we-getting-it/124977)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 3\
**Last updated:** [January 5, 2008, 3:55am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-or-ruby-on-rails-are-we-getting-it/124977 "2008-01-05T03:55:53Z")

</div>

Hi, I believe IronRuby is making good progress, though i do not get to see any news on progress. Blogs and informative details are totally missing regarding the DLR and Ironruby progress. Can any one confirm, whethe…

---

## [Rbridge 0.1 Released](https://www.ruby-forum.com/t/rbridge-0-1-released/125080)

<div class="topic-metadata">

**Author:** [@Chuck\_V](https://www.ruby-forum.com/u/Chuck_V)\
**Replies:** 0\
**Last updated:** [January 5, 2008, 3:24am UTC](https://www.ruby-forum.com/t/rbridge-0-1-released/125080 "2008-01-05T03:24:37Z")

</div>

rbridge version 0.1 has been released! \<by Chuck V. (adapted from Toshi Hirooka’s RulangBridge)\> \<ruby-mnesia.rubyforge.org (originally Google Code Archive - Long-term storage for Google Code Project Hosting.)\> FEAT…

---

## [Please forward to RoR crowd ( my news-server doesn't carry, and I'm not getting Goog Account :)](https://www.ruby-forum.com/t/please-forward-to-ror-crowd-my-news-server-doesnt-carry-and-im-not-getting-goog-account/124940)

<div class="topic-metadata">

**Author:** [@Antryg\_Bogus\_Addres](https://www.ruby-forum.com/u/Antryg_Bogus_Addres)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 3:05am UTC](https://www.ruby-forum.com/t/please-forward-to-ror-crowd-my-news-server-doesnt-carry-and-im-not-getting-goog-account/124940 "2008-01-05T03:05:20Z")

</div>

http://www2.csoonline.com/exclusives/column.html?CID=33395 Article on Cross Site Request forgery, saying that only a solution internal-to-the-server can break the technique, and only if it’s so pervasive that the atta…

---

## [Clipboard command line utility](https://www.ruby-forum.com/t/clipboard-command-line-utility/124823)

<div class="topic-metadata">

**Author:** [@dfinnie](https://www.ruby-forum.com/u/dfinnie)\
**Replies:** 4\
**Last updated:** [January 5, 2008, 2:54am UTC](https://www.ruby-forum.com/t/clipboard-command-line-utility/124823 "2008-01-05T02:54:49Z")

</div>

I’ve been doing a lot of Python for Google’s Highly Open Participation contest lately but finally found the time to make a utility I thought of a few weeks ago. Basically, it allows you to pipe to and from the clipbo…

---

## [String#tr\_s](https://www.ruby-forum.com/t/string-tr-s/125062)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 6\
**Last updated:** [January 5, 2008, 12:41am UTC](https://www.ruby-forum.com/t/string-tr-s/125062 "2008-01-05T00:41:59Z")

</div>

This seems to be a pretty good example of a “built-in” function that I can’t really see a practical use for… why does it need to be standard? Why is it named so cryptically? When would you ever want to use it?

---

## [Contacting Toshi Hirooka (tosik) about using Rulang](https://www.ruby-forum.com/t/contacting-toshi-hirooka-tosik-about-using-rulang/125065)

<div class="topic-metadata">

**Author:** [@Chuck\_V](https://www.ruby-forum.com/u/Chuck_V)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 12:40am UTC](https://www.ruby-forum.com/t/contacting-toshi-hirooka-tosik-about-using-rulang/125065 "2008-01-05T00:40:14Z")

</div>

I’m going to be using RulangBridge by Toshi Hirooka (tosik) in my project but I can’t get ahold of him/her to ascertain licensing permissions. If anyone knows tosik or can speak/read enough japanese to find an email a…

---

## [Website comments with ruby](https://www.ruby-forum.com/t/website-comments-with-ruby/125063)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 1\
**Last updated:** [January 5, 2008, 12:12am UTC](https://www.ruby-forum.com/t/website-comments-with-ruby/125063 "2008-01-05T00:12:40Z")

</div>

I have a website and I would like some of the pages to be able to accept user comments. I know there at alot of simple php scripts that do this so I am sure there is something like this in Ruby right? I know there a…

---

## [Mr Bones - 1.3.0](https://www.ruby-forum.com/t/mr-bones-1-3-0/125060)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/mr-bones-1-3-0/125060 "2008-01-04T22:23:44Z")

</div>

Mr Bones by Tim P. http://codeforpeople.rubyforge.org/bones == DESCRIPTION: Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton contains some starter code and a collection of ra…

---

## [Superb idea from the python camp](https://www.ruby-forum.com/t/superb-idea-from-the-python-camp/125003)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 2\
**Last updated:** [January 4, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/superb-idea-from-the-python-camp/125003 "2008-01-04T22:12:34Z")

</div>

With Utility Mill: \* Inputs and outputs are handled for you automatically \* You just supply the Python code that does something new \* You get a RESTful API for free (XML and JSON) \* You get revision control for free \*…

---

## [Rubygems: location of my gems](https://www.ruby-forum.com/t/rubygems-location-of-my-gems/125041)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 6\
**Last updated:** [January 4, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/rubygems-location-of-my-gems/125041 "2008-01-04T21:35:37Z")

</div>

Hi, Is there an easy way of finding the location of my installed gem programmatically. I need this to create an environment variable. Thanks Nasir

---

## [Finding if an array contains a data type](https://www.ruby-forum.com/t/finding-if-an-array-contains-a-data-type/124958)

<div class="topic-metadata">

**Author:** [@sdpurtill](https://www.ruby-forum.com/u/sdpurtill)\
**Replies:** 10\
**Last updated:** [January 4, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/finding-if-an-array-contains-a-data-type/124958 "2008-01-04T21:21:31Z")

</div>

Say I wanted to see if an array contained a number or not. Would I use the match method? E.g. x=\[“a”,“b”,2, “c”\] puts(“This array contains numbers”) if x.match(/\\d/) I’m a real beginner at ruby, so simple explanatio…

---

## [Syntax to truncate decimal place](https://www.ruby-forum.com/t/syntax-to-truncate-decimal-place/124790)

<div class="topic-metadata">

**Author:** [@smeitei](https://www.ruby-forum.com/u/smeitei)\
**Replies:** 2\
**Last updated:** [January 4, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/syntax-to-truncate-decimal-place/124790 "2008-01-04T21:07:54Z")

</div>

HI i am using SciTE editor to code in Ruby. What is the syntax to truncate decimal place

---

## [Checking an array for an item](https://www.ruby-forum.com/t/checking-an-array-for-an-item/125013)

<div class="topic-metadata">

**Author:** [@sdpurtill](https://www.ruby-forum.com/u/sdpurtill)\
**Replies:** 8\
**Last updated:** [January 4, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/checking-an-array-for-an-item/125013 "2008-01-04T20:50:58Z")

</div>

How come this code doesn’t return “true” for the following? x = \[1,2,3\] puts(x.include?(Fixnum)) Thanks

---

## [Ruby install on Kubuntu Linux - why so spread out](https://www.ruby-forum.com/t/ruby-install-on-kubuntu-linux-why-so-spread-out/124870)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 19\
**Last updated:** [January 4, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/ruby-install-on-kubuntu-linux-why-so-spread-out/124870 "2008-01-04T19:20:49Z")

</div>

I’ve migrated from WinXP in recent days, and I’m having trouble getting up to speed with Ruby on Kubuntu (7.10). My question at the moment has to do with the nature of the installation. I installed ruby from the packa…

---

## [Where's the bytecode from Ruby 1.9](https://www.ruby-forum.com/t/wheres-the-bytecode-from-ruby-1-9/124421)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 9\
**Last updated:** [January 4, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/wheres-the-bytecode-from-ruby-1-9/124421 "2008-01-04T17:51:44Z")

</div>

From what I understand, the big goal of YARV was to spit out bytecode from your ruby scripts. From what I understand of bytecode, it can be executed faster and also hides the source code. I may be misunderstanding b…

---

## [Bug report: Assigning different blocks to the click events of separate buttons](https://www.ruby-forum.com/t/bug-report-assigning-different-blocks-to-the-click-events-of-separate-buttons/125011)

<div class="topic-metadata">

**Author:** [@Terence\_L](https://www.ruby-forum.com/u/Terence_L)\
**Replies:** 1\
**Last updated:** [January 4, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/bug-report-assigning-different-blocks-to-the-click-events-of-separate-buttons/125011 "2008-01-04T17:35:42Z")

</div>

Hello list, I was playing around with the code Scott Guthrie put up back in July about calling WPF from ironruby (ScottGu's Blog - First Look at IronRuby) and I came across the following issue: I took the sample cod…

---

## [With statement](https://www.ruby-forum.com/t/with-statement/124990)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 5\
**Last updated:** [January 4, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/with-statement/124990 "2008-01-04T17:12:06Z")

</div>

I’m pretty sure ruby doesn’t have a with statement. Is it possible to emulate one?

---

## [Parse tree?](https://www.ruby-forum.com/t/parse-tree/124855)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 16\
**Last updated:** [January 4, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/parse-tree/124855 "2008-01-04T17:07:59Z")

</div>

I have a situation where it may make sense, although for some reason I don’t want to, to use something like ParseTree to pull out each complete Ruby expression and pass it to a block which will then evaluate it in a p…

---

## [How and Where to report bugs in Ruby 1.9.n?](https://www.ruby-forum.com/t/how-and-where-to-report-bugs-in-ruby-1-9-n/124398)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 9\
**Last updated:** [January 4, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/how-and-where-to-report-bugs-in-ruby-1-9-n/124398 "2008-01-04T15:56:25Z")

</div>

Hi! I don’t know how and where to report about bugs in Ruby 1.9.n. Does there an official way exist? Wolfgang NÃ¡dasi-Donner

---

## [Random i/o disk file](https://www.ruby-forum.com/t/random-i-o-disk-file/124997)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [January 4, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/random-i-o-disk-file/124997 "2008-01-04T14:38:24Z")

</div>

Am definitely on the steep part of the ruby learning curve. I’ve programmed a bit in several other languages. Now I need something like a random disk file, so I can have a large hash or something like it available for…

---

## [Calling a javascript function with Mechanize](https://www.ruby-forum.com/t/calling-a-javascript-function-with-mechanize/124864)

<div class="topic-metadata">

**Author:** [@rita\_amritkar](https://www.ruby-forum.com/u/rita_amritkar)\
**Replies:** 3\
**Last updated:** [January 4, 2008, 11:15am UTC](https://www.ruby-forum.com/t/calling-a-javascript-function-with-mechanize/124864 "2008-01-04T11:15:40Z")

</div>

Hi all, I am using Mechanize. I can get the particular contents but I am not getting the expected data. There is a function in javascript as, window.onload = function() { if (location && location.search == “”) { …

---

## [Popup after selection from selectlist](https://www.ruby-forum.com/t/popup-after-selection-from-selectlist/124982)

<div class="topic-metadata">

**Author:** [@flamingflamingo](https://www.ruby-forum.com/u/flamingflamingo)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 9:47am UTC](https://www.ruby-forum.com/t/popup-after-selection-from-selectlist/124982 "2008-01-04T09:47:13Z")

</div>

hi there, I got a problem. The next statement generates a popup: browser.frame(:name, ‘mainframe’).select\_list(:name, ‘rsCatalogType’).select(catArray\[iCatalogsCounter\].to\_s) Now, as far as I know there is no “selec…

---

## [Gem Trouble on OS X - resolved](https://www.ruby-forum.com/t/gem-trouble-on-os-x-resolved/124961)

<div class="topic-metadata">

**Author:** [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 2:18am UTC](https://www.ruby-forum.com/t/gem-trouble-on-os-x-resolved/124961 "2008-01-04T02:18:56Z")

</div>

A while ago I posted that I was having trouble with Ruby Gems on OS X. It was crashing. I gave up trying to fix this in the end, and instead I decided to get Ruby 1.8.6 and install from source, and also get gems 1.0.1…

---

## [Mkmf and quoting -L and -I paths](https://www.ruby-forum.com/t/mkmf-and-quoting-l-and-i-paths/124959)

<div class="topic-metadata">

**Author:** [@s450r1](https://www.ruby-forum.com/u/s450r1)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 1:55am UTC](https://www.ruby-forum.com/t/mkmf-and-quoting-l-and-i-paths/124959 "2008-01-04T01:55:33Z")

</div>

It seems that there are multiple versions of mkmf around, and they have different behavior when it comes to quoting the -L and -I paths. What is the preferred way to write an extconf.rb such that paths supplied to dir…

---

## [Windows Compilation Madness](https://www.ruby-forum.com/t/windows-compilation-madness/124787)

<div class="topic-metadata">

**Author:** [@pfharlock](https://www.ruby-forum.com/u/pfharlock)\
**Replies:** 23\
**Last updated:** [January 4, 2008, 1:52am UTC](https://www.ruby-forum.com/t/windows-compilation-madness/124787 "2008-01-04T01:52:03Z")

</div>

No point in keeping this discussion in the Zed thread… On Jan 2, 2008, at 10:55 AM, M. Edward (Ed) Borasky wrote: another copy. I could be wrong, but I sense a deeper question in Thurfir’s message. What is it abou…

---

## [Troubles with blocks](https://www.ruby-forum.com/t/troubles-with-blocks/124954)

<div class="topic-metadata">

**Author:** [@rbholden](https://www.ruby-forum.com/u/rbholden)\
**Replies:** 5\
**Last updated:** [January 4, 2008, 1:18am UTC](https://www.ruby-forum.com/t/troubles-with-blocks/124954 "2008-01-04T01:18:04Z")

</div>

Hi, I am a Python programmer and I’ve just started learning Ruby. Until now, I’ve enjoyed it, but I am having troubles with some methods that require blocks. This is a simple example that (I expect) summarizes my pro…

---

## [Best way to download \>1GB files](https://www.ruby-forum.com/t/best-way-to-download-1gb-files/124672)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 22\
**Last updated:** [January 4, 2008, 1:05am UTC](https://www.ruby-forum.com/t/best-way-to-download-1gb-files/124672 "2008-01-04T01:05:50Z")

</div>

What is the best way to download files from the internet (HTTP) that are greater than 1GB? Here’s the story in whole… I was trying to use Ruby Net::HTTP to manage a download from wikipedia… Specifically all current v…

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

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