tagged [compare]
Compare two files in Visual Studio
Compare two files in Visual Studio I saw the new comparison tool in Visual Studio 2012 for comparing two files or two versions of a file. I like it. But when I tried to find it I couldn't it, because ...
- Modified
- 14 Aug at 13:0
Checking for duplicate strings in JavaScript array
Checking for duplicate strings in JavaScript array I have JS array with strings, for example: I need to compare for duplicate strings inside array, and if duplicate string exists, there should be aler...
- Modified
- 6 Nov at 15:14
c# Sorting a List<KeyValuePair<int, string>>
c# Sorting a List> In C# I would like to sort a `List>` by the length of each string in the list. In Psuedo-Java this would be an anonymous and would look something like: ``` Collections.Sort(someList...
- Modified
- 27 Jan at 06:13
How to parse a month name (string) to an integer for comparison in C#?
How to parse a month name (string) to an integer for comparison in C#? I need to be able to compare some month names I have in an array. It would be nice if there were some direct way like: My Google ...
How can I compare two dates in PHP?
How can I compare two dates in PHP? How can I compare two dates in PHP? The date is stored in the database in the following format > 2011-10-2 If I wanted to compare today's date against the date in t...
Find oldest/youngest datetime object in a list
Find oldest/youngest datetime object in a list I've got a list of datetime objects, and I want to find the oldest or youngest one. Some of these dates might be in the future. ``` from datetime import ...
Comparing Two objects using Assert.AreEqual()
Comparing Two objects using Assert.AreEqual() I 'm writing test cases for the first time in visual studio c# i have a method that returns a list of objects and i want to compare it with another list o...
- Modified
- 8 May at 12:54
How can I compare a string to multiple correct values in Bash?
How can I compare a string to multiple correct values in Bash? I have the following piece of Bash script: But no matter what I input (correct and incorrect values), it never calls the function again, ...
- Modified
- 7 Jul at 20:53
How would you compare two XML Documents?
How would you compare two XML Documents? As part of the base class for some extensive unit testing, I am writing a helper function which recursively compares the nodes of one XmlDocument object to ano...
- Modified
- 3 Oct at 17:19
Why the capital letter is greater than small letter in .Net?
Why the capital letter is greater than small letter in .Net? In Java: In .Net, use String.CompareTo: In .Net, use Char.CompareTo: I know the Java compares string characters using its position in unic
C# - How to implement multiple comparers for an IComparable<T> class?
C# - How to implement multiple comparers for an IComparable class? I have a class that implements IComparable. I then can call the sort method of a generic list of my class ``` List c = new List(); //...
- Modified
- 19 Mar at 19:40
Comparing Class Types in Java
Comparing Class Types in Java I want to compare the class type in Java. I thought I could do this: I wanted to compare in case if the obj passed into the function was extended from MyObject_1 or not. ...
Linq where clause compare only date value without time value
Linq where clause compare only date value without time value Upper query is working correct. But I want to check only date value only. But upper query check date + time value. In traditional mssql, I ...
- Modified
- 23 Nov at 17:41
Query comparing dates in SQL
Query comparing dates in SQL I have a table with dates that all happened in the month November. I wrote this query ``` select id,numbers_from,created_date,amount_numbers,SMS_text from Test_Table where...
- Modified
- 12 Nov at 08:42
java.util.Objects.isNull vs object == null
java.util.Objects.isNull vs object == null As you know, [java.util.Objects](https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html) is > This class consists of static utility methods for ope...
IF formula to compare a date with current date and return result
IF formula to compare a date with current date and return result I'm looking for a formula which allows me to look at a cell and check if it greater than or equal to today's date and to return a worde...
- Modified
- 7 Sep at 03:37
Compare binary files in C#
Compare binary files in C# I want to compare two binary files. One of them is already stored on the server with a pre-calculated CRC32 in the database from when I stored it originally. I know that if ...
Comparing two integer arrays in Java
Comparing two integer arrays in Java I am trying to write code to compare two arrays. In the first array I have put my own digits, but the second the array takes numbers from the input file. The size ...
What is Compare And Swap good for?
What is Compare And Swap good for? I was recently reading about the [Compare And Swap](http://en.wikipedia.org/wiki/Compare-and-swap) atomic action (CMPXCHG, .NET's Interlocked.CompareExchange, whatev...
- Modified
- 20 Jun at 09:12
Remove object from generic list by id
Remove object from generic list by id I have a domain class like this: How would I go about removing an item from the `IList`? I would be able to do it if it was a List but it has to be an `IList` as ...
Compare JavaScript Array of Objects to Get Min / Max
Compare JavaScript Array of Objects to Get Min / Max I have an array of objects and I want to compare those objects on a specific object property. Here's my array: I'd like to zero in on the "cost" sp...
- Modified
- 15 Feb at 21:56
How to know if two arrays have the same values
How to know if two arrays have the same values I have these two arrays: one is filled with information from an ajax request and another stores the buttons the user clicks on. I use this code (I filled...
- Modified
- 7 Mar at 16:27
Compare the difference between two list<string>
Compare the difference between two list I'am trying to check the difference between two `List` in `c#`. Example: The `FirstList` is filled with the following values: The `SecondList` is filled with th...
- Modified
- 25 Mar at 10:2
Compare two objects for properties with different values
Compare two objects for properties with different values I need to create a generic method, which will take two objects (of same type), and return list of properties which have different values. As my...
- Modified
- 19 Nov at 02:10
Select rows from one data.frame that are not present in a second data.frame
Select rows from one data.frame that are not present in a second data.frame I have two data.frames: ``` a1
- Modified
- 16 Jan at 18:54