identical

Ruby "is" equivalent

Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location). ...

Removing Identical Objects in Ruby?

I am writing a Ruby app at the moment which is going to search twitter for various things. One of the problems I am going to face is shared results between searches in close proximity to each other time-wise. The results are returned in an array of objects each of which is a single tweet. I know of the Array.uniq method in ruby which ret...

Howto see if form fields are identical in Zend framework

Hi there, In Zend Framework (1.10) i want to check if two input fields are identical I have the following code in my form: $this->addElement('password', 'password', array( 'label' => 'Wachtwoord:', 'required' => true ) ); $this->addElement('password', 'verifypassword', array( 'label' => 'Bevest...

sql query to return items based on text and group ID

I am not sure how to best describe what I am trying to do (or search for it for that matter) but I am going to try. I have a pre-existing query (stored procedure) that returns items based on 3 specific ID's. What I want to do is to be able to reduce the results even further based upon a column within the results having the exact same st...

Identical classes casting?

Suppose I have two classes A and B. Both are identical (same atributes, methods, etc), but they are named different. There's some safe way, in Java, to cast a B object as an A object? ...

Two functions doing the exact same thing, alias?

In a derived class I have a function called evaluate() (it's a virtual in the base class). In this derived class i also have a function set_value() and hence i want get_value() as well. get_value() should return the exact same thing as evaluate() Is there anyway to say that a call to get_value is a call to evaluate()? With some sort of ...