# Latest

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

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

---

## [Confusion with protected methods](https://www.ruby-forum.com/t/confusion-with-protected-methods/238467)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 12, 2014, 1:00pm UTC](https://www.ruby-forum.com/t/confusion-with-protected-methods/238467 "2014-01-12T13:00:53Z")

</div>

Below is the code making me confused : class Foo protected def self.baz;end end Foo.protected\_methods() # =\> \[\] # I expected \[:baz\] Foo.public\_methods(false) # =\> \[:baz, :allocate, :new, :superclass\] Why am I gett…

---

## [403 error for one of my server blocks](https://www.ruby-forum.com/t/403-error-for-one-of-my-server-blocks/238466)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 12, 2014, 10:44am UTC](https://www.ruby-forum.com/t/403-error-for-one-of-my-server-blocks/238466 "2014-01-12T10:44:49Z")

</div>

Hi, I installed nginx on an ubuntu server and then followed this tutorial (which I’ll quote from) to setup server blocks .(I don’t do any of the WordPress config in that article). It uses a common.conf that the ser…

---

## [Pathname#realpath over each entry in a directory](https://www.ruby-forum.com/t/pathname-realpath-over-each-entry-in-a-directory/238461)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 12, 2014, 5:18am UTC](https://www.ruby-forum.com/t/pathname-realpath-over-each-entry-in-a-directory/238461 "2014-01-12T05:18:55Z")

</div>

tldr: Having trouble getting the target of symlinks within a specified directory. My apologies for a very newbish question here. Background: As a learning exercise I want to write a program that will sync folders bet…

---

## [Where can I get gr-air-modes for GNUradio 3.6.5](https://www.ruby-forum.com/t/where-can-i-get-gr-air-modes-for-gnuradio-3-6-5/238441)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 12, 2014, 3:39am UTC](https://www.ruby-forum.com/t/where-can-i-get-gr-air-modes-for-gnuradio-3-6-5/238441 "2014-01-12T03:39:37Z")

</div>

Hi, I try to install gr-air-modes from the git source, but it seems the code only works with GNUradio 3.7. May I know where can I find the old version which is compatible with GNUradio 3.6.5? Thanks. Best regards, …

---

## [Cleaner syntax in some cases](https://www.ruby-forum.com/t/cleaner-syntax-in-some-cases/238440)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 12, 2014, 1:18am UTC](https://www.ruby-forum.com/t/cleaner-syntax-in-some-cases/238440 "2014-01-12T01:18:16Z")

</div>

What if we make a cleaner syntax in some cases?

---

## [Fastcgi\_cache and 304 response](https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 10:46pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465 "2014-01-11T22:46:25Z")

</div>

Hi, I use nginx + php-fpm (via fcgi) and needed responses from php-server are putting into cache. I have one thought, could be better send cached pages to clients from cache with 304 code instead 200. So we must know…

---

## [Method parenthesis - beginner question](https://www.ruby-forum.com/t/method-parenthesis-beginner-question/238453)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 11, 2014, 9:28pm UTC](https://www.ruby-forum.com/t/method-parenthesis-beginner-question/238453 "2014-01-11T21:28:49Z")

</div>

Hello, I’m going through a book which presents an example from which I’m a bit confused over. Here’s the example; class Person def initialize(name) set\_name(name) end def name @first\_name + ’ ’ + @last\_name en…

---

## [Hartl rails tutorial need help - regd "Test-driven development" introduction](https://www.ruby-forum.com/t/hartl-rails-tutorial-need-help-regd-test-driven-development-introduction/238456)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 11, 2014, 8:40pm UTC](https://www.ruby-forum.com/t/hartl-rails-tutorial-need-help-regd-test-driven-development-introduction/238456 "2014-01-11T20:40:34Z")

</div>

Hi, I am getting some unexpected error which is not mentioned in the rails tutorials(http://ruby.railstutorial.org/chapters/static-pages#sec-TDD) I am following : (arup~\>sample\_app)$ bundle exec rspec spec/requests/s…

---

## [\[Job\] Looking for Ruby On Rails Developer in SF to create MVP](https://www.ruby-forum.com/t/job-looking-for-ruby-on-rails-developer-in-sf-to-create-mvp/238462)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 8:14pm UTC](https://www.ruby-forum.com/t/job-looking-for-ruby-on-rails-developer-in-sf-to-create-mvp/238462 "2014-01-11T20:14:29Z")

</div>

I am looking for an experienced developer to create an MVP for an App Discovery site. I have the funding and site design, I just need the right person that can help create a scalable web application. Ideally they wou…

---

## [Each.with\_index](https://www.ruby-forum.com/t/each-with-index/238444)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 11, 2014, 7:38pm UTC](https://www.ruby-forum.com/t/each-with-index/238444 "2014-01-11T19:38:16Z")

</div>

Hello, I have an array :- a = \[1, 2, 3, 4, 5\] I have 13 objects with sequence. I want to assign a’s value to these objects which will be repeated. so after every 5 objects, these a’s value will be assigned & will be …

---

## [Private Message System Rails 4](https://www.ruby-forum.com/t/private-message-system-rails-4/238429)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 8\
**Last updated:** [January 11, 2014, 6:58pm UTC](https://www.ruby-forum.com/t/private-message-system-rails-4/238429 "2014-01-11T18:58:50Z")

</div>

Hi All, I am trying to build a private message system on rails 4. I found a great post here, Rails threaded private messaging - Stack Overflow, on stackover flow, but it is unclear to me what the tables should look …

---

## [A quick introduction and some summaries](https://www.ruby-forum.com/t/a-quick-introduction-and-some-summaries/238359)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 11, 2014, 4:24pm UTC](https://www.ruby-forum.com/t/a-quick-introduction-and-some-summaries/238359 "2014-01-11T16:24:20Z")

</div>

Hi all, First off, sorry if these were discussed before, but I had no luck finding usable information on what I’m about to ask. At my company, we are thinking about developing our next web application(s) with Ruby. W…

---

## [Mobile support?](https://www.ruby-forum.com/t/mobile-support/225706)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [January 11, 2014, 10:29am UTC](https://www.ruby-forum.com/t/mobile-support/225706 "2014-01-11T10:29:50Z")

</div>

Is it possible to use IronRuby to write apps for Windows Phone, Surface, and/or Windows 8 Metro? Are there sample programs for this? – Cheers, Andrew Pennebaker www.yellosoft.us

---

## [Ruby on Rails clone in NodeJS](https://www.ruby-forum.com/t/ruby-on-rails-clone-in-nodejs/238459)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 9:50am UTC](https://www.ruby-forum.com/t/ruby-on-rails-clone-in-nodejs/238459 "2014-01-11T09:50:07Z")

</div>

It’s basically done and used for private projects, but it’s not polished and there’s no documentation, only some examples. MonoJS http://monojs.org - RoR clone in NodeJS. Examples to play: Classical RoR 10 Blog http…

---

## [Unicorn 4.8.0 - Rack HTTP server for fast clients and Unix](https://www.ruby-forum.com/t/unicorn-4-8-0-rack-http-server-for-fast-clients-and-unix/238458)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 8:45am UTC](https://www.ruby-forum.com/t/unicorn-4-8-0-rack-http-server-for-fast-clients-and-unix/238458 "2014-01-11T08:45:17Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [(Open) ML Integration Test](https://www.ruby-forum.com/t/open-ml-integration-test/238455)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 11, 2014, 7:50am UTC](https://www.ruby-forum.com/t/open-ml-integration-test/238455 "2014-01-11T07:50:23Z")

</div>

チケット #9395 が Hiroshi SHIBATA によって報告されました。 Bug #9395: ML Integration Test https://bugs.ruby-lang.org/issues/9395 作成者: Hiroshi SHIBATA ステータス: Open 優先度: Normal 担当者: Hiroshi SHIBATA カテゴリ: 対象バージョン: ruby -v: 3.0.0dev Back…

---

## [Ngx\_openresty mainline version 1.5.8.1 released](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-5-8-1-released/238454)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 11, 2014, 6:44am UTC](https://www.ruby-forum.com/t/ngx-openresty-mainline-version-1-5-8-1-released/238454 "2014-01-11T06:44:57Z")

</div>

Hello folks! I am happy to announce that the new mainline version of ngx\_openresty, 1.5.8.1, is now released: http://openresty.org/#Download This is the first openresty release with the latest nginx 1.5.8 core bundl…

---

## [Monitoring cache statistics](https://www.ruby-forum.com/t/monitoring-cache-statistics/169210)

<div class="topic-metadata">

**Author:** [@Nime](https://www.ruby-forum.com/u/Nime)\
**Replies:** 7\
**Last updated:** [January 11, 2014, 4:48am UTC](https://www.ruby-forum.com/t/monitoring-cache-statistics/169210 "2014-01-11T04:48:08Z")

</div>

is it possible to somehow monitor nginx proxy\_cache efficiency? For example by having a variable that can be logged in the access log to see if the request has been cached, Posted at Nginx Forum:

---

## [Refactor question](https://www.ruby-forum.com/t/refactor-question/238449)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 11, 2014, 4:35am UTC](https://www.ruby-forum.com/t/refactor-question/238449 "2014-01-11T04:35:42Z")

</div>

Hi, The code below works perfectly but is so repetitive I feel there must be a standard way to refactor it in this situation. I am learning on my own so am wondering how more experienced programmers would do this. A…

---

## [About DPSK mod and demod](https://www.ruby-forum.com/t/about-dpsk-mod-and-demod/237867)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 12\
**Last updated:** [January 11, 2014, 1:18am UTC](https://www.ruby-forum.com/t/about-dpsk-mod-and-demod/237867 "2014-01-11T01:18:51Z")

</div>

Hi, I tried to build a simple flow graph of DPSK modulation and demodulation. The result is verified using the Error Rate module. The link shows the flow I’m using. I know that …

---

## [Time](https://www.ruby-forum.com/t/time/238452)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 11, 2014, 12:39am UTC](https://www.ruby-forum.com/t/time/238452 "2014-01-11T00:39:08Z")

</div>

I am looking for a block that will give me a time while I am playing back my data in GNURadio Companion. By this, I mean something that will pop up when I start my flow and show me the time since the flow was started…

---

## [Perl regex to extract "domain" and "extension" into variables from 'server\_name'](https://www.ruby-forum.com/t/perl-regex-to-extract-domain-and-extension-into-variables-from-server-name/238451)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 10, 2014, 11:33pm UTC](https://www.ruby-forum.com/t/perl-regex-to-extract-domain-and-extension-into-variables-from-server-name/238451 "2014-01-10T23:33:07Z")

</div>

I want to extract just the “domain” and “extension” parts from an nginx server\_name for use as variables later in nginx conf. For example, server\_name \<some PERL regex … ? … ? …\>; … location = /test.html { alias /…

---

## [How can I separate the db DBA user and the db app user](https://www.ruby-forum.com/t/how-can-i-separate-the-db-dba-user-and-the-db-app-user/238278)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 10, 2014, 10:49pm UTC](https://www.ruby-forum.com/t/how-can-i-separate-the-db-dba-user-and-the-db-app-user/238278 "2014-01-10T22:49:18Z")

</div>

How can I separate the database DBA user and app access user in rails? The app user will be able to run the app but perform no DDL. The DBA user will be used for migrations. I do not want the user that runs the rai…

---

## [Ruby v.2.1.0 install but gem update/install fails](https://www.ruby-forum.com/t/ruby-v-2-1-0-install-but-gem-update-install-fails/238382)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 10, 2014, 10:35pm UTC](https://www.ruby-forum.com/t/ruby-v-2-1-0-install-but-gem-update-install-fails/238382 "2014-01-10T22:35:52Z")

</div>

I was able to compile and “install” ruby 2.1.0 but am unable to update/install any gems (error below). Did I compile this correctly? I don’t have/use rvm, due to not working with ksh at all. lots of other errors. de…

---

## [Windows nginx 1.5.9.1 Cheshire](https://www.ruby-forum.com/t/windows-nginx-1-5-9-1-cheshire/238450)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 10, 2014, 9:23pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-5-9-1-cheshire/238450 "2014-01-10T21:23:25Z")

</div>

14:05 10-1-2014: nginx 1.5.9.1 Cheshire When she sleeps she gently purrs, you hardly know she’s there, but when she wakes you’re gonna hear her roar. nginx Cheshire release is here ! This native build runs on Window…

---

## [Class initialization with open method](https://www.ruby-forum.com/t/class-initialization-with-open-method/238337)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [January 10, 2014, 8:28pm UTC](https://www.ruby-forum.com/t/class-initialization-with-open-method/238337 "2014-01-10T20:28:29Z")

</div>

Is it possible that If I put a method to open a webpage in the class initialization that when I call it like content = Web.New then it automatically assigns the contents of the page? And how exactly would it be done i…

---

## [PYBOMBs Testing](https://www.ruby-forum.com/t/pybombs-testing/238388)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 13\
**Last updated:** [January 10, 2014, 7:30pm UTC](https://www.ruby-forum.com/t/pybombs-testing/238388 "2014-01-10T19:30:39Z")

</div>

Hi, I’ve been trying out pybombs again for building the latest gnuradio. I keep getting errors, but interestingly, if I just run the build again, I always get a little further. That seems strange. Here’s the tail o…

---

## [Not able to access Image Magickly from my ubuntu server which is on Amazon instance](https://www.ruby-forum.com/t/not-able-to-access-image-magickly-from-my-ubuntu-server-which-is-on-amazon-instance/238446)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 10, 2014, 7:05pm UTC](https://www.ruby-forum.com/t/not-able-to-access-image-magickly-from-my-ubuntu-server-which-is-on-amazon-instance/238446 "2014-01-10T19:05:32Z")

</div>

Hi, I tried to install Image Magically on ubuntu which is on Amazon instance. I followed the following reference link for that. There I followed the following steps to install Image Magically on server. $ gem ins…

---

## [Proxy\_cache incorrectly returning 304 Not Modified](https://www.ruby-forum.com/t/proxy-cache-incorrectly-returning-304-not-modified/238404)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 10, 2014, 5:37pm UTC](https://www.ruby-forum.com/t/proxy-cache-incorrectly-returning-304-not-modified/238404 "2014-01-10T17:37:54Z")

</div>

Hi there, I work on a site which has nginx in front of a Rails application, and we use proxy\_cache. For the home page, our application returns a “max-age=600, public” Cache-Control header, and we have nginx configure…

---

## [Rails 4 and Ruby 2 on Windows 8.1](https://www.ruby-forum.com/t/rails-4-and-ruby-2-on-windows-8-1/238438)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 10, 2014, 1:48pm UTC](https://www.ruby-forum.com/t/rails-4-and-ruby-2-on-windows-8-1/238438 "2014-01-10T13:48:52Z")

</div>

Has anyone been able to do this successfully? and what’s the best equivalent to RVM in the Windows world?

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

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