# Latest

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

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

---

## [Sass caching issue in development](https://www.ruby-forum.com/t/sass-caching-issue-in-development/237472)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 6, 2014, 8:39pm UTC](https://www.ruby-forum.com/t/sass-caching-issue-in-development/237472 "2014-01-06T20:39:41Z")

</div>

Hi everyone, Lately, I’ve had quite an annoying problem when I work with Sass in Rails. For reasons I cannot figure out, I need to kill the local Rails server instance, “rm -rf tmp/cache” and start the server again t…

---

## [Best method to get current user vote type for hundreds posts with Rails?](https://www.ruby-forum.com/t/best-method-to-get-current-user-vote-type-for-hundreds-posts-with-rails/238361)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 6, 2014, 8:39pm UTC](https://www.ruby-forum.com/t/best-method-to-get-current-user-vote-type-for-hundreds-posts-with-rails/238361 "2014-01-06T20:39:41Z")

</div>

Here is question on stackoverflowhttps://stackoverflow.com/questions/20939277/best-method-to-get-current-user-vote-type-for-hundreds-posts-with-rails/, does anyone can help with?

---

## [Dynamic rate limiting per ip](https://www.ruby-forum.com/t/dynamic-rate-limiting-per-ip/238311)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 6, 2014, 8:33pm UTC](https://www.ruby-forum.com/t/dynamic-rate-limiting-per-ip/238311 "2014-01-06T20:33:50Z")

</div>

Hello Folks, i have some setup with multiple server and i offer downloads for the users, in the case my servers bandwidth is overloaded i want the people to be able to start the download but with limited rate so the…

---

## [What is the sampling frequency for frequency band 850 MHz to 950 MHz](https://www.ruby-forum.com/t/what-is-the-sampling-frequency-for-frequency-band-850-mhz-to-950-mhz/238360)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 6, 2014, 6:43pm UTC](https://www.ruby-forum.com/t/what-is-the-sampling-frequency-for-frequency-band-850-mhz-to-950-mhz/238360 "2014-01-06T18:43:26Z")

</div>

hello every buddy, here I try to sens the spectrum of GSM band through the RTL 2832U sdr stick . But i did not understand the what is the smplaing frequency value for that i assign. guide me i…

---

## [Filter taps and delays](https://www.ruby-forum.com/t/filter-taps-and-delays/238349)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 6, 2014, 6:39pm UTC](https://www.ruby-forum.com/t/filter-taps-and-delays/238349 "2014-01-06T18:39:56Z")

</div>

Hi Guys, If I use interp\_fir\_filter\_ccc(3, \[1, 2, 3, 4, 5, 6\]) on a vector source containing \[1, 0, 0, …\] then I get \[1, 2, 3, 4, 5, 6, 0, 0, …\] as expected. However, if I use interp\_fir\_filter\_ccc(3, \[1, 2, 3, 4, 5\]…

---

## [How do I disable DNS Caching and DNS Reverse Lookup in Nginx?](https://www.ruby-forum.com/t/how-do-i-disable-dns-caching-and-dns-reverse-lookup-in-nginx/238259)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 6, 2014, 6:36pm UTC](https://www.ruby-forum.com/t/how-do-i-disable-dns-caching-and-dns-reverse-lookup-in-nginx/238259 "2014-01-06T18:36:25Z")

</div>

Hello all Ive been assigned a task to set up an ipv6 to ipv4 reverse proxy for my company. I decided to use nginx to do the job. I found the following article online which describes how to configure nginx as a revers…

---

## [Ruby automatically include (or run) code on require-action](https://www.ruby-forum.com/t/ruby-automatically-include-or-run-code-on-require-action/237264)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 7\
**Last updated:** [January 6, 2014, 3:54pm UTC](https://www.ruby-forum.com/t/ruby-automatically-include-or-run-code-on-require-action/237264 "2014-01-06T15:54:33Z")

</div>

Hi. I have this module: module Foo def test puts ‘Hi from test() from module Foo.’ end end I put it into file ‘foo.rb’ I require this file. Now, in order to make use of test() method, I would do: include Foo t…

---

## [Purpose of packet encoder/decoder block?](https://www.ruby-forum.com/t/purpose-of-packet-encoder-decoder-block/238358)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 6, 2014, 3:45pm UTC](https://www.ruby-forum.com/t/purpose-of-packet-encoder-decoder-block/238358 "2014-01-06T15:45:47Z")

</div>

what is the purpose of encoder/decoder block? is it used for synchronization or for some other purpose? please answer me as soon as possible regards Irfan U.

---

## [Submit form with file upload + cross domain](https://www.ruby-forum.com/t/submit-form-with-file-upload-cross-domain/238320)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 6, 2014, 1:58pm UTC](https://www.ruby-forum.com/t/submit-form-with-file-upload-cross-domain/238320 "2014-01-06T13:58:51Z")

</div>

I am trying to submit a form in rails 4 with File upload(using paperclip) to an another domain using Ajax with dataType ‘jsonp’ ( I tried both ajax and ajaxForm ). // .js $(".form").ajaxSubmit({ type: $(".form").a…

---

## [Centos 6.5 and ECDH ciphers in nginx.org Centos repo](https://www.ruby-forum.com/t/centos-6-5-and-ecdh-ciphers-in-nginx-org-centos-repo/238351)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 6, 2014, 1:55pm UTC](https://www.ruby-forum.com/t/centos-6-5-and-ecdh-ciphers-in-nginx-org-centos-repo/238351 "2014-01-06T13:55:21Z")

</div>

Hi In Centos 6.5 (and RHEL 6.5) the ECDH ciphers were enabled. There appears to be an issue with the nginx.org 1.5.8 Centos binaries still not having support for ECDHE despite having updated openssl 1.01e with ellipt…

---

## [Startup time degradation vs 1.5.x - expected?](https://www.ruby-forum.com/t/startup-time-degradation-vs-1-5-x-expected/238350)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 6, 2014, 1:39pm UTC](https://www.ruby-forum.com/t/startup-time-degradation-vs-1-5-x-expected/238350 "2014-01-06T13:39:00Z")

</div>

HNY all, After upgrading an old -embedded- Jruby setup, I noticed the startup time is ~2x slower with 1.7.9 than 1.5.x. I have started some java profiling (will provide details if anyone interested), but before I di…

---

## [How instance method is called](https://www.ruby-forum.com/t/how-instance-method-is-called/238353)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 6, 2014, 12:21pm UTC](https://www.ruby-forum.com/t/how-instance-method-is-called/238353 "2014-01-06T12:21:18Z")

</div>

Dear friends, I came across this code snippet from my reading: require 'active\_record' class Order \< ActiveRecord::Base end order = Order.find(1) ... Looking at: http://api.rubyonrails.org/ and search for find(), fi…

---

## [Bundle Installing nokogiri - ruby 2.0.0 gives error](https://www.ruby-forum.com/t/bundle-installing-nokogiri-ruby-2-0-0-gives-error/238354)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [January 6, 2014, 11:24am UTC](https://www.ruby-forum.com/t/bundle-installing-nokogiri-ruby-2-0-0-gives-error/238354 "2014-01-06T11:24:38Z")

</div>

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/evvolutions/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86\_64-linux-gnu/ports/libx…

---

## [Is find() a class method or instance method?](https://www.ruby-forum.com/t/is-find-a-class-method-or-instance-method/238355)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 6, 2014, 11:05am UTC](https://www.ruby-forum.com/t/is-find-a-class-method-or-instance-method/238355 "2014-01-06T11:05:55Z")

</div>

Dear friends, I came across this code snippet from my reading: require 'active\_record' class Order \< ActiveRecord::Base end order = Order.find(1) ... Looking at: http://api.rubyonrails.org/ and search for find(), fi…

---

## [We are Hiring for ROR Lead](https://www.ruby-forum.com/t/we-are-hiring-for-ror-lead/238356)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 6, 2014, 10:38am UTC](https://www.ruby-forum.com/t/we-are-hiring-for-ror-lead/238356 "2014-01-06T10:38:30Z")

</div>

Experience: 7 to 9 years Should have implemented and worked on projects with ROR Exposure to working with HTML, CSS, Javascript, Ajax. Should have experience working with Webservices. Should have experience working w…

---

## [How to delete cache based on expires headers?](https://www.ruby-forum.com/t/how-to-delete-cache-based-on-expires-headers/238137)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [January 6, 2014, 5:18am UTC](https://www.ruby-forum.com/t/how-to-delete-cache-based-on-expires-headers/238137 "2014-01-06T05:18:17Z")

</div>

Hi I’m using proxy\_cache to mirror my files with the configuration below proxy\_cache\_path /var/cache/nginx/image levels=1:2 keys\_zone=one:10m inactive=7d max\_size=100g; Our backend server has the expires header set…

---

## [In-line if statement with parentheses vs without parentheses](https://www.ruby-forum.com/t/in-line-if-statement-with-parentheses-vs-without-parentheses/238331)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 5, 2014, 10:26pm UTC](https://www.ruby-forum.com/t/in-line-if-statement-with-parentheses-vs-without-parentheses/238331 "2014-01-05T22:26:37Z")

</div>

I’m relatively new to Ruby, and when I was reading this post http://tmm1.net/ruby21-profiling/ I came across something I did not understand. Towards the end he explains that he was able to decrease method calls to pr…

---

## [Help](https://www.ruby-forum.com/t/help/238348)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 5, 2014, 9:28pm UTC](https://www.ruby-forum.com/t/help/238348 "2014-01-05T21:28:42Z")

</div>

Den 05/01/2014 kl. 18.00 skrev removed\_email\_address@domain.invalid:

---

## [GNURadio on Zync: thanks for the excellent tutorial](https://www.ruby-forum.com/t/gnuradio-on-zync-thanks-for-the-excellent-tutorial/238226)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [January 5, 2014, 6:32pm UTC](https://www.ruby-forum.com/t/gnuradio-on-zync-thanks-for-the-excellent-tutorial/238226 "2014-01-05T18:32:18Z")

</div>

I have used the opportunity of the more relaxed days of this Christmas period to try and run the tutorial at http://gnuradio.org/redmine/projects/gnuradio/wiki/Zynq Wonderful page, works nearly perfectly, thanks a lot…

---

## [Gnuradio at FOSDEM 2014](https://www.ruby-forum.com/t/gnuradio-at-fosdem-2014/238344)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 5, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/gnuradio-at-fosdem-2014/238344 "2014-01-05T18:03:06Z")

</div>

Hi, I have seen that on sunday, the 2nd of february, there is a complete “Software Defined Radio” devroom at FOSDEM 2014 (Free and OpenSource Developers Eurooean Meeting) here in Brussels. https://fosdem.org/2014/sch…

---

## [\[ANN\] Ruboto 1.0.1 released!](https://www.ruby-forum.com/t/ann-ruboto-1-0-1-released/238346)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 5, 2014, 5:12pm UTC](https://www.ruby-forum.com/t/ann-ruboto-1-0-1-released/238346 "2014-01-05T17:12:51Z")

</div>

The Ruboto team is pleased to announce the release of Ruboto 1.0.1. Ruboto (JRuby on Android) is a platform for developing full stand-alone apps for Android using the Ruby language and libraries. It includes support …

---

## [Gaussian elimination or matrix inversion (solving a linear system) in GNURADIO](https://www.ruby-forum.com/t/gaussian-elimination-or-matrix-inversion-solving-a-linear-system-in-gnuradio/238335)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 5, 2014, 3:30pm UTC](https://www.ruby-forum.com/t/gaussian-elimination-or-matrix-inversion-solving-a-linear-system-in-gnuradio/238335 "2014-01-05T15:30:38Z")

</div>

Hi all, I am looking for any function/code or project which is helpful to solve a linear equation system by Gaussian elimination (or other kinds of matrix inversion). We know that In matlab there are many functions f…

---

## [OT: Crypto Hardening Guide (nginx has an entry)](https://www.ruby-forum.com/t/ot-crypto-hardening-guide-nginx-has-an-entry/238341)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 5, 2014, 9:15am UTC](https://www.ruby-forum.com/t/ot-crypto-hardening-guide-nginx-has-an-entry/238341 "2014-01-05T09:15:40Z")

</div>

For administrators interested in SSL/TLS protocols and ciphers settings, the following may be useful. It also looks like the \[possibly influenced\] US stuff was removed. https://bettercrypto.org/static/applied-crypto-h…

---

## [Different selects in one form with same name attribute?](https://www.ruby-forum.com/t/different-selects-in-one-form-with-same-name-attribute/238343)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 5, 2014, 4:17am UTC](https://www.ruby-forum.com/t/different-selects-in-one-form-with-same-name-attribute/238343 "2014-01-05T04:17:49Z")

</div>

Question are at end of the topic. class Product \< ActiveRecord::Base belongs\_to :categoriesend class Category \< ActiveRecord::Base has\_many :productsend Categories table has 2 level nesting, for example. Main categ…

---

## [Bug in ruby 2.1.0 interpreter?](https://www.ruby-forum.com/t/bug-in-ruby-2-1-0-interpreter/238340)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 5, 2014, 3:35am UTC](https://www.ruby-forum.com/t/bug-in-ruby-2-1-0-interpreter/238340 "2014-01-05T03:35:11Z")

</div>

Hello everybody, I’m upgrading some apps to 2.1.0, and on one file, I decide to refactor a little to use the new 2.1.0 feature, the def returning the symbol of the created method, coupling with « private ». But I me…

---

## [RedCloth and Textile 2.2+](https://www.ruby-forum.com/t/redcloth-and-textile-2-2/238339)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 5, 2014, 3:26am UTC](https://www.ruby-forum.com/t/redcloth-and-textile-2-2/238339 "2014-01-05T03:26:59Z")

</div>

I just want to confirm this. Multiple searches (and some simple conversion tests) appear to indicate to me that RedCloth does not yet handle Textile 2.2, much less later versions. Correct? Do we have any alternatives,…

---

## [How do I set the icon for a window using Ruby Tk?](https://www.ruby-forum.com/t/how-do-i-set-the-icon-for-a-window-using-ruby-tk/65780)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 5\
**Last updated:** [January 5, 2014, 1:57am UTC](https://www.ruby-forum.com/t/how-do-i-set-the-icon-for-a-window-using-ruby-tk/65780 "2014-01-05T01:57:37Z")

</div>

I would like to be able to change the icon of a window displayed using Ruby and Tk. Using Perl and Tk I can do the following: use strict; use warnings; use Tk; my $mymainwindow = MainWindow-\>new(); my $myicon = $m…

---

## [Watir question,](https://www.ruby-forum.com/t/watir-question/238333)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 4, 2014, 8:41pm UTC](https://www.ruby-forum.com/t/watir-question/238333 "2014-01-04T20:41:07Z")

</div>

hi, I have two problem here. First one is, SelectList appears in the page and I am able to choose element manually. But when I try to check using “puts $browser.select\_list(:id,“somevalue”).exists?” It return false…

---

## [/usr/bin/env: ruby: No such file or directory](https://www.ruby-forum.com/t/usr-bin-env-ruby-no-such-file-or-directory/238168)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [January 4, 2014, 12:57pm UTC](https://www.ruby-forum.com/t/usr-bin-env-ruby-no-such-file-or-directory/238168 "2014-01-04T12:57:54Z")

</div>

Hi I am getting the error “/usr/bin/env: ruby: No such file or directory” while trying to create a host in opennebula. ruby is one of the gems required to install opennebula. Can anyone help me on this thanks in adv…

---

## [Respond\_to do |format| confusion](https://www.ruby-forum.com/t/respond-to-do-format-confusion/238327)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 13\
**Last updated:** [January 4, 2014, 7:59am UTC](https://www.ruby-forum.com/t/respond-to-do-format-confusion/238327 "2014-01-04T07:59:44Z")

</div>

As a new comer for ruby, I feel confused for this snippet: respond\_to do |format| format.html # index.html.erb format.xml { render :xml =\> @posts } end I understand that if format is .html, it will give html respo…

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

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