# Top

**URL:** https://www.ruby-forum.com/top.md?page=896

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

---

## [Creating a gem structure for command line program](https://www.ruby-forum.com/t/creating-a-gem-structure-for-command-line-program/190004)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 7\
**Last updated:** [June 11, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/creating-a-gem-structure-for-command-line-program/190004 "2010-06-11T12:48:13Z")

</div>

I’ve written a command line program. Would like to distribute it as a gem. I’ve run jeweler and generated a structure. However, I am not sure how to go about it. My project consists of one main file (lets call it ma…

---

## ["Getting Started" needs Rails 3.0, but "gem install rails" installs Rails 2.3.8](https://www.ruby-forum.com/t/getting-started-needs-rails-3-0-but-gem-install-rails-installs-rails-2-3-8/182699)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 7\
**Last updated:** [February 7, 2010, 11:45am UTC](https://www.ruby-forum.com/t/getting-started-needs-rails-3-0-but-gem-install-rails-installs-rails-2-3-8/182699 "2010-02-07T11:45:10Z")

</div>

As of this writing: The Getting Started guide (http://guides.rails.info/ getting\_started.html) was recently re-written to reflect recent features in Rails 3.0. But the instructions it gives for downloading rails in …

---

## [Need hellp to position 4 images in fxfuby main window](https://www.ruby-forum.com/t/need-hellp-to-position-4-images-in-fxfuby-main-window/176220)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/need-hellp-to-position-4-images-in-fxfuby-main-window/176220 "2009-11-11T21:07:41Z")

</div>

Please suggest how chart4.rb can be modified, to position the 4 image in the four corners of the main window. Desired layout shown below. |------------------------| | chart1 | chart2 | |------------------------| …

---

## [Change column name in view](https://www.ruby-forum.com/t/change-column-name-in-view/177428)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [October 17, 2009, 7:54am UTC](https://www.ruby-forum.com/t/change-column-name-in-view/177428 "2009-10-17T07:54:20Z")

</div>

How can I change the column name from the db so it’s displayed in view in a different way?

---

## [Whats the best way to package deploy a Ruby app to windows? (no UI, also standalone if possible)](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 7\
**Last updated:** [September 15, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504 "2009-09-15T22:11:13Z")

</div>

Hi, Whats the best way to package deploy a Ruby app to windows??? (no UI, also standalone if possible) In other words a tools I can create a normal windows installation package, or self extracting package, so that no…

---

## [Can you set Base class attributes from a subclass?](https://www.ruby-forum.com/t/can-you-set-base-class-attributes-from-a-subclass/169472)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 7\
**Last updated:** [June 4, 2009, 8:24am UTC](https://www.ruby-forum.com/t/can-you-set-base-class-attributes-from-a-subclass/169472 "2009-06-04T08:24:25Z")

</div>

Hello, I’m overriding the initialize method of a base class and I’m trying to set a Base class variable in the overridden method and have it register in the Base class (hope that makes sense). Here’s my code: in Ra…

---

## [Fixing column value in the model](https://www.ruby-forum.com/t/fixing-column-value-in-the-model/167076)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [May 3, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/fixing-column-value-in-the-model/167076 "2009-05-03T21:18:00Z")

</div>

I’m using a Crypto.encrypt(“string”) to create a record for a column and Crypto.decrypt(column) when reading and presenting it in the browser. I do this in the controller. Can I do it in the model instead?

---

## [RubyGems question: install vs. update](https://www.ruby-forum.com/t/rubygems-question-install-vs-update/166826)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 7\
**Last updated:** [April 30, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/rubygems-question-install-vs-update/166826 "2009-04-30T13:30:26Z")

</div>

This must be obvious, but what’s the difference between “gem install” and “gem update”? I would have thought that “gem update” would do a gem install plus a gem cleanup, effectively updating your current version. But…

---

## [Code duplication](https://www.ruby-forum.com/t/code-duplication/164845)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [April 7, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/code-duplication/164845 "2009-04-07T13:07:58Z")

</div>

Hi all, The following is the code for extracting the html contents of a website. I have included the code in case url redirect and BadRequest error. #getting the HTTP response from ‘uri’ response = Net::HTTP.get\_res…

---

## [How to set the focus to a specified field in a form](https://www.ruby-forum.com/t/how-to-set-the-focus-to-a-specified-field-in-a-form/154907)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 7\
**Last updated:** [December 5, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/how-to-set-the-focus-to-a-specified-field-in-a-form/154907 "2008-12-05T18:42:35Z")

</div>

This is probably a general HTML question, but I’ll ask it here anyway. Is there any way to set the focus to a specific field in a form generated in a view? The little I’ve found on so far suggests that I need to add …

---

## [Nginx-0.7.8](https://www.ruby-forum.com/t/nginx-0-7-8/144954)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 7\
**Last updated:** [August 4, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/nginx-0-7-8/144954 "2008-08-04T22:38:53Z")

</div>

Changes with nginx 0.7.8 04 Aug 2008 \*) Feature: the ngx\_http\_xslt\_module. \*) Feature: the "$arg\_..." variables. \*) Feature: Solaris directio support. Thanks to Ivan Debnar.…

---

## [Validation? Cool... How about before\_save formatting](https://www.ruby-forum.com/t/validation-cool-how-about-before-save-formatting/112043)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 7\
**Last updated:** [August 16, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/validation-cool-how-about-before-save-formatting/112043 "2007-08-16T23:43:23Z")

</div>

Hello, I am trying to define a before\_save method in an object. I would like to call a function like sanitize or simple\_format. These are view functions. Is there any way, short of writing my own functions, to san…

---

## ["x" and "y" values in a form\_tag](https://www.ruby-forum.com/t/x-and-y-values-in-a-form-tag/98958)

<div class="topic-metadata">

**Author:** [@pozza](https://www.ruby-forum.com/u/pozza)\
**Replies:** 7\
**Last updated:** [June 1, 2007, 1:52am UTC](https://www.ruby-forum.com/t/x-and-y-values-in-a-form-tag/98958 "2007-06-01T01:52:30Z")

</div>

Hi, I have some strange output in my log file, where I am sending information via a form to the database, eg: \<-- snip --\> Processing StoreController#add\_var\_product (for 127.0.0.1 at 2006-01-30 12:30:19) \[POST\] P…

---

## [Virtual Domains 0.6 Routing problems](https://www.ruby-forum.com/t/virtual-domains-0-6-routing-problems/92573)

<div class="topic-metadata">

**Author:** [@mlue](https://www.ruby-forum.com/u/mlue)\
**Replies:** 7\
**Last updated:** [April 21, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/virtual-domains-0-6-routing-problems/92573 "2007-04-21T17:58:28Z")

</div>

I’m having trouble using virtual domains 0.6. I believe that is the version that has been updated for the radiant .6 candidate. I am able to specify the slug of a default page that I want any requests forwarded to the…

---

## [Minor Change Proposal for Class 'Numeric'](https://www.ruby-forum.com/t/minor-change-proposal-for-class-numeric/82980)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 7\
**Last updated:** [January 23, 2007, 12:56am UTC](https://www.ruby-forum.com/t/minor-change-proposal-for-class-numeric/82980 "2007-01-23T00:56:22Z")

</div>

Hi! I didn’t find there a discussion about this here, so first a description of this (very) minor change proposal. I miss the “Sign function” in class “Numeric”. It can simply be added by something like… class Nume…

---

## [Enterprise Software is all about wizards](https://www.ruby-forum.com/t/enterprise-software-is-all-about-wizards/71006)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 7\
**Last updated:** [October 5, 2006, 3:50pm UTC](https://www.ruby-forum.com/t/enterprise-software-is-all-about-wizards/71006 "2006-10-05T15:50:53Z")

</div>

Would any one else say that enterprise systems (+150 tables) are mainly consisted of wizards. The flow in the software from screen to screen is looselt based on how the business flows, and is required to be very stru…

---

## [Re: ed borasky and his second favourite programming language](https://www.ruby-forum.com/t/re-ed-borasky-and-his-second-favourite-programming-language/97063)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [July 5, 2006, 5:31am UTC](https://www.ruby-forum.com/t/re-ed-borasky-and-his-second-favourite-programming-language/97063 "2006-07-05T05:31:19Z")

</div>

Thank you, Paul, for the link. Assuming that Ara’s link to Ed Borasky’s opinions also makes the case for R, I’ve two questions: obviously, you can like features of R very much, but what do you do if the code you ha…

---

## [Can text\_field\_with\_auto\_complete return ID?](https://www.ruby-forum.com/t/can-text-field-with-auto-complete-return-id/49089)

<div class="topic-metadata">

**Author:** [@carlos.okada](https://www.ruby-forum.com/u/carlos.okada)\
**Replies:** 7\
**Last updated:** [June 8, 2006, 8:22am UTC](https://www.ruby-forum.com/t/can-text-field-with-auto-complete-return-id/49089 "2006-06-08T08:22:17Z")

</div>

Hello Can I make text\_field\_with\_auto\_complete show the name atribute and then return the ID of the selected object when the page is posted-back? Thanks! Okada.

---

## [Counting words](https://www.ruby-forum.com/t/counting-words/94323)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 7\
**Last updated:** [April 28, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/counting-words/94323 "2006-04-28T23:10:57Z")

</div>

I’ve research this but am still having trouble getting it right … Can someone give me code that counts the number of words in a string via RegExp and MatchData objects? I think I’d like a word to be defined as contig…

---

## [A quick question on popup windows](https://www.ruby-forum.com/t/a-quick-question-on-popup-windows/65747)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 7\
**Last updated:** [February 13, 2006, 2:05am UTC](https://www.ruby-forum.com/t/a-quick-question-on-popup-windows/65747 "2006-02-13T02:05:43Z")

</div>

How the hell do you close em off after the action is completed? Ta, Eric

---

## [Open Python file with GNU Radio](https://www.ruby-forum.com/t/open-python-file-with-gnu-radio/261974)

<div class="topic-metadata">

**Author:** [@Tony1](https://www.ruby-forum.com/u/Tony1)\
**Replies:** 0\
**Last updated:** [October 19, 2021, 7:53am UTC](https://www.ruby-forum.com/t/open-python-file-with-gnu-radio/261974 "2021-10-19T07:53:24Z")

</div>

Hi everyone, I’m using GNU Radio Companion recently and I would like to know if it is possible to open a Python file in GNU Radio? This Python file allows me to launch the camera of my computer and I try to stream this…

---

## [Net::SCP How to use ssh options?](https://www.ruby-forum.com/t/net-scp-how-to-use-ssh-options/244792)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [June 15, 2016, 3:22pm UTC](https://www.ruby-forum.com/t/net-scp-how-to-use-ssh-options/244792 "2016-06-15T15:22:53Z")

</div>

Hi, I’m trying to use custom SSH-Options with the modules Net::SCP These are the used versions: Ruby: 1.9.1 Net::SSH: 2.9.4 (Last Version that works with ruby 1.x) Net::SCP: 1.2.1 In the documentation, there is the…

---

## [Range + If-Range requests not working with proxy cache hits](https://www.ruby-forum.com/t/range-if-range-requests-not-working-with-proxy-cache-hits/243691)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 21, 2015, 3:39pm UTC](https://www.ruby-forum.com/t/range-if-range-requests-not-working-with-proxy-cache-hits/243691 "2015-12-21T15:39:36Z")

</div>

Hello, I’m using proxy\_cache module and I noticed nginx replies with whole response and 200 OK status on requests such as this and for content that is already in cache: User-Agent: curl/7.26.0 Accept: / Range:byt…

---

## [Math between Models](https://www.ruby-forum.com/t/math-between-models/222650)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [September 4, 2012, 11:16pm UTC](https://www.ruby-forum.com/t/math-between-models/222650 "2012-09-04T23:16:47Z")

</div>

I have two models that are associated with has\_and\_belongs\_to\_many, and I’m trying to create a method that computes something with attributes from both models, but I’m getting an undefined method error with the code I…

---

## [Plotter\_base.py problem](https://www.ruby-forum.com/t/plotter-base-py-problem/209577)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [July 19, 2011, 5:06pm UTC](https://www.ruby-forum.com/t/plotter-base-py-problem/209577 "2011-07-19T17:06:57Z")

</div>

Hello! I’m trying to play a bit with gnuradio and a funcube dongle pro but I’m having problems making gnuradio work. I’m using a fresh ubuntu 11.04 install and gnuradio 3.4.0 built from sources. Everytime a fft displ…

---

## [Help : I am trying to know the grc](https://www.ruby-forum.com/t/help-i-am-trying-to-know-the-grc/204611)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [March 19, 2011, 9:12pm UTC](https://www.ruby-forum.com/t/help-i-am-trying-to-know-the-grc/204611 "2011-03-19T21:12:37Z")

</div>

Hi guys , First of all i m a newbie in this field and please do tolerate any stupid question from my side , rather please guide me . I am attaching my most simple grc block design and it seems something is wrong so …

---

## [Help : how long usrp can run continously in normal environment](https://www.ruby-forum.com/t/help-how-long-usrp-can-run-continously-in-normal-environment/194735)

<div class="topic-metadata">

**Author:** [@aksharma](https://www.ruby-forum.com/u/aksharma)\
**Replies:** 8\
**Last updated:** [September 10, 2010, 4:34am UTC](https://www.ruby-forum.com/t/help-how-long-usrp-can-run-continously-in-normal-environment/194735 "2010-09-10T04:34:18Z")

</div>

Hi everyone, I want to test something with usrp running continously under normal environment. Can someone tell me the real data of how long usrp is capable of running continously. Thanks.

---

## [Parsing XML file with no style info with Hpricot](https://www.ruby-forum.com/t/parsing-xml-file-with-no-style-info-with-hpricot/184725)

<div class="topic-metadata">

**Author:** [@allanium](https://www.ruby-forum.com/u/allanium)\
**Replies:** 8\
**Last updated:** [March 7, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/parsing-xml-file-with-no-style-info-with-hpricot/184725 "2010-03-07T21:56:02Z")

</div>

Hello, I’ve been trying for hours to parse an XML using Hpricot. Usually it’s not a problem. Here’s my simple code: #This works and outputs the proper xml data @url1 = ‘http://www.sportingnews.com/stories/sportingnew…

---

## [IO error == rubygems](https://www.ruby-forum.com/t/io-error-rubygems/179549)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 8\
**Last updated:** [December 21, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/io-error-rubygems/179549 "2009-12-21T15:37:24Z")

</div>

Is this expected: latest github C:\\dev\\ruby\\downloads\\jruby\\bin\>gem list C:\\dev\\ruby\\downloads\\jruby\\bin\\gem:8:in \`require’: IO error – rubygems (LoadError) from C:\\dev\\ruby\\downloads\\jruby\\bin\\gem:8 thanks. -r

---

## [Rails 2.3.x and active\_scaffold Installation](https://www.ruby-forum.com/t/rails-2-3-x-and-active-scaffold-installation/172946)

<div class="topic-metadata">

**Author:** [@seenu](https://www.ruby-forum.com/u/seenu)\
**Replies:** 8\
**Last updated:** [July 31, 2009, 9:52am UTC](https://www.ruby-forum.com/t/rails-2-3-x-and-active-scaffold-installation/172946 "2009-07-31T09:52:34Z")

</div>

Hi, I have upgraded to rails 2.3 and active\_scaffold plugin is not working. when i run this command it creates a active\_sacaffold folder in vendor/ plugins, but its an empty folder. I googled but found no way to ins…

---

## [First attempt: array of hashes, please help](https://www.ruby-forum.com/t/first-attempt-array-of-hashes-please-help/226024)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 8\
**Last updated:** [August 24, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/first-attempt-array-of-hashes-please-help/226024 "2008-08-24T19:36:09Z")

</div>

Hello, I’ve been working on this project quite a bit. I’m very enthusiastic about learning Ruby, and have done my best to comment with MARKERs where the problems are or may be. The hurdle is that I need output to pr…

---

## [Where do I define a method so it's available to all models?](https://www.ruby-forum.com/t/where-do-i-define-a-method-so-its-available-to-all-models/119766)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 8\
**Last updated:** [November 10, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/where-do-i-define-a-method-so-its-available-to-all-models/119766 "2007-11-10T16:15:38Z")

</div>

I’m trying to define a method that will be available to all Models. I originally put it in the ApplicationHelper file, but I now understand that this is only available to Views. Where do I put a common model method th…

---

## [Curb 0.0.1 - New ruby libcurl bindings](https://www.ruby-forum.com/t/curb-0-0-1-new-ruby-libcurl-bindings/76356)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 8\
**Last updated:** [November 20, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/curb-0-0-1-new-ruby-libcurl-bindings/76356 "2006-11-20T14:45:58Z")

</div>

Curb 0.0.1 is now available from http://curb.rubyforge.org. Curb provides nice, easy to use bindings to the libcurl URL transfer library. This is the first release, and Curb is still a work-in-progress. Currently, it…

---

## [OffRailed, and stuck in the book : (](https://www.ruby-forum.com/t/offrailed-and-stuck-in-the-book/63581)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 8\
**Last updated:** [June 16, 2006, 11:07pm UTC](https://www.ruby-forum.com/t/offrailed-and-stuck-in-the-book/63581 "2006-06-16T23:07:41Z")

</div>

Help, i’ve been trapped on the tracks here for a day now in the Agile w/ Rails book (latest edition) I can’t get page 115 to display. It says: You have a nil object when you didn’t expect it! You might have expected …

---

## [RubyConf 2006, October 20-22, Denver!](https://www.ruby-forum.com/t/rubyconf-2006-october-20-22-denver/75387)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [March 2, 2006, 6:18am UTC](https://www.ruby-forum.com/t/rubyconf-2006-october-20-22-denver/75387 "2006-03-02T06:18:45Z")

</div>

Dear Rubyists, The directors of Ruby Central, Inc. are pleased to announce that the sixth International Ruby Conference (RubyConf 2006) will be held in the Denver, Colorado area, October 20-22, 2006. Stay tuned here…

---

## [Ruby One-click Installer and ruby 18.4](https://www.ruby-forum.com/t/ruby-one-click-installer-and-ruby-18-4/51593)

<div class="topic-metadata">

**Author:** [@dany](https://www.ruby-forum.com/u/dany)\
**Replies:** 8\
**Last updated:** [January 19, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/ruby-one-click-installer-and-ruby-18-4/51593 "2006-01-19T16:47:52Z")

</div>

Greetings, There was not release of the Ruby O.-click Installer with version 1.8.3. Anyone heard of plans of One-click Installer plan to include 1.8.4 and any target release timeframe? Thanks, Dany

---

## [Top level methods are becoming singleton method as well as instance method - Why?](https://www.ruby-forum.com/t/top-level-methods-are-becoming-singleton-method-as-well-as-instance-method-why/232963)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [November 7, 2014, 1:22pm UTC](https://www.ruby-forum.com/t/top-level-methods-are-becoming-singleton-method-as-well-as-instance-method-why/232963 "2014-11-07T13:22:29Z")

</div>

Hi, If you look at the below example, you can see top level methods becoming singleton method as well as instance method. Why both ?. It should be only a private instance method of Object, I think. arup~$ irb def …

---

## [How perform addition a text value with an integer](https://www.ruby-forum.com/t/how-perform-addition-a-text-value-with-an-integer/221935)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [August 6, 2012, 1:04pm UTC](https://www.ruby-forum.com/t/how-perform-addition-a-text-value-with-an-integer/221935 "2012-08-06T13:04:08Z")

</div>

HI i dont know how to get this … i put a value in a text file cat extainfo.txt 1008 now i want to get this value from another file myfile = File.open(‘extrainfo.txt’) cuid = myfile.readline puts cuid but i need …

---

## [Usrp\_nbfm\_ptt.py Error: \_\_init\_\_() takes exactly 4 arguments (6 given)](https://www.ruby-forum.com/t/usrp-nbfm-ptt-py-error-init-takes-exactly-4-arguments-6-given/218191)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 23, 2012, 9:25pm UTC](https://www.ruby-forum.com/t/usrp-nbfm-ptt-py-error-init-takes-exactly-4-arguments-6-given/218191 "2012-03-23T21:25:01Z")

</div>

Hi, I’m trying to make usrp\_nbfm\_ptt.py to work with a N210 Rev.4. on Ubuntu 11.10 and with Gnuradio 3.5.2.1 After my normal system info (see below), however, I get following message: The debugged program raised th…

---

## [Sharing rate limiting data between multiple nginx LB’s](https://www.ruby-forum.com/t/sharing-rate-limiting-data-between-multiple-nginx-lb-s/216743)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 29, 2012, 4:33am UTC](https://www.ruby-forum.com/t/sharing-rate-limiting-data-between-multiple-nginx-lb-s/216743 "2012-02-29T04:33:34Z")

</div>

I have multiple nginx machines running and proxy LB through a round robin DNS mechanism. I do rate limiting as follows limit\_req\_zone $binary\_remote\_addr zone=pw:30m rate=20r/m; location / { lim…

---

## [AJAX vote update for a nested resource](https://www.ruby-forum.com/t/ajax-vote-update-for-a-nested-resource/212788)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [October 15, 2011, 12:13am UTC](https://www.ruby-forum.com/t/ajax-vote-update-for-a-nested-resource/212788 "2011-10-15T00:13:46Z")

</div>

I created a house scaffold which has many reviews and the reviews can be voted on. All the reviews for a house are shown on the house show page. Then each review has a vote button and a display to show the current nu…

---

## [Weirdness with rake spec!](https://www.ruby-forum.com/t/weirdness-with-rake-spec/190610)

<div class="topic-metadata">

**Author:** [@cghost](https://www.ruby-forum.com/u/cghost)\
**Replies:** 5\
**Last updated:** [June 23, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/weirdness-with-rake-spec/190610 "2010-06-23T22:01:10Z")

</div>

Hi everyone. I am totally confused by this… If I run rake spec, I get a bunch of failures in a particular file, but if I run script/spec on that individual file, all examples pass. The error I am getting is with t…

---

## [Problem with SOAP and Commision Junction web services](https://www.ruby-forum.com/t/problem-with-soap-and-commision-junction-web-services/71323)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 5\
**Last updated:** [May 17, 2010, 8:46am UTC](https://www.ruby-forum.com/t/problem-with-soap-and-commision-junction-web-services/71323 "2010-05-17T08:46:06Z")

</div>

I’m new to Ruby and Web Services. I’m trying to use Commision Junction’s Web services. I’ve run a couple example web services with Ruby, so I’m confidents that my env is setup properly. I’ve also connected to the CJ w…

---

## [Soft-DVB has a Brother. A Receiving Brother. And Fast](https://www.ruby-forum.com/t/soft-dvb-has-a-brother-a-receiving-brother-and-fast/182522)

<div class="topic-metadata">

**Author:** [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Replies:** 5\
**Last updated:** [February 1, 2010, 9:39am UTC](https://www.ruby-forum.com/t/soft-dvb-has-a-brother-a-receiving-brother-and-fast/182522 "2010-02-01T09:39:50Z")

</div>

Hi GNURadio fellows, considering that this list has grown to something highly relevant in Software Defined Radio I thought it would have been a good idea to share here a few thoughts I’ve been having since long and as…

---

## [Wamp doesn't work after installing with InstantRails](https://www.ruby-forum.com/t/wamp-doesnt-work-after-installing-with-instantrails/173421)

<div class="topic-metadata">

**Author:** [@JCJCJC](https://www.ruby-forum.com/u/JCJCJC)\
**Replies:** 5\
**Last updated:** [August 8, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/wamp-doesnt-work-after-installing-with-instantrails/173421 "2009-08-08T19:33:28Z")

</div>

Hello. I installed ROR with InstantRails and it works fine. But later, when I tried to access to localhost via wamp, wamp didn’t work. (I have previous projects sitting in ‘C:\\wamp\\www’ folder, and I used to access …

---

## [Trouble understanding Routes](https://www.ruby-forum.com/t/trouble-understanding-routes/173019)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 5\
**Last updated:** [July 31, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/trouble-understanding-routes/173019 "2009-07-31T18:45:15Z")

</div>

Hey Everyone, I’m new to Rails and working through the book Simply Rails 2. I’ve just hit one of my first large snags. This was my routes file: map.resources :stories, :has\_many =\> :votes, :collection =\> { :bin =\> :…

---

## [Replacing verticle white spaces?](https://www.ruby-forum.com/t/replacing-verticle-white-spaces/172247)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 5\
**Last updated:** [July 23, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/replacing-verticle-white-spaces/172247 "2009-07-23T15:36:51Z")

</div>

Any ideas on how to replace a verticle white space? for example tetetetetetetete tetetettetetetete rererererererere rerererererererr such that you end up with tetetetetetetettete etetetetetetetetete rererererere…

---

## [OptionParser and Exceptions](https://www.ruby-forum.com/t/optionparser-and-exceptions/165581)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 5\
**Last updated:** [April 15, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/optionparser-and-exceptions/165581 "2009-04-15T15:12:16Z")

</div>

Hello, The following code: require ‘optparse’ optparser = OptionParser.new do |args| list=\[:foo,:bar,:baz\] begin args.on("–l \[OPTION\]",list,“Blah”) { |o| } rescue puts “Rescuing in the block” end end begin op…

---

## [RSC // Hackup di Milano del 18 Gennaio 2008 (also pachube)](https://www.ruby-forum.com/t/rsc-hackup-di-milano-del-18-gennaio-2008-also-pachube/156824)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 5\
**Last updated:** [January 11, 2009, 10:37am UTC](https://www.ruby-forum.com/t/rsc-hackup-di-milano-del-18-gennaio-2008-also-pachube/156824 "2009-01-11T10:37:17Z")

</div>

Abbiamo rimandato e rimandato il ruby social club… pero’ per chi si annoia a Milano il weekend, il 18 gennaio abbiamo un Hack-Up. 4 ore per concepire fare e pubblicare un progetto con un gruppo di developers, design…

---

## [Ruby 1.8.7 Lambas: syntax and scoping issue (are these bugs?](https://www.ruby-forum.com/t/ruby-1-8-7-lambas-syntax-and-scoping-issue-are-these-bugs/154970)

<div class="topic-metadata">

**Author:** [@charlton](https://www.ruby-forum.com/u/charlton)\
**Replies:** 5\
**Last updated:** [December 7, 2008, 8:48am UTC](https://www.ruby-forum.com/t/ruby-1-8-7-lambas-syntax-and-scoping-issue-are-these-bugs/154970 "2008-12-07T08:48:17Z")

</div>

I’m seeing two odd behaviours with using lambdas: It seems as though having a lambda as a function argument with a block causes a syntax error. It can be mitigated by adding a semicolon or by using parentheses def f…

[Previous page](https://www.ruby-forum.com/top.md?page=895&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=897&per_page=50)
