# Latest

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

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

---

## [Help to script Text processing in Ruby for quick learning to newbie](https://www.ruby-forum.com/t/help-to-script-text-processing-in-ruby-for-quick-learning-to-newbie/236803)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 14\
**Last updated:** [October 7, 2013, 12:30pm UTC](https://www.ruby-forum.com/t/help-to-script-text-processing-in-ruby-for-quick-learning-to-newbie/236803 "2013-10-07T12:30:42Z")

</div>

Hello, I am completely new to Ruby and want to start learning it in an efficient way. Can anyone create a text processing Ruby script for me? I attached a perl script that shows that way I did it. I need a ruby script…

---

## [48rails 2013 (hackathon)](https://www.ruby-forum.com/t/48rails-2013-hackathon/236592)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 9\
**Last updated:** [October 7, 2013, 12:10pm UTC](https://www.ruby-forum.com/t/48rails-2013-hackathon/236592 "2013-10-07T12:10:50Z")

</div>

Ciao a tutti, il 19 e 20 ottobre a Padova organizziamo il 48rails, un punto di ritrovo per i dev Rails che partecipano al RailsRumble 2013. L’unica cosa che dovrete portare il laptop e un’idea: a connettivit, cibo,…

---

## [Problem installing GNUradio by script](https://www.ruby-forum.com/t/problem-installing-gnuradio-by-script/236841)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 7, 2013, 11:07am UTC](https://www.ruby-forum.com/t/problem-installing-gnuradio-by-script/236841 "2013-10-07T11:07:47Z")

</div>

Today when I tried to install Gnuradio by Marcus Script I got following message. “Fetching Gnu Radio via GIT…Done Fetching UHD via GIT…GIT checkout of UHD FAILED” what does this mean, what could be wrong and how do I…

---

## [How to setup nginx to follow 302](https://www.ruby-forum.com/t/how-to-setup-nginx-to-follow-302/236842)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 7, 2013, 10:57am UTC](https://www.ruby-forum.com/t/how-to-setup-nginx-to-follow-302/236842 "2013-10-07T10:57:12Z")

</div>

Hello colleagues, Last week I tried to configure nginx to follow 302 through upstream instead of relay it to the client. My config now is like the next one: http { proxy\_cache\_path /home/toli/nginx/run/cache keys\_z…

---

## [Is there any reference (for Perl) concept in Ruby?](https://www.ruby-forum.com/t/is-there-any-reference-for-perl-concept-in-ruby/246351)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 7, 2013, 9:52am UTC](https://www.ruby-forum.com/t/is-there-any-reference-for-perl-concept-in-ruby/246351 "2013-10-07T09:52:55Z")

</div>

Hello Friends, I am wondering there is any similar concept for Ruby to store a data’s reference like Perl, or something like the pointer in C/C++? In Perl: %coins = ( “Quarter” , 25, “Dime” , 10, “Nickel”, 5 )…

---

## [Facebook id](https://www.ruby-forum.com/t/facebook-id/236837)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 7, 2013, 9:11am UTC](https://www.ruby-forum.com/t/facebook-id/236837 "2013-10-07T09:11:26Z")

</div>

Hi friends, I am using omnicontats gem for import gmai, yahoo, facebook and hotmail friends. i need my login detail in facebook. @contacts = request.env\[‘omnicontacts.contacts’\]@user = request.env\[‘omnicontacts.user…

---

## [Nginx config: different projects in different directories](https://www.ruby-forum.com/t/nginx-config-different-projects-in-different-directories/246385)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 7, 2013, 7:40am UTC](https://www.ruby-forum.com/t/nginx-config-different-projects-in-different-directories/246385 "2013-10-07T07:40:17Z")

</div>

Hi, I’m new to the list. I started to learn the Python web framework Flask and I would like to try it in production environment too. I managed to bring Flask together with uwsgi and nginx. My Flask application is ava…

---

## [Ngx\_small\_light](https://www.ruby-forum.com/t/ngx-small-light/236838)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 7, 2013, 3:37am UTC](https://www.ruby-forum.com/t/ngx-small-light/236838 "2013-10-07T03:37:15Z")

</div>

Hello, folks! I have decided to announce abount ngx\_small\_light here. ngx\_small\_light is the extension module for converting image dynamically like NginxImageFilter. ngx\_small\_light supports following features. Sup…

---

## [Connecting to IBM MQ](https://www.ruby-forum.com/t/connecting-to-ibm-mq/236826)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 7, 2013, 2:16am UTC](https://www.ruby-forum.com/t/connecting-to-ibm-mq/236826 "2013-10-07T02:16:16Z")

</div>

We have a need to connect to IBM MQ from a Sinatra service, I have found two resources on the web: http://rubywmq.rubyforge.org/index\_files/jruby.htm Just wonder if anybody has any feedback on interacting with MQ fro…

---

## [Nginx reverse proxy odd 301 redirect](https://www.ruby-forum.com/t/nginx-reverse-proxy-odd-301-redirect/246367)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 7, 2013, 12:04am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-odd-301-redirect/246367 "2013-10-07T00:04:34Z")

</div>

Hi, I have latest nginx which I am using as a reverse proxy for an application of mine running on apache on another server. The nginx config is like this: upstream upstreamname { server ip:port; } … location / { …

---

## [Need help to make the require-relative path expression](https://www.ruby-forum.com/t/need-help-to-make-the-require-relative-path-expression/236812)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 6, 2013, 11:56pm UTC](https://www.ruby-forum.com/t/need-help-to-make-the-require-relative-path-expression/236812 "2013-10-06T23:56:07Z")

</div>

Hi, Suppose I do have FS as below : foo (b.rb) |–bar |–baz (a.rb) Now in side the program a.rb I want to include the code b.rb. How to write the require-relative expression? Thanks

---

## [Using osmo-sdr with usrp](https://www.ruby-forum.com/t/using-osmo-sdr-with-usrp/236834)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 6, 2013, 8:23pm UTC](https://www.ruby-forum.com/t/using-osmo-sdr-with-usrp/236834 "2013-10-06T20:23:08Z")

</div>

Hi all, to use the OSMO-SDR blocks with the USRP, I want to use the uhd\_source\_c.h and uhd\_source\_c. Without doing anything I cannot use thefunctions like get\_sample\_rate. What do I need to include from OSMO-SDR? Ca…

---

## [Remove some parameters from $args](https://www.ruby-forum.com/t/remove-some-parameters-from-args/236828)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 6, 2013, 7:42pm UTC](https://www.ruby-forum.com/t/remove-some-parameters-from-args/236828 "2013-10-06T19:42:49Z")

</div>

Hello, I’m using memcached + srcache. I need to modify the $args and take it as the cache key. For example; RT=62&SID=BC3781C3-2E02-4A11-89CF-34E5CFE8B0EF&UID=44332&L=EN&M=1&H=1&UNC=0&SRC=LK I need to convert above …

---

## [OOT module error linking to gr::filter::mmse\_fir\_interpolator\_cc in 3.7](https://www.ruby-forum.com/t/oot-module-error-linking-to-gr-mmse-fir-interpolator-cc-in-3-7/236827)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 6, 2013, 7:04pm UTC](https://www.ruby-forum.com/t/oot-module-error-linking-to-gr-mmse-fir-interpolator-cc-in-3-7/236827 "2013-10-06T19:04:16Z")

</div>

This is a case of “everything used to just work” in 3.6 and below, our Gardner/Costas block relies on this functionality; i.e., it did a #include of gri\_mmse\_fir\_interpolator\_cc.h and contructed a new one via “new gri…

---

## [Gr\_firdes.cc/firdes.cc - window functions - flawed code found and fixed](https://www.ruby-forum.com/t/gr-firdes-cc-firdes-cc-window-functions-flawed-code-found-and-fixed/236833)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 6, 2013, 6:59pm UTC](https://www.ruby-forum.com/t/gr-firdes-cc-firdes-cc-window-functions-flawed-code-found-and-fixed/236833 "2013-10-06T18:59:35Z")

</div>

(If you just want to cut to the chase, the diff against 3.6.5.1 is attached) How i got here: Contemplating some filters using gnuradio-companion with a simple flowgraph (simple enough to describe in words alone). N…

---

## [Question from Ruby Thread concept](https://www.ruby-forum.com/t/question-from-ruby-thread-concept/236806)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 14\
**Last updated:** [October 6, 2013, 6:43pm UTC](https://www.ruby-forum.com/t/question-from-ruby-thread-concept/236806 "2013-10-06T18:43:46Z")

</div>

hi please consider the below program, @i=0;@j=0 def hi hello while(@i\<10) puts ‘hi’ @i+=1 end end def hello Thread.new do while(@j\<10) puts ‘hello’ @j+=1 end end end hi #function call Output hello he…

---

## [Parallelizing Tasks in the Background](https://www.ruby-forum.com/t/parallelizing-tasks-in-the-background/246347)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 6, 2013, 4:52pm UTC](https://www.ruby-forum.com/t/parallelizing-tasks-in-the-background/246347 "2013-10-06T16:52:12Z")

</div>

I’m experimenting with optimizing some areas that involve long processing times on some SQL selects (or any background task, really). This is in Rails 4.0.0 with Ruby 2.0.0p247, PostgreSQL 9.2.4. In this case, I can…

---

## [Re: \[Openlte-discuss\] Segmentation fault in when using gnuradioresampler block in c++ flowgraph \[SOL](https://www.ruby-forum.com/t/re-openlte-discuss-segmentation-fault-in-when-using-gnuradioresampler-block-in-c-flowgraph-sol/236832)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 6, 2013, 2:53pm UTC](https://www.ruby-forum.com/t/re-openlte-discuss-segmentation-fault-in-when-using-gnuradioresampler-block-in-c-flowgraph-sol/236832 "2013-10-06T14:53:36Z")

</div>

Hi all, after experimenting and searching a little bit I found the solution: gr::filter::rational\_resampler\_base\_ccf sptr resampler\_filter; resampler\_filter = gr::filter::rational\_resampler\_base\_ccf::make(…); top\_blo…

---

## [ActionController::UnknownFormat when using respond\_to do |format|](https://www.ruby-forum.com/t/actioncontroller-unknownformat-when-using-respond-to-do-format/236830)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 6, 2013, 2:16pm UTC](https://www.ruby-forum.com/t/actioncontroller-unknownformat-when-using-respond-to-do-format/236830 "2013-10-06T14:16:47Z")

</div>

I am using jquery slider ui and rails 4. I am trying to implement a price slider for my product page. However, i have run into a problem. I have tried to search around but i cant seems to find a solution that helps. …

---

## [Java class and Jar](https://www.ruby-forum.com/t/java-class-and-jar/236810)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [October 6, 2013, 2:05pm UTC](https://www.ruby-forum.com/t/java-class-and-jar/236810 "2013-10-06T14:05:37Z")

</div>

Hello. I want to load jar file to the ruby projeckt. When i load class - no problem. require ‘java’ java\_import ‘FieldDemo’ #Here is FieldDemo.class class FieldDemo field\_accessor :somePrivateField =\> :some\_field …

---

## [Segmentation fault in when using gnuradio resampler block in c++ flowgraph](https://www.ruby-forum.com/t/segmentation-fault-in-when-using-gnuradio-resampler-block-in-c-flowgraph/236831)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 6, 2013, 1:46pm UTC](https://www.ruby-forum.com/t/segmentation-fault-in-when-using-gnuradio-resampler-block-in-c-flowgraph/236831 "2013-10-06T13:46:58Z")

</div>

Hi all, I want to connect the rational resampler to the block called “state machine”. Whenever I invoke the rational resampler I get an “SEGMENTATION FAUL” error. I use an C++ flowgraph. Header file: gr::top\_block\_s…

---

## [\[ANN\] Rmldonkey 0.6 released](https://www.ruby-forum.com/t/ann-rmldonkey-0-6-released/236829)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 6, 2013, 1:04pm UTC](https://www.ruby-forum.com/t/ann-rmldonkey-0-6-released/236829 "2013-10-06T13:04:18Z")

</div>

Hi, I have released a new version. The mains goals is the ability to save the current download list and then import then on another server. Basically it came from my need to reinstall the server. Also we can now add …

---

## [Cross Compiling ORC-0.4.18](https://www.ruby-forum.com/t/cross-compiling-orc-0-4-18/246368)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 6, 2013, 5:43am UTC](https://www.ruby-forum.com/t/cross-compiling-orc-0-4-18/246368 "2013-10-06T05:43:46Z")

</div>

All, I’m trying to cross compile ORC so I may use it during compilation of the UHD driver and GNURADIO. When cross compiling on Ubuntu 12.04 x86-64 for ARM I get the following errors: ./configure --host=arm-linux-g…

---

## [Accessing a Class Variable from an Instance](https://www.ruby-forum.com/t/accessing-a-class-variable-from-an-instance/246372)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 6, 2013, 2:42am UTC](https://www.ruby-forum.com/t/accessing-a-class-variable-from-an-instance/246372 "2013-10-06T02:42:18Z")

</div>

It appears (to me) that if one wants to access a class variable from an instance method, accessor methods need to be provided. Am I missing anything on this? Thanks. ... doug

---

## [API Only Rails Application](https://www.ruby-forum.com/t/api-only-rails-application/236822)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 5, 2013, 9:49pm UTC](https://www.ruby-forum.com/t/api-only-rails-application/236822 "2013-10-05T21:49:20Z")

</div>

I’m currently working on an API only Rails application. It has a web ui which is built with AngularJS and there will be a mobile app. Web and mobile apps will use same rails application and exchange data with JSON. Bu…

---

## [Overhead when enabling debug?](https://www.ruby-forum.com/t/overhead-when-enabling-debug/236713)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 7\
**Last updated:** [October 5, 2013, 8:26pm UTC](https://www.ruby-forum.com/t/overhead-when-enabling-debug/236713 "2013-10-05T20:26:22Z")

</div>

i have a question regarding the --with-debug - option; do i have to expect much overhead, when compiling nginx with that option, but have it disabled per default? i’d like to have it at hand for debugging certain iss…

---

## [How to work with a limited sample](https://www.ruby-forum.com/t/how-to-work-with-a-limited-sample/236811)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 5, 2013, 8:20pm UTC](https://www.ruby-forum.com/t/how-to-work-with-a-limited-sample/236811 "2013-10-05T20:20:31Z")

</div>

Hi everyone. I just started using GRC for a college assignment, but I’m having a hard time to find what I need to know in order to do what I want. I want to make a flowgraph that works with a limited sample, like a WA…

---

## [Error Compiling Multimon](https://www.ruby-forum.com/t/error-compiling-multimon/246179)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 14\
**Last updated:** [October 5, 2013, 8:16pm UTC](https://www.ruby-forum.com/t/error-compiling-multimon/246179 "2013-10-05T20:16:26Z")

</div>

I am running gnuradio 3.7.0 and been using grc with good results. When I try to make Multimon (recent trunk) I get the following errors: trunk # make /usr/local/bin/grcc -d . multimode.grc Error: Block key “gr\_com…

---

## [Confusion over installed versions](https://www.ruby-forum.com/t/confusion-over-installed-versions/246352)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 5, 2013, 7:12pm UTC](https://www.ruby-forum.com/t/confusion-over-installed-versions/246352 "2013-10-05T19:12:09Z")

</div>

Hi I have got confused by ruby/gems etc as i seem to have some kind of path issues somehow. First issue is i seem to have 3 flavours of ruby installed … ruby -v ruby 1.9.3p374 (2013-01-15) \[i686-linux\] /opt/ruby-en…

---

## [Fwd: Fastcgi returning 404 and nginx overwriting it to 200](https://www.ruby-forum.com/t/fwd-fastcgi-returning-404-and-nginx-overwriting-it-to-200/236819)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 5, 2013, 6:41pm UTC](https://www.ruby-forum.com/t/fwd-fastcgi-returning-404-and-nginx-overwriting-it-to-200/236819 "2013-10-05T18:41:10Z")

</div>

Hi all, My version is 0.7.67-3 coming from Debian Squeeze. I have tried with squeeze-backports which is version 1.2.1-2.2~bpo60+2 but I got the same results. I have reduced this to the smallest config for fastcgi a…

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

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