? Alternatives for HornetsEye - Ruby

I installed HornetsEye, that "real-time computer vision library" for some experiments with my webcam. I want to know if are there other alternatives in ruby? RMagick comes to mind, but it is not v
 ? Create a new variable from generated element

I want to create a new variable from array elements. This is a very bad code and does not work:(1..5).each {|x| print "step " + x.to_s + ": "; name_of_variable_+_x = gets.chomp}but I want to understa
 ? How to add metadata through grpc ruby client?

How to add metadata through grpc ruby client? example code snippet will help. Metadata is an optional parameter to any method call. For example:metadata = { 'key' : 'value' }response = service.meth
 ? How to solve this non 0-1 integer Knapsack_Problem in Ruby

Question: Minimising x1+x2+...+xnKnown k1*x1+k2*x2+...kn*xn = Tk1,k2,...,kn and T are known integers and > 0k1 > k2 > k3 > ... > knAll the x are also integers and >= 0Find all the xI was t
 ? What's the difference between Ruby's dup and clone methods?

The Ruby docs for dup say: In general, clone and dup may have different semantics in descendent classes. While clone is used to duplicate an object, including its internal state, dup typically uses t
 ? Universal object cloning solution

I need a universal cloning solution to deep clone a module with all its instance variables in Ruby. I can't really use .clone method, since it doesn't work on activerecord objects (doesn't copy the id
 ? Which Ruby classes support .clone?

Ruby defines #clone in Object.To my suprise, some classes raise Exceptions when calling it.I found NilClass, TrueClass, FalseClass, Fixnum having this behaviour.1) Does a complete list of classes (at
 ? Accessing variables from included files in Ruby

How do you access variables which are defined in an included file?# inc.rbfoo = "bar";# main.rbrequire 'inc.rb'puts foo# NameError: undefined local variable or method `foo' for main:Object You can'
 ? Can I use .include?() in a case statement? Ruby

I have started to learn Ruby. I have a small project to build a game and tried to create a function that receives user input and handle accordingly.def Game.listener print "> " while listen = $st
 ? Can I use .include?() in a case statement? Ruby

I have started to learn Ruby. I have a small project to build a game and tried to create a function that receives user input and handle accordingly.def Game.listener print "> " while listen = $st
 ? Can I use .include?() in a case statement? Ruby

I have started to learn Ruby. I have a small project to build a game and tried to create a function that receives user input and handle accordingly.def Game.listener print "> " while listen = $st
 ? Ruby: a class extending a module

I'm trying to to define a class called "HTML" to extend Nokogiri - which uses modules.I tried the following:require 'nokogiri'class HTML include Nokogiriendand require 'nokogiri'class HTML exten
 ? Ruby module with a static method call from includer class

I need to define the constant in the module that use the method from the class that includes this module:module B def self.included(base) class << base CONST = self.find end endend cla
 ? How to customize the will_paginate link base?

<%= will_paginate(@posts) %> # will generate the links like this '<a href="/posts?page=n">a link</a>'What should I do if I want to change the href base on /contents, etc. <a href=
 ? Set secure session Cookie in Rails 2

I have a Rails 2 application. And I want to set the session cookie to secure. By default it will be http only.To implement the same, I added the :secure=> true in config/initializers/session_store.rb
 ? How can I find where exception is thrown during a Minitest run in Ruby?

My Ruby Minitest is failing with an error like this:<"undefined method `Error' for Api:Module">It is not actually a method that is missing, it is a class:class Api::ErrorThis class is defined in

Page 2 of 534  |  Show More Pages:  Top Prev Next Last