Top "Compare" questions

The analysis required to assess the differences and similarities between two or more entities.

How to compare changesets in Git?

Git makes it very easy to compare differences between commits, using for instance the git commands diff and difftool. Also …

git compare diff commit tortoisegit
Where is the inconsistency in this Icomparer that is causing a null reference?

I'm receiving a null object in my custom IComparer implementation despite no null entries in the collection it is being …

c# .net compare icomparable icomparer
Can I check in C(++) if an array is all 0 (or false)?

Can I check in C(++) if an array is all 0 (or false) without iterating/looping over every single value and …

c++ c arrays compare zero
C# - How to implement multiple comparers for an IComparable<T> class?

I have a class that implements IComparable. public class MyClass : IComparable<MyClass> { public int CompareTo(MyClass c) { return …

c# sorting compare icomparable
SQL compare string

CASE WHEN ' 1a' = ' 1a ' THEN 'EQUAL - but it isn´t- HELP!!!!' ELSE 'UNEQUAL' END from …

string oracle oracle11g compare case-statement
Carbon Date Time Hours Comparison

How do I compare the hours between these 2? $today = Carbon::now(new \DateTimeZone('Asia/Jakarta'))->toDateTimeString(); and $last = …

php laravel datetime compare php-carbon
Compare multiple files for common code

I have two projects each with a massive code base. I'd like to run a tool to go through all …

compare diff codebase
How to compare two DOMs or DOM nodes in general?

I am using var win1 = open.window(...); var win2 = open.window(...); to open 2 tabs/windows in Firefox - now I …

javascript dom compare nodes
C++ MFC how to compare LPCTSTR in a if statement?

I have the following code: LPCTSTR strPermission = Method(); if (strPermission == L"0") { return true; } else { return false; } While debugging I can …

c++ string mfc compare lpcstr
How to compare two dates in MS Dynamics AX 2009?

How to compare two dates (instances of type Date, not utcDateTime) in MS Dynamics AX 2009? I want to check if …

date compare axapta dynamics-ax-2009 x++