Most voted "diff" questions
21 questions
Sort by count of
-
4
votes1
answer270
viewsA: Insert date difference in a time difference function
I found a function made by J.Ahumada and found it super interesting, everything to do with my work. The function is to separate photographic records of a species into a given sample unit(ua) from a…
-
3
votes2
answers92
viewsHow to take the signature of changed methods in a commit
So guys, I need to subscribe to all the methods that were changed in a commit, whether updated, removed or added. Example: In this commit The changed methods were: - br.ufrn.ase.Classe1.metodoB(int…
-
3
votes1
answer530
viewsR - How to calculate the price change from one period to another?
Hello, I would like to know how to calculate the price variation from one period to another. Example: Year | Price 2007 | 25 2008 | 30 2009 | 7 2010 | 15 ... |...|... The new column would be: Year |…
-
3
votes1
answer171
viewsA - How to calculate the price variation for different periods and companies?
Hello, I would like to know how to calculate the price variation from one period to another. Being several years for several companies. Example: Company | Year | Price 1 |2007 | 25 1 | 2008 | 30 1…
-
3
votes1
answer91
viewsDiff changing lines
I’m comparing two files, which are updated daily, with the command diff -y in order to obtain two results: The first are the lines that have been modified overnight:…
-
3
votes1
answer649
viewsDiff between two commits
I’m making a git diff between two commits and in general it shows me the difference between the files that were modified in these commits. EX: git diff 1a1a1a 4d4d4d + Essa linha foi adicionada -…
-
2
votes2
answers467
viewsDiff without comparing spaces or line break
Someone knows some program capable of making a diff of 2 files, but that do not compare spaces or line breaks. Ex: I have a text file that can have spaces or line breaks. I don’t care about…
diffasked 10 years ago Bruno Rozendo 1,339 -
2
votes0
answers365
viewsdiff a file into a specific commit and HEAD
How can I compare the difference to HEAD and the last commit that contains a specific file? To find the last commit that contains the file read the information at git diff file Against its last…
-
2
votes2
answers207
viewsDoes the PHP Datetime class support the creation of dates in the Brazilian format?
In the code below echo be printing +273 days, but the right one wouldn’t be +9 days? $datetime1 = new DateTime('01/04/2018'); $datetime2 = new DateTime('10/04/2018'); $interval =…
-
2
votes1
answer730
viewsHow to calculate amplitude of each class in R?
I have the following variable in R set.seed(7) valor <- round(runif(35, min=30, max=100), 2) I want to calculate the amplitude (maximum value - minimum value) for each class of my data. To…
-
2
votes1
answer153
viewsHow to let the negative operator after using diff() in php
Good afternoon. I do not know if it was very clear but the following, use date_diff(), the problem is what, when I convert the interval $intervalo = date_interval_format($resultado, '%a') if the…
-
2
votes1
answer50
viewsFind diff between different arrays
GOAL I have two arrays where it contains different formatted information, but the data is the same, for example on ARRAY1 the CLIENTE1-00 and the same as CLIENTE1 of ARRAY2, I just need to do a…
-
1
votes1
answer119
viewsDiff Ignore blank spaces and line breaks
Does anyone know any diff tool capable of ignoring all blank spaces and line breaks? Ex: File1.html <html> <head> <title>Title</title> File2.html <html><head>…
diffasked 9 years, 3 months ago Bruno Rozendo 1,339 -
1
votes0
answers436
viewssubtraction in Diff R software
my level in R is beginner in case you can help me with a problem I will be grateful. I have a mathematical function that generates me a vector, and I have to subtract between the value of the second…
-
1
votes1
answer1303
viewsWhat is a git diff, how to do it, and what is it for?
I’m having a problem with my project. I make contributions to a git project, and when I check the Master branch, I saw that some methods are missing that you have in a branch, but don’t have in…
-
1
votes1
answer89
viewsError of calculating days interval between two dates using diff in PHP
I am having a difference of values when calculating the interval of days between two dates. I have the following: $data1 = new DateTime('2019-06-10'); $data2 = new DateTime('9999-12-31'); If I use…
-
1
votes1
answer100
viewsFile Additions and Deletions in a commit
I’m using the remote git log --stat <commit> to get additions and deletions made to a commit. Ex: commit 1a1a Author: Gabriel Hardoim Date: 2018-08-20 20:30:40 arquivo.java | 3 +++ arquivo.css…
-
0
votes1
answer16
viewsHow to compile GNU Diffutils3 for use with Mediawiki on Windows?
I’m installing the Mediawiki on Windows but need to install the Diffutils3. I could only find the installer for the version 2.8.7, I think three has to compile. Could someone help me with this? Or…
-
0
votes1
answer68
viewsdate_diff returns incorrect difference
I was doing some tests with this function, but it returns an incorrect difference, as I do to get around it? Example: when compared the difference between day 01/01 with 01/03 return the difference…
-
-1
votes1
answer42
viewsDifference between dates to find the number of days
Hello, friends. I have a code where I calculate the difference in days between two dates. I need to pass the variables to the object instance, but it only works if I put the string manually. (1)…
-
-2
votes1
answer272
viewsCompare remote repositories
I have in git a code where my colleagues cloned and sent me pull requests, but I think there’s duplicate code between them. I added their repositories to my machine and want to compare a file from…