ruby-forum.com Archives - 23 May 2013, Thursday

  • Nginx answers too large requests with bad status

    ruby-forum.com 12 May '13, 8pm

    On Mon, Oct 29, 2012 at 07:43:27PM -0400, B.R. wrote: Hi there, > When submitting too large requests, Nginx replies a page containing the > right code status but serves the errors page with a HTTP/0.9 (!) 200 answer. No, it doesn't. Look at the "curl -i" output. Your browser is making...

  • Including gems in a bundle with Rawr (Jruby)

    ruby-forum.com 12 May '13, 1pm

    On Sat, Feb 20, 2010 at 7:07 PM, Eric Christopherson <[email protected]> wrote: > post my code. Thanks. All right, I'm just going to paste my code. It's possible no one responded because no one here is that familiar with Rawr (or at least its internals), but I might as well as...

  • ANN: Sequel 3.47.0 Released

    ruby-forum.com 01 May '13, 4pm

    Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated recor...

  • The most recommended way of naming methods in

    ruby-forum.com 26 Apr '13, 5am

    On Tue, Jan 18, 2011 at 9:16 AM, Edmond Kachale <[email protected]> wrote: > Rubists, > > What is the most recommended (or the conventional) way of naming methods in > Ruby? Do they need to be verb-like or noun-like? In other language like C++, > methods are supposed to ...

    Related:
    1. Use Ruby™ rubini.us 26 Apr '13, 3pm
  • Foreign Guest Researcher position

    ruby-forum.com 25 Apr '13, 6pm

    Foreign Guest Researcher Appointment in Cognitive Radio Research with Software Defined Radios National Institute of Standards and Technology, U.S. Department of Commerce The Emerging and Mobile Network Technologies Group in the Information Technology Laboratory of the U.S. Department ...

  • 404 then upstream timeout

    ruby-forum.com 23 Apr '13, 9pm

    I finally got a chance to repro this in a sandboxed environment and ngrep the local adapter. It appears there might be 2 issues here -- 1 with nginx and 1 with varnish. The config that I tested is: http { upstream varnish { server 127.0.0.1:9999; } server { listen 8888; root /files; e...

  • 1.9 - Feature #5400][Open] Remove flip-flops in 2.0

    ruby-forum.com 17 Apr '13, 8pm

    Issue #5400 has been updated by Joey Zhou. Magnus Holm wrote: > Nobody knows them. Nobody uses them. Let's just get rid of flip-flops, shall we? Well, the flip-flop behavior is useful, so it should not be removed. However, I agree that the syntax is a bit confusing. Flip-flop in Ruby ...

  • Sort array by two attributes? (like sql "order by A, B")

    ruby-forum.com 16 Apr '13, 12pm

    IN sql we can pass two arguments to the 'order by' component, and it will order the results by A, and then B in the cases where A is the same. Can anyone think of a way to do the same thing with a ruby array? For example, if the array holds objects that have attributes/methods "lastna...

  • yaml.h is missing / Failed to configure psych.

    ruby-forum.com 15 Apr '13, 11am

    I'm doing a fresh sandboxed install of Ruby 'n Rails 'n such. The install is evidently having trouble finding yaml.h (or libyaml) and building psych. I'm running OSX 10.6.8 ("Snow Leopard") Synopsis: ====== $ # SETTING UP THE ENVIRONMENT $ SANDBOX=/Users/me/Developer/Sandbox $ PATH=${...

  • Rspec with ActionMailer and .deliver

    ruby-forum.com 15 Apr '13, 5am

    I'm in the process of migrating from Rails 2 with rspec 1 to Rails 3 with rspec 2, the process has been going pretty well, however, today I came across an issue that I wanted to share. I have a controller that sends out an email through a mailer. Rails 2 code: CurriculumCommentMailer....

  • Build issue with Volk on CentOS 6.4 (x86_64)

    ruby-forum.com 14 Apr '13, 2pm

    Just a heads up to the list: I ran into an issue building GR v3.6.4.1 yesterday on a CentOS 6.4 (x86_64) machine - it's caused by some issue with the cmake rules for Boost - it wants to pass /usr/lib64/lib64 (<- repeated lib64 for some reason) into the linker for some of the Boost lib...

  • with Qt or GTK

    ruby-forum.com 13 Apr '13, 12pm

    I'm sure you will get a variety of different takes. There are a few items that are worthy of considerations, such as: o - Do you prefer working with a lightweight or a heavyweight widget set? In other words, some widget sets go down to the "bare metal" while others sit atop the native...

  • Cuban Rails community

    ruby-forum.com 10 Apr '13, 1pm

    I've just started a new discussion group involving Rails developers from Cuba. If you fit that criteria we have open registration at https://groups.google.com/forum/?fromgroups#!forum... . If you know of another RUG or Rails group in Cuba that I'm not aware of, please let me know. -- ...

  • Frightening retry behavior should be deprecated and removed

    ruby-forum.com 10 Apr '13, 7am

    Witness: $a = 0 def foo(a) $a += 1 retry if $a < 4 end (puts 'here'; self).foo((puts 'there'; nil)) {} Output: ~/NetBeansProjects/jruby $ ruby test.rb here there here there here there here there What's happening here is that a retry within a method body (which works *only* if the meth...

  • ANN: Sequel 3.46.0 Released

    ruby-forum.com 02 Apr '13, 5pm

    Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated recor...

  • Private setters can be called by self, why not getters?

    ruby-forum.com 31 Mar '13, 1pm

    class Counter def initialize self.count = 0 end def increment1 self.count = count + 1 end def increment2 self.count = self.count + 1 end def increment3 self.count += 1 end private attr_accessor :count end counter = Counter.new counter.increment1 rescue $!.message # => 1 counter.increm...

  • Web application in ruby and rails error while running on localhost

    ruby-forum.com 29 Mar '13, 6am

    Hey all , i m a newbie of ruby and rails , iahev an application which is in ruby rails , now i am trying to run on this localhost .. but i am getting following errors .! 1.i am trying to run `rails s` or `rails c` , and i m in already in the root folder . 2. when i am trying to get th...

  • 1.9 - Feature #5372][Open] Promote blank? to a core protocol

    ruby-forum.com 29 Mar '13, 2am

    Issue #5372 has been updated by Yui NARUSE. This seems the long discussed question, what is a zero element. But I don't think this proposal is not worth breaking ActiveSupport's blank?. Anyway what is the usecase of this? I doubt a closed io is a zero element. Do you have a case that ...

  • Lavori Ruby/Rails in Irlanda

    ruby-forum.com 26 Mar '13, 6pm

    Ho ricevuto questo, abbastanza dettagliato in termini di $$$ e benefici. Naturalmente il costo della vita e` piu` alto la`, e fai la muffa con tutta la pioggia (io non potrei mai abitare la` per il clima), ma la birra e` buona:-) Non conosco la persona, quindi non posso dire niente su...

    Related:
    1. Download Ruby ruby-lang.org 27 Mar '13, 6pm
  • [ruby-trunk - Bug #7660][Open] VC Builds Broken

    ruby-forum.com 25 Mar '13, 2pm

    Issue #7660 has been reported by cfis (Charlie Savage). ---------------------------------------- Bug #7660: VC Builds Broken https://bugs.ruby-lang.org/issues/7660 Author: cfis (Charlie Savage) Status: Open Priority: High Assignee: Category: Target version: 2.0.0 ruby -v: 1.9.3 p362 a...

  • Mocking Net::SSH connections

    ruby-forum.com 25 Mar '13, 9am

    Hi, So I'm stuck again with creating a mock for Net::SSH, I've managed to mock the call to Net::SSH.start and yield the Net::SSH mock but I am totally stuck with mocking the session.shell.sync call and will also need to mock the shell.send_command call also. Any help much appreciated....

  • Please implement expect.rb for Windows

    ruby-forum.com 25 Mar '13, 2am

    Bugs item #5036, was opened at 2006-07-12 14:44 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=169... Category: Standard Library Group: 1.8.4 Status: Open Resolution: None Priority: 3 Submitted By: Doug Holland (meldroc) Assigned to: Nobody (None) Summary:...

  • Best IDEs for Ruby on Rails

    ruby-forum.com 22 Mar '13, 4am

    On 16 March 2013 04:40, Jason Hsu, Android developer <[email protected]> wrote: > What are your favorite IDEs for Ruby on Rails? Are there any good IDEs that > IMMEDIATELY flag problems the way Eclipse does in Android development? > Given the importance of testing, I'd like to use ...

  • [SEC] [ANN] Rails 3.2.13, 3.1.12, and 2.3.18 have been released!

    ruby-forum.com 18 Mar '13, 6pm

    Hi everyone! Rails versions 3.2.13, 3.1.12, and 2.3.18 have been released. These releases contain important security fixes. It is recommended users upgrade as soon as possible. Please check out these links for the security fixes: * [CVE-2013-1854 Symbol DoS vulnerability in Active Rec...

  • Oppinions on map vs collect

    ruby-forum.com 18 Mar '13, 10am

    > I've been using collect in all my programs up till now, and I recently > discovered that the map function is equivalent. My question is, (and I > know that it really doesn't matter), which is more correct to use if > you're trying to stick to doing things ruby's way? What do people ...

  • Why Nginx Doesn't Implement FastCGI Multiplexing?

    ruby-forum.com 14 Mar '13, 8am

    Hi, I'm doing some research on FastCGI recently. As I see from the FastCGI specification, it does support multiplexing through a single connection. But apparently none of the current web servers, like Nginx, Apache, or Lighttpd supports this feature. I found a thread from nginx dev ma...

  • require_gem vs. gem

    ruby-forum.com 14 Mar '13, 7am

    >> The #gem call activates the gem, and the require is the regular >> require to load a library. > > What is the difference between an "active" gem and a gem that has been > "loaded". In short: Gems are activated (i.e. selected and made available). Files are loaded. The long descripti...

    Related:
    1. Flatui::Rails gem rubyflow.ru 26 Mar '13, 4am
  • Mac OS 10.8.2 and openssl

    ruby-forum.com 10 Mar '13, 12pm

    Subject: Re: Mac OS 10.8.2 and openssl Date: mer 27 feb 13 07:18:50 +0900 Quoting Dr. Hegewald ([email protected]): > that does not seem to work: So that's the reason. Of course if you download openssl (latest is http://www.openssl.org/source/openssl-1.0.1e.tar.gz ), compile and ...

  • Module#prepend and Array#prepend

    ruby-forum.com 25 Feb '13, 4am

    Hi Yehuda and all, I started burbling away and haven't done any intros. That's a bit rude of me! I've been using Ruby for almost seven years. In large part it is Ruby's lispiness that sucked me in---after having used lisp at uni. For that time I've mostly been lurking, but feel like I...

  • ARGV, STDIN and gets

    ruby-forum.com 16 Feb '13, 1pm

    I am running into an issue where I have a script that takes two command line arguments and reads from stdin. It seems that gets is not getting to stdin because it is hitting ARGV first (http://www.ruby-doc.org/core/classes/Kernel.html#M005996 ). Is there a way around this so that I ca...