comparison Questions

4

We've been using Visual Studio 2017's SQL Server Schema Comparison for all our (SQL Server 2016) migrations and deployments. However, recently, it has become very slow, taking hours to process. If...
Minstrelsy asked 28/11, 2017 at 8:37

3

Solved

It's very natural to want to compare std::array's at compile time; and its operator==() is obviously constexpr'able. Yet - it isn't marked constexpr. Is this intentional or an oversight? And - what...
Lime asked 20/8, 2017 at 14:45

4

Solved

The following question arose because I was trying to use bytes strings as dictionary keys and bytes values that I understood to be equal weren't being treated as equal. Why doesn't the following Py...
Victor asked 19/7, 2014 at 16:54

7

Solved

How do I achieve the effect of the === operator in Python? For example, I don't want False == 0 to be True.
Friulian asked 17/7, 2011 at 17:37

4

Solved

In a Unit Test (in Visual Studio 2008) I want to compare the content of a large object (a list of custom types, to be precise) with a stored reference of this object. The goal is to make sure, that...
Canton asked 13/8, 2010 at 10:0

5

Solved

Let's say I have an object - a User object in this case - and I'd like to be able to track changes to with a separate class. The User object should not have to change it's behavior in any way for t...
Loosetongued asked 26/3, 2012 at 5:14

4

Solved

I need to get the query string from this URL https://stackoverflow.com/questions/ask?next=1&value=3 and I don't want to use request.META. I have figured out that there are two more ways to get ...
Nightshade asked 1/7, 2012 at 9:36

11

Solved

I've seen a few questions here related to determining the similarity of files, but they are all linked to a particular domain (images, sounds, text, etc). The techniques offered as solutions requir...
Adkison asked 24/2, 2009 at 0:21

22

Hoping for something more elegant than if (i>0 && i<100)
Richelieu asked 6/4, 2011 at 23:11

34

Solved

I need a function which takes in a list and outputs True if all elements in the input list evaluate as equal to each other using the standard equality operator and False otherwise. I feel it would ...
Impanation asked 2/10, 2010 at 7:31

19

Solved

I want to compare 2 arrays of objects in JavaScript code. The objects have 8 total properties, but each object will not have a value for each, and the arrays are never going to be any larger than 8...
Bandicoot asked 25/8, 2008 at 22:15

16

Solved

I am trying to compare the current date and time with dates and times specified in models using comparison operators: if challenge.datetime_start <= datetime.now() <= challenge.datetime_end: ...
Eyot asked 9/3, 2013 at 5:38

19

Solved

Given two inclusive ranges [x1:x2] and [y1:y2], where x1 ≤ x2 and y1 ≤ y2, what is the most efficient way to test whether there is any overlap of the two ranges? A simple implementation is as follo...
Remanent asked 16/7, 2010 at 23:8

38

Solved

I am supposed to write a program in JavaScript to find all the anagrams within a series of words provided. e.g.: monk, konm, nkom, bbc, cbb, dell, ledl, llde The output should be categorised into r...
Kiddy asked 26/5, 2009 at 7:49

7

Solved

I do have 2 different tuples of type (Double, Double): let tuple1: (Double, Double) = (1, 2) let tuple2: (Double, Double) = (3, 4) I want to compare their values using a simple if statement. Som...
Kinnon asked 30/6, 2014 at 9:59

10

Solved

I came across this recently, up until now I have been happily overriding the equality operator (==) and/or Equals method in order to see if two references types actually contained the same data (i....
Leroy asked 19/9, 2008 at 18:7

5

Solved

I have two JavaScript arrays (A and B) that contain objects that I created. I want to check that all the objects in array A are contained in array B, but not necessarily in the same order. What is...
Dike asked 14/7, 2010 at 3:48

3

Solved

This question comes from a need to ensure that changes I've made to code doesn't affect the values it outputs to text file. Ideally, I'd roll a sub to take in two filenames and return 1or return 0 ...
Conquistador asked 17/5, 2010 at 9:30

12

Solved

How would you suggest this task is approached? The challenge as i see it is in presenting diff information intelligently. Before i go reinventing the wheel, is there an accepted approach of how su...
Wadleigh asked 29/6, 2011 at 20:34

8

Solved

I'm wondering what the correct way to compare two characters ignoring case that will work for all cultures. Also, is Comparer<char>.Default the best way to test two characters without ignorin...
Kvass asked 8/9, 2009 at 16:13

3

Solved

I use VSCode as my default tool to compare files (git changes and others) and I sometimes I need to see the differences in the other way than I have them opened in the viewer. For example, suppose ...
Crackdown asked 11/3, 2021 at 16:37

4

Solved

I am wondering how the PHP spaceship operator compares strings, objects and arrays. For example, the below code. echo "Its Me at SO" <=> "Its Me at SO"; will return 0, a...
Panay asked 15/1, 2016 at 12:56

33

Solved

Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to com...
Servia asked 13/10, 2008 at 17:54

7

Solved

I was expecting the following comparison to give an error: var A = B = 0; if(A == B == 0) console.log(true); else console.log(false); but strangely it returns false. Even more strangely, co...
Nessa asked 10/4, 2014 at 6:45

8

Solved

I'm trying to write a code that has a lot of comparison Write a program in “QUANT.C” which “quantifies” numbers. Read an integer “x” and test it, producing the following output: x greater th...
Histo asked 7/1, 2014 at 12:59

© 2022 - 2025 — McMap. All rights reserved.