compare Questions

8

Solved

I have 2 lists, both of which contain same number of dictionaries. Each dictionary has a unique key. There is a match for each dictionary of the first list in the second list, that is a dictionary ...
Bedelia asked 23/3, 2012 at 19:28

6

Solved

Since Python 3.4, the Enum class exists. I am writing a program, where some constants have a specific order and I wonder which way is the most pythonic to compare them: class Information(Enum): ...
Windswept asked 1/9, 2016 at 9:42

10

Solved

I don't care what the differences are. I just want to know whether the contents are different.
Encroach asked 31/10, 2008 at 17:47

4

In the scope of a project that I'm currently working, I use binary data stored in arrays of 10 bytes, and I'm trying to find a fast way to compare them. I'm mostly interested in the 5 most signific...
Abscond asked 30/5, 2014 at 15:7

5

Solved

This is surely something simple I'm overlooking. In the Azure DevOps web interface (not integrated as part of an IDE), I see how to compare any commit to its parent, but I can't figure out how to c...
Somnifacient asked 30/12, 2019 at 16:26

5

Solved

I wanted to compare a string to a string literal; something like this: if (string == "add") Do I have to declare "add" as a string or is it possible to compare in a similar way...
Countercurrent asked 3/6, 2011 at 3:10

7

Solved

I have two xlsx files as follows: value1 value2 value3 0.456 3.456 0.4325436 6.24654 0.235435 6.376546 4.26545 4.264543 7.2564523 and value1 value2 value3 0.456 3.456 0.4325436 6.24654 0.23546...
Sighted asked 9/5, 2016 at 10:14

21

Solved

Typical approaches recommend reading the binary via FileStream and comparing it byte-by-byte. Would a checksum comparison such as CRC be faster? Are there any .NET libraries that can generate a c...
Decagram asked 31/8, 2009 at 17:38

17

Solved

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 I don't use TFS. Is there a way ...
Cosmonautics asked 6/12, 2012 at 21:32

3

Solved

So, I'm pretty new to C# and I'm trying to order an Array using a custom Comparer. I created a class: class MySorter : IComparer { public int Compare(object x, object y) { var chars = "jngmclq...
Mossberg asked 14/2, 2016 at 17:24

7

How can I compare a tar file (already compressed) of the original folder with the original folder? First I created archive file using tar -kzcvf directory_name.zip directory_name Then I tried ...
Dynamotor asked 8/2, 2012 at 3:34

11

Solved

I have an error value which when printed on console gives me Token is expired How can I compare it with a specific error value? I tried this but it did not work: if err == errors.New("Token is ex...
Soni asked 24/8, 2016 at 10:46

2

Solved

Edit: I have changed the title of this question from "PowerShell: Why is this timing not working?" I originally thought the times reported had to be wrong, but I was wrong about that. The...
Brennan asked 5/8, 2023 at 14:23

7

I want to see if two arrays of strings are equal. Eg: compare(["abc", "def"], ["def", "abc"]) should return true and similarly, compare(["abc", "def"], ["def", "ghi"]) should return false...
Disordered asked 22/1, 2016 at 7:25

48

Solved

Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.
Dimitri asked 29/1, 2009 at 19:14

9

Solved

How can I compare if BigDecimal value is greater than zero?
Fibrillation asked 12/11, 2010 at 12:18

5

Solved

I have a few arrays of 50+ names like this. ["dan", "ryan", "bob", "steven", "corbin"] ["bob", "dan", "steven", "corbin"] I have another array that has the correct order. Note that the second ar...
Dieter asked 7/2, 2015 at 1:25

5

Solved

I have 2 arrays, the value will be loaded from database, below is an 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 the values in $arr1 exist i...
Pinochle asked 21/2, 2010 at 1:25

20

I want to design a program that can help me assess between 5 pre-defined colors which one is more similar to a variable color, and with what percentage. The thing is that I don't know how to do tha...
Other asked 26/1, 2012 at 12:20

11

Solved

I have two cloned repositories of two very similar open-source projects, which I have been working on in different instances in Sublime Text 2 to arrive at my desired result. Code from both of thes...

5

Solved

Comparing two images to see if they are both the same files is easy: throw the files MD5. But is it possible or even plausible to determine if two images are same by using PHP GD to get the differe...
Diggs asked 17/7, 2010 at 9:31

4

I am working on switching the nameserves of my domain to a new DNS service. What is the best tool to compare the new settings with the existing DNS setup. I have tried to use dig with and without ...
Ulceration asked 13/6, 2012 at 23:28

7

Solved

I have two dataframes of different size (df1 nad df2). I would like to remove from df1 all the rows which are stored within df2. So if I have df2 equals to: A B 0 wer 6 1 tyu 7 And df1 equals ...
Changchangaris asked 14/6, 2017 at 13:22

6

While profiling my application I realized that a lot of time is spent on string comparisons. So I wrote a simple benchmark and I was surprised that '==' is much slower than string::compare and strc...
Kilo asked 26/2, 2015 at 4:50

8

Solved

I'm having trouble with what I thought should be a pretty simple problem. I need to compare every item in an arrayList with every other item in the the list without comparing items to themselves. ...
Covert asked 14/2, 2011 at 15:35

© 2022 - 2024 — McMap. All rights reserved.