# Ruby

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

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

---

## [Getting user input on windows](https://www.ruby-forum.com/t/getting-user-input-on-windows/92991)

<div class="topic-metadata">

**Author:** [@edcrosbys](https://www.ruby-forum.com/u/edcrosbys)\
**Replies:** 7\
**Last updated:** [April 26, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/getting-user-input-on-windows/92991 "2007-04-26T17:41:00Z")

</div>

I’m new, please bear with me? I am trying to get a bit of data from the user. The only library I’m using now is watir (since I’m interacting w/ web pages). I can use get or STDIN.read to grab the input, but I would li…

---

## [Problem in Rmagick](https://www.ruby-forum.com/t/problem-in-rmagick/92976)

<div class="topic-metadata">

**Author:** [@saket\_sidana](https://www.ruby-forum.com/u/saket_sidana)\
**Replies:** 1\
**Last updated:** [April 26, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/problem-in-rmagick/92976 "2007-04-26T17:29:27Z")

</div>

Hi, I have a problem in Rmagick.Today I installed Rmagick and ImageMagick. The code for creating Thumbnails has been written but I got an error " The application has failed to start because CORE\_RL\_magick\_.dll was …

---

## [Strange syntax sugar](https://www.ruby-forum.com/t/strange-syntax-sugar/92776)

<div class="topic-metadata">

**Author:** [@aalfred](https://www.ruby-forum.com/u/aalfred)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/strange-syntax-sugar/92776 "2007-04-26T17:24:55Z")

</div>

I’ve recently had to deal with lots of assignments, where most of them looked like those two lines: foo = bar if !bar.nil? # (case 1) or foo = bar if foo.nil? && !bar.nil? # (case 2) (I know it …

---

## [Rails command for getting the last page](https://www.ruby-forum.com/t/rails-command-for-getting-the-last-page/92912)

<div class="topic-metadata">

**Author:** [@pradeep](https://www.ruby-forum.com/u/pradeep)\
**Replies:** 3\
**Last updated:** [April 26, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/rails-command-for-getting-the-last-page/92912 "2007-04-26T16:58:50Z")

</div>

Hi All, In my header part i have a link for “change password”. In that chage password page i need to place link which takes us to the back page. Note: The problem is user my click on the change password link from any …

---

## [How to integrate video flash player into the rails app](https://www.ruby-forum.com/t/how-to-integrate-video-flash-player-into-the-rails-app/93003)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 2\
**Last updated:** [April 26, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/how-to-integrate-video-flash-player-into-the-rails-app/93003 "2007-04-26T16:57:50Z")

</div>

Hi, How to integrate video flash player into the rails app. I have to load some video to my site and play them using a flash player JW Player: End-to-End Solution for Streaming & Monetizing Video. can any point in co…

---

## [Gsub question](https://www.ruby-forum.com/t/gsub-question/92949)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/gsub-question/92949 "2007-04-26T16:25:45Z")

</div>

Hello, i’m new to ruby, and working mostly with text. i have this very simple program that reads a file and replaces all ‘’ with a whitespace. (rtf to txt conversion is causing an endless occurence of 's). the way i…

---

## [Clear screen](https://www.ruby-forum.com/t/clear-screen/92978)

<div class="topic-metadata">

**Author:** [@christian](https://www.ruby-forum.com/u/christian)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/clear-screen/92978 "2007-04-26T16:13:43Z")

</div>

Is there a way to clear the terminal screen by using Ruby directly? Instead of using system(“clear”). Cheers Christian

---

## [$BN\_\>h$,CY$$(B](https://www.ruby-forum.com/t/bn-h-cy-b/92977)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/bn-h-cy-b/92977 "2007-04-26T16:11:43Z")

</div>

e$B$J$+$@$G$9!#e(B http://yowaken.dip.jp/tdiary/20070425.html#p02 e$B$K$“$k$h$&$K3N$+e(B e$B$KN\_\>h$,CY$$$h$&$G$9!#e(BFixnume$B$G=\<J,$J1i;;$be(BBignume$B$s$G9T$C$F$$$ke(B e$B$N$,Bg$-$$$h$&$G$9$,!”$=$l$@$1$G$b$J$$$h$&$G…

---

## [Morse Code (#121)](https://www.ruby-forum.com/t/morse-code-121/93006)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [April 26, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/morse-code-121/93006 "2007-04-26T15:18:35Z")

</div>

I always forget how much I love the simple problems. Everyone plays when we have them and the solutions tend to be quite creative. This time was no different. Everyone did see MenTaLguY’s state machine parser, righ…

---

## [How to run script file using system command](https://www.ruby-forum.com/t/how-to-run-script-file-using-system-command/92975)

<div class="topic-metadata">

**Author:** [@dgirdhar](https://www.ruby-forum.com/u/dgirdhar)\
**Replies:** 10\
**Last updated:** [April 26, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/how-to-run-script-file-using-system-command/92975 "2007-04-26T13:29:19Z")

</div>

Hi, I am trying to run a script file using system command, but it is not working. Code… test.rb abc = system(". /export/home/dhiraj/scriptfile.sh") puts abc The value of abc is false. Please tell me why script fil…

---

## [Installing Ruby, Sqlite3, Sqlite3-Ruby on Cygwin](https://www.ruby-forum.com/t/installing-ruby-sqlite3-sqlite3-ruby-on-cygwin/86880)

<div class="topic-metadata">

**Author:** [@rubarachni](https://www.ruby-forum.com/u/rubarachni)\
**Replies:** 15\
**Last updated:** [April 26, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/installing-ruby-sqlite3-sqlite3-ruby-on-cygwin/86880 "2007-04-26T13:12:31Z")

</div>

Hi, In case other people may need a native installation of Ruby, Sqlite3 and Sqlite3-Ruby on Cygwin, here is how I manage to install these stuffs successfully : Cygwin requirements Default + gcc + make I use only the…

---

## [Getting Browser information](https://www.ruby-forum.com/t/getting-browser-information/92951)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/getting-browser-information/92951 "2007-04-26T13:06:46Z")

</div>

HI everybody, I’m newbie to ruby. I want to get user’s browser and OS information like getting ip address using request.remote\_ip. Is it possible. Regards, Veeraa.

---

## [Test/unit inconsistencies between 1.9 and 1.8](https://www.ruby-forum.com/t/test-unit-inconsistencies-between-1-9-and-1-8/92879)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/test-unit-inconsistencies-between-1-9-and-1-8/92879 "2007-04-26T12:29:37Z")

</div>

Hello, We’re having problems with ruby 1.9 and test/unit. It looks like when ObjectSpace is scanned that the methods we are defining aren’t being seen. Any suggestions? Thanks, -Adam % cat 19test.rb \[~/code/plan…

---

## [Does Object#to\_enum exist?](https://www.ruby-forum.com/t/does-object-to-enum-exist/92982)

<div class="topic-metadata">

**Author:** [@cmaj135](https://www.ruby-forum.com/u/cmaj135)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 10:42am UTC](https://www.ruby-forum.com/t/does-object-to-enum-exist/92982 "2007-04-26T10:42:26Z")

</div>

Hi, all. I saw someone post a snippet of code that turned an object (with some sort of “each” method) into an enumerable. It looked really neat, until I tried: “abcdef”.to\_enum(:each\_byte) NoMethodError: undefined…

---

## [GameR 0.2 is out](https://www.ruby-forum.com/t/gamer-0-2-is-out/92643)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 12\
**Last updated:** [April 26, 2007, 10:40am UTC](https://www.ruby-forum.com/t/gamer-0-2-is-out/92643 "2007-04-26T10:40:26Z")

</div>

I’ve released GameR, a small and simple game development framework for Ruby. Currently, it can do pretty much anything except for sound output. Features include a Timer class, graphics output, event handling and imag…

---

## [How to chinese with PDF::Writer](https://www.ruby-forum.com/t/how-to-chinese-with-pdf-writer/92644)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 7:32am UTC](https://www.ruby-forum.com/t/how-to-chinese-with-pdf-writer/92644 "2007-04-26T07:32:48Z")

</div>

I know Rfpdf(http://dry.4thebusiness.com/info/rfpdf) suport chinese,how about PDF::Writer? I use acts\_as\_reportable plugin render chinese pdf file(dependence PDF::Writer) sorry my poor English.

---

## [More concise code](https://www.ruby-forum.com/t/more-concise-code/92973)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 1\
**Last updated:** [April 26, 2007, 7:24am UTC](https://www.ruby-forum.com/t/more-concise-code/92973 "2007-04-26T07:24:01Z")

</div>

I found this snippet in code called acts\_as\_authenticated. I thought it interesting but hard to understand at first. @current\_user ||= (session\[:user\] && User.find\_by\_id(session\[:user\])) || :false Now for some possi…

---

## [Accidental Dir.glob behavior change in 1.8.6](https://www.ruby-forum.com/t/accidental-dir-glob-behavior-change-in-1-8-6/92295)

<div class="topic-metadata">

**Author:** [@Elliott\_Hughes](https://www.ruby-forum.com/u/Elliott_Hughes)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 4:02am UTC](https://www.ruby-forum.com/t/accidental-dir-glob-behavior-change-in-1-8-6/92295 "2007-04-26T04:02:49Z")

</div>

expected/1.8.4 behavior download ruby-1.8.4, extract, cd into the source root. (alternatively, use Ubuntu 6.10’s ruby package.) ./configure && make && ./ruby -w -e ‘puts(Dir.glob(“v\*/config.h”))’ produces (after the b…

---

## [\[SOLUTION\] Morse Code (#121)](https://www.ruby-forum.com/t/solution-morse-code-121/92947)

<div class="topic-metadata">

**Author:** [@Brian\_Krahmer](https://www.ruby-forum.com/u/Brian_Krahmer)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/solution-morse-code-121/92947 "2007-04-25T23:43:34Z")

</div>

Here is my solution to the morse code problem. The meat of is only about 10 lines, and I think it’s pretty readable, so hopefully it will be viewed as a good solution. I used the dictionary installed on my ubuntu sy…

---

## [Parsing HTML into a tree](https://www.ruby-forum.com/t/parsing-html-into-a-tree/92932)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/parsing-html-into-a-tree/92932 "2007-04-25T23:32:33Z")

</div>

Hello, I have a HTML document which I need to parse into a tree. I was looking for a suitable module to use, and came to two: Hpricot, while it looks like a nice and fast HTML parser, it appears that its interface …

---

## [RDT Plugin Eclipse: Debug view does not show variables?](https://www.ruby-forum.com/t/rdt-plugin-eclipse-debug-view-does-not-show-variables/90442)

<div class="topic-metadata">

**Author:** [@ChrisKaelin](https://www.ruby-forum.com/u/ChrisKaelin)\
**Replies:** 5\
**Last updated:** [April 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/rdt-plugin-eclipse-debug-view-does-not-show-variables/90442 "2007-04-25T23:00:31Z")

</div>

Sorry for posting here, I did not find an appropriate eclipse group… After setting a breakpoint and reaching that breakpoint in the debug perspective of eclipse, I do not see any variables listed in the variable view.…

---

## [SOAP in Ruby](https://www.ruby-forum.com/t/soap-in-ruby/92911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 25, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/soap-in-ruby/92911 "2007-04-25T20:58:13Z")

</div>

Hi I am new to Ruby I want to do Web Services in Ruby using SOA can any body tell me that how to do that its very urgent for me ok Thank you Bye By P.S.Hussain

---

## [axÂ²+bx+c for newbies](https://www.ruby-forum.com/t/axa-bx-c-for-newbies/92918)

<div class="topic-metadata">

**Author:** [@Ytoba](https://www.ruby-forum.com/u/Ytoba)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/axa-bx-c-for-newbies/92918 "2007-04-25T17:57:12Z")

</div>

Here is some very easy code to understand. Since I started learning Ruby 2 years ago, I lacked examples. So if this code can help newbies, the goal will be achieved. Ytoba include Math require ‘complex’ require ‘ra…

---

## [Problems calling build\_tcp from Ruby libnet](https://www.ruby-forum.com/t/problems-calling-build-tcp-from-ruby-libnet/92919)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/problems-calling-build-tcp-from-ruby-libnet/92919 "2007-04-25T17:55:32Z")

</div>

Hi, I installed ruby-libnet (SVN): http://rubyforge.org/projects/ruby-libnet/ and want to send a TCP packet with it. Building TCP packets is done with build\_tcp from ruby-libnet.c : /\* @param sp source port …

---

## [Radiant CMS 0.6 - Lapidary](https://www.ruby-forum.com/t/radiant-cms-0-6-lapidary/92834)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 4\
**Last updated:** [April 25, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/radiant-cms-0-6-lapidary/92834 "2007-04-25T17:04:24Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ This is the first serious release of Radiant in well over 6 months. The big news in this release is that we have created a first-cla…

---

## [Need to move multiple fields to a new table - please help!](https://www.ruby-forum.com/t/need-to-move-multiple-fields-to-a-new-table-please-help/92905)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/need-to-move-multiple-fields-to-a-new-table-please-help/92905 "2007-04-25T16:26:19Z")

</div>

Okay I have a “list” view that contains a package inventory stored in a table called addpackages. Attributes include fname, lname, packagetype, email, phone, etc. Here’s what I’ve done already: When you click the …

---

## [Print messages show up after script has quit](https://www.ruby-forum.com/t/print-messages-show-up-after-script-has-quit/92893)

<div class="topic-metadata">

**Author:** [@stan](https://www.ruby-forum.com/u/stan)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/print-messages-show-up-after-script-has-quit/92893 "2007-04-25T14:38:55Z")

</div>

Hello, I use ruby 1.8.6 on windows xp sp2. My script updates podcast subsrciptions at night.This saves internet traffic during the day. It starts iTunes application, sleeps while itunes updates feeds and then quits. …

---

## [REXML + DTD example](https://www.ruby-forum.com/t/rexml-dtd-example/92815)

<div class="topic-metadata">

**Author:** [@carp](https://www.ruby-forum.com/u/carp)\
**Replies:** 4\
**Last updated:** [April 25, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/rexml-dtd-example/92815 "2007-04-25T12:01:52Z")

</div>

Hello Rubyists, I’d like to have a custom made XML configuration file parsed with a custom made DTD file. However, the documentation at http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/classes/REXML/DTD.html doesn’t …

---

## [Multiple Parameters with Net:Http](https://www.ruby-forum.com/t/multiple-parameters-with-net-http/92490)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 25, 2007, 11:06am UTC](https://www.ruby-forum.com/t/multiple-parameters-with-net-http/92490 "2007-04-25T11:06:24Z")

</div>

Is there a way to pass in 2 parameters with the same name to the Net::Http client in ruby? It’s using a map right now, and it only stores one of the values. Is this a bug in the Http client implementation? The http s…

---

## [Goodies for Netvibes - Introduction](https://www.ruby-forum.com/t/goodies-for-netvibes-introduction/92814)

<div class="topic-metadata">

**Author:** [@pyros](https://www.ruby-forum.com/u/pyros)\
**Replies:** 2\
**Last updated:** [April 25, 2007, 10:56am UTC](https://www.ruby-forum.com/t/goodies-for-netvibes-introduction/92814 "2007-04-25T10:56:28Z")

</div>

Hello all, I would like to introduce my project gNetvibes, aka “Goodies for Netvibves”. It contain 3 main components : netvibes : netvibes.com api to access your data in ruby gnetvibes : Gnome/GTK+ application (as …

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

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