{"id":290605,"date":"2018-10-10T19:00:02","date_gmt":"2018-10-10T15:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=290605"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=290605","title":{"rendered":"\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u043e\u0432 \u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439 \u0432 \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u0443"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<blockquote><p>\u0410\u043d\u0430\u0433\u0440\u0430\u0301\u043c\u043c\u0430 (\u043e\u0442 \u0433\u0440\u0435\u0447. \u03b1\u03bd\u03b1- \u2014 \u00ab\u043f\u0435\u0440\u0435\u00bb \u0438 \u03b3\u03c1\u03ac\u03bc\u03bc\u03b1 \u2014 \u00ab\u0431\u0443\u043a\u0432\u0430\u00bb) \u2014 \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043f\u0440\u0438\u0435\u043c, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0432 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u0443\u043a\u0432 \u0438\u043b\u0438 \u0437\u0432\u0443\u043a\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 (\u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f), \u0447\u0442\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435  <\/p><\/blockquote>\n<p>  \u0410\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b (\u0448\u0430\u0440\u0430\u0434\u044b, \u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434\u0430 \u0438 \u0442.\u043f.).<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c \u0438\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u043e\u0432 \u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439.<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0420\u0430\u0431\u043e\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u00ab\u0432 \u0431\u043e\u0435\u0432\u043e\u043c\u00bb, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c <a href=\"http:\/\/fv.memorandum.ru\/index.php?act=rndquest\"><b>\u0437\u0434\u0435\u0441\u044c<\/b><\/a>.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u00ab\u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u043d\u043d\u043e\u0439\u00bb \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u041b\u0435\u0432\u0435\u043d\u0448\u0442\u0435\u0439\u043d\u0430.<br \/>  \u0414\u043b\u044f \u0441\u043b\u043e\u0432 \u0434\u043b\u0438\u043d\u043e\u0439 \u0432 \u0442\u0440\u0438 \u0431\u0443\u043a\u0432\u044b \u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u2014 \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435\u0442.<br \/>  \u041a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 \u2014 UTF-8.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 GetAnagramm \u043f\u043e\u0434\u0430\u0451\u043c \u0441\u043b\u043e\u0432\u043e \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435, \u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 GetWordAnagramm \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u0441\u0435 \u0431\u0443\u043a\u0432\u044b \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432 SPAN-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b HTML (\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b CSS-\u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434.<\/p>\n<pre><code class=\"php\">\/\/\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u043b\u043e\u0432\u0430 \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f function GetAnagramm($anagramm) {     $out_anagramm = &quot;&quot;;     $len_anagramm = mb_strlen($anagramm,'UTF-8');     $int_anagramm = (int)$anagramm;     if ($len_anagramm &gt; 3 && $int_anagramm == 0)     {         mb_regex_encoding('UTF-8');         mb_internal_encoding('UTF-8');         $wordslist = preg_split('[-| ]', $anagramm);         $out_anagramm = &quot;&quot;;         $len_anagramm = 0;         $i = 0;         foreach ( $wordslist as $value)         {             $len_anagramm = $len_anagramm + mb_strlen($value,'UTF-8');             $simbol = mb_substr($anagramm, $len_anagramm+$i, 1, 'UTF-8');             $span = &quot;&quot;;             if ($simbol &lt;&gt; &quot;&quot;) $span = &quot;&lt;span class=\\&quot;annagramm\\&quot;&gt;&quot;.$simbol.&quot;&lt;\/span&gt;&nbsp;&quot;;             if (mb_strlen($value,'UTF-8') == 1)             {                 $out_anagramm .= &quot;&lt;span class=\\&quot;annagramm\\&quot;&gt;&quot;.$value.&quot;&lt;\/span&gt; &quot;.$span;             }else{                 $out_anagramm .= GetWordAnagramm($value).$span;             }             $i++;         }     }     return $out_anagramm; }  \/\/\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0430\u043d\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 function GetWordAnagramm($anagramm) {     $an_div = &quot;&quot;;     $array_an = preg_split('\/\/u',$anagramm,-1,PREG_SPLIT_NO_EMPTY);     $j = 0;     $maxLeven = 0;     while ($j &lt; 10)     {         srand((float)microtime() * 1000000);         shuffle($array_an);         $an = &quot;&quot;;         $ot = &quot;&quot;;         $i = 0;         foreach ( $array_an as $value )         {             $an .= $value.&quot; &quot;;             $ot .= mb_substr ($anagramm, $i, 1, 'UTF-8').&quot; &quot;;             $i++;         }         $leven = levenshtein ($an,$ot);         $j++;         if ($leven &gt; $maxLeven)         {             $maxLeven = $leven;             $best_array_an = $array_an;         }     }      $an_div = &quot;&quot;;     foreach ( $best_array_an as $value )     {         $an_div .= &quot;&lt;span class=\\&quot;annagramm\\&quot;&gt;&quot;.$value.&quot;&lt;\/span&gt; &quot;;     }     return $an_div; } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c CSS-\u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f SPAN-\u043a\u043b\u0430\u0441\u0441\u0430 annagramm:<\/p>\n<pre><code class=\"css\">span.annagramm {     background-color: #ffffff;     border-style: outset;     border-width: 1px;     border-color: #cccccc;     -webkit-border-radius: 4px;     -moz-border-radius:4px;     border-radius: 4px;     padding: 4px;     padding-left: 6px;     padding-right: 6px;     margin-left: 1px;     margin-right: 1px;     margin-top: 6px;     margin-bottom: 6px;     font-weight: bold;     color: #4f4ba8;     font-size: 11pt;     text-transform: uppercase;     box-shadow: 0 1px 4px rgba(0, 0, 0, .3), -23px 0 20px -23px rgba(0, 0, 0, .8), 23px 0 20px -23px rgba(0, 0, 0, .8), 0 0 40px rgba(0, 0, 0, .1) inset; } <\/code><\/pre>\n<p>  \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u00ab\u043a\u0440\u0430\u0441\u043e\u0442\u0443\u00bb:<br \/>  <img decoding=\"async\" src=\"http:\/\/fv.memorandum.ru\/common\/Cache\/pics\/screen79.jpg\" alt=\"image\"\/><br \/>  \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442: <b>\u0410\u0433\u0430\u0444\u043e\u043d \u041d\u0438\u043a\u0438\u0442\u0438\u043d<\/b>.<\/p><\/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\/425975\/\"> https:\/\/habr.com\/post\/425975\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<blockquote><p>\u0410\u043d\u0430\u0433\u0440\u0430\u0301\u043c\u043c\u0430 (\u043e\u0442 \u0433\u0440\u0435\u0447. \u03b1\u03bd\u03b1- \u2014 \u00ab\u043f\u0435\u0440\u0435\u00bb \u0438 \u03b3\u03c1\u03ac\u03bc\u03bc\u03b1 \u2014 \u00ab\u0431\u0443\u043a\u0432\u0430\u00bb) \u2014 \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043f\u0440\u0438\u0435\u043c, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0432 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u0443\u043a\u0432 \u0438\u043b\u0438 \u0437\u0432\u0443\u043a\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 (\u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f), \u0447\u0442\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435  <\/p><\/blockquote>\n<p>  \u0410\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b (\u0448\u0430\u0440\u0430\u0434\u044b, \u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434\u0430 \u0438 \u0442.\u043f.).<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c \u0438\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u043e\u0432 \u0438 \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439.<\/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-290605","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/290605","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=290605"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/290605\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=290605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=290605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=290605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}