# Latest

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

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

---

## [2014 Fukuoka Ruby Award Competition -Entries to be judged by Matz](https://www.ruby-forum.com/t/2014-fukuoka-ruby-award-competition-entries-to-be-judged-by-matz/237470)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 9:54pm UTC](https://www.ruby-forum.com/t/2014-fukuoka-ruby-award-competition-entries-to-be-judged-by-matz/237470 "2013-11-14T21:54:21Z")

</div>

Dear Ruby Enthusiasts, The Government of Fukuoka, Japan together with “Matz” Matsumoto would like to invite you to enter the following Ruby competition. If you have developed an interesting Ruby program, please be enc…

---

## [Need Urgent Help with an Assignment](https://www.ruby-forum.com/t/need-urgent-help-with-an-assignment/237466)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [November 14, 2013, 9:46pm UTC](https://www.ruby-forum.com/t/need-urgent-help-with-an-assignment/237466 "2013-11-14T21:46:39Z")

</div>

1 Use a threaded model to multiply two matrices 2 Sum of k variates of an exponential distribution gives Erlang-k variate. Use functional programming approach to generate an array of 10 random variates from Erlang…

---

## [Gsub! Exceptions when pattern not found](https://www.ruby-forum.com/t/gsub-exceptions-when-pattern-not-found/237463)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 14, 2013, 8:08pm UTC](https://www.ruby-forum.com/t/gsub-exceptions-when-pattern-not-found/237463 "2013-11-14T20:08:26Z")

</div>

Hey guys, I’m fairly new at ruby and still learning, I’m trying to clean up some text and I’m performing some substitutions. The text that I get doesn’t necessarily have all the patterns, so I could have a text A B …

---

## [2014 Fukuoka Ruby Award Competition -Entries to be judged by Matz](https://www.ruby-forum.com/t/2014-fukuoka-ruby-award-competition-entries-to-be-judged-by-matz/237468)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 7:51pm UTC](https://www.ruby-forum.com/t/2014-fukuoka-ruby-award-competition-entries-to-be-judged-by-matz/237468 "2013-11-14T19:51:28Z")

</div>

Dear Ruby Enthusiasts, The Government of Fukuoka, Japan together with “Matz” Matsumoto would like to invite you to enter the following Ruby competition. If you have developed an interesting Ruby program, please be enc…

---

## [Render to clear textbox](https://www.ruby-forum.com/t/render-to-clear-textbox/237461)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 10\
**Last updated:** [November 14, 2013, 7:35pm UTC](https://www.ruby-forum.com/t/render-to-clear-textbox/237461 "2013-11-14T19:35:07Z")

</div>

There has to be a better way to do this. What I am trying is not working, and seems convoluted. Essentially, a controller method is called, and exits by rendering a partial the purpose of which is to simply clear a t…

---

## [GnuradioConfig.cmake not working properly?](https://www.ruby-forum.com/t/gnuradioconfig-cmake-not-working-properly/237389)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 8\
**Last updated:** [November 14, 2013, 6:48pm UTC](https://www.ruby-forum.com/t/gnuradioconfig-cmake-not-working-properly/237389 "2013-11-14T18:48:53Z")

</div>

Hi, I’m having a couple of issues when trying to switch from FindGnuradioRuntime to GnuradioConfig GNURADIO\_ALL\_INCLUDE\_DIRS (and possibly GNURADIO\_ALL\_LIBRARIES) don’t seem to be propagated propely. I have ${GNURA…

---

## [SPDY + proxy cache = occasional 499 errors](https://www.ruby-forum.com/t/spdy-proxy-cache-occasional-499-errors/224912)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 15\
**Last updated:** [November 14, 2013, 6:41pm UTC](https://www.ruby-forum.com/t/spdy-proxy-cache-occasional-499-errors/224912 "2013-11-14T18:41:52Z")

</div>

Hi there, I have been piloting the SPDY patch on a separate web server pointing to an existing HTTP backend. With just myself using this pilot web server, occasionally static resources such as css or images are not…

---

## [Avoiding duplicate string writing](https://www.ruby-forum.com/t/avoiding-duplicate-string-writing/237459)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 6:29pm UTC](https://www.ruby-forum.com/t/avoiding-duplicate-string-writing/237459 "2013-11-14T18:29:35Z")

</div>

Hi all, I’m trying to run the code below. Basically I want to include the users “user” and “user2” after the line “Authentication:”. I’m running this ruby\_block inside a Chef recipe and in a first moment it works as …

---

## [FileUtils Install](https://www.ruby-forum.com/t/fileutils-install/237450)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [November 14, 2013, 6:23pm UTC](https://www.ruby-forum.com/t/fileutils-install/237450 "2013-11-14T18:23:08Z")

</div>

I am trying to build a script that deletes all folders within a specific folder, and the only tool Ive found (by googling) is FileUtils. I use Windows, and am trying to build this Ruby script to run on Windows only. W…

---

## [NArray install problems on 1.7.6](https://www.ruby-forum.com/t/narray-install-problems-on-1-7-6/237456)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 5:19pm UTC](https://www.ruby-forum.com/t/narray-install-problems-on-1-7-6/237456 "2013-11-14T17:19:55Z")

</div>

Using rvm 1.23.14 (master). Tried a ‘gem install narray’ and go the following output. Is there a way to fix it from the error messages? jzakiya@new-host-3 ~ $ gem install narray Fetching: narray-0.6.0.8.gem (100%) …

---

## [Unblock the websites you love!](https://www.ruby-forum.com/t/unblock-the-websites-you-love/151682)

<div class="topic-metadata">

**Author:** [@sfsfloan.cn](https://www.ruby-forum.com/u/sfsfloan.cn)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 4:54pm UTC](https://www.ruby-forum.com/t/unblock-the-websites-you-love/151682 "2013-11-14T16:54:00Z")

</div>

Are you tired of being in your highschool/university classroom or at work and not being able to visit the website you want? With sfsf loan you can now unblock popular social networking sites such as Myspace, Bebo, Fac…

---

## [GR 3.7.3 vs. gqrx?](https://www.ruby-forum.com/t/gr-3-7-3-vs-gqrx/237464)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 3:11pm UTC](https://www.ruby-forum.com/t/gr-3-7-3-vs-gqrx/237464 "2013-11-14T15:11:17Z")

</div>

Hi, It seems to me that gqrx cries for libgnuradio-runtime-3.7.2git.so.0.0.0, but latest GR brings 3.7.3 into the system. Did I miss smth., or are the projects just not yet “in sync”? Ralph, dk5ras. – Ralph A. Sch…

---

## [\[ruby-trunk - Bug #9105\]\[Open\] callcc による不整合(例:Hash)](https://www.ruby-forum.com/t/ruby-trunk-bug-9105-open-callcc-hash/237432)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 14, 2013, 2:42pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-9105-open-callcc-hash/237432 "2013-11-14T14:42:37Z")

</div>

Issue #9105 has been reported by tarui (Masaya T.). Bug #9105: callcc による不整合(例:Hash) Author: tarui (Masaya T.) Status: Open Priority: Normal Assignee: Category: core Target version: current: 2.1.0 ruby -v: ruby…

---

## [Rails engine with Zeus](https://www.ruby-forum.com/t/rails-engine-with-zeus/237462)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 2:42pm UTC](https://www.ruby-forum.com/t/rails-engine-with-zeus/237462 "2013-11-14T14:42:01Z")

</div>

Hi guys, I am trying to setup a rails engine with zeus and I found this post about it: http://nepalonrails.com/blog/2013/10/setting-rails-engine-with-rspec-guard-and-zeus/ My problem is I cant figure out where to pu…

---

## [Give sample rate to throttle block dynamically](https://www.ruby-forum.com/t/give-sample-rate-to-throttle-block-dynamically/237449)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 2:29pm UTC](https://www.ruby-forum.com/t/give-sample-rate-to-throttle-block-dynamically/237449 "2013-11-14T14:29:45Z")

</div>

Hi, I am parsing the sample rate from a file name and would like to dynamically pass that to a downstream block (for instance the throttle block). I tried using a function proble to get the sample rate value and havi…

---

## [Cannot receive from specified address Unauthenticated senders not allowed](https://www.ruby-forum.com/t/cannot-receive-from-specified-address-unauthenticated-senders-not-allowed/237446)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 1:18pm UTC](https://www.ruby-forum.com/t/cannot-receive-from-specified-address-unauthenticated-senders-not-allowed/237446 "2013-11-14T13:18:29Z")

</div>

On trying to run a rake task via crontab, I’m getting the following error: rake aborted! 550 Cannot receive from specified address \<removed\_email\_address@domain.invalid\>: Unauthenticated senders not allowed /mnt/voyl…

---

## [GUI in C++ or Ruby](https://www.ruby-forum.com/t/gui-in-c-or-ruby/237451)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 13\
**Last updated:** [November 14, 2013, 1:08pm UTC](https://www.ruby-forum.com/t/gui-in-c-or-ruby/237451 "2013-11-14T13:08:15Z")

</div>

I am just getting back to using Ruby after a 3 year absence (from any type of programming) and for my next project (strictly personal) I will be using Ruby to pull data from webpages and filter and massage it with the…

---

## [Change windows drive](https://www.ruby-forum.com/t/change-windows-drive/237439)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [November 14, 2013, 12:15pm UTC](https://www.ruby-forum.com/t/change-windows-drive/237439 "2013-11-14T12:15:58Z")

</div>

I need to get access to my D: drive through command line to do certain actions… I tried to do many things but it seems like it says permission denied when changing the drive using ruby: d: any clue how can i do this? …

---

## [Nagios check for nginx with separate metrics](https://www.ruby-forum.com/t/nagios-check-for-nginx-with-separate-metrics/237145)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 14, 2013, 12:04pm UTC](https://www.ruby-forum.com/t/nagios-check-for-nginx-with-separate-metrics/237145 "2013-11-14T12:04:17Z")

</div>

Hello, I am trying to run a Nagios check for nginx (in Opsview Core) but I have a problem: All of the available (to my knowledge) nginx Nagios checks (http://exchange.nagios.org/directory/Plugins/Web-Servers/nginx/) …

---

## [FileUtils - Delete all but one file](https://www.ruby-forum.com/t/fileutils-delete-all-but-one-file/237460)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 14, 2013, 11:24am UTC](https://www.ruby-forum.com/t/fileutils-delete-all-but-one-file/237460 "2013-11-14T11:24:33Z")

</div>

I am trying to use FileUtils to delete Temporary Internet Files on Windows using IE10, however on every pass it gives an permission denied error on “Counters.dat”. Is there any way I can use FileUtils to delete all bu…

---

## [Passing script input as method args always global?](https://www.ruby-forum.com/t/passing-script-input-as-method-args-always-global/237430)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 43\
**Last updated:** [November 14, 2013, 9:51am UTC](https://www.ruby-forum.com/t/passing-script-input-as-method-args-always-global/237430 "2013-11-14T09:51:14Z")

</div>

In Perl I used to do this: print 'Enter data: '; chomp(my $in = ); sub doit { my $data = shift; … return $data; } doit($in); In Ruby the equivalent seems to be: puts 'Enter data: ’ in = gets.chomp def doit(da…

---

## ["ruby -wc" vs "ruby -c"](https://www.ruby-forum.com/t/ruby-wc-vs-ruby-c/237441)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 3:29am UTC](https://www.ruby-forum.com/t/ruby-wc-vs-ruby-c/237441 "2013-11-14T03:29:40Z")

</div>

The way to lint a script (that is, to only check its syntax) is to do “ruby -c”. But I see in several places\[1\]\[2\] on the net that people use “ruby -wc”. I always thought “-w” was for run-time warnings, not for compil…

---

## [Limit\_req\_zone limit by location/proxy](https://www.ruby-forum.com/t/limit-req-zone-limit-by-location-proxy/237431)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 7\
**Last updated:** [November 14, 2013, 3:06am UTC](https://www.ruby-forum.com/t/limit-req-zone-limit-by-location-proxy/237431 "2013-11-14T03:06:49Z")

</div>

For the life of me I can’t seem to get my configuration correct to limit requests. I’m running nginx 1.5.1 and have it serving up static content and pushing all non-existent requests to the apache2 proxy backend for …

---

## [How to set global system architecture in pybombs?](https://www.ruby-forum.com/t/how-to-set-global-system-architecture-in-pybombs/237453)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [November 14, 2013, 1:57am UTC](https://www.ruby-forum.com/t/how-to-set-global-system-architecture-in-pybombs/237453 "2013-11-14T01:57:54Z")

</div>

I am working on an SDR live DVD with Gnuradio on it. The DVD is based on XUbuntu 12.04 32bit. As the disk will hopefully being used on different machines (Intel and AMD) processors I am concerned that certain features …

---

## [JRuby performance](https://www.ruby-forum.com/t/jruby-performance/237452)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [November 14, 2013, 1:36am UTC](https://www.ruby-forum.com/t/jruby-performance/237452 "2013-11-14T01:36:17Z")

</div>

I just found out about Web Framework Benchmark at I found it interesting to find a lot of their JRuby benchmarks performed worse than MRI one. I read their test methodology, they do allow some warm up period to make…

---

## [Sidebar menu + directory listing](https://www.ruby-forum.com/t/sidebar-menu-directory-listing/237454)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [November 13, 2013, 11:10pm UTC](https://www.ruby-forum.com/t/sidebar-menu-directory-listing/237454 "2013-11-13T23:10:13Z")

</div>

Hi all, I’d like to achieve the following, and found nothing so far trough research. Maybe someone could give me a pointer whether this is possible or not. I’d like to use directory listing for some folders, which ar…

---

## [Announce OOT module for IEEE-802.15.4g MR-FSK](https://www.ruby-forum.com/t/announce-oot-module-for-ieee-802-15-4g-mr-fsk/237410)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 13, 2013, 8:17pm UTC](https://www.ruby-forum.com/t/announce-oot-module-for-ieee-802-15-4g-mr-fsk/237410 "2013-11-13T20:17:49Z")

</div>

I have reached release functionality of out-of-tree module I use to help in PHY conformance/interoperability to the MR-FSK standard in IEEE-802.15.4g. This work was done because this standard is currently being imple…

---

## [API to invoke Java compilation](https://www.ruby-forum.com/t/api-to-invoke-java-compilation/237440)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 13, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/api-to-invoke-java-compilation/237440 "2013-11-13T17:33:53Z")

</div>

Hi, I wonder if there is any API in JRuby to invoke the Java compiler. I would like to load some Java source file, compile it on the fly and run it. I am ware of the Java Compiler API and I was about to wrap it in a …

---

## [Json variable passing](https://www.ruby-forum.com/t/json-variable-passing/237423)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [November 13, 2013, 5:26pm UTC](https://www.ruby-forum.com/t/json-variable-passing/237423 "2013-11-13T17:26:29Z")

</div>

hello all (ruby newbie) - i have been using PHP for some time now to take a big complicated data structure and pass it right into jScript using something like the following: const Foo=JSON.parse(’\<?php echo addslashe…

---

## [GNU Radio Companion (GRC) fails to execute](https://www.ruby-forum.com/t/gnu-radio-companion-grc-fails-to-execute/237448)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 4:14pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-grc-fails-to-execute/237448 "2013-11-13T16:14:42Z")

</div>

I installed GNU Radio from here (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio\_Linux) Now when I execute a simple flowgraph, the GRC fails to execute and gives the following error: Traceback (most re…

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

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