{"id":287425,"date":"2018-08-16T14:08:58","date_gmt":"2018-08-16T10:08:58","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=287425"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=287425","title":{"rendered":"\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 vcdiff"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/419883\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0432 \u043a\u0430\u043a\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043a\u0430\u043a \u0444\u0430\u0439\u043b JPEG \u0438\u0441\u043f\u043e\u0440\u0447\u0435\u043d \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438.<\/p>\n<p>  <\/p>\n<blockquote><p><a href=\"https:\/\/en.wikipedia.org\/wiki\/VCDIFF\">VCDIFF<\/a> \u2014 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0434\u0435\u043b\u044c\u0442\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/tools.ietf.org\/html\/rfc3284\">RFC 3284<\/a>.<\/p>\n<p>  <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%94%D0%B5%D0%BB%D1%8C%D1%82%D0%B0-%D0%BA%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5\">\u0414\u0435\u043b\u044c\u0442\u0430-\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u0430\u043d\u0433\u043b. Delta encoding)<\/a> \u2014 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 \u0440\u0430\u0437\u043d\u0438\u0446\u044b (\u0434\u0435\u043b\u044c\u0442\u044b) \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0430\u043c\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p><\/blockquote>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435 Windows-1251 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438. \u041d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0443\u0441\u043f\u0435\u0445\u043e\u043c \u044d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code>\"\u043a\u043e\u043f\u0438\u044f    \u0442\u0435\u043a\u0441\u0442    \u043a\u043e\u043f\u0438\u044f\"       ( source.txt ) \"\u043a\u043e\u043f\u0438\u044f    \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f    \u043a\u043e\u043f\u0438\u044f\"   ( target.txt )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0444\u0430\u0439\u043b\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<pre><code>\"         \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f         \"   ( source.txt -&gt; target.txt ) \"         \u0442\u0435\u043a\u0441\u0442         \"       ( target.txt -&gt; source.txt )<\/code><\/pre>\n<p>  <\/p>\n<p>\u042f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Xdelta\">xdelta3<\/a> \u043d\u043e \u0434\u0443\u043c\u0430\u044e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u043b\u044e\u0431\u0430\u044f \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c vcdiff.<\/p>\n<p>  <\/p>\n<h2 id=\"kak-poluchit\">\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<pre><code>\"                           \" ( spaces.txt )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u0444\u0430\u0439\u043b\u0443 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443 ( source.txt )<\/p>\n<p>  <\/p>\n<p><strong>\u041a\u043e\u043c\u0430\u043d\u0434\u0430:<\/strong> <\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -e -A -n -s source.txt target.txt | xdelta3 -d -s spaces.txt<\/code><\/pre>\n<p>  <\/p>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/strong><\/p>\n<p>  <\/p>\n<pre><code>         \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f         <\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u043b\u0430\u0433\u0438:<br \/>  <code>-e<\/code> \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u044c\u0442\u044b<br \/>  <code>-A<\/code> \u2014 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u043b\u0438\u0448\u043d\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<br \/>  <code>-n<\/code> \u2014 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 crc (\u043e\u043d \u043d\u0435 \u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0435\u043b\u044c\u0442\u0443 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c)<br \/>  <code>-s [\u0444\u0430\u0439\u043b]<\/code> \u2014 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f<br \/>  <code>-d<\/code> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 \u0434\u0435\u043b\u044c\u0442\u044b \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"kak-eto-rabotaet\">\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -e -A -n -s source.txt target.txt | xdelta3 printdelta<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0443\u0432\u0438\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b VCDIFF<\/p>\n<p>  <\/p>\n<pre><code>  Offset Code Type1 Size1  @Addr1 + Type2 Size2 @Addr2   000000 025  CPY_0      9 S@0   000009 010  ADD        9   000018 025  CPY_0      9 S@14<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442 VCDIFF \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0443\u0442\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u041e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 3\u0445 \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n<p>  <\/p>\n<p><code>COPY<\/code> (\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c) \u2014 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u043b\u0438 \u0446\u0435\u043b\u0438<br \/>  <code>ADD<\/code> (\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c) \u2014 \u043f\u0438\u0448\u0435\u0442 \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0435 \u0432 \u0434\u0435\u043b\u044c\u0442\u0435 (\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435)<br \/>  <code>RUN<\/code> (\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c) \u2014 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043e\u0434\u0438\u043d \u0431\u0430\u0439\u0442 \u0438\u0437 \u0434\u0435\u043b\u044c\u0442\u044b \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437<\/p>\n<p>  <\/p>\n<p>\u0414\u0435\u043b\u044c\u0442\u0430 \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -e -A -n -s source.txt target.txt &gt; target.vcdiff<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0432 \u0434\u0435\u043b\u044c\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0432\u043e &#171;\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f&#187; \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435<\/p>\n<p>  <\/p>\n<pre><code>D0A6D093D094200102011720131B2009 0302\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f190D0A19200E<\/code><\/pre>\n<p>  <\/p>\n<p>(<em>JSON \u043d\u0435 \u043b\u044e\u0431\u0438\u0442 \u0441\u043f\u0435\u0446 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0435\u0440\u0435\u0432\u0451\u043b \u0438\u0445 \u0432 HEX<\/em>)<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0435\u043b\u044c\u0442\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 (source.txt) \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b (target.txt)<\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -d -s source.txt target.vcdiff \u043a\u043e\u043f\u0438\u044f    \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f    \u043a\u043e\u043f\u0438\u044f<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043c\u0435\u043d\u0438\u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a (source.txt) \u043d\u0430 \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438 (spaces.txt) \u043c\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0442\u0441\u044f \u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 \u0438 \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0430 \u043f\u0440\u043e\u0431\u0435\u043b\u044b.<\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -d -s spaces.txt target.vcdiff          \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f         <\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 spaces.txt \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b spaces.txt \u0431\u044b\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043b\u0438\u0431\u043e \u0440\u0430\u0432\u0435\u043d \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u0444\u0430\u0439\u043b\u0443 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e JPEG \u0444\u0430\u0439\u043b\u044b \u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043b \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -e -A -n -s bad_image.jpg good_image.jpg | xdelta3 -d -s spaces.txt<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           F488A2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            F2AB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0438 \u0431\u0430\u0439\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 &#171;\u043f\u043e\u0431\u0438\u0442\u044b&#187;. \u0411\u0438\u0442\u044b\u0435 \u0431\u0430\u0439\u0442\u044b \u043f\u0435\u0440\u0435\u0432\u0451\u043b \u0432 HEX.<\/p>\n<p>  <\/p>\n<h2 id=\"testovye-jpeg-fayly-na-kotoryh-vy-mozhete-protestirovat-sposoby-sravneniya\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 jpeg \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f:<\/h2>\n<p>  <\/p>\n<table>\n<thead>\n<tr>\n<th><a href=\"https:\/\/ivan386.github.io\/magnet-converter\/#magnet:?xl=18821&amp;dn=tortoise.jpg&amp;xt=urn:sha1:y4ilmdugzeydfsmdng4tfxnlfngpholz&amp;xt=urn:tree:tiger:ifkxowe6iejcv4rd72aojfbav2crrkm7ix3rudq&amp;xt=urn:ed2k:1a0e055cd5ba76c683ffa913cb92101d&amp;xt=urn:sha256:916c7a8044f4a07bfbceba4091bd886bdf44d84e530fc9899bb5486aa536fc72&amp;ws=http:\/\/ivan386.github.io\/tortoise\/tortoise.jpg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/36d\/e84\/436\/36de844369c56da25bbec2134f267b35.svg\" alt=\"magnet\"><\/a><a href=\"https:\/\/ivan386.github.io\/tortoise\/tortoise.jpg\">tortoise.jpg<\/a> (18\u00a0821 b)<\/th>\n<th><a href=\"https:\/\/ivan386.github.io\/magnet-converter\/#magnet:?xl=18829&amp;dn=tortoise_bad.jpg&amp;xt=urn:sha1:jawjjbf6n7goc3lpq2lk5ikg4cp3rd4d&amp;xt=urn:tree:tiger:ieh2qgwbs6hfyu7xhugq5t6anqgw6nd44ibldti&amp;xt=urn:ed2k:81b22ac707b26ba7e30e6e595c467b3f&amp;xt=urn:sha256:b2f48db912d68e68d8d9bb48ec6fbf5ab6cf7160f08a801a6952247fddc8ea85&amp;ws=http:\/\/ivan386.github.io\/tortoise\/tortoise_bad.jpg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/36d\/e84\/436\/36de844369c56da25bbec2134f267b35.svg\" alt=\"magnet\"><\/a><a href=\"https:\/\/ivan386.github.io\/tortoise\/tortoise_bad.jpg\">tortoise_bad.jpg<\/a> (18\u00a0829 b)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/ivan386.github.io\/tortoise\/tortoise.jpg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/il\/kd\/rl\/ilkdrlzomd3jwpe3s_osj-vvpfw.jpeg\" alt=\"tortoise.jpg\"><\/a><\/td>\n<td><a href=\"https:\/\/ivan386.github.io\/tortoise\/tortoise_bad.jpg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zk\/hk\/nv\/zkhknvuzulrcqc92aocitt6sfeg.jpeg\" alt=\"tortoise_bad.jpg\"><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>  <\/p>\n<pre><code>xdelta3 -e -A -n -s tortoise_bad.jpg tortoise.jpg | xdelta3 -d -s spaces.txt<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             F1BF                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     F0B786                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          F39BAF                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     F3BD94                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0411\u0438\u0442\u044b\u0435 \u0431\u0430\u0439\u0442\u044b \u043f\u0435\u0440\u0435\u0432\u0451\u043b \u0432 HEX.<\/p>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/419883\/\"> https:\/\/habr.com\/post\/419883\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/419883\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0432 \u043a\u0430\u043a\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043a\u0430\u043a \u0444\u0430\u0439\u043b JPEG \u0438\u0441\u043f\u043e\u0440\u0447\u0435\u043d \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438.<\/p>\n<p>  <\/p>\n<blockquote><p><a href=\"https:\/\/en.wikipedia.org\/wiki\/VCDIFF\">VCDIFF<\/a> \u2014 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0434\u0435\u043b\u044c\u0442\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/tools.ietf.org\/html\/rfc3284\">RFC 3284<\/a>.<\/p>\n<p>  <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%94%D0%B5%D0%BB%D1%8C%D1%82%D0%B0-%D0%BA%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5\">\u0414\u0435\u043b\u044c\u0442\u0430-\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u0430\u043d\u0433\u043b. Delta encoding)<\/a> \u2014 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 \u0440\u0430\u0437\u043d\u0438\u0446\u044b (\u0434\u0435\u043b\u044c\u0442\u044b) \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0430\u043c\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p><\/blockquote>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435 Windows-1251 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438. \u041d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0443\u0441\u043f\u0435\u0445\u043e\u043c \u044d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code>\"\u043a\u043e\u043f\u0438\u044f    \u0442\u0435\u043a\u0441\u0442    \u043a\u043e\u043f\u0438\u044f\"       ( source.txt ) \"\u043a\u043e\u043f\u0438\u044f    \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f    \u043a\u043e\u043f\u0438\u044f\"   ( target.txt )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0444\u0430\u0439\u043b\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<pre><code>\"         \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f         \"   ( source.txt -&gt; target.txt ) \"         \u0442\u0435\u043a\u0441\u0442         \"       ( target.txt -&gt; source.txt )<\/code><\/pre>\n<p>  <\/p>\n<p>\u042f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Xdelta\">xdelta3<\/a> \u043d\u043e \u0434\u0443\u043c\u0430\u044e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u043b\u044e\u0431\u0430\u044f \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c vcdiff.<\/p>\n<p>  <\/p>\n<h2 id=\"kak-poluchit\">\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<pre><code>\"                           \" ( spaces.txt )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u0444\u0430\u0439\u043b\u0443 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443 ( source.txt )<\/p>\n<p>  <\/p>\n<p><strong>\u041a\u043e\u043c\u0430\u043d\u0434\u0430:<\/strong> <\/p>\n<p>  <\/p>\n<pre><code>xdelta3 -e -A -n -s source.txt target.txt | xdelta3 -d -s spaces.txt<\/code><\/pre>\n<p>  <\/p>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/strong><\/p>\n<p>  <\/p>\n<pre><code>         \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f         <\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u043b\u0430\u0433\u0438:<br \/>  <code>-e<\/code> \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u044c\u0442\u044b<br \/>  <code>-A<\/code> \u2014 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u043b\u0438\u0448\u043d\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<br \/>  <code>-n<\/code> \u2014 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 crc (\u043e\u043d \u043d\u0435 \u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0435\u043b\u044c\u0442\u0443 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c)<br \/>  <code>-s [\u0444\u0430\u0439\u043b]<\/code> \u2014 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f<br \/>  <code>-d<\/code> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 \u0434\u0435\u043b\u044c\u0442\u044b \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-287425","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=287425"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287425\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}