{"id":186828,"date":"2013-07-18T20:19:03","date_gmt":"2013-07-18T16:19:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=186828"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=186828","title":{"rendered":"<span class=\"post_title\">\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 MIME-\u0442\u0438\u043f\u043e\u0432<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440!<\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0439\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f mime \u0442\u0438\u043f\u0430 \u0444\u0430\u0439\u043b\u0430. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 \u043d\u0435\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u043b\u0441\u044f \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0441\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/c8c\/c32\/d49\/c8cc32d49a8496be0de6fd27d160dcd8.png\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044f \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u043b \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c:<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  <a href=\"http:\/\/stackoverflow.com\/questions\/8673407\/how-many-bytes-are-required-for-accurate-mime-type-detection\">Stack Overflow<\/a> \u0434\u0430\u0435\u0442 2 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044e:<\/p>\n<ol>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/File_signature\">File Signature<\/a> \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 2-4 \u0431\u0430\u0439\u0442\u043e\u0432. \u041e\u0434\u043d\u0430\u043a\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430, \u043a\u0430\u043a pdf.<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/List_of_file_signatures\">List of signatures<\/a> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432, \u043d\u043e \u043e\u043d \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u044b\u0439. \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u0448\u0435\u043b <a href=\"http:\/\/filesignatures.net\/index.php?page=all\">File Signatures<\/a>, \u0437\u0434\u0435\u0441\u044c \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u0432\u0441\u0435.<br \/>  \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u0432\u0441\u0435 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 pdf. \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0442\u043e \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0444\u0430\u0439\u043b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f pdf \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0431\u0430\u0439\u0442 (0x25 0x50 0x44 0x46), \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0431\u0430\u0439\u0442\u043e\u0432 libmagic \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u0447\u0442\u043e MIME-\u0442\u0438\u043f pdf-\u0444\u0430\u0439\u043b\u0430 \u2014 text\/plain, \u0430 \u0438\u0437 \u043f\u044f\u0442\u0438 \u2014 \u0432\u0435\u0440\u043d\u043e\u0435 application\/pdf. \u0417\u0430\u0442\u0440\u0443\u0434\u043d\u044f\u044e\u0441\u044c \u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0441 \u0447\u0435\u043c \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e, \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438.<\/li>\n<\/ol>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u044f. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0430 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 N \u0431\u0430\u0439\u0442 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u043c \u043a\u043e\u043f\u0438\u044f\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u044b\u0442\u0430\u043b\u0430\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0430 \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u0442\u0430\u043a\u043e\u0435 \u0431\u044b\u043b\u043e. \u0418 \u0442\u0430\u043a \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 MIME-\u0442\u0438\u043f \u0447\u0430\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u0442 \u0441 MIME-\u0442\u0438\u043f\u043e\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430. \u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u043f\u043e\u0440\u0442\u043e\u0432\u0430\u043b\u0430, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0439\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430. \u0412\u043e\u0442 \u0435\u0435 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;magic.h&gt; #include &lt;sys\/types.h&gt; #include &lt;dirent.h&gt; #include &lt;errno.h&gt; #include &lt;string.h&gt; #include &lt;sys\/stat.h&gt; #include &lt;fcntl.h&gt; #include &lt;unistd.h&gt;  #define TEST_DIR &quot;test-dir\/&quot; #define TMP_DIR &quot;tmp-dir\/&quot;  magic_t cookie;  \/\/ Detects how many bytes required for correct MIME-type of this file void detect_size(char *filename) {   int bytes = 1;   int infd, outfd;   char strin[100], strout[100], type[100];   char buf[4096];    strcpy(strin, TEST_DIR);   strcat(strin, filename);    strcpy(strout, TMP_DIR);   strcat(strout, filename);    while(1) {     \/\/ Make a copy of given file     infd = open(strin, O_RDONLY);     outfd = open(strout, O_RDWR | O_CREAT, 00666);     read(infd, &buf, bytes);     write(outfd, &buf, bytes);     lseek(infd, 0, SEEK_SET);     lseek(outfd, 0, SEEK_SET);      \/\/ Detect mime types of old and new      const char *mime_type = magic_descriptor(cookie, infd);     strcpy(type, mime_type);     mime_type = magic_descriptor(cookie, outfd);      \/\/ Check if mime type detected correctly     if (strcmp(mime_type, type) == 0) {       printf(&quot;%s detected correctly in %d bytes\\n&quot;, type, bytes);       unlink(strout);       return;     }      unlink(strout);     bytes++;   } }  int main() {   DIR *dirfd = opendir(TEST_DIR);   struct dirent entry, *result = NULL;    cookie = magic_open(MAGIC_MIME_TYPE | MAGIC_ERROR);   magic_load(cookie, NULL);    while(1) {     readdir_r(dirfd, &entry, &result);      if (result == NULL)       break;  \/\/ No more entries in this directory      if (!strcmp(entry.d_name, &quot;.&quot;) || !strcmp(entry.d_name, &quot;..&quot;))       continue;  \/\/ Ignore &quot;.&quot; and &quot;..&quot;      detect_size(entry.d_name);   }    magic_close(cookie);   closedir(dirfd);   exit(EXIT_SUCCESS); } <\/code><\/pre>\n<p>  \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u043a\u0438\u0434\u0430\u0432 \u043a\u0443\u0447\u043a\u0443 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043f\u0430\u043f\u043a\u0443 test-dir \u044f \u043d\u0430\u0447\u0430\u043b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0438 \u043a\u0430\u043a \u043d\u0435 \u0442\u044f\u043d\u0435\u0442 \u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u043e\u0435 \u0438 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u043d\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b. \u041f\u0440\u0438\u0432\u0435\u0434\u0438 \u0438\u0445 \u043a\u0440\u0430\u0442\u043a\u0443\u044e \u0441\u0432\u043e\u0434\u043a\u0443:<\/p>\n<p>  application\/x-sharedlib detected correctly in 18 bytes<br \/>  application\/msword detected correctly in 1793 bytes<br \/>  image\/gif detected correctly in 4 bytes<br \/>  application\/zip detected correctly in 4 bytes<br \/>  application\/x-dosexec detected correctly in 2 bytes<br \/>  application\/vnd.oasis.opendocument.presentation detected correctly in 85 bytes<br \/>  text\/html detected correctly in 14 bytes<br \/>  image\/jpeg detected correctly in 2 bytes<br \/>  application\/x-executable detected correctly in 18 bytes<br \/>  text\/x-makefile detected correctly in 1594 bytes<br \/>  application\/x-executable detected correctly in 18 bytes<br \/>  application\/x-gzip detected correctly in 2 bytes<br \/>  audio\/mpeg detected correctly in 2291 bytes<br \/>  text\/x-c detected correctly in 27 bytes<br \/>  audio\/x-flac detected correctly in 4 bytes<br \/>  application\/pdf detected correctly in 5 bytes<\/p>\n<p>  \u041e\u0442\u043c\u0435\u0447\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438:<\/p>\n<ul>\n<li>\u041d\u0443 \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0439 pdf, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442\u0441\u044f \u0432 5 \u0431\u0430\u0439\u0442, \u0430 \u043d\u0435 \u0432 4, \u043a\u0430\u043a \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c.<\/li>\n<li>\u0422\u043e \u0447\u0442\u043e MIME-\u0442\u0438\u043f jar \u0444\u0430\u0439\u043b\u043e\u0432 application\/zip. \u042f \u0441 \u0434\u0436\u0430\u0432\u043e\u0439 \u0437\u043d\u0430\u043a\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e, \u043d\u043e \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f.<\/li>\n<li>\u0418 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0432\u0441\u044e \u043a\u0440\u0443\u0442\u043e\u0441\u0442\u044c \u0438\u0434\u0435\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u0438\u043f \u0444\u0430\u0439\u043b\u0430 \u043f\u043e \u043f\u0435\u0440\u0432\u044b\u043c N \u0431\u0430\u0439\u0442\u0430\u043c \u043e\u043d\u0430, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c.<\/li>\n<\/ul>\n<p>  \u041d\u0443 \u044d\u0442\u043e \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0432\u0441\u0435, \u0447\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437, \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u043c\u043d\u043e\u0433\u043e \u043f\u0438\u0441\u0430\u0442\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439.<br \/>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/186828\/\"> http:\/\/habrahabr.ru\/post\/186828\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440!<\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0439\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f mime \u0442\u0438\u043f\u0430 \u0444\u0430\u0439\u043b\u0430. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 \u043d\u0435\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u043b\u0441\u044f \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0441\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/c8c\/c32\/d49\/c8cc32d49a8496be0de6fd27d160dcd8.png\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044f \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u043b \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c:<\/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-186828","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/186828","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=186828"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/186828\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}