ruby-forum.com Archives - 11 September 2013, Wednesday

  • JRuby vs Java performance

    ruby-forum.com 22 Aug '13, 2pm

    Na Na - [Forward Reference Note: JRuby/Java Bridge Benchmark code and results at https://gist.github.com/4580344 .] I should have mentioned, there may be ways you can code your JRuby to be faster too, so you can minimize the need to use Java. Having more JRuby and less Java would, in ...

  • 1.9 - Feature #4574][Open] Numeric#within

    ruby-forum.com 29 Jul '13, 9am

    Issue #4574 has been updated by Kenta Murata. I like Numeric#limit and/or Numeric#clip. I think "limit" is more mathematical, and "clip" is more easy to understand its functionality from its name. So I believe it is acceptable that the both names are provided. In contrast, I feel that...

  • virtual server configuration

    ruby-forum.com 23 Jun '13, 3am

    Hi I'm new to nginx. I'm trying to configure a virtual server. I've created a new server file under sites-enabled like this: server { listen 80; ## listen for ipv4; this line is default and implied server_name blogtest; root /usr/share/nginx/cakephptest/app/webroot; index index.php; l...

  • 1.9.2 breaks ncurses (STR2CSTR) - pls help

    ruby-forum.com 09 Jun '13, 4am

    I am on Snow Leopard, installed 1.9.2 using rvm. Here is the runtime error I get from ncurses-0.9.1: dyld: lazy symbol binding failed: Symbol not found: _STR2CSTR Referenced from: /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/x86_64-darwin10/ncurses.bundle Expected...

  • Setting debug location

    ruby-forum.com 03 Jun '13, 10pm

    I'm working on a gem for DCI (maroon) and a major part of that gem does source code transformation. the gem works fine but I want to improve the debugging experience and to do that I need to be able to let the environment know what line of source code was actually executed. Is there a...

  • render Bootstrap Modals

    ruby-forum.com 31 May '13, 9am

    Ciao a tutti, non riesco a capire come renderizzare un oggetto preso da un'altro controller su delle finestre modali. Ho una pagina con delle foto visualizzate in piccolo da delle thumbnail e cliccandoci sopra, volevo aprire un modale dove visualizzare la foto ad una risoluzione maggi...

  • Eclipse plugin using jruby available

    ruby-forum.com 30 May '13, 6pm

    I just put up an Eclipse plugin that demo's using jruby to extend Eclipse. The plugin is simple, it just reads in a ruby file and creates a view that displays the results of whatever ruby method you put there. The interesting thing isn't so much the demo (although it's useful; I've go...

  • BUG: undefined method `prepend_environment_path' for GLib:Module

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

    Hi, with the last changes a bug in glib2 was introduced. With a fresh installation you get this error: irb(main):001:0> require 'gtk2' NoMethodError: undefined method `prepend_environment_path' for GLib:Module from /usr/local/lib/site_ruby/1.9.1/gtk2/base.rb:20:in `<top (required)>' f...

  • 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:...