compare

Compare tool that can mask differences?

I do a lot of file comparisons (source, logs etc.) and need to mask certain sections e.g. dates / times / line numbers which cause every line to be different. Beyond Compare allows you to pre-process the files but then you have to write pieces of code to do this. Is there a GUI type tool that allows you to mask sections of the file via...

OCR: How to compare images, sort unmatching out and do this fast?

Hi, I managed to have each character stored in a bitmap and am looking for a way to quickly determine which character it is. Therefore I'm about to store every possible character into an array of 1 and 0, and compare them to an array of the bitmap I just grabbed. I could do simple checks like compare how many black pixels I got, compa...

VB.NET: Compare just the date part and not the time of two Dates

Hi, I want to compare just the date part (and Not the time) of two VB.NET Date objects. Is there a way to do that? Hoping to get some answers. /Ylva ...

Problems with string

Hi. Im working with a cstring function that is supposed to compare the values of two strings, MyString and m2. I have #include so its definitely not that. these are my errors. (74) : error C2275: 'MyString' : illegal use of this type as an expression (74) : error C2660: 'MyString::length' : function does not take 1 arguments (76) : err...

Subtract array from another in .net

Is there any easy way to remove the contents of one array from another? ...

In Java what should I use for a PriorityQueue that returns the greatest element first?

Java's PriorityQueue places the least element at the head of the list, however I need it to place the greatest element at the head. What what's the neatest way to get a priority queue that behaves like that. Since I wrote the class stored in this queue I could simply reverse the results of compareTo, its not used outside this queue. H...

What is the fastest way to compare two byte arrays?

I am trying to compare two long bytearrays in vb.net and have run into a snag. Comparing two 50 meg files takes almost two mins so I'm clearly doing something wrong. I'm on an x64 machine with tons of memory so there are no issues there. Here is the code that I'm using at the moment and would like to change. _Bytes and item.Bytes ar ...

Compare two arrays of primitives in Java?

I know about Arrays.deepEquals(Object[], Object[]) but this doesn't work for primitive types (due limitations of arrays and autoboxing, see this related post). With that in mind, is this the most efficient approach? boolean byteArrayEquals(byte[] a, byte[] b) { if (a == null && b == null) return true; if (a == null || ...

C# compare two Lists for differences

I would like some feedback on how we can best write a generic function that will enable two Lists to be compared. The Lists contain class objects and we would like to iterate through one list, looking for the same item in a second List and report any differences. We already have a method to compare classes, so we need feedback on how we...

How do I diff 2 source trees with a difference threshold?

Hi, I have 2 source trees, one is very similar to the other (one is VC6 and one is VS2005). I need a program that can recursively diff the source trees and tell me which files are different. However I want to be able to define 'how different' the files are. So I want to be able to ignore all files that are less than 5% different. I'd a...

What is best tool to compare two SQL Server databases (schema and data)?

I would like to compare two SQL Server databases including schema (table structure) and data in tables too. What is best tool to do this? ...

Access Compare Database Schema

Hello I want to compare two Access database and check is there any field or type mismatch within that or not. Is there any way we can check that using dataset or is there a faster way to do that? Thanks. ...

Tools to compare two sites structures

Hi. Does anyone knows about any tools allowing to compare two almost exactly same websites? Simply, I have a sandbox site and production site, and would like to find out the difference between them, to know what content to move to production site. Thanks! Edit: Ok, I see I missed a critical piece of information (sorry!). The both si...

Is there any function that compares lengths of strings accordingly in C# (.NET)?

I'm sorry, didn't know that Length is computed at construction time!! I got 200 char long string A, 5 char long string B If I do int Al = A.length; int Bl = B.length; and compare it -- all seems fine BUT If I do this few million times to calculate something, it's too expensive for the thing I need. Much simpler and neater way wou...

(C#) what is the most efficient way to compare two strings?

Just like this page at stakeoverflow.com http://stackoverflow.com/revisions/620144/list I want to compare two strings and found which parts have been modified. ...

C# comparing similar strings

Hi I have a generic with some filenames (LIST1) and another biggeneric with a full list of names (LIST2). I need to match names from LIST1 to similar ones in LIST2. For example LIST1 - **MAIZE_SLIP_QUANTITY_3_9.1.aif** LIST 2 1- TUTORIAL_FAILURE_CLINCH_4.1.aif 2- **MAIZE_SLIP_QUANTITY_3_5.1.aif** 3- **MAIZE_SLIP_QUANTITY_3_9.2.aif** ...

Tool to do line content only compares

I'm working on a a tool to generate TSV files for import into a database using bcp.exe and I'd like to validate my output. I can do this by comparing the file I generate to the files produced by exporting using bcp from an existing database. My problem is that the ordering can sometimes be different between files. I'd like a tool that wi...

How to automatically detect and release DLLs that have really changed ?

Whenever we recompile an exe or a DLL, its binary image is different even if the source code is the same, due to various timestamps and checksums in the image. But, our quality system implies that each time a new DLL is published, related validation tests must be performed again (often manually, and it takes a significant amount of time...

C# compare strings - Different codepage

I have two strings read in from textfiles to compare and when I try to compare these files with winmerge or pspad, they both show as the same text strings. If I compare them with the following function, it fails: string string1 = File.ReadAllText(@"c:\file1.txt"); string string2 = File.ReadAllText(@"c:\file2.txt"); bool stringMatch ...

compare Filecontent Eclipse

Apache Commons IO FileUtils.contentEquals() compares 2 files. Is this also possible using code from eclipse.org ? ...