# Top

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

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

---

## [Pb installation mysql gems](https://www.ruby-forum.com/t/pb-installation-mysql-gems/160326)

<div class="topic-metadata">

**Author:** [@didarp](https://www.ruby-forum.com/u/didarp)\
**Replies:** 5\
**Last updated:** [February 16, 2009, 10:46am UTC](https://www.ruby-forum.com/t/pb-installation-mysql-gems/160326 "2009-02-16T10:46:44Z")

</div>

Bonjour, J’essaie dÃ©sespÃ©rÃ©ment d’installer mysql sous Win XP(‘gem install mysql’) (ruby v1.8.6, gem 1.3.1 et rails 2.2.2) et voici que j’obtiens en retour : C:\\Documents and Settings\\G081622\>gem install --verbos…

---

## [Additional config file like database.yml](https://www.ruby-forum.com/t/additional-config-file-like-database-yml/157335)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 5\
**Last updated:** [January 9, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/additional-config-file-like-database-yml/157335 "2009-01-09T18:17:44Z")

</div>

I have a web site that accesses Solr (a Lucene based search engine accessed via REST). I would like the configuration to be handled in the same was as database.yml. I envision a file called solr.yml that looks somethi…

---

## [Hide & Show div (Element.toggle)](https://www.ruby-forum.com/t/hide-show-div-element-toggle/156399)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 5\
**Last updated:** [December 27, 2008, 8:59am UTC](https://www.ruby-forum.com/t/hide-show-div-element-toggle/156399 "2008-12-27T08:59:06Z")

</div>

I have 2 divs: \<%= link\_to\_function("Show div2", "Element.toggle('div2')") %\> \<%= link\_to\_function("Show div1", "Element.toggle('div1')") %\> I want, when I click link: “Show div2” it hide div1 and show div2, when…

---

## [Apache 2.26+4 Mongrel processes using proxy\_balancer](https://www.ruby-forum.com/t/apache-2-26-4-mongrel-processes-using-proxy-balancer/116576)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 5\
**Last updated:** [October 9, 2007, 5:23am UTC](https://www.ruby-forum.com/t/apache-2-26-4-mongrel-processes-using-proxy-balancer/116576 "2007-10-09T05:23:28Z")

</div>

Hi I have set up 4 mongrel processes and have tested that each of them work before activating proxy\_balance and balancer-manager support Here is the relevant part of my httd.conf relating to Apache proxying a pack of…

---

## [Simple login action help](https://www.ruby-forum.com/t/simple-login-action-help/114505)

<div class="topic-metadata">

**Author:** [@dotty](https://www.ruby-forum.com/u/dotty)\
**Replies:** 5\
**Last updated:** [September 17, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/simple-login-action-help/114505 "2007-09-17T13:21:47Z")

</div>

def do\_login @login\_u = params\[:username\] @login\_p = params\[:password\] @login\_ua == “admin” @login\_pa == “letmein” if @login\_u == @login\_ua && @password\_u == @password\_ua redirect\_to :action =\> ‘suc’ end if @logi…

---

## [Different layout for different renderings](https://www.ruby-forum.com/t/different-layout-for-different-renderings/112717)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 5\
**Last updated:** [August 22, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/different-layout-for-different-renderings/112717 "2007-08-22T16:38:33Z")

</div>

Hi, I’m using radiant for the Profoss website ( http://www.profoss.eu ). Profoss organises events, and each event has its own news section. This news section is displayed in a tab (widget from extjs.com), eg Home / P…

---

## [Sending Multiple Args to a Method Object](https://www.ruby-forum.com/t/sending-multiple-args-to-a-method-object/100942)

<div class="topic-metadata">

**Author:** [@Harris\_R](https://www.ruby-forum.com/u/Harris_R)\
**Replies:** 5\
**Last updated:** [August 2, 2006, 1:51am UTC](https://www.ruby-forum.com/t/sending-multiple-args-to-a-method-object/100942 "2006-08-02T01:51:26Z")

</div>

I am trying to call a method that has multiple arguments using reflection. However, when I invoke the method.call method passing the arguments as an array it chokes with the following error: ArgumentError (wrong numb…

---

## [Unexpected behavior of range.each (Newbie extreme)](https://www.ruby-forum.com/t/unexpected-behavior-of-range-each-newbie-extreme/79995)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 5\
**Last updated:** [March 12, 2006, 1:35am UTC](https://www.ruby-forum.com/t/unexpected-behavior-of-range-each-newbie-extreme/79995 "2006-03-12T01:35:03Z")

</div>

with r=(5…9), r.each{|num| print num,"\\n"} behaves as expected. However if i set r=(9…5) the same method does not behave as though it were taking “each” element of the range. It just terminates. Not only that but r.…

---

## [Can thread pool improve performance for such scenario](https://www.ruby-forum.com/t/can-thread-pool-improve-performance-for-such-scenario/242521)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [June 30, 2015, 1:19pm UTC](https://www.ruby-forum.com/t/can-thread-pool-improve-performance-for-such-scenario/242521 "2015-06-30T13:19:41Z")

</div>

Hi All: I am using Nginx as a reverse proxy which provide a web API (HTTP GET ) to client. and the backend application will get request from nginx and do some time-consuming processing (1-2 seconds) then response res…

---

## [Rewriting location directive by upstream servers](https://www.ruby-forum.com/t/rewriting-location-directive-by-upstream-servers/232217)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 30, 2014, 8:57pm UTC](https://www.ruby-forum.com/t/rewriting-location-directive-by-upstream-servers/232217 "2014-09-30T20:57:12Z")

</div>

Hi, I have two back end application servers behind nginx. The configuration is as follows upstream backend1 { server 10.1.1.11; } upstream backend2 { server 10.2.2.2; } server { listen 80; server…

---

## [Best practice to use Enumerable#Sort and Enumerable#Sort\_by](https://www.ruby-forum.com/t/best-practice-to-use-enumerable-sort-and-enumerable-sort-by/245678)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [June 29, 2013, 4:21am UTC](https://www.ruby-forum.com/t/best-practice-to-use-enumerable-sort-and-enumerable-sort-by/245678 "2013-06-29T04:21:47Z")

</div>

While below is perfect : a = \[ { “id”=\>1, “popularity”=\>7.77030797174916, “title”=\>“Another film”, }, { “id”=\>2, “popularity”=\>2.7703074916, “title”=\>“A film”, }, { “id”=\>3, “popularity”=\>9.77030797174916, …

---

## [How to use nginx as loadbalancer for different webserver?](https://www.ruby-forum.com/t/how-to-use-nginx-as-loadbalancer-for-different-webserver/228409)

<div class="topic-metadata">

**Author:** [@SSJSSrg\_KastningSS\_S](https://www.ruby-forum.com/u/SSJSSrg_KastningSS_S)\
**Replies:** 3\
**Last updated:** [April 22, 2013, 8:39am UTC](https://www.ruby-forum.com/t/how-to-use-nginx-as-loadbalancer-for-different-webserver/228409 "2013-04-22T08:39:02Z")

</div>

Hello all. I’m new to this maillinglist as to nginx as well. I setup a nginx to run as a loadbalancer with just adding the following lines to my /etc/nginx/nginx\_conf. This config works fine. http { upstream loadba…

---

## [Net/ssh and ruby 1.9.1](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 30, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970 "2010-03-30T20:29:24Z")

</div>

Hey All, I’m trying to use net/ssh under ruby 1.9.1p243 (2009-07-16 revision 24175) \[i386-mingw32\]. When I try to do a simple “require ‘net/ssh’” I get the below stack trace (uninitialized constant DL::Importable (N…

---

## [Model.find(\[1,2,3,4,...\]) in einem SELECT bÃ¼ndeln](https://www.ruby-forum.com/t/model-find-1-2-3-4-in-einem-select-ba-ndeln/158739)

<div class="topic-metadata">

**Author:** [@devillo](https://www.ruby-forum.com/u/devillo)\
**Replies:** 3\
**Last updated:** [January 27, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/model-find-1-2-3-4-in-einem-select-ba-ndeln/158739 "2009-01-27T13:59:05Z")

</div>

Hi, ich Ã¼bergebe meiner find Methode ein groÃŸes Array von IDs, deren zugehÃ¶rige DatensÃ¤tze aus der DB geladen werden sollen. Die IDs sind nicht zwingend zusammenhÃ¤ngend, weshalb eine Abfrage mit LIMIT oder OFFSE…

---

## [GenericDirCtrl Bus Error crash on OSX](https://www.ruby-forum.com/t/genericdirctrl-bus-error-crash-on-osx/153002)

<div class="topic-metadata">

**Author:** [@Mathias\_Bruce](https://www.ruby-forum.com/u/Mathias_Bruce)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 3:44am UTC](https://www.ruby-forum.com/t/genericdirctrl-bus-error-crash-on-osx/153002 "2008-11-11T03:44:51Z")

</div>

Hi all and thanks to everyone working on this project =o) I have a problem, and I suspect it has its origins in WxRuby… In my program I use a GenericDirCtrl and handle its corresponding TreeCtrl item selection event w…

---

## [How to Have Constants Available Throughout App?](https://www.ruby-forum.com/t/how-to-have-constants-available-throughout-app/141242)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 3\
**Last updated:** [June 24, 2008, 1:51am UTC](https://www.ruby-forum.com/t/how-to-have-constants-available-throughout-app/141242 "2008-06-24T01:51:47Z")

</div>

I discovered that you can add these modules under /lib with constants in them and call these constants like so : module AdminConstants email =‘removed\_email\_address@domain.invalid’ phone =“123456789” end and then a…

---

## [Call model method out of the controller =\> undefined method](https://www.ruby-forum.com/t/call-model-method-out-of-the-controller-undefined-method/121064)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [December 4, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/call-model-method-out-of-the-controller-undefined-method/121064 "2007-12-04T17:04:09Z")

</div>

Hi, I’m a newby and I fight with the Rails convention - i think so. I’ve done little tools and scripts in Ruby before. I’ve successfully uploaded a textfile. And now i want to extract some filecontent to pass it into…

---

## [Testing](https://www.ruby-forum.com/t/testing/119500)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 3\
**Last updated:** [November 12, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/testing/119500 "2007-11-12T21:29:55Z")

</div>

I’d like to put some add/remove test cases into og/test/og/model/taggable.rb, perhaps also have and a “does it even start?” test into nitro/test/nitro/application.rb. Same could go into a new file in og/test/relation…

---

## [Memory leak in PerFieldAnalyzer](https://www.ruby-forum.com/t/memory-leak-in-perfieldanalyzer/110674)

<div class="topic-metadata">

**Author:** [@kuzb](https://www.ruby-forum.com/u/kuzb)\
**Replies:** 3\
**Last updated:** [July 30, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/memory-leak-in-perfieldanalyzer/110674 "2007-07-30T20:21:24Z")

</div>

Hello everyone, we’ve recently discovered a memory leak in the PerFieldAnalyzer. If you use the PerFieldAnalyzer (which you acutally should), you should switch to a pure ruby version of that analyzer. The C version …

---

## [What happens to instance variables in modules when they are](https://www.ruby-forum.com/t/what-happens-to-instance-variables-in-modules-when-they-are/91574)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 10:06am UTC](https://www.ruby-forum.com/t/what-happens-to-instance-variables-in-modules-when-they-are/91574 "2007-04-11T10:06:12Z")

</div>

Hi, Please take a look at the code pasted at this URL (I will include the code in the body of this message (below) for future readers, but the rafb.net post will give readers for the next 24 hours something better to…

---

## [Glib-GObject-CRITICAL after update](https://www.ruby-forum.com/t/glib-gobject-critical-after-update/78248)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/glib-gobject-critical-after-update/78248 "2006-12-05T15:37:18Z")

</div>

Hi, since the last update I get some really ugly warning messages just when I call ‘require “gtk2”’ (see below). I’m using Gentoo. I upgraded from ruby-glib2-0.14.1 to -0.15.0 but that did not help. I reinstalled gli…

---

## [Wrong content-type when trying to parse emails with Net::IMA](https://www.ruby-forum.com/t/wrong-content-type-when-trying-to-parse-emails-with-net-ima/70486)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [September 30, 2006, 4:56pm UTC](https://www.ruby-forum.com/t/wrong-content-type-when-trying-to-parse-emails-with-net-ima/70486 "2006-09-30T16:56:28Z")

</div>

i’m trying to parse an email that is supposed to be a multipart/mixed mail but i am not getting back the expected results. data = imap.fetch(7, \[“ENVELOPE”, “RFC822.HEADER”, “BODYSTRUCTURE”, “BODY\[1\]”\]) \[RFC822.HEADE…

---

## [Why are subshells slow?](https://www.ruby-forum.com/t/why-are-subshells-slow/253593)

<div class="topic-metadata">

**Author:** [@SouravGoswami](https://www.ruby-forum.com/u/SouravGoswami)\
**Replies:** 1\
**Last updated:** [January 16, 2020, 9:44pm UTC](https://www.ruby-forum.com/t/why-are-subshells-slow/253593 "2020-01-16T21:44:05Z")

</div>

I have noticed that executing subshells makes a program very slow. For example, here code 1 runs way slower than code 2: 1. #!/usr/bin/env ruby $-v = true require 'io/console' unless STDOUT.tty? res = \[40, 40\].freeze …

---

## [Shift from mongrel to webrick](https://www.ruby-forum.com/t/shift-from-mongrel-to-webrick/236455)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [September 4, 2013, 5:02pm UTC](https://www.ruby-forum.com/t/shift-from-mongrel-to-webrick/236455 "2013-09-04T17:02:14Z")

</div>

Hi Everyone I have installed mongrel gem and in my dev I can able to run my app on mongrel but If I want to shift to webrick how can I shift easily with out uninstalling the mongrel gem Thanks in advance

---

## [Cannot install gems](https://www.ruby-forum.com/t/cannot-install-gems/236017)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [August 13, 2013, 5:27am UTC](https://www.ruby-forum.com/t/cannot-install-gems/236017 "2013-08-13T05:27:34Z")

</div>

Environment: Kubuntu Linux 13.4 | rvm 1.21.3 (stable) | ruby 1.8.7 (2013-06-27 patchlevel 374) \[i686-linux\] I’m following the advice of the authors of /The Rspec Book/, and trying to recreate the environment (ruby-1.8…

---

## [Opening a folder for file selection](https://www.ruby-forum.com/t/opening-a-folder-for-file-selection/210808)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [August 22, 2011, 2:04am UTC](https://www.ruby-forum.com/t/opening-a-folder-for-file-selection/210808 "2011-08-22T02:04:32Z")

</div>

Hello, I am trying to provide a link which, when clicked, will supply a folder which I’ve previously selected for users to click and open various files in (some pdf, some .doc, maybe even .odt). In routes.rb I put: …

---

## [Using Ruby's C API safely and sanely](https://www.ruby-forum.com/t/using-rubys-c-api-safely-and-sanely/198824)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 7\
**Last updated:** [November 10, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/using-rubys-c-api-safely-and-sanely/198824 "2010-11-10T15:43:20Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Rubyists! I’m trying to integrate Ruby (both for bindings and embedded interpreter) into a larger project, namely RPM 5. I’m facing several diffuclties there and…

---

## [How to user PDF::Toolkit.pdftk?](https://www.ruby-forum.com/t/how-to-user-pdf-toolkit-pdftk/191023)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 1\
**Last updated:** [July 6, 2010, 1:15am UTC](https://www.ruby-forum.com/t/how-to-user-pdf-toolkit-pdftk/191023 "2010-07-06T01:15:24Z")

</div>

Hi, I tried to fill a PDF fill template with an xdp file by using PDF::Toolkit.pdftk(“C:/pdf/fic2028.xdp”, “fill\_form”, “C:/pdf/fic2028.pdf”) But I got the following error Errno::ENOENT (No such file or directory - …

---

## [How to reference a select\_tag within a form](https://www.ruby-forum.com/t/how-to-reference-a-select-tag-within-a-form/185570)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 7\
**Last updated:** [March 23, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/how-to-reference-a-select-tag-within-a-form/185570 "2010-03-23T18:05:55Z")

</div>

Hi All, Inside my app\\views\\expenses\\new.html.erb file, I had the code: \<% form\_for(@expense) do |f| %\> \[snip\] \<%= f.label :vendor %\> \<%= f.text\_field :vendor %\> true} %\> It brought up…

---

## [Dynamic Table Row](https://www.ruby-forum.com/t/dynamic-table-row/173641)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/dynamic-table-row/173641 "2009-08-12T15:57:45Z")

</div>

I’m playing with rails and RJS, What I want I think sounds simple - but I can’t seem to figure it out. So basically I have a Countries Model, which joins on Cities Model. I want to display a list of countries in a sel…

---

## [Formulaire et robots](https://www.ruby-forum.com/t/formulaire-et-robots/147820)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 7\
**Last updated:** [September 8, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/formulaire-et-robots/147820 "2008-09-08T13:06:58Z")

</div>

Bonjour, Des robots envahissent de spams certains de mes formulaires. Connaissez-vous un système simple à mettre en oeuvre et pas trop contraignant pour les utilisateurs? J’en ai trouvé plusieurs mais ne sais pas leq…

---

## [Upgrading radiant .5 to .6](https://www.ruby-forum.com/t/upgrading-radiant-5-to-6/103114)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 7\
**Last updated:** [May 7, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/upgrading-radiant-5-to-6/103114 "2007-05-07T16:48:24Z")

</div>

How do I upgrade from radiant .5.2 to .6 ? I am using Site5 hosting. Any tutorials I can follow? Keith

---

## [USRP Schematics](https://www.ruby-forum.com/t/usrp-schematics/89991)

<div class="topic-metadata">

**Author:** [@COMINT](https://www.ruby-forum.com/u/COMINT)\
**Replies:** 7\
**Last updated:** [March 26, 2007, 1:28am UTC](https://www.ruby-forum.com/t/usrp-schematics/89991 "2007-03-26T01:28:30Z")

</div>

Hi guys It appears that the pdf/ps schematics located at: http://gnuradio.org/svn/usrp-hw/trunk/USRP\_REV\_4\_2/ are incomplete or cropped. I thought it might be my version of Acrobat Pro but I updated it and still una…

---

## [Extending](https://www.ruby-forum.com/t/extending/85126)

<div class="topic-metadata">

**Author:** [@bueller](https://www.ruby-forum.com/u/bueller)\
**Replies:** 7\
**Last updated:** [February 10, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/extending/85126 "2007-02-10T21:49:05Z")

</div>

So i am trying to make a way to list the previous articles in a list format not by date or month but simply by order published, also be able to break that up into multiple pages (page one is 12 articles page 2 is 12 a…

---

## [Definition of methods: self](https://www.ruby-forum.com/t/definition-of-methods-self/102965)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 7\
**Last updated:** [July 21, 2006, 6:42pm UTC](https://www.ruby-forum.com/t/definition-of-methods-self/102965 "2006-07-21T18:42:32Z")

</div>

In Why’s poignant guide to Ruby some examples appear where he defines a class “class LotteryTicket”, and then he defines a method “def self.new\_random”, or “def LotteryDraw.buy(…)”; that is, before the name of the met…

---

## [Array#each Looping Gotcha](https://www.ruby-forum.com/t/array-each-looping-gotcha/58253)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 7\
**Last updated:** [April 20, 2006, 11:44am UTC](https://www.ruby-forum.com/t/array-each-looping-gotcha/58253 "2006-04-20T11:44:12Z")

</div>

I think I’ve found a gotcha. Really, it should be expected behavior, but it wasn’t immediately obvious to me, so I thought it’s at least worth mentioning. Let’s say you want to iterate through an array and delete any …

---

## [Changing code rate (FEC)](https://www.ruby-forum.com/t/changing-code-rate-fec/243158)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 31, 2015, 8:31pm UTC](https://www.ruby-forum.com/t/changing-code-rate-fec/243158 "2015-08-31T20:31:15Z")

</div>

Hi, I would like to be able to change the code rate with PSK and QAM modulations (e.g QPSK 3/4, 16QAM 1/2). I was thinking of using a FEC encoder/decoder as you can see in the attached files but it doesn’t really wor…

---

## [Installation issue](https://www.ruby-forum.com/t/installation-issue/238072)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 15, 2013, 6:58pm UTC](https://www.ruby-forum.com/t/installation-issue/238072 "2013-12-15T18:58:48Z")

</div>

I installed gnuradio and UHD using instruction on http://gnuradio.org/redmine/projects/gnuradio/wiki/BinaryPackages#Binaries-from-Ettus-Research-Linux-Windows UHD programs are running fine e.g uhd\_find \_devices. But wh…

---

## [FTW 802.11 with N200](https://www.ruby-forum.com/t/ftw-802-11-with-n200/218699)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [November 15, 2013, 1:38pm UTC](https://www.ruby-forum.com/t/ftw-802-11-with-n200/218699 "2013-11-15T13:38:47Z")

</div>

Hi, I’m trying to get FTW 802.11 codes(https://www.cgran.org/wiki/ftw80211ofdmtx) working on a USRP N200 device. After investigating the source files generally, i have revised the parts that are related to sink indica…

---

## [Select and file\_field](https://www.ruby-forum.com/t/select-and-file-field/208842)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 29, 2011, 6:56am UTC](https://www.ruby-forum.com/t/select-and-file-field/208842 "2011-06-29T06:56:12Z")

</div>

Hi Let’s suppose I have a form in views/users/new.html.erb, and: :first\_name field has validates :presence =\> true :gender in mysql database field can have boolean values (0-Female, 1-Male) :avatar has a binary field…

---

## [RSpec newb - why is my negative test not passing?](https://www.ruby-forum.com/t/rspec-newb-why-is-my-negative-test-not-passing/188234)

<div class="topic-metadata">

**Author:** [@Jferg](https://www.ruby-forum.com/u/Jferg)\
**Replies:** 2\
**Last updated:** [May 9, 2010, 5:00am UTC](https://www.ruby-forum.com/t/rspec-newb-why-is-my-negative-test-not-passing/188234 "2010-05-09T05:00:23Z")

</div>

Why won’t this test work? I am trying to use RSpec to drive a negative test where my code will throw an exception which it does however, the test does not pass. It fails due to my exception. However, I am using sho…

---

## [Acts\_as\_ferret and indexes created with ferret](https://www.ruby-forum.com/t/acts-as-ferret-and-indexes-created-with-ferret/151081)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-indexes-created-with-ferret/151081 "2008-10-16T16:32:09Z")

</div>

Hello List! I’ve have created an index using a Rerret based application, and may aim is to create a Ruby R. Web application that will allows to search using my index! I tried yo use the acts\_as\_ferret plugin for Ra…

---

## [Ruby RTSP server](https://www.ruby-forum.com/t/ruby-rtsp-server/142711)

<div class="topic-metadata">

**Author:** [@dicouw](https://www.ruby-forum.com/u/dicouw)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 9:11am UTC](https://www.ruby-forum.com/t/ruby-rtsp-server/142711 "2008-07-11T09:11:54Z")

</div>

Hello everyone, Does anybody know a RTSP server written in ruby? It’s for video content streaming, thanks !

---

## [Incompatible marshal file format](https://www.ruby-forum.com/t/incompatible-marshal-file-format/105179)

<div class="topic-metadata">

**Author:** [@Tom\_Wadlow](https://www.ruby-forum.com/u/Tom_Wadlow)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/incompatible-marshal-file-format/105179 "2007-05-26T19:57:29Z")

</div>

Hi, I’ve written a RoR application that I would like to be able to deploy more widely, but I’m running into a rather peculiar problem with it. First, some context. Here’s what I’ve got installed: actionmailer (1.3.3…

---

## [Undefined method \`header\_row?' for \["A", nil\]:Array (NoMethodError)](https://www.ruby-forum.com/t/undefined-method-header-row-for-a-nil-array-nomethoderror/239369)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [February 25, 2014, 9:09am UTC](https://www.ruby-forum.com/t/undefined-method-header-row-for-a-nil-array-nomethoderror/239369 "2014-02-25T09:09:08Z")

</div>

Can anyone tell me why I am getting the error ? require ‘csv’ \_output\_file\_path = File.expand\_path(‘output.csv’,File.dirname(FILE)) hash = { ‘A’ =\> \[ ‘v’, ‘x’, ‘y’ , ‘z’ \] , ‘B’ =\> \[ ‘m’, ‘n’ , ‘o’ \] , ‘C’ =\> \[ ‘…

---

## [2Q: Getting first 4 elements from array and calling class methods directly](https://www.ruby-forum.com/t/2q-getting-first-4-elements-from-array-and-calling-class-methods-directly/225631)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 20, 2013, 6:55pm UTC](https://www.ruby-forum.com/t/2q-getting-first-4-elements-from-array-and-calling-class-methods-directly/225631 "2013-01-20T18:55:57Z")

</div>

Hello fellow Rubyists! I have written a quick n dirty code to display the first 4 RSS entries from a feed using “feedzirra” gem. The code is pretty straight forward: https://gist.github.com/4578863 I have two questio…

---

## [NoMethodError in XXXXXXXXXController#create](https://www.ruby-forum.com/t/nomethoderror-in-xxxxxxxxxcontroller-create/212178)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 26, 2011, 10:34am UTC](https://www.ruby-forum.com/t/nomethoderror-in-xxxxxxxxxcontroller-create/212178 "2011-09-26T10:34:19Z")

</div>

Hello comrades , I got a error. I don’t understand that exception. What happened ? You have a nil object when you didn’t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while …

---

## [How to keep the rails server always ON?](https://www.ruby-forum.com/t/how-to-keep-the-rails-server-always-on/210287)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 4, 2011, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-keep-the-rails-server-always-on/210287 "2011-08-04T12:57:16Z")

</div>

I have to type: rails server, each time I want it to be running in the background. How to keep it started always in the background?

---

## [Applying an rspec matcher against the elements of a collection](https://www.ruby-forum.com/t/applying-an-rspec-matcher-against-the-elements-of-a-collection/184001)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 4\
**Last updated:** [February 24, 2010, 2:47am UTC](https://www.ruby-forum.com/t/applying-an-rspec-matcher-against-the-elements-of-a-collection/184001 "2010-02-24T02:47:59Z")

</div>

Hi all, I’ve tried to figure out whether rspec has any features to make it easier to make assertions against the elements of a collection, but I haven’t had any luck finding anything so far. I thought I’d explain the…

---

## [Subclassing fundamental classes](https://www.ruby-forum.com/t/subclassing-fundamental-classes/103596)

<div class="topic-metadata">

**Author:** [@xyz](https://www.ruby-forum.com/u/xyz)\
**Replies:** 4\
**Last updated:** [May 8, 2007, 9:51am UTC](https://www.ruby-forum.com/t/subclassing-fundamental-classes/103596 "2007-05-08T09:51:56Z")

</div>

Let’s say I have a user-defined class as follows: class C1 #------------------------- def initialize(i, j) @iv1 = Array.new(i, j) end #------------------------- def append(i) @iv1 \<\< i return(self) end #------…

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

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