compare

Subclipse (SVN) Compare showing similar files

It seems whenever I compare via the SVN Repository explorer (most recently after a merge) subclipse will show a few files in the compare window that have no differences whatsoever. Double clicking the file brings up the Java Source Compare window, but Subclipse highlights no sections and shows no differences. A manual inspection of the f...

SAS Proc Compare question

First off, I know pretty much nothing about SAS and I am not a programmer but an accountant, but here it goes: I am trying to compare two data sets to identify differences between them, so I am using the 'proc compare' command as follows: proc compare data=table1 compare=table2 criterion=.01; run; This works fine, but it compares lin...

How to Compare and fetch date in Cakephp ?

I am trying to make an availability calendar and need to know how can I compare dates when fetching it. My DB is id start_date end_date status Now suppose I want to fetch booking in next the month, i.e. from 2010-03-01 to 2010-04-01. How should I fetch this data? I did try comparing directly using an and condition but it didn't help...

in_array but needle is array, what the alternative for it

I have 2 array, the value will be from database, below is the case example: $arr1 = array(1,2,3); $arr2 = array(1,2,3,4,5,6,7); What I want to do is to check if all values in $arr1 is exist in $arr2. the above example should be a TRUE while: $arr3 = array(1,2,4,5,6,7); comparing $arr1 with $arr3 will return a FALSE. Normally I use...

How do I compare 2 audio files, returning a percentage of difference.

Possible Duplicate: How do I compare what the user said with an audio recorded sound? Is there a way to compare 2 audio files, whereby a percentage of difference will be returned? I am using C# VS08, .net framework 3.5. Edited: difference in the sound(like for eg. Audio 1: "HELP", Audio 2:"HELP ME PLEASE", it will return the...

Why are two identical strings not testing as equal?

Hi, My code: stringFromRecievedData = [[NSString alloc]initWithData:_data1 encoding:NSUTF8StringEncoding]; if (![stringFromRecievedData isEqualToString:lastStringFromRecievedData]) { [lastStringFromRecievedData setString: stringFromRecievedData]; I get the same "not equal" result even in the second round- even when it is the...

Compare/Difference of two arrays in bash

Hello, Is it possible to take the difference of two arrays in bash.. Would be really great if you could suggest me the way to do it.. Code : Array1=( "key1" "key2" "key3" "key4" "key5" "key6" "key7" "key8" "key9" "key10" ) Array2=( "key1" "key2" "key3" "key4" "key5" "key6" ) Array3 =diff(Array1, Array2) Array3 ideally should be : Ar...

Sorting arrays with cyclic compares (infinite loop?)

Hi, I have some objects that have 3 sorting options: quality, quatity and a compare against the other object, sorted by that order. - (NSComparisonResult) compare: (MyObject *) obj { if (self.quality > obj.quality) return NSOrderedAscending; else if (self.quality < obj.quality) return NSOrderedDescending; if (self.quantity > obj.quant...

Comparing trees in a treeview

I want to be able to iterate through a tree and compare nodes one tree to the nodes in another tree of the same format. EX: There are five categories. 1 - 5. Are all static and identical between both trees. In 1. All static values. So i need to just compare the values of the nodes there. In 2. This is comes from a KVP object and...

Comparing integers in sqlite table?

I have a high scores table in my game. When the game is over, the score is shown on the screen and it gets inserted into the high scores table. I want to know how to compare the new score to the highest score in the table so I can let the user know if they achieved a high score. Below I included the code I use to update and insert the ...

C++ Need to compare one string to 200.000 words...

Hi In my program in C++ ... User types in program string "foo". I need to compare this string to my strings, in txt files to write: this string is noun! (or adjective...) I got few TXT files - one file with nouns, 2-nd file with adjectives... but in each file is about 200.000 words. How I can effectively compare this string "foo" wi...

What's the most efficient way to check whether two long values (in millis) belong to the same second

Currently I'm using TimeUnit.MILLISECONDS.toSeconds(valueInMillis) to check whether two millisecond values come from the same second. Can you recommend a faster algo for this operation? Thanks. ...

How can I find the different value in array by php?

Hello, I have cafeid=(1,2,3,4,5,6,7) and checkid= (1,3,5) How can I show the output only (2,4,6,7)? Thank you for your answers. ...

Comparing two lists items in python

Hi, I have two files which I loaded into lists. The content of the first file is something like this: d.complex.1 23 34 56 58 68 76 . . . etc d.complex.179 43 34 59 69 76 . . . etc The content of the second file is also the same but with different numerical values. Please consider from one d.complex.* to another d.complex.* as one set...

Unable to get set intersection to work

Sorry for the double post, I will update this question if I can't get things to work :) I am trying to compare two files. I will list the two file content: File 1 File 2 "d.complex.1" "d.complex.1" 1 4 5 5 48 ...

Java. Ignore accents when comparing strings

The problem it's easy. Is there any function in JAVA to compare two Strings and return true ignoring the accented chars? ie String x = "Joao"; String y = "João"; return that are equal. Thanks ...

Compare 7 words to eachother to see if 5 of them are equal. How?

I have seven words in the array: string[7] = {x,x,x,x,x,x,x}; the x is generated from another array: string[4]={a,b,c,d}; that means each x can be either a or b or c or d. It is randomly generated. this could be an example: string[7]= {a,a,d,a,a,c,a} my question is how can I check if there are five x which has the same value?...

Comparing items based on their index in an array in Ruby

I have a Card class and I want to overload the > operator to compare against another card (Ace is higher than king, king higher than queen, etc). I've forgotten what little I ever knew about Ruby and don't have a clue where to start. class Card @@RANKS = ['A', 'K', 'Q', 'J', 'T', '9', '8','7','6','5','4','3','2'] attr_reader :rank ...

Compare structures of two databases?

Hello, I wanted to ask whether it is possible to compare the complete database structure of two huge databases. We have two databases, the one is a development database, the other a production database. I've sometimes forgotten to make changes in to the production database, before we released some parts of our code, which results that t...

list comparision

i want to calculate the percent of similarity between two lists as an example if i have two list that describe book attribute list1(author, brand , isbn, category, amount) list2(author , price , brand) i saw this function similarity= n/m where n is the number of matched concepts and m is the smaller cardinality of two lists i dont know ...