# Top

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

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

---

## [Designing a good receiver](https://www.ruby-forum.com/t/designing-a-good-receiver/207778)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 2, 2011, 3:01pm UTC](https://www.ruby-forum.com/t/designing-a-good-receiver/207778 "2011-06-02T15:01:57Z")

</div>

This comes from a discussion over on the USRP-users mailing list, but I felt it would be more appropriate to post here. Over on that list, someone was asking about problems they were having consistently receiving data…

---

## [Multi-model forms](https://www.ruby-forum.com/t/multi-model-forms/204344)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 15, 2011, 7:22am UTC](https://www.ruby-forum.com/t/multi-model-forms/204344 "2011-03-15T07:22:46Z")

</div>

Hi guys, I’m new to ruby and rails and I’m working on multi model forms, specifically 3. I’m using this as a start, and its got a 2 Model example but I cant seem to get the last one working. These are my models: Co…

---

## [Problems working with Legacy database - associations](https://www.ruby-forum.com/t/problems-working-with-legacy-database-associations/203231)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 17, 2011, 1:50am UTC](https://www.ruby-forum.com/t/problems-working-with-legacy-database-associations/203231 "2011-02-17T01:50:01Z")

</div>

Hi Folks, I’m new to Rails (and Ruby), and right off the bat, I need to work with a legacy database (SQL Server 2008). I’m having trouble building my models and specifying the associations. The primary key of each …

---

## [Array within array question](https://www.ruby-forum.com/t/array-within-array-question/202038)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 20, 2011, 12:29pm UTC](https://www.ruby-forum.com/t/array-within-array-question/202038 "2011-01-20T12:29:28Z")

</div>

Hello everyone, this is my first post on this forum and I’m quite new to ruby. My dilemma is that I’ve got an array which holds a whole lot of arrays inside it and I want to print a element of one of the arrays within…

---

## [Boost Problem in Compiling Current Trunk](https://www.ruby-forum.com/t/boost-problem-in-compiling-current-trunk/156695)

<div class="topic-metadata">

**Author:** [@fmalem](https://www.ruby-forum.com/u/fmalem)\
**Replies:** 4\
**Last updated:** [January 7, 2010, 8:21am UTC](https://www.ruby-forum.com/t/boost-problem-in-compiling-current-trunk/156695 "2010-01-07T08:21:38Z")

</div>

Hi, I cannot compile the current trunk 10183. I’m using boost 1\_37\_0. Although ./configure went out with no boost problems as in : checking for boost \>= 1.35… yes checking whether the boost::thread includes are avai…

---

## [Alleggerire estrazione dati da tabella](https://www.ruby-forum.com/t/alleggerire-estrazione-dati-da-tabella/176726)

<div class="topic-metadata">

**Author:** [@daneel\_olivaw](https://www.ruby-forum.com/u/daneel_olivaw)\
**Replies:** 4\
**Last updated:** [October 7, 2009, 12:39pm UTC](https://www.ruby-forum.com/t/alleggerire-estrazione-dati-da-tabella/176726 "2009-10-07T12:39:09Z")

</div>

Salve lista. Ritorno su un’applicazione di cui avevo giÃ parlato tempo fa per chiedere aiuto su altri aspetti. Tanto per capire un po’ cos’Ã¨ 'sta roba: ho un elenco di circa 20000 elementi gestiti da degli operator…

---

## [Weird problem after deploy: application.html.erb does not lo](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 4\
**Last updated:** [August 13, 2009, 1:03am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614 "2009-08-13T01:03:24Z")

</div>

I am having a weird problem: Just deployed an updated app to test on my server. For some reason it does not load my layout, but some other default layout, which looks like the below. I dont know where this layout is …

---

## [\[ANN\] assert2 presents assert\_no\_rjs\_, and .should send\_js\_to](https://www.ruby-forum.com/t/ann-assert2-presents-assert-no-rjs-and-should-send-js-to/165301)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 4\
**Last updated:** [April 12, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/ann-assert2-presents-assert-no-rjs-and-should-send-js-to/165301 "2009-04-12T21:54:33Z")

</div>

assert\_no\_rjs\_ now negates all the JavaScript assertions listed here: http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/49fd7c9b9107d577 And assert\_rjs\_ now works in RSpec: it 'should use Ajax to r…

---

## [Should I use the validation framework (e.g. add\_to\_base) to pass back multiple data errors that are](https://www.ruby-forum.com/t/should-i-use-the-validation-framework-e-g-add-to-base-to-pass-back-multiple-data-errors-that-are/158185)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [January 21, 2009, 3:21am UTC](https://www.ruby-forum.com/t/should-i-use-the-validation-framework-e-g-add-to-base-to-pass-back-multiple-data-errors-that-are/158185 "2009-01-21T03:21:26Z")

</div>

Hi, I have an “automation” model with some config data. When it runs it looks across other models and does some matching, however it also builds up a list of “duplicate data” type issues identified as part of the r…

---

## [Regular Expression Trouble](https://www.ruby-forum.com/t/regular-expression-trouble/156395)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [December 29, 2008, 10:59am UTC](https://www.ruby-forum.com/t/regular-expression-trouble/156395 "2008-12-29T10:59:58Z")

</div>

Hey! I’m writing a little script to rename files with weird names but common bits to a common format. Here’s the regular expression I use to extract the common data: /.s?(\\d?\\d)x?e?(\\d\\d)..(\\w{3})$/i It’s meant to r…

---

## [Design advice for newbie](https://www.ruby-forum.com/t/design-advice-for-newbie/152927)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [November 10, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/design-advice-for-newbie/152927 "2008-11-10T16:05:14Z")

</div>

Hello, I have a typical class called Users. Each user has a Role (one of administrator, teacher, student, parent, or trustee). How do I design my controller/views/routes to best implement links to administer each gro…

---

## [Japanese Heritage of Ruby: useful by-product?](https://www.ruby-forum.com/t/japanese-heritage-of-ruby-useful-by-product/147167)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 4\
**Last updated:** [August 29, 2008, 12:20am UTC](https://www.ruby-forum.com/t/japanese-heritage-of-ruby-useful-by-product/147167 "2008-08-29T00:20:18Z")

</div>

Apologies if this is in the wrong forum, I just thought it was interesting… After reading : (“Is QWERTY harming language design?”), I thought maybe Japanese Kanji are actually useful in programming - even in the We…

---

## [Gem native extension installer failure on winxp pro 64 system](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [August 12, 2008, 12:15am UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444 "2008-08-12T00:15:11Z")

</div>

Here is the shell error: C:\\ …\> gem update Updating installed gems Updating fxruby Successfulyy installed fxruby-1.6.16-x86-mswin32-60 Updating haml Successfully installed haml-2.0.2 Updating hpricot Building Nat…

---

## [Problem in using typedef with c++](https://www.ruby-forum.com/t/problem-in-using-typedef-with-c/132352)

<div class="topic-metadata">

**Author:** [@tonyaim83](https://www.ruby-forum.com/u/tonyaim83)\
**Replies:** 4\
**Last updated:** [March 20, 2008, 6:20am UTC](https://www.ruby-forum.com/t/problem-in-using-typedef-with-c/132352 "2008-03-20T06:20:25Z")

</div>

Hi My code is as follows :- example.h #include"iostream.h" using namespace std; typedef int MYINT; void sum(MYINT a, MYINT b); example.cpp #include"example.h" void sum(MYINT a, MYINT b) { MYINT c; c=a +b; co…

---

## [Net::HTTP](https://www.ruby-forum.com/t/net-http/129145)

<div class="topic-metadata">

**Author:** [@calabriama](https://www.ruby-forum.com/u/calabriama)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 10:58am UTC](https://www.ruby-forum.com/t/net-http/129145 "2008-02-15T10:58:56Z")

</div>

Hola, necesito urgentemente comunicarme por post con otro subdominio, trato de enviar unos parámetros en mi controlador por post para que los reciba una url externa, he probado con Net::HTTP y sus métodos request\_post…

---

## [Posizionare il cursore in un form](https://www.ruby-forum.com/t/posizionare-il-cursore-in-un-form/120648)

<div class="topic-metadata">

**Author:** [@gnugnaman](https://www.ruby-forum.com/u/gnugnaman)\
**Replies:** 4\
**Last updated:** [December 6, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/posizionare-il-cursore-in-un-form/120648 "2007-12-06T18:36:51Z")

</div>

Ciao a tutti. Ho un form (tipo dentro un new.rhtml). Vorrei che all’Onload della pagina il cursore venisse posizionato automaticamente sul primo campo del form. Qualcuno sa come si fa utilizzando RoR (?). Grazie, G.Za…

---

## [Can this be written cleaner?](https://www.ruby-forum.com/t/can-this-be-written-cleaner/121745)

<div class="topic-metadata">

**Author:** [@mauibbq](https://www.ruby-forum.com/u/mauibbq)\
**Replies:** 4\
**Last updated:** [December 6, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/can-this-be-written-cleaner/121745 "2007-12-06T17:59:23Z")

</div>

i brute force this, is there a cleaner way\>?? @friend\_ids = Favorite.find(:all, :conditions =\> \[“user\_id = (#{current\_user.id}) and favorable\_type = ‘User’”\]) @friend\_blogs = Array.new @friend\_ids.each do |x| @frien…

---

## ["We're sorry, but..." in development mode?](https://www.ruby-forum.com/t/were-sorry-but-in-development-mode/119289)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [November 6, 2007, 4:34am UTC](https://www.ruby-forum.com/t/were-sorry-but-in-development-mode/119289 "2007-11-06T04:34:40Z")

</div>

Hi all I just got a “We’re sorry, but something went wrong.” message while developing my Rails app. I didn’t expect such a message to be displayed in development mode - is this normal? And if so, in what cases will be …

---

## [Anyone get the Arachno Ruby debugger working?](https://www.ruby-forum.com/t/anyone-get-the-arachno-ruby-debugger-working/92104)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 4\
**Last updated:** [October 13, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/anyone-get-the-arachno-ruby-debugger-working/92104 "2007-10-13T17:35:51Z")

</div>

I’ve downloaded a trial of Arachno Ruby and like it a lot. Code completion works exceptionally well compared to others I’ve tried and it’s a nice looking app. However, I can’t get the debugger to work. Anybody have an…

---

## [Fechas en las vistas](https://www.ruby-forum.com/t/fechas-en-las-vistas/113271)

<div class="topic-metadata">

**Author:** [@ISSSSigo\_Sola\_NSSSS](https://www.ruby-forum.com/u/ISSSSigo_Sola_NSSSS)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/fechas-en-las-vistas/113271 "2007-08-29T14:10:21Z")

</div>

Tengo un campo de tipo ‘datetime’ llamado ‘fecha’ en mi modelo. Quiero que en vista asociada a la acciÃ³n ‘New’ del modelo tenga un formulario en el que, para guardar la fecha, haya un ‘text\_field’ para el aÃ±o y dos…

---

## [NoMethodError - previously defined method?](https://www.ruby-forum.com/t/nomethoderror-previously-defined-method/110661)

<div class="topic-metadata">

**Author:** [@Dave\_Evans](https://www.ruby-forum.com/u/Dave_Evans)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 2:29am UTC](https://www.ruby-forum.com/t/nomethoderror-previously-defined-method/110661 "2007-07-30T02:29:39Z")

</div>

Hello, I have a simple controller named AssociationsController. Here is a snip: AssociationsController\< ApplicationController def detail @association = Association.find(params\[:id\]) render layout: =\> “frontend” end …

---

## [Newbie Question (belongs\_to and has\_many)](https://www.ruby-forum.com/t/newbie-question-belongs-to-and-has-many/110263)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 4\
**Last updated:** [July 24, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/newbie-question-belongs-to-and-has-many/110263 "2007-07-24T20:00:57Z")

</div>

Hi All, I am running from the console. I have two models i\_test and test\_question. Model i\_test has\_many test\_questions and test\_questions belong\_to i\_test Example 1 below works fine, but when I wrap the same code in…

---

## [Link\_to en actionmailer](https://www.ruby-forum.com/t/link-to-en-actionmailer/73557)

<div class="topic-metadata">

**Author:** [@juapdiaz](https://www.ruby-forum.com/u/juapdiaz)\
**Replies:** 4\
**Last updated:** [June 6, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/link-to-en-actionmailer/73557 "2007-06-06T13:48:56Z")

</div>

Hola a todos, Estoy intentando realizar un link\_to dentro de un email, pero parece que no se puede… o eso es lo que leÃ­ de la lista en ingles El error que me da a mi es este undefined method \`link\_to’ for #UserNoti…

---

## [Habtm foreign key must be manually done](https://www.ruby-forum.com/t/habtm-foreign-key-must-be-manually-done/104967)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/habtm-foreign-key-must-be-manually-done/104967 "2007-05-25T14:47:42Z")

</div>

I have a habtm relationship between User and Activity when I create a new Activity why do I have to manually set the foreign key user\_id in the activity table??? example def create @activity = Activity.new(params\[:…

---

## [Gem et rake](https://www.ruby-forum.com/t/gem-et-rake/74673)

<div class="topic-metadata">

**Author:** [@gbenoit79](https://www.ruby-forum.com/u/gbenoit79)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:52am UTC](https://www.ruby-forum.com/t/gem-et-rake/74673 "2006-11-07T10:52:44Z")

</div>

bonjour, j’arrive pas à comprendre ce que sont gem et rake. quel est leur role. si qqu’un pouvait dire en trois mots ce qu’ils font… merci ! gUI

---

## [Nfs shared and ferret segfault](https://www.ruby-forum.com/t/nfs-shared-and-ferret-segfault/68897)

<div class="topic-metadata">

**Author:** [@Sebastien\_H](https://www.ruby-forum.com/u/Sebastien_H)\
**Replies:** 4\
**Last updated:** [September 17, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/nfs-shared-and-ferret-segfault/68897 "2006-09-17T19:02:10Z")

</div>

Hi, I use ferret 0.10.4 whith shared index over NFS directory. There are 2 applications servers. The web server is Mongrel 0.3.13.3 and mongrel\_cluster 0.2.0. There are 20 Mongrel processes on each server. Each time…

---

## [\[Rails\] DB, LDAP e...qualche consiglio](https://www.ruby-forum.com/t/rails-db-ldap-e-qualche-consiglio/99594)

<div class="topic-metadata">

**Author:** [@nutsmuggler](https://www.ruby-forum.com/u/nutsmuggler)\
**Replies:** 4\
**Last updated:** [August 16, 2006, 10:16am UTC](https://www.ruby-forum.com/t/rails-db-ldap-e-qualche-consiglio/99594 "2006-08-16T10:16:46Z")

</div>

Ciao a tutti, mi hanno chiesto di sviluppare una piccola interfaccina per immettere dei valori e subito ho pensato di farla in Rails. Detto fatto però sta cosa deve prevedere un minimo di autenticazione…ok nulla di pi…

---

## [YARV vs. lambda](https://www.ruby-forum.com/t/yarv-vs-lambda/60330)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/yarv-vs-lambda/60330 "2006-05-12T23:28:46Z")

</div>

Hi all. Somebody knows why YARV do this: l = lambda{|\*arg| p arg} l\[1\] #prints 1 instead of \[1\] l\[2,3\] #prints 2 instead of \[2,3\] l\[\] #prints 0 instead of \[\] Thanks. Victor

---

## [Can't quite get Rails working on Mac, help please :)](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970)

<div class="topic-metadata">

**Author:** [@c-unit](https://www.ruby-forum.com/u/c-unit)\
**Replies:** 4\
**Last updated:** [March 25, 2006, 6:44am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970 "2006-03-25T06:44:16Z")

</div>

I’ve followed the install the install guide on and it seemed to work. And I’ve been following the Instant Gratifiction guide in Chapter four in Agile Web D. with Rails book. I’m in terminal and I type - cd work (eve…

---

## [Re: Mongrel HTTP Library 0.2.0 (Fast And RubyForgified)](https://www.ruby-forum.com/t/re-mongrel-http-library-0-2-0-fast-and-rubyforgified/100195)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 4\
**Last updated:** [February 2, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/re-mongrel-http-library-0-2-0-fast-and-rubyforgified/100195 "2006-02-02T23:09:49Z")

</div>

Seem to have a slight problem with the mongrel gem, unless I’m using the custom require supplied by rubygems, I can’t get the gem to work. The following: p require ‘rubygems’ p require\_gem ‘mongrel’ p Mongrel gives…

---

## [Looking for information on string processing performance](https://www.ruby-forum.com/t/looking-for-information-on-string-processing-performance/96660)

<div class="topic-metadata">

**Author:** [@Tuwewe](https://www.ruby-forum.com/u/Tuwewe)\
**Replies:** 4\
**Last updated:** [January 24, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/looking-for-information-on-string-processing-performance/96660 "2006-01-24T17:55:53Z")

</div>

Hi, complete newbie here. I love Ruby and would like to use Ruby in my new project, which deals heavily with large sized file manipulation and string processing. Can you give me advice on how to write decent (with an…

---

## [Find\_by\_sql column ordering defect?](https://www.ruby-forum.com/t/find-by-sql-column-ordering-defect/52649)

<div class="topic-metadata">

**Author:** [@Henning\_KSPedersen](https://www.ruby-forum.com/u/Henning_KSPedersen)\
**Replies:** 4\
**Last updated:** [January 17, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/find-by-sql-column-ordering-defect/52649 "2006-01-17T16:12:59Z")

</div>

Hello. I have a program that accesses a metadata (translation) table for column names as well as the ordering of columns for a specific model. Also in there is a collection of bool options such as column\_visible\_on\_fo…

---

## [Just ActiveRecord](https://www.ruby-forum.com/t/just-activerecord/50140)

<div class="topic-metadata">

**Author:** [@aap](https://www.ruby-forum.com/u/aap)\
**Replies:** 4\
**Last updated:** [December 13, 2005, 5:01pm UTC](https://www.ruby-forum.com/t/just-activerecord/50140 "2005-12-13T17:01:36Z")

</div>

Dear all, Is it possible to have ActiveRecord functionality using just a Ruby script rather than generating a full RoR application? I’m looking for sth without interface nor control; a single ruby script to connect,…

---

## [Can I set a module context for a block?](https://www.ruby-forum.com/t/can-i-set-a-module-context-for-a-block/49511)

<div class="topic-metadata">

**Author:** [@drjflam](https://www.ruby-forum.com/u/drjflam)\
**Replies:** 4\
**Last updated:** [December 5, 2005, 5:08pm UTC](https://www.ruby-forum.com/t/can-i-set-a-module-context-for-a-block/49511 "2005-12-05T17:08:22Z")

</div>

I’d really like to be able to inject the ‘include Bob’ statement in the create method of Bob: module Bob def method\_missing(name, \*params) puts “missing: #{name}” end def self.create(name) yield if block\_given? p…

---

## [Can we run java script code in our .rb file](https://www.ruby-forum.com/t/can-we-run-java-script-code-in-our-rb-file/261247)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 10:32am UTC](https://www.ruby-forum.com/t/can-we-run-java-script-code-in-our-rb-file/261247 "2021-04-19T10:32:02Z")

</div>

is is there any way to run a java script code inside a ruby code? Please let me know.

---

## [Impulse Response of wide band wireless channel](https://www.ruby-forum.com/t/impulse-response-of-wide-band-wireless-channel/242905)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 6, 2015, 9:13pm UTC](https://www.ruby-forum.com/t/impulse-response-of-wide-band-wireless-channel/242905 "2015-08-06T21:13:17Z")

</div>

Hii Is the Impulse Response of wide band wireless channel has only few significant components as compared to the channel delay spread ? This question is not related to gnu radio. I asked it, just to know the opinio…

---

## [B210 two-channel operation](https://www.ruby-forum.com/t/b210-two-channel-operation/233977)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [January 27, 2015, 8:34pm UTC](https://www.ruby-forum.com/t/b210-two-channel-operation/233977 "2015-01-27T20:34:56Z")

</div>

Hello, OS: Ubuntu 14.01.1 gnu-radio: 3.7.6 Dell Optiplex 765 I am having trouble using the B210 USRP in two channel mode. Things work well when I use grc to configure the B210 with one channel, but when I try usin…

---

## [Handle http request timed out](https://www.ruby-forum.com/t/handle-http-request-timed-out/228260)

<div class="topic-metadata">

**Author:** [@fosiul](https://www.ruby-forum.com/u/fosiul)\
**Replies:** 1\
**Last updated:** [April 16, 2013, 4:55am UTC](https://www.ruby-forum.com/t/handle-http-request-timed-out/228260 "2013-04-16T04:55:25Z")

</div>

Hi i have written a script which connects to a website and read from their but some time that website is soo slow that it gets time out . so i have done this http = Net::HTTP.new(uri.host, uri.port) http.read\_timeou…

---

## [Gr\_sync\_block, AttributeError: No constructor defined](https://www.ruby-forum.com/t/gr-sync-block-attributeerror-no-constructor-defined/216866)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 16, 2012, 1:49am UTC](https://www.ruby-forum.com/t/gr-sync-block-attributeerror-no-constructor-defined/216866 "2012-02-16T01:49:18Z")

</div>

I am trying to create a block using gr.gr\_sync\_block which will select a value from an input vector, pass that value to output, and discard the rest of the vector: !/usr/bin/env python from gnuradio import gr import…

---

## [Quick and dirty NRZ-L to NRZ-M grc example](https://www.ruby-forum.com/t/quick-and-dirty-nrz-l-to-nrz-m-grc-example/209763)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 22, 2011, 6:04pm UTC](https://www.ruby-forum.com/t/quick-and-dirty-nrz-l-to-nrz-m-grc-example/209763 "2011-07-22T18:04:00Z")

</div>

Anybody have a suggested solution to do this quickly with existing grc blocks? I don’t want to write my own if I don’t have to.

---

## [New window parameters disappear with validation fails](https://www.ruby-forum.com/t/new-window-parameters-disappear-with-validation-fails/184447)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 10:22pm UTC](https://www.ruby-forum.com/t/new-window-parameters-disappear-with-validation-fails/184447 "2010-03-03T22:22:06Z")

</div>

Hello all, My 5th month with Ruby on Rails is over and on to #6, but still learning. I have an application… Rails 2.3.5 Ruby 1.8.7 I have a jQuery dialog box that gives the user the option to “create” a new projec…

---

## [\[ANN\] Default Page Parts (redux)](https://www.ruby-forum.com/t/ann-default-page-parts-redux/155096)

<div class="topic-metadata">

**Author:** [@imakethings](https://www.ruby-forum.com/u/imakethings)\
**Replies:** 1\
**Last updated:** [December 22, 2008, 4:09am UTC](https://www.ruby-forum.com/t/ann-default-page-parts-redux/155096 "2008-12-22T04:09:47Z")

</div>

Not sure how many of you use the default\_page\_parts extension, but it was fairly limited. So I went ahead and merged some old and new code together to form something that was more flexible. The functionality is essent…

---

## [Undefined method \`each' for nil:NilClass with Ferret search](https://www.ruby-forum.com/t/undefined-method-each-for-nil-nilclass-with-ferret-search/92207)

<div class="topic-metadata">

**Author:** [@bharathrentals](https://www.ruby-forum.com/u/bharathrentals)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 6:41am UTC](https://www.ruby-forum.com/t/undefined-method-each-for-nil-nilclass-with-ferret-search/92207 "2007-04-17T06:41:25Z")

</div>

Hi All: For certain key terms I always get this error; I had to rebuild the indexes then it works for a while then again it is gone. here is the message ActionView::TemplateError (undefined method each' for nil:NilCl…

---

## [Is it possible to store the log file by day?](https://www.ruby-forum.com/t/is-it-possible-to-store-the-log-file-by-day/223863)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 22, 2012, 1:24am UTC](https://www.ruby-forum.com/t/is-it-possible-to-store-the-log-file-by-day/223863 "2012-10-22T01:24:04Z")

</div>

I hope to store the log file by day , because the log file will be so large with the time goes by.Is it possible to do this ?

---

## [Incorrect log being generated?](https://www.ruby-forum.com/t/incorrect-log-being-generated/215294)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [December 29, 2011, 2:43pm UTC](https://www.ruby-forum.com/t/incorrect-log-being-generated/215294 "2011-12-29T14:43:29Z")

</div>

Using the following, log\_format main '$remote\_addr - $remote\_user \[$time\_local\] ' '"$request" $status $body\_bytes\_sent ' '"$http\_referer" "$http\_user\_agent"'; access\_log logs/access.lo…

---

## [Localhost3000 can not open](https://www.ruby-forum.com/t/localhost3000-can-not-open/211251)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [August 30, 2011, 9:30pm UTC](https://www.ruby-forum.com/t/localhost3000-can-not-open/211251 "2011-08-30T21:30:33Z")

</div>

Installing rails on windows.But my firefox could not open htttp://localhost3000.Also I tried this http://0.0.0.0:3000 but could not work.

---

## [Extending UHD Device Support](https://www.ruby-forum.com/t/extending-uhd-device-support/211058)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [August 27, 2011, 5:47pm UTC](https://www.ruby-forum.com/t/extending-uhd-device-support/211058 "2011-08-27T17:47:47Z")

</div>

Designation: Non-SSA/Finmeccanica Hello, We make several RF front-ends that we’d like to see supported in GNU Radio. Our initial idea is was to extend the Ettus UHD to include support for our devices, so that a wavef…

---

## [(Beginner) Finding a database object within a time interval](https://www.ruby-forum.com/t/beginner-finding-a-database-object-within-a-time-interval/206722)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [May 8, 2011, 7:52pm UTC](https://www.ruby-forum.com/t/beginner-finding-a-database-object-within-a-time-interval/206722 "2011-05-08T19:52:35Z")

</div>

Hello, I’m trying to create a find statement that should find an element which start\_date and end\_date are within Time.now. If I for example have an object with a start\_date of 2011-05-04 and end\_date of 2011-05-19, …

---

## [How can I remove bundler from my rails 3 app?](https://www.ruby-forum.com/t/how-can-i-remove-bundler-from-my-rails-3-app/205993)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [April 21, 2011, 2:44am UTC](https://www.ruby-forum.com/t/how-can-i-remove-bundler-from-my-rails-3-app/205993 "2011-04-21T02:44:53Z")

</div>

I’m using jruby 1.6.0 and trying to deploy my rails 3 app to Tomcat. When the app loads I get the error “stack level too deep” as bundler is trying to resolve dependencies. I’ve spent hours searching forums in an eff…

---

## [Simple counting in Ruby](https://www.ruby-forum.com/t/simple-counting-in-ruby/200869)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [December 23, 2010, 10:11pm UTC](https://www.ruby-forum.com/t/simple-counting-in-ruby/200869 "2010-12-23T22:11:51Z")

</div>

Hello, Can someone please tell me how to get a count for the number of files in a directory? Example: files = Dir.glob("\*.pdf") puts files.count ?? That doesn’t work, but, I’d love to know what would work. Thanks, …

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

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