compare Questions
8
Solved
I have a domain class like this:
public class DomainClass
{
public virtual string name{get;set;}
public virtual IList<Note> Notes{get;set;}
}
How would I go about removing an item from t...
28
Solved
I have two objects: oldObj and newObj.
The data in oldObj was used to populate a form and newObj is the result of the user changing data in this form and submitting it.
Both objects are deep, ie. t...
Conscience asked 20/12, 2011 at 8:51
8
Solved
I have multiple date ranges. I want to check if they are overlapping in javascript. When there are only two it is easy, I use:
if(start_times1 <= end_times2 && end_times1 >= start_ti...
Indre asked 1/4, 2014 at 11:44
24
Solved
How can I check for null values in JavaScript? I wrote the code below but it didn't work.
if (pass == null || cpass == null || email == null || cemail == null || user == null) {
alert("fill a...
Torrietorrin asked 14/5, 2011 at 18:15
13
Solved
I saw many questions about this, and tried to solve the problem, but after one hour of googling and a lots of trial & error, I still can't fix it. I hope some of you catch the problem.
This is...
Sunken asked 11/7, 2012 at 21:20
4
Solved
I need to compare some numpy arrays which should have the same elements in the same order, excepting for some NaN values in the second one.
I need a function more or less like this:
def func( ar...
Agnesse asked 28/1, 2017 at 20:0
19
Solved
In Java, Arrays.equals() allows to easily compare the content of two basic arrays (overloads are available for all the basic types).
Is there such a thing in C#? Is there any "magic" way of compar...
15
Solved
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:
Month.toInt("January") > Month.toInt("May")
My Google searching seems t...
7
Let's say I have the following two arrays:
int[] a = [1,2,3,4,5];
int[] b = [8,1,3,9,4];
I would like to take the first value of array a - 1 - and see if it is contained in array b. So, I would ...
15
Solved
Basically I want to do this:
obj = 'str'
type ( obj ) == string
I tried:
type ( obj ) == type ( string )
and it didn't work.
Also, what about the other types? For example, I couldn't replica...
8
I want to compare values from two different files.
In Notepad++ version 5.0.3 we had shortcut button Alt+d but in version 6.6.8 I cannot find any option to compare.
Also let me know which version ...
6
Git makes it very easy to compare differences between commits, using for instance the git commands diff and difftool. Also in TortoiseGit you just select two commits to compare them.
But is there ...
Labrum asked 17/2, 2011 at 22:44
8
Solved
I have a very simple view as follows
def simple_view(request):
documents = request.user.document_set.all()
return render(request, 'simple.html', {'documents': documents})
To test the above vie...
Pless asked 17/4, 2013 at 11:16
7
I need to compare two strings which represent json objects. For testing purposes I need a way to compare these strings ignoring not only the child elements order (which is quite common) but order o...
Kreplach asked 11/11, 2011 at 19:26
9
Solved
I just found that this will work:
echo $value , " continue";
but this does not:
return $value , " continue";
While . works instead of , in both the echo and return statements....
Laurellaurella asked 23/9, 2009 at 14:36
8
Solved
I am trying to determine if two images are the same in JavaScript (even if the source URLs are different).
My specific use case is within a Chrome extension (though this being a chrome extension do...
Saied asked 19/5, 2011 at 23:53
5
Solved
What's the most efficient (in time) way of checking if two relatively short (about 3-8 elements) lists are shifted copies of one another? And if so, determine and return the offset?
Here is the ex...
2
Solved
why need to use areItemsTheSame with areContentsTheSame at diffutil recyclerview?
i don't understand i think areItemsTheSame is enough to compare data?
is possible more explain to me?
thank you
Mika asked 9/5, 2022 at 20:42
3
Solved
I have two folders with images, they're all PNGs. One folder is a copy of the other with some images changed and some added. The filenames are the same but the image contents may be different. Othe...
Stevie asked 5/5, 2015 at 17:23
3
Solved
I'm currently trying to do some mahjong hand processing in OCaml and straight from the beginning I'm confronted with something that bugs me.
I'll give you examples based on cards because I don't w...
Kall asked 18/6, 2013 at 15:38
5
Solved
How do I check if two objects, e.g. dataframes, are value equal in R?
By value equal, I mean the value of each row of each column of one dataframe is equal to the value of the corresponding row an...
4
Notepad++ has a Compare Plugin tool for comparing text files, which operates like this:
Launch Notepad++ and open the two files you wish to run a comparison
check on.
Click the “Plugins” me...
4
Solved
I have two arrays that I need to check the difference upon and return the index of that difference.
For example, I currently have two arrays that get updated when the input's value is changed. The...
Pinzler asked 18/3, 2015 at 2:54
5
Solved
I am trying to compare elements of the same array. That means that i want to compare the 0 element with every other element, the 1 element with every other element and so on. The problem is that it...
6
I need to compare 2 folders "A" and "B" and get the list of files and folders newly added or modified.
I tried using Winmerge software but it is not comparing the files present inside the in...
© 2022 - 2024 — McMap. All rights reserved.