{"id":3929,"date":"2012-01-27T20:57:06","date_gmt":"2012-01-27T19:57:06","guid":{"rendered":"http:\/\/djalil.chafai.net\/blog\/?p=3929"},"modified":"2014-06-17T18:41:50","modified_gmt":"2014-06-17T16:41:50","slug":"3929","status":"publish","type":"post","link":"https:\/\/djalil.chafai.net\/blog\/2012\/01\/27\/3929\/","title":{"rendered":"Diff-icile de faire plus simple"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2012\/01\/tkdiff.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-3930 size-medium\" title=\"tkdiff\" src=\"http:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2012\/01\/tkdiff-300x125.jpg\" alt=\"tkdiff\" width=\"300\" height=\"125\" srcset=\"https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2012\/01\/tkdiff-300x125.jpg 300w, https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2012\/01\/tkdiff.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong><a href=\"http:\/\/en.wikipedia.org\/wiki\/Diff\">Diff<\/a><\/strong> is a standard utility from the Unix world outputting the differences between two files. Even if diff can handle binary files, it is used mostly to compare two versions of a text file. For mathematicians, diff is helpful for the comparison of <a href=\"http:\/\/en.wikipedia.org\/wiki\/LaTeX\">$\\LaTeX$<\/a> files written with co-authors, in particular via its graphical user interface <strong><a href=\"http:\/\/sourceforge.net\/projects\/tkdiff\/\">tkdiff<\/a><\/strong> written in <a href=\"http:\/\/en.wikipedia.org\/wiki\/Tcl\">Tcl<\/a>\/<a href=\"http:\/\/en.wikipedia.org\/wiki\/Tk_%28framework%29\">Tk<\/a>. If you use GNOME, you make take a look at <strong><a href=\"http:\/\/en.wikipedia.org\/wiki\/Meld_%28software%29\">meld<\/a><\/strong>. There is also <strong><a href=\"http:\/\/www.qtrac.eu\/diffpdf.html\">diffpdf<\/a><\/strong>, which is very convenient to compare two versions of a PDF file. There is another well known utility called <strong><a href=\"http:\/\/en.wikipedia.org\/wiki\/Patch_%28Unix%29\">patch<\/a><\/strong>, a sort of reversed diff, used millions of times a day for software development, worldwide. On the technical side, diff relies on an <a href=\"http:\/\/en.wikipedia.org\/wiki\/Diff#Algorithm\">algorithm<\/a> for solving the <strong><a href=\"http:\/\/en.wikipedia.org\/wiki\/Longest_common_subsequence_problem\">longest common subsequence problem<\/a><\/strong>. By the way, if you are curious about text algorithms, you may take a look at the (free!) books written by <a href=\"http:\/\/igm.univ-mlv.fr\/~mac\/\">Maxime Crochemore<\/a>, from <a href=\"http:\/\/en.wikipedia.org\/wiki\/Marne-la-Vall%C3%A9e\">Marne-la-Vall\u00e9e<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Diff is a standard utility from the Unix world outputting the differences between two files. Even if diff can handle binary files, it is used&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/djalil.chafai.net\/blog\/2012\/01\/27\/3929\/\">Continue reading<span class=\"screen-reader-text\">Diff-icile de faire plus simple<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":59},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/3929"}],"collection":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/comments?post=3929"}],"version-history":[{"count":42,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/3929\/revisions"}],"predecessor-version":[{"id":7427,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/3929\/revisions\/7427"}],"wp:attachment":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/media?parent=3929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/categories?post=3929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/tags?post=3929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}