compare

Check a field in MySql from a php md5 string

hello all! I'm trying to validate a pair of data columns on mysql from my php page across md5 function. I've encrypted the string "helloworld" with php md5 function and attempted to compare it with MYSQL MD5 function but it won't work. I do this because in the database there is a pair of strings "hello" and "world" needs to be compared w...

Compare XML ignoring order of child elements

Does anybody know of a tool that will compare two XML documents. Belay that mocking… there’s more. I need something that will make sure each node in file 1 is also in file 2 regardless of order. I thought XML Spy would do it with the Ignore Order of Child Nodes option but it didn’t. The following would be considered the same: <Node> ...

Using jQuery to compare two arrays

Hi all, I have two arrays of JavaScript Objects that I'd like to compare to see if they are the same. The objects may not (and most likely will not) be in the same order in each array. Each array shouldn't have any more than 10 objects. I thought jQuery might have an elegant solution to this problem, but I wasn't able to find much onlin...

Image comparison algorithm

I'm trying to compare images to each other to find out whether they are different. First I tried to make a Pearson correleation of the RGB values, which works also quite good unless the pictures are a litte bit shifted. So if a have a 100% identical images but one is a little bit moved, I get a bad correlation value. Any suggestions for...

WPF - Change the comparer for a ListBox

I have a list box that contains a list of WorkItems (from TFS). I want to add items to be selected, but it is failing to identify the items as the same. Here is my code public void SelectQueryResultItem(WorkItem item) { lstQueryResults.SelectedItems.Add(item); } This works great when the WorkItem passed in is fro...

Comparing two PDF documents that are digitized faxes

I did a fair bit of looking around on the board before I posted here but I didn't see anything that captured what I was hoping to do. We receive a large number of inbound faxes (500+ pages/day) as separate documents (around 100+ documents/day). Quite often the sender (being a hospital) resends the same document a couple hours after the ...

Field comparison in excel sheet

I have an excel sheet with two columns. Eg. ---------------------- A B outputColumn C ---------------------- xxyy dd/mm/yy xxyy Y ---------------------- NA #N/A Y ---------------------- xxyy xxyy Y dd/mm/yy ---------------------- xxyy #N/A N dd/mm/yy ---------------------- . . . I want column out...

Comparing user input integers to dictionary values? (Python)

Hey everybody, I'm a python noob and I'm trying to write a program that will show a user a list of phone numbers called greater than X times (X input by users). I've got the program to successfully read in the duplicates and count them (the numbers are stored in a dictionary where {phoneNumber : numberOfTimesCalled}), but I need to comp...

String comparing in c#

Hi, I want to compare two strings for any match ie; my two string are string1 = "hi i'm tibinmathew @ i'm fine"; string2 = "tibin"; I want to compare the above two string. If there is any match found i have to execute some statements. I want to do this in c#. How can I do this? ...

Compare Two Vectors (Java)

Hi Currently I have two larger vectors of 50+ strings I want to be able to compare these two Vectors and work out how similar they are. I think I need to use Cosine similarity? Does anyone know of any methods that take in two Java Vectors and gives a value between 0 and 1 as to how similar they are? Thanks Phil ...

Getting a boolean from a date compare in t-sql select

I am wondering if something along the lines of the following is possible in ms-sql (2005) SELECT (expiry < getdate()) AS Expired FROM MyTable WHERE (ID = 1) I basically want to evaluate the date compare to a boolean, is that possible in the select part of the statement? ...

SQL Query to compare

Hi, I am working on an Access database and in it I need to extract several reports. For one of them I need to compare two lists of numbers, List1 and List2(I get both from separate queries) and display only those numbers that are in List1 but not in List2. Can anyone help please? Thank you. ...

i want to compare 2 word document (both tables) and findmatches in c#

i have 2 word document and they both contains table. i want to compare them and find matches in c#. the source could be in another word document (or in my ui, in a richtextbox). ...

how to compare two values with jquery?

i have to get them via a selector and add a class. <div class="count_1"> <span class="percentage">10 %</span> </div> <div class="count_2"> <span class="percentage">90 %</span> </div> if (parseInt($(".count_1.percentage").value) > $(".count_2.percentage").value)) { blabla } ...

Compare date-periods using XSLT

Hi there, I have some experience with XSLT but now i've got myself a problem: I need to check if a period between a begin- and enddate completely covers an other period. Here's a part of the xml: <Parent ID="1"> <StartDate>20050101</StartDate> <EndDate>20060131</EndDate> <Child ID="1"> <StartDate>20050101</StartDate> <En...

comparing two floats to see if they're both negative, or both positive.

Hay guys, i have 2 floats, which both comes from input boxes. I need to compare these 2 floats, if one is negative and one is positive thrown an error. If they're both positive, or both negative, thats fine. Any ideas? Thanks ...

command to compare line by line for two program

Hi everyone , Is there is command in jython which can compare line by line between two files and display the non-matching record. Thanks ...

how to sort an NSArray using compare:options

I have an NSArray containing numbers as NSString objects. ie. [array addObject:[NSString stringWithFormat:@"%d", 100]]; How do I sort the array numerically? Can I use compare:options and specify NSNumericSearch as NSStringCompareOptions? Please give me an example/sample code. ...

Custom CompareEditor with multiple panes

Eclipse's CompareEditor looks beautiful and has a great functionality. But, I'm cannot find a simple way to create a custom CompareEditor with multiple panes? For example: class MultiCompareEditor extends CompareEditor { MultiCompareEditor (Object... InputElement) { } } After that I'd like to see CompareEditor with number o...

find extra, missing, invalid strings when comparing two lists in perl

List-1 List-2 one one two three three three four four five six six seven eight eighttt nine nine Looking to output one | one PASS two | * FAIL MISSING three | three PASS * | three FAIL EXTRA four | four PASS five |...