# Latest

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

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

---

## [How to put everything from directory into assets as subdirectory](https://www.ruby-forum.com/t/how-to-put-everything-from-directory-into-assets-as-subdirectory/238745)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 27, 2014, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-put-everything-from-directory-into-assets-as-subdirectory/238745 "2014-01-27T15:27:25Z")

</div>

By everything I mean everything. Untouched by assets pipeline. External javascript libraries, like CK Editor for example, dynamicly load javascript and css in runtime, depending on settings. So compiling them with ass…

---

## [Num Steps in WX GUI Slider](https://www.ruby-forum.com/t/num-steps-in-wx-gui-slider/238645)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 27, 2014, 3:25pm UTC](https://www.ruby-forum.com/t/num-steps-in-wx-gui-slider/238645 "2014-01-27T15:25:06Z")

</div>

Hi, I am having a basic question about the WX GUI Slider I am wondering why the Num Steps in WX GUI Slider have to be double the value than I calculate. For example, if I have minimum set at 86 MHz and maximum at 108 …

---

## [Some problems with library path when running test and proposed fix](https://www.ruby-forum.com/t/some-problems-with-library-path-when-running-test-and-proposed-fix/238734)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 27, 2014, 3:01pm UTC](https://www.ruby-forum.com/t/some-problems-with-library-path-when-running-test-and-proposed-fix/238734 "2014-01-27T15:01:57Z")

</div>

In brief: Depending on the settings make test does not always test what should test. In detail: The following is based on gnuradio v3.7.2.1-159-g3fa56a46 though the problems already exist with older versions. If I r…

---

## [How to start Nginx?](https://www.ruby-forum.com/t/how-to-start-nginx/238707)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [January 27, 2014, 1:56pm UTC](https://www.ruby-forum.com/t/how-to-start-nginx/238707 "2014-01-27T13:56:05Z")

</div>

Hello Using OpenResty, I compiled and installed a Lua-capable Nginx in /tmp so I could experiment with it before replacing the current Nginx that was installed through apt-get. However, since files are located in n…

---

## [Modifying the request body](https://www.ruby-forum.com/t/modifying-the-request-body/238732)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 27, 2014, 1:38pm UTC](https://www.ruby-forum.com/t/modifying-the-request-body/238732 "2014-01-27T13:38:13Z")

</div>

I have nginx deployed as a proxy server. The client sends a POST request which needs to be modified before forwarding it to the origin server. Is there any module / filter available in nginx. The best I could find was …

---

## [Rational Number](https://www.ruby-forum.com/t/rational-number/238716)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 27, 2014, 12:16pm UTC](https://www.ruby-forum.com/t/rational-number/238716 "2014-01-27T12:16:17Z")

</div>

Guide me to use the Rational number in Ruby. what is the way? to use the rational number as, a=3/4 puts a #=\> 3/4 arr=\[2/3,3/4,5/8,9/5\] #=\> \[2/3,3/4,5/8,9/5\] hsh={sub1: 1/6, sub3: 3/6, sub4: 5/6} #=\>{‘sub1’=\>1/6, ‘…

---

## [How can i compile nginx with specific lib linkage](https://www.ruby-forum.com/t/how-can-i-compile-nginx-with-specific-lib-linkage/238697)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 27, 2014, 11:59am UTC](https://www.ruby-forum.com/t/how-can-i-compile-nginx-with-specific-lib-linkage/238697 "2014-01-27T11:59:49Z")

</div>

I have customized a new nginx add on module,and the module use an external lib ( mytest.so). The method i called in mytest.so is kimtest method. How can i configure the ./configure file and Makefile to prevent the e…

---

## [Gnuradio companion](https://www.ruby-forum.com/t/gnuradio-companion/176446)

<div class="topic-metadata">

**Author:** [@maher\_manai](https://www.ruby-forum.com/u/maher_manai)\
**Replies:** 4\
**Last updated:** [January 27, 2014, 11:28am UTC](https://www.ruby-forum.com/t/gnuradio-companion/176446 "2014-01-27T11:28:58Z")

</div>

i ask if it’s possible to run bbn code on grc specially the physicalÂ layer blocks

---

## [Using Header/Payload Demux](https://www.ruby-forum.com/t/using-header-payload-demux/238590)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 27, 2014, 11:23am UTC](https://www.ruby-forum.com/t/using-header-payload-demux/238590 "2014-01-27T11:23:30Z")

</div>

Hi, I’m wondering if anyone can take a look at my grc file, which uses the header/payload demux to try to obtain a payload - but I’m currently getting incorrect values from the tags. For instance packet\_len should …

---

## [How to put everything from directory into assets as subdirectory](https://www.ruby-forum.com/t/how-to-put-everything-from-directory-into-assets-as-subdirectory/238743)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 27, 2014, 10:59am UTC](https://www.ruby-forum.com/t/how-to-put-everything-from-directory-into-assets-as-subdirectory/238743 "2014-01-27T10:59:28Z")

</div>

By everything I mean everything. Untouched by assets pipeline. External javascript libraries, like CK Editor for example, dynamicly load javascript and css in runtime, depending on settings. So compiling them with ass…

---

## [Array's methods and operators in Ruby](https://www.ruby-forum.com/t/arrays-methods-and-operators-in-ruby/238717)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 27, 2014, 10:57am UTC](https://www.ruby-forum.com/t/arrays-methods-and-operators-in-ruby/238717 "2014-01-27T10:57:28Z")

</div>

What’s the method/operator between the two arrays for purpose like, arr1=\[1,2,3,4,5,6,7,8,9,10\] arr2=\[2,5,9\] #code to remove the item of arr2 from arr1. p arr1 #=\>\[1,3,4,6,7,8,10\] another is, arr3=\[a,b,c,d,e,f,g,h…

---

## [Accessing PostgreSQL database using JDBC driver](https://www.ruby-forum.com/t/accessing-postgresql-database-using-jdbc-driver/238730)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 27, 2014, 10:28am UTC](https://www.ruby-forum.com/t/accessing-postgresql-database-using-jdbc-driver/238730 "2014-01-27T10:28:50Z")

</div>

Hi, I am trying to access PostgreSQL database using jdbc-postgres driver. I am using this code: require ‘java’ require ‘jdbc/postgres’ Jdbc::Postgres.load\_driver String url = “jdbc:postgresql://localhost/postgres” …

---

## [Segmentation fault with signal in test\_tracks\_objspace\_count](https://www.ruby-forum.com/t/segmentation-fault-with-signal-in-test-tracks-objspace-count/238741)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 27, 2014, 4:56am UTC](https://www.ruby-forum.com/t/segmentation-fault-with-signal-in-test-tracks-objspace-count/238741 "2014-01-27T04:56:03Z")

</div>

Issue #9426 has been updated by Tomoyuki C… Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED Bug #9426: Segmentation fault with signal in test\_trac…

---

## [Implementing CONNECT in nginx](https://www.ruby-forum.com/t/implementing-connect-in-nginx/238658)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 27, 2014, 3:47am UTC](https://www.ruby-forum.com/t/implementing-connect-in-nginx/238658 "2014-01-27T03:47:38Z")

</div>

Hello everyone, I would like to extend nginx with a CONNECT statement which connects to a TCP socket. Could someone walk me through which source files I need to modify and which fucntions I should have a look at? Or …

---

## [Nginx Tweaks for JBoss](https://www.ruby-forum.com/t/nginx-tweaks-for-jboss/238739)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 27, 2014, 1:12am UTC](https://www.ruby-forum.com/t/nginx-tweaks-for-jboss/238739 "2014-01-27T01:12:22Z")

</div>

Hello Gurus, It’s been several years since I’ve revisited anything but the most basic changes to our Nginx reverse-proxy front-end. I’m wondering if there have been any new tweaks or security related configuration ch…

---

## [Need an "indicator" on the GUI display](https://www.ruby-forum.com/t/need-an-indicator-on-the-gui-display/238723)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 26, 2014, 11:44pm UTC](https://www.ruby-forum.com/t/need-an-indicator-on-the-gui-display/238723 "2014-01-26T23:44:40Z")

</div>

Discuss-gnuradio mailing list removed\_email\_address@domain.invalid https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

---

## [How to program selector block](https://www.ruby-forum.com/t/how-to-program-selector-block/238737)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 26, 2014, 11:27pm UTC](https://www.ruby-forum.com/t/how-to-program-selector-block/238737 "2014-01-26T23:27:26Z")

</div>

Hello every buddy i am working on cognitive radio spectrum sensing . i need a selector block of 1024 fft size fft output . but GRc sector block can be visible up 29 port only . so, how can be make it…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/238733)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 26, 2014, 11:27pm UTC](https://www.ruby-forum.com/t/no-subject/238733 "2014-01-26T23:27:25Z")

</div>

hello sir here , i try to install air modes but i face this kind of error mahesh@HP:~/gr-air-modes/build$ cmake … – Build type not specified: defaulting to release. Checking for GNU Radio Module: RUN…

---

## [Syntax error I am getting while csv operations](https://www.ruby-forum.com/t/syntax-error-i-am-getting-while-csv-operations/238736)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [January 26, 2014, 10:51pm UTC](https://www.ruby-forum.com/t/syntax-error-i-am-getting-while-csv-operations/238736 "2014-01-26T22:51:59Z")

</div>

Hi, I am keep getting an error from the below code. hash = { ‘A’ =\> \[ ‘v’, ‘x’, ‘y’ , ‘z’ \] , ‘B’ =\> \[ ‘m’, ‘n’ , ‘o’ \] } CSV.open (’/home/kirti/workspace/Ruby/a.csv’,“w”, :headers =\> true) do |csv| hash.each do |k…

---

## [Nginx and cgit - upstream prematurely closed FastCGI stdout](https://www.ruby-forum.com/t/nginx-and-cgit-upstream-prematurely-closed-fastcgi-stdout/238726)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 26, 2014, 10:23pm UTC](https://www.ruby-forum.com/t/nginx-and-cgit-upstream-prematurely-closed-fastcgi-stdout/238726 "2014-01-26T22:23:37Z")

</div>

I’m trying to setup cgit 0.10 with nginx 1.2.1-2.2 and fastcgi 1.0.3-3. Unfortunately the reponse is a 502. The following message is written in the error.log: \[error\] 30956#0: \*1 upstream prematurely closed FastCGI st…

---

## [Nginx not starting with named pipe (fifo) for access\_log](https://www.ruby-forum.com/t/nginx-not-starting-with-named-pipe-fifo-for-access-log/238307)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 26, 2014, 5:55pm UTC](https://www.ruby-forum.com/t/nginx-not-starting-with-named-pipe-fifo-for-access-log/238307 "2014-01-26T17:55:32Z")

</div>

Heya, there seems to be a issue with Nginx and named pipes (fifo). Tested nginx versions: 1.1.19 (Ubuntu 12.04.3 LTS amd64) 1.4.4 (Ubuntu 12.04.3 LTS amd64 with PPA NGINX Stable : “Nginx” team ) 1.4.4 (CentOS 6.5 am…

---

## [Getopt-Declare 1.31 released as a gem](https://www.ruby-forum.com/t/getopt-declare-1-31-released-as-a-gem/238735)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 5:17pm UTC](https://www.ruby-forum.com/t/getopt-declare-1-31-released-as-a-gem/238735 "2014-01-26T17:17:37Z")

</div>

Getopt-Declare, the popular argument parsing library (port from a popular Perl library) is now up to v1.31 and fixes warnings in ruby2.1.0. And it runs like a speed daemon with it. You can get it from rubyforge.net o…

---

## [Message passing error](https://www.ruby-forum.com/t/message-passing-error/238719)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 26, 2014, 1:20pm UTC](https://www.ruby-forum.com/t/message-passing-error/238719 "2014-01-26T13:20:28Z")

</div>

Dear Sir When I trying to implement message passing between 2 blocks called a1\_ff and a2\_ff following error comes when comiling. I cannot trace it. Thanks Neil Scanning dependencies of target gnuradio-avg \[ 5%\] Bu…

---

## [Has\_and\_belongs\_to\_many question](https://www.ruby-forum.com/t/has-and-belongs-to-many-question/238712)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [January 26, 2014, 5:46am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-question/238712 "2014-01-26T05:46:44Z")

</div>

Hello, I’m new to Ruby/Rails and going through ‘Beginning Rails 4’. In chapter 6 it has me create a join table for an articles and categories table (articles\_categories). In the migrate file I’ve entered this code …

---

## [Mime-types 2.1 Released](https://www.ruby-forum.com/t/mime-types-2-1-released/238731)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 5:30am UTC](https://www.ruby-forum.com/t/mime-types-2-1-released/238731 "2014-01-26T05:30:03Z")

</div>

mime-types version 2.1 has been released! home: http://mime-types.rubyforge.org/ code: https://github.com/halostatue/mime-types/ bugs: https://github.com/halostatue/mime-types/issues rdoc: http://mime-types.rubyforg…

---

## [Accessing PostgreSQL database](https://www.ruby-forum.com/t/accessing-postgresql-database/238729)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 4:45am UTC](https://www.ruby-forum.com/t/accessing-postgresql-database/238729 "2014-01-26T04:45:56Z")

</div>

Hi I am trying to access postgreSQL from jruby using postgres-pr. I have installed it using gem. I am using following code: require ‘java’ require ‘postgres-pr/connection’ conn= Connection.new(‘postgres’, ‘postgres’…

---

## [Using 2 intersection of conditions for proxy\_cache\_bypass (avoiding logical if/and)](https://www.ruby-forum.com/t/using-2-intersection-of-conditions-for-proxy-cache-bypass-avoiding-logical-if-and/238711)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 26, 2014, 4:27am UTC](https://www.ruby-forum.com/t/using-2-intersection-of-conditions-for-proxy-cache-bypass-avoiding-logical-if-and/238711 "2014-01-26T04:27:16Z")

</div>

I use nginx to cache both GET and POST requests. I want to use proxy\_cache\_bypass to allow users to bypass the cache, but ONLY for GET requests. POST requests should always be cached. I tried this: map $request\_method…

---

## [Re: Need an "indicator" on the GUI display](https://www.ruby-forum.com/t/re-need-an-indicator-on-the-gui-display/238727)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 4:23am UTC](https://www.ruby-forum.com/t/re-need-an-indicator-on-the-gui-display/238727 "2014-01-26T04:23:56Z")

</div>

Discuss-gnuradio mailing list removed\_email\_address@domain.invalid https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

---

## [Why don't we use File.empty? rather than File.zero?](https://www.ruby-forum.com/t/why-dont-we-use-file-empty-rather-than-file-zero/238725)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 3:48am UTC](https://www.ruby-forum.com/t/why-dont-we-use-file-empty-rather-than-file-zero/238725 "2014-01-26T03:48:47Z")

</div>

I found the File API said that: Find if a file is empty (i.e zero length) with the zero? method: File.zero?(“temp.txt”) =\> false So why don’t we just use File.empty? which is more meaningful?

---

## [\#YesWeCode Oakland Gala: An Evening with Van Jones & Friends](https://www.ruby-forum.com/t/yeswecode-oakland-gala-an-evening-with-van-jones-friends/238728)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 1:50am UTC](https://www.ruby-forum.com/t/yeswecode-oakland-gala-an-evening-with-van-jones-friends/238728 "2014-01-26T01:50:05Z")

</div>

Join Startup Weekend Oakland,http://www.eventbrite.com/bmaoakland.startupweekend.org Rebuild the Dream http://www.rebuildthedream.com/mlk\_meets\_silicon\_valley and #YesWeCode http://www.yeswecode.org/ in celebrating t…

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

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