Questions tagged [difference]

This tag may refer to 1) the difference between two numbers (i.e. the difference between 5 and 10 is 5) or 2) the things that two or more particular objects do not share in common.

Use this tag for questions that deal with either of the following two topics:

  1. The difference between two numbers.
  2. What two or more particular objects do not share in common.

Related tags:

1970 questions
18
votes
3 answers

Time difference within group by objects in Python Pandas

I have a dataframe that looks like this: from to datetime other ------------------------------------------------- 11 1 2016-11-06 22:00:00 - 11 1 2016-11-06 20:00:00 - 11 1 …
Gingerbread
  • 1,938
  • 8
  • 22
  • 36
18
votes
2 answers

What is with this change of unpacking behavior from Python2 to Python3

Yesterday I came across this odd unpacking difference between Python 2 and Python 3, and did not seem to find any explanation after a quick Google search. Python 2.7.8 a = 257 b = 257 a is b # False a, b = 257, 257 a is b # False Python 3.4.2 a =…
17
votes
5 answers

How to find differences between two JavaScript arrays of objects?

I have two JavaScript arrays orig (the original array of objects) and update (the updated orig array of objects) that have the same length and contain objects, and I want to output the differences between the each pair of objects. Example: var orig…
Valip
  • 4,440
  • 19
  • 79
  • 150
17
votes
5 answers

how to get time difference in minutes in rails for two date time fields?

i want to calculate time difference in minutes between two date_time fields.like created_at and updated_at kind of fields. i want the result like this updated_at - created_at = some minutes. these times are present in time zone of INDIA. how can…
John
  • 1,273
  • 3
  • 27
  • 61
16
votes
1 answer

What is the difference between ORM and micro ORM?

Please mention the difference between (big) ORM and micro ORM. What are the advantages of micro ORM over big ORM. For eg. the difference between entity framework ORM and dapper micro ORM.
Brillian
  • 1,411
  • 2
  • 16
  • 23
16
votes
6 answers

What is the difference between .Value = "" and .ClearContents?

If I run the following code Sub Test_1() Cells(1, 1).ClearContents Cells(2, 1).Value = "" End Sub When I check Cells(1, 1) and Cells(2, 1) using formula ISBLANK() both results return TRUE. So I'm wondering: What is the difference between…
15
votes
3 answers

Get the property of the difference between two objects in javascript

Let's say that I have an object which looks like this: { prop1: false, prop2: false, prop3: false } and another object which looks like this: { prop1: false, prop2: true, prop3: false } where the difference is within the prop2…
milestrong
  • 237
  • 1
  • 3
  • 10
15
votes
1 answer

File.separator vs. File.pathSeparator

File has the static Strings separator and pathSeparator. The separator is a "default name-separator character" and the pathSeparator is a "path-separator character". What is the difference? Is there a time when one is preferable to the other?
Evorlor
  • 7,263
  • 17
  • 70
  • 141
15
votes
2 answers

Difference between ehcache and ehcache-core

I am beginner for ehcache v/s ehcache-core in Spring framework, my pom.xml used ehcache version 1.5.0 net.sf.ehcache ehcache 1.5.0 Now, it will need to update…
user2317982
  • 185
  • 1
  • 7
14
votes
3 answers

Java Enum vs T as variable type

Is there any difference between this declaration Thread.State state = Thread.State.NEW; and that Enum state = Thread.State.NEW; in Java? Instead of the second option is a bit longer?
k13i
  • 4,011
  • 3
  • 35
  • 63
14
votes
2 answers

Difference between &Struct{} vs Struct{}

Is there a reason why I should create a struct using &StructName{} instead of Struct{}? I see many examples using the former syntax, even in the Effective Go Page but I really can not understand why. Additional Notes: I'm not sure whether I…
linirod
  • 371
  • 3
  • 9
14
votes
3 answers

what is the difference between browser DOM tree and render tree

I would like to know about the "dom tree" and "render tree" difference ? Is the render tree constructed from the "dom tree" or It is different tree made by browser ?
Jaswant Mandloi
  • 335
  • 3
  • 7
14
votes
6 answers

It's mysql or mysqld?

recently I've installed Mysql and it turns out the service name of it is "mysql" (there no "d" suffix), I remember before this time it's "mysqld" all the time. And when you type in "sudo service mysqld status" it would say this service does not…
Kevin
  • 795
  • 2
  • 9
  • 21
13
votes
1 answer

Telegram API vs Bot API

Can you help me understand the differences for Telegram API vs Bot API please, I tried telegram website but just get confused? Thanks Ramin
Ramin Rabii
  • 359
  • 4
  • 14
12
votes
1 answer

How to convert a timedelta to minutes?

I want to calculate the difference in minutes between two datetimes. My current code results in a timedelta of '1 day, 23:33:00'. My question is how can I convert this to minutes (or generate the timedelta in minutes)? import datetime import…
Rosco
  • 121
  • 1
  • 1
  • 4