# Latest

**URL:** https://www.ruby-forum.com/latest.md?page=520

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

---

## [Justify | ljust](https://www.ruby-forum.com/t/justify-ljust/246401)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 11\
**Last updated:** [October 14, 2013, 6:09pm UTC](https://www.ruby-forum.com/t/justify-ljust/246401 "2013-10-14T18:09:35Z")

</div>

I’m trying to format my output but however I try it just doesn’t wanna work. I started ruby a few weeks ago so it’s hard to explain, let me just show it. puts “#{m\_counter} #{payment} #{interest} #{principal} #{balanc…

---

## [R: R: Re: R: R: Re: around empty subcarrier in 802.11n implementation](https://www.ruby-forum.com/t/r-r-re-r-r-re-around-empty-subcarrier-in-802-11n-implementation/246436)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 14, 2013, 5:59pm UTC](https://www.ruby-forum.com/t/r-r-re-r-r-re-around-empty-subcarrier-in-802-11n-implementation/246436 "2013-10-14T17:59:00Z")

</div>

Hi guys, just for letting you know. No offset correction is needed. The problem was elsewhere in my implementation of 802.11. It was how I was calling the ifft function in the transmitter side. By putting the correct …

---

## [Rails migration problem, Table doesn't exist](https://www.ruby-forum.com/t/rails-migration-problem-table-doesnt-exist/236957)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 14, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/rails-migration-problem-table-doesnt-exist/236957 "2013-10-14T17:33:51Z")

</div>

Hello, I’m starting with Rails. I have problems at the time of migration. The steps I follow are: rake db:create:all rake db:migrate then rake aborted! Mysql2::Error: Table ‘lpaguide.resources’ doesn’t exist: SHOW…

---

## [Assets not loading in production](https://www.ruby-forum.com/t/assets-not-loading-in-production/246393)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [October 14, 2013, 5:16pm UTC](https://www.ruby-forum.com/t/assets-not-loading-in-production/246393 "2013-10-14T17:16:54Z")

</div>

Hello, (Rails 4, Ruby 2) I am trying to deploy my first rails app in a production environment, but cannot get the assets to load. The site is hosted on Webfaction, they advise to create a “static app” to serve the a…

---

## [Limit\_req for spiders only](https://www.ruby-forum.com/t/limit-req-for-spiders-only/236955)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [October 14, 2013, 4:52pm UTC](https://www.ruby-forum.com/t/limit-req-for-spiders-only/236955 "2013-10-14T16:52:56Z")

</div>

Hi, I would like to put a brake on spiders which are hammering a site with dynamic content generation. They should still get to see the content, but only not generate excessive load. I therefore constructed a map to …

---

## [Missing gruel module when installing current](https://www.ruby-forum.com/t/missing-gruel-module-when-installing-current/246454)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 14, 2013, 4:00pm UTC](https://www.ruby-forum.com/t/missing-gruel-module-when-installing-current/246454 "2013-10-14T16:00:54Z")

</div>

After building and installing current version on my RHEL6 system, I was unable to compile my module and the following error appeared: – checking for module ‘gruel’ – package ‘gruel’ not found – Could NOT find GRUEL…

---

## [Nginx configuration variable max size](https://www.ruby-forum.com/t/nginx-configuration-variable-max-size/236951)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 14, 2013, 2:56pm UTC](https://www.ruby-forum.com/t/nginx-configuration-variable-max-size/236951 "2013-10-14T14:56:37Z")

</div>

Hi, Is there any limit on what amount of data an nginx config variable can hold?

---

## [Uninstall error](https://www.ruby-forum.com/t/uninstall-error/236954)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 14, 2013, 12:04pm UTC](https://www.ruby-forum.com/t/uninstall-error/236954 "2013-10-14T12:04:15Z")

</div>

Hello guys, every time I want to install new version of gnuradio i do uninstall, but there is always the same error: . . . – Uninstalling “/usr/local/include/volk/volk\_config\_fixed.h” – Uninstalling “/usr/local/in…

---

## [Why the code in gnuradio in 3.6 cannot work in 3.7?](https://www.ruby-forum.com/t/why-the-code-in-gnuradio-in-3-6-cannot-work-in-3-7/236927)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 14, 2013, 10:14am UTC](https://www.ruby-forum.com/t/why-the-code-in-gnuradio-in-3-6-cannot-work-in-3-7/236927 "2013-10-14T10:14:59Z")

</div>

Hi guy, I have updated the gunradio to 3.7.1, but fond the c++ block name and style changed a litter bit. like ofdm\_insert\_preamble.cc is changed to ofdm\_instert\_preamble\_impl.cc. When I add some codes in general wor…

---

## [I got warning message](https://www.ruby-forum.com/t/i-got-warning-message/236950)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 14, 2013, 10:05am UTC](https://www.ruby-forum.com/t/i-got-warning-message/236950 "2013-10-14T10:05:37Z")

</div>

hello !all i use gnuradio 3.7.2 but i face sucha message when open gnuradio-companion like this mahesh@HP:~$ gnuradio-companion Warning: Block key “blocks\_ctrlport\_monitor\_performance” not found when loading categ…

---

## [Synchronizing data transmission and reception](https://www.ruby-forum.com/t/synchronizing-data-transmission-and-reception/236949)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 14, 2013, 9:42am UTC](https://www.ruby-forum.com/t/synchronizing-data-transmission-and-reception/236949 "2013-10-14T09:42:14Z")

</div>

Hello Everyone, I am transmitting data from one PC (with SDR) to another PC (with another SDR). The data is a IQ stream of 1s and 0s which will be read from a file and modulated(QAM, QPSK or any other). The data wi…

---

## [Ruby on Rails Devise Error: no secure\_key](https://www.ruby-forum.com/t/ruby-on-rails-devise-error-no-secure-key/246370)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 14, 2013, 3:58am UTC](https://www.ruby-forum.com/t/ruby-on-rails-devise-error-no-secure-key/246370 "2013-10-14T03:58:44Z")

</div>

I just installed devise 3.1.1 and whenever I run “rails generate devise:install” I get an error saying that “Devise.secret\_key was not set. Please add the following to your Devise initializer.” I checked in my “Config…

---

## [Modules and thread creation](https://www.ruby-forum.com/t/modules-and-thread-creation/246427)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [October 14, 2013, 3:55am UTC](https://www.ruby-forum.com/t/modules-and-thread-creation/246427 "2013-10-14T03:55:48Z")

</div>

I’ve seen an older thread saying that nginx modules shouldn’t create threads. I was wondering how valid that still is, and if there is a guide or pointers on how to deal with threads in a module. Posted at Nginx Foru…

---

## [Possible bug with hier\_block2\_detail::msg\_disconnect](https://www.ruby-forum.com/t/possible-bug-with-hier-block2-detail-msg-disconnect/246330)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [October 14, 2013, 2:34am UTC](https://www.ruby-forum.com/t/possible-bug-with-hier-block2-detail-msg-disconnect/246330 "2013-10-14T02:34:35Z")

</div>

Hello all, I am working with gnuradio 3.7.2git-28-g639e154d and I have a hierarchical block with a message output that I have been using as part of a larger flowgraph. Yesterday I found that whenever I call msg\_disc…

---

## [Color sequences in ri on Windows](https://www.ruby-forum.com/t/color-sequences-in-ri-on-windows/195717)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 12\
**Last updated:** [October 13, 2013, 11:17pm UTC](https://www.ruby-forum.com/t/color-sequences-in-ri-on-windows/195717 "2013-10-13T23:17:05Z")

</div>

After installing some gems, the system recommended that I refresh ri and rdoc. I may have actually updated the ri and rdoc programs too; unfortunately I don’t remember which commands I used. After that, whenever I use…

---

## [Rails deployment](https://www.ruby-forum.com/t/rails-deployment/236946)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 13, 2013, 5:19pm UTC](https://www.ruby-forum.com/t/rails-deployment/236946 "2013-10-13T17:19:32Z")

</div>

Quale delle tecnologie citate nelle guida indicata usate per il deploy di applicazioni rails? http://rubyonrails.org/deploy

---

## [\[JOBS\] Looking for a experienced (at least 2years) RoR developer for London-based startup (remote)](https://www.ruby-forum.com/t/jobs-looking-for-a-experienced-at-least-2years-ror-developer-for-london-based-startup-remote/236942)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 13, 2013, 3:55pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-a-experienced-at-least-2years-ror-developer-for-london-based-startup-remote/236942 "2013-10-13T15:55:23Z")

</div>

Looking for a junior RoR developer (at least 2 years of experience in Agile), preferably with UI skills, a web apps lover, for a highly scalable London-based start-up - networking platform revolutionising journalism & …

---

## [Query About Project](https://www.ruby-forum.com/t/query-about-project/246420)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [October 13, 2013, 2:07pm UTC](https://www.ruby-forum.com/t/query-about-project/246420 "2013-10-13T14:07:18Z")

</div>

Respected Sir, We are students of Computer Sciences in India pursuing our under-graduation(B-TECH 2nd year) from Dhirubhai Ambani Institute of Information and Communication Technology. We are complete beginners. Thou…

---

## [Problem reading /dev/input in Linux](https://www.ruby-forum.com/t/problem-reading-dev-input-in-linux/236924)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 16\
**Last updated:** [October 13, 2013, 12:29pm UTC](https://www.ruby-forum.com/t/problem-reading-dev-input-in-linux/236924 "2013-10-13T12:29:44Z")

</div>

Hi, I’m trying to use a simple script in Linux: File.open(’/dev/input/event4’, ‘r’) do |f| p f.read(16) end But I’m getting this: test.rb:4:in read': Invalid argument - /dev/input/event4 (Errno::EINVAL) from test.r…

---

## [Undefined local variable | Ruby Beginner](https://www.ruby-forum.com/t/undefined-local-variable-ruby-beginner/236939)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [October 13, 2013, 10:24am UTC](https://www.ruby-forum.com/t/undefined-local-variable-ruby-beginner/236939 "2013-10-13T10:24:42Z")

</div>

I just started learning Ruby a few weeks ago and tried to make a credit card payment calculator today to practice but I’m getting an error message: ‘calc\_payment’: undefined local variable or method ‘payment’ for main…

---

## [Issue with Cairo mask function in a Gtk Window](https://www.ruby-forum.com/t/issue-with-cairo-mask-function-in-a-gtk-window/246422)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 13, 2013, 7:51am UTC](https://www.ruby-forum.com/t/issue-with-cairo-mask-function-in-a-gtk-window/246422 "2013-10-13T07:51:40Z")

</div>

Hi ! I’m trying to do smth a little tricky that is explain only in one tutorial I found on the net (and it’s a C tuto) It’s to use a pixbuf, or eventually a png file as a mask. All seems to work well, except the last …

---

## [My spec/features isn't being read by rspec](https://www.ruby-forum.com/t/my-spec-features-isnt-being-read-by-rspec/236945)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 13, 2013, 6:17am UTC](https://www.ruby-forum.com/t/my-spec-features-isnt-being-read-by-rspec/236945 "2013-10-13T06:17:34Z")

</div>

Hello Everyone, Could anyone tell me why my spec/features are not being read? Ruby 2.0 Rails 4.0 Rspec 2.14.0 capybara 2.1.0 It is a fresh ‘rails new some\_app’. I created a spec/features directory and added a bla…

---

## [Nokogiri::XML::AttributeDecl methods output understanding](https://www.ruby-forum.com/t/nokogiri-attributedecl-methods-output-understanding/235247)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 13, 2013, 5:45am UTC](https://www.ruby-forum.com/t/nokogiri-attributedecl-methods-output-understanding/235247 "2013-10-13T05:45:16Z")

</div>

Hi, Today morning my target is going through the Nokogiri::XML::AttributeDecl methods. So I wrote some simple codes to understand these methods: require ‘nokogiri’ doc = Nokogiri::XML::Document.new # =\> #\<Nokogiri::…

---

## [What if you don't want your model to be from Active Record?](https://www.ruby-forum.com/t/what-if-you-dont-want-your-model-to-be-from-active-record/236944)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [October 13, 2013, 2:09am UTC](https://www.ruby-forum.com/t/what-if-you-dont-want-your-model-to-be-from-active-record/236944 "2013-10-13T02:09:51Z")

</div>

Hello Everyone, What if you don’t want your model to be tied to a database therefore not ActiveRecord, where do you put that model instead? I want to write a class that would wrap together the various functions from,…

---

## [Undo shuffle](https://www.ruby-forum.com/t/undo-shuffle/236940)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 13, 2013, 12:11am UTC](https://www.ruby-forum.com/t/undo-shuffle/236940 "2013-10-13T00:11:30Z")

</div>

Hi, with this code I always get the same result ary = \[1,2,3,4,5,6,7,8,9,0\] number = 8 ary.shuffle!(random: Random.new(number)) #=\> ary = \[9, 7, 0, 1, 3, 6, 8, 2, 5, 4\] That is what I want, but is there anything ho…

---

## [Link in README to build instructions has moved but is 404](https://www.ruby-forum.com/t/link-in-readme-to-build-instructions-has-moved-but-is-404/236943)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 12, 2013, 11:51pm UTC](https://www.ruby-forum.com/t/link-in-readme-to-build-instructions-has-moved-but-is-404/236943 "2013-10-12T23:51:03Z")

</div>

The link in the git README is http://gnuradio.org/doc/doxygen/page\_build.html to the detailed build instructions, however, the link should be: http://gnuradio.org/doc/doxygen-3.7/build\_guide.html and this could be fi…

---

## [How to disable output buffering with PHP and nginx](https://www.ruby-forum.com/t/how-to-disable-output-buffering-with-php-and-nginx/246196)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 13\
**Last updated:** [October 12, 2013, 10:39pm UTC](https://www.ruby-forum.com/t/how-to-disable-output-buffering-with-php-and-nginx/246196 "2013-10-12T22:39:44Z")

</div>

Hello, In an effort to resolve a different issue, I am trying to confirm that my stack is capable of servicing at least two simultaneous requests for a given PHP script. In an effort to confirm this, I have written a…

---

## [What license do you use for your Ruby gems?](https://www.ruby-forum.com/t/what-license-do-you-use-for-your-ruby-gems/236932)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [October 12, 2013, 9:48pm UTC](https://www.ruby-forum.com/t/what-license-do-you-use-for-your-ruby-gems/236932 "2013-10-12T21:48:37Z")

</div>

I have created two Ruby gems (dvi\_scrape and bsf\_scrape), and I’m planning on creating a few more. What license should I be using for my Ruby gems? I’m creating these gems on my own and not on behalf of any particu…

---

## [Rubygem: ispunity (unite all your internet connections)](https://www.ruby-forum.com/t/rubygem-ispunity-unite-all-your-internet-connections/219389)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 15\
**Last updated:** [October 12, 2013, 7:56pm UTC](https://www.ruby-forum.com/t/rubygem-ispunity-unite-all-your-internet-connections/219389 "2013-10-12T19:56:42Z")

</div>

Dear friends, It gives me pleasure to let everyone know that rubygem “ispunity” is now available. IspUnity is a open source software built to integrate (load balance & failover) multiple internet connections simulta…

---

## [What conditions will cause block destructor to be skipped?](https://www.ruby-forum.com/t/what-conditions-will-cause-block-destructor-to-be-skipped/246396)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 12, 2013, 6:50pm UTC](https://www.ruby-forum.com/t/what-conditions-will-cause-block-destructor-to-be-skipped/246396 "2013-10-12T18:50:06Z")

</div>

Rarely, I’m seeing evidence that my custom source block destructor is not being called. My flowgraph was built with “No GUI” and “Prompt for Exit” options (GR 3.7.1+) The condition is that my source block’s work func…

[Previous page](https://www.ruby-forum.com/latest.md?page=519)

[Next page](https://www.ruby-forum.com/latest.md?page=521)
