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
43
votes
3 answers

what is the usage of HTML5 figure with img

Is there any specific advantage/usage of using HTML5
over ? I think
is useless without , isn't it? It will be helpful if explain with an example.
xkeshav
  • 53,360
  • 44
  • 177
  • 245
40
votes
2 answers

Difference between ANSI and Unicode drivers of MySQL

On choosing Data Source under ODBC (64-Bit) on Windows, i get two available options of MySQL Database: MySQL ODBC 5.3 ANSI Driver MySQL ODBC 5.3 Unicode Driver What are the difference between these two?
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
39
votes
1 answer

How to compare/show the difference between 2 videos in ffmpeg?

I am a newbie at encoding. I have read and tried x264 in lossless mode (-qp 0), however I'd like to make sure that in my new video, every single pixel contains the same information as the source file (which is in YUV 420 so the loss of color…
polarka
  • 546
  • 1
  • 5
  • 9
37
votes
2 answers

(git) diff output relative path?

I need to get some diffs in my repo that are not relative to the base of the repo, but instead relative to a given base or given path. By default I get: git diff diff --git a/path/to/file b/path/to/file index 0cc125e..9bf911e 100644 ---…
user318904
  • 2,968
  • 4
  • 28
  • 37
36
votes
2 answers

What is the Difference Between x:Key, x:Name, and x:UID in a DataTemplate in WPF?

I am trying to create dynamic tabs in WPF, and I'm trying to write a content template that will only apply to some tab items. I want to be able to create an identifier for the content template so that I can reference it in the code behind, and so…
user3685285
  • 6,066
  • 13
  • 54
  • 95
35
votes
6 answers

Calculate time difference in minutes in SQL Server

I need the time difference between two times in minutes. I am having the start time and end time as shown below: start time | End Time 11:15:00 | 13:15:00 10:45:00 | 18:59:00 I need the output for first row as 45,60,15 which corresponds…
prabu R
  • 2,099
  • 12
  • 32
  • 41
34
votes
6 answers

How do I get PyCharm to show entire error diffs from pytest?

I am using Pycharm to run my pytest unit tests. I am testing a REST API, so I often have to validate blocks of JSON. When a test fails, I'll see something like this: FAILED test_document_api.py:0 (test_create_documents) {'items': [{'i...ages': 1,…
W.P. McNeill
  • 16,336
  • 12
  • 75
  • 111
34
votes
4 answers

Difference between np.dot and np.multiply with np.sum in binary cross-entropy loss calculation

I have tried the following code but didn't find the difference between np.dot and np.multiply with np.sum Here is np.dot code logprobs = np.dot(Y, (np.log(A2)).T) + np.dot((1.0-Y),(np.log(1 - A2)).T) print(logprobs.shape) print(logprobs) cost =…
Asad Shakeel
  • 1,949
  • 1
  • 23
  • 29
34
votes
5 answers

Differences between ComboBox and ChoiceBox in JavaFX

What are the differences between ComboBox and ChoiceBox in JavaFX? I'm not entirely clear on that just from the Javadoc for both classes. At the end of the day, I need a dropdown control that can be repopulated dynamically at runtime (I've got a…
Slayer0248
  • 1,231
  • 3
  • 15
  • 26
33
votes
2 answers

css difference between background: and background-image:

quick simple question In the following example of an external CSS page; body { background-image: url(background.jpg); } header { background: url(background.jpg); } I understand they are effecting different element selectors, my question is…
epicT
  • 353
  • 1
  • 3
  • 6
31
votes
1 answer

How to calculate time difference by group using pandas?

Problem I want to calculate diff by group. And I don’t know how to sort the time column so that each group results are sorted and positive. The original data : In [37]: df Out[37]: id time 0 A 2016-11-25 16:32:17 1 A 2016-11-25…
Jack
  • 1,724
  • 4
  • 18
  • 33
30
votes
1 answer

Regex difference: (\w+)? and (\w*)

Is there any difference between (\w+)? and (\w*) in regex? It seems the same, doesn't it?
爱国者
  • 4,298
  • 9
  • 47
  • 66
28
votes
8 answers

In C# what is the difference between the upper and lower case String/string?

Newbie here, in C# what is the difference between the upper and lower case String/string?
KazarT
27
votes
1 answer

Difference between Ctrl K + D and Ctrl E + D

What is the difference between the Visual Studio 2010 shortcuts Ctrl E + D and Ctrl K + D?
user887983
24
votes
7 answers

Difference between "import X" and "from X import *"?

In Python, I'm not really clear on the difference between the following two lines of code: import X or from X import * Don't they both just import everything from the module X? What's the difference?
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220