{"id":190122,"date":"2013-08-15T05:21:04","date_gmt":"2013-08-15T01:21:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=190122"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=190122","title":{"rendered":"<span class=\"post_title\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0432 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432\u043e \u0431\u043b\u0430\u0433\u043e<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d83\/26d\/dec\/d8326ddec8b761b84bb119b0a3012cd6.jpg\" align=\"left\"\/>\u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u0430 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0430\u0439\u0442\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u043f\u0440\u043e\u0441\u044f\u0442 \u0435\u0433\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0434\u0440\u0435\u0441. \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043b\u0438, \u0434\u043b\u044f \u043e\u0442\u0441\u044b\u043b\u043a\u0438 \u0431\u0443\u043c\u0430\u0436\u043d\u043e\u0433\u043e <s>\u0441\u043f\u0430\u043c\u0430<\/s> \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043b\u0438. \u0418, \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u2014 \u044d\u0442\u043e \u043c\u0435\u043b\u043e\u0447\u044c. \u0412\u0431\u0438\u043b \u0438\u043d\u0434\u0435\u043a\u0441, <s>\u041c\u043e\u0441\u043a\u0432\u0430, <\/s>\u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0440\u0430\u0439\u043e\u043d, \u0441\u0435\u043b\u043e, \u0443\u043b\u0438\u0446\u0430, \u0434\u043e\u043c, \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430. \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0447\u0442\u043e \u0442\u0443\u0442 \u0443\u043f\u0440\u043e\u0449\u0430\u0442\u044c, \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0440\u043e\u0434\u0435 \u043f\u043e\u043c\u043d\u0438\u0442 \u0441\u0432\u043e\u0439 \u0430\u0434\u0440\u0435\u0441, \u0442\u0440\u0443\u0434\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0432\u0431\u0438\u0442\u044c? \u041d\u043e \u0434\u044c\u044f\u0432\u043e\u043b, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u043b\u043e\u0447\u0430\u0445: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u0434\u0440\u0435\u0441\u0435, \u043f\u043e\u0441\u044b\u043b\u043a\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u0442\u0443\u0434\u0430, \u043b\u0443\u0447\u0438 \u043f\u043e\u043d\u043e\u0441\u0430 \u0438\u0434\u0443\u0442 \u0432\u0430\u043c \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043a\u0430\u0440\u043c\u0430 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f (\u043d\u0435\u0442, \u043d\u0435 \u0442\u0430, \u0447\u0442\u043e \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0445 \u0442\u0430\u043c \u0441\u0430\u0439\u0442\u0430\u0445).<\/p>\n<p>  \u041f\u0440\u0438\u0433\u043b\u044f\u0434\u0438\u0442\u0435\u0441\u044c \u043a \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u2014 \u0438\u043d\u0434\u0435\u043a\u0441\u0443. \u0412 \u044d\u0442\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0437 \u0448\u0435\u0441\u0442\u0438 \u0446\u0438\u0444\u0440 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0440\u0430\u0439\u043e\u043d \u0438 \u0433\u043e\u0440\u043e\u0434\/\u0441\u0435\u043b\u043e. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c. \u042d\u0442\u0438\u043c \u043c\u044b \u0443\u0431\u044a\u0451\u043c \u0441\u0440\u0430\u0437\u0443 \u0434\u0432\u0443\u0445 \u0437\u0430\u0439\u0446\u0435\u0432:<\/p>\n<ul>\n<li>\u0423\u0431\u0435\u0440\u0435\u0436\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a (\u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043e\u043d \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442, \u0447\u0442\u043e \u0433\u043e\u0440\u043e\u0434-\u0442\u043e \u043d\u0435 \u0435\u0433\u043e), \u0447\u0442\u043e, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 (\u0430 \u0442\u043e \u0438 \u043f\u043e\u0441\u044b\u043b\u043a\u0438), \u043c\u043e\u0436\u0435\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u0435\u0451 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c (\u043f\u043e\u043a\u0430 \u0435\u0451 \u043f\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0437\u0430\u0448\u043b\u044e\u0442, \u0434\u0430 \u043f\u043e\u043a\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0443\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0435 \u0442\u0443\u0434\u0430 \u0437\u0430\u0441\u043b\u0430\u043b\u0438, \u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442 \u0442\u0443\u0434\u0430 \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0430\u043c \u0432\u0441\u044e \u043f\u043b\u0435\u0448\u044c \u043f\u0440\u043e\u0435\u0441\u0442)<\/li>\n<li>\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043e \u043d\u0451\u043c \u0437\u0430\u0431\u043e\u0442\u044f\u0442\u0441\u044f \ud83d\ude42<\/li>\n<\/ul>\n<p>  \u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c: \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0431\u0430\u0437\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432.<\/p>\n<p>  \u0418 \u043e\u043d\u0430 \u0435\u0441\u0442\u044c! \u0412\u0441\u0430\u043c\u0434\u0435\u043b\u0438\u0448\u043d\u044f\u044f, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u0438, \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043e\u0442 \u041f\u043e\u0447\u0442\u044b \u0420\u043e\u0441\u0441\u0438\u0438.<br \/>   <a name=\"habracut\"><\/a><br \/>  \u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435: <a href=\"http:\/\/info.russianpost.ru\/database\/ops.html\">info.russianpost.ru\/database\/ops.html<\/a><\/p>\n<p>  \u0411\u0430\u0437\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u0443\u0436\u0435 \u0434\u0438\u043a\u043e\u0432\u0438\u043d\u043d\u043e\u043c \u0434\u043b\u044f \u043c\u043e\u043b\u043e\u0434\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 DBF \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e (\u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432 \u043c\u0435\u0441\u044f\u0446) \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u0430 \u0431\u0430\u0437\u0430 \u0434\u043e <a href=\"http:\/\/habrahabr.ru\/post\/140378\/\">\u0424\u0418\u0410\u0421<\/a> \u043d\u0435\u0434\u043e\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442, \u043d\u043e, \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u0434\u0430\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u043e\u0435, \u043e\u043d\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 (\u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430!), \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043e \u0443\u043b\u0438\u0446\u044b \u0438 \u0434\u043e\u043c\u0430, \u0430 \u0445\u0432\u0430\u0442\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u2014 \u0432\u0430\u043c \u0441\u044e\u0434\u0430.<\/p>\n<h3>\u041f\u0440\u0438\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u0447\u0430\u0441\u0442\u044c\u0435 \u043a\u2026 \u043d\u0443, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043a \u0441\u0430\u0439\u0442\u0443.<\/h3>\n<p>  \u0418\u0442\u0430\u043a, \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u043a\u0430\u0447\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0438 \u0434\u0443\u043c\u0430\u0435\u043c, \u043a\u0430\u043a \u0436\u0435 \u0435\u0451 \u0432\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u043d\u0430\u043c\u0438 \u041a\u0430\u043a\u043e\u0439\u0422\u0430\u043c\u0423\u041d\u0430\u0441\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439SQL (\u0430 \u0442\u043e \u0438 \u041d\u0435SQL).<\/p>\n<p>  \u0418\u0449\u0435\u043c \u0432 \u0433\u0443\u0433\u043b\u0435, \u0438\u0449\u0435\u043c \u0432 \u044f\u043d\u0434\u0435\u043a\u0441\u0435, \u0438\u0449\u0435\u043c \u0432 apt-cache, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043d\u0430\u043c \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0438 \u0432\u044b\u0434\u0430\u0451\u0442:<\/p>\n<pre><code class=\"bash\">envek@envek-work:~$ apt-cache search dbf pgdbf - converter of XBase \/ FoxPro tables to PostgreSQL dbf2mysql - xBase &lt;--&gt; MySQL <\/code><\/pre>\n<p>  \u0417\u0434\u043e\u0440\u043e\u0432\u043e-\u0442\u043e \u043a\u0430\u043a! \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Postgres \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0443 \u0432 \u043d\u0435\u0433\u043e. \u0412 \u0431\u0430\u0437\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0435\u0449\u0451 \u0434\u043e\u0441\u043e\u0432\u0441\u043a\u0430\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0437\u043e\u0432\u0451\u043c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c iconv. \u041a\u0441\u0442\u0430\u0442\u0438, \u0441\u0430\u043c\u044b\u0435 \u0441\u0432\u0435\u0436\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 pgdbf (&gt;= 0.6.2) \u0441\u0430\u043c\u0438 \u0448\u0430\u043c\u0430\u043d\u0441\u0442\u0432\u043e\u043c \u0432\u043b\u0430\u0434\u0435\u044e\u0442 \u0438 iconv \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u044e\u0442, \u043d\u043e \u0434\u043e \u0443\u0431\u0443\u043d\u0442\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043e\u043d\u0438 \u0435\u0449\u0451 \u043d\u0435 \u0434\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c.<\/p>\n<pre><code class=\"bash\">mv {PIndx08,post_indices}.dbf # \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b, \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 pgdbf -u post_indices.dbf | iconv -f CP866 &gt; post_indices.sql # \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0436\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Ruby on Rails, \u043d\u0430 \u0435\u0451 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438 \u043f\u043e\u043a\u0430\u0436\u0443. \u041a\u0442\u043e \u0440\u0435\u043b\u044c\u0441\u044b \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u043b\u0438\u0441\u0442\u0430\u0442\u044c.<\/p>\n<p>  C\u043e\u0437\u0434\u0430\u0451\u043c \u043c\u043e\u0434\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0448\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438  <\/p>\n<pre><code class=\"bash\">rails g model PostIndex <\/code><\/pre>\n<p>  \u0412 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b, \u0434\u0435\u043b\u0430\u0435\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c:  <\/p>\n<pre><code class=\"ruby\">class CreatePostIndices &lt; ActiveRecord::Migration   def change     create_table :post_indices, id: false do |t|       t.string :index,     limit:  6       t.string :ops_name,  limit: 60       t.string :ops_type,  limit: 50       t.string :ops_subm,  limit:  6       t.string :region,    limit: 60       t.string :autonom,   limit: 60       t.string :area,      limit: 60       t.string :city,      limit: 60       t.string :city_1,    limit: 60       t.date   :act_date       t.string :index_old, limit:  6       t.index  :index_old     end     reversible do |to|       to.up do         execute 'ALTER TABLE post_indices ADD PRIMARY KEY (index);'       end     end   end end <\/code><\/pre>\n<p>  \u0421\u043b\u0435\u0433\u043a\u0430 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c:  <\/p>\n<pre><code class=\"ruby\">class PostIndex &lt; ActiveRecord::Base   self.primary_key = 'index' end <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0432 json-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043e\u0442\u0434\u0430\u0441\u0442:  <\/p>\n<pre><code class=\"ruby\"># \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438: rails generate controller PostIndices class PostIndicesController &lt; ApplicationController   def get     @index = PostIndex.where(index: params[:index]).first     @index = PostIndex.where(index_old: params[:index]).order(:index).first! unless @index     respond_to do |format|       format.json { render json: @index.to_json(only: [:index, :region, :area, :city]) }     end   end end <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 config\/routes.rb \u043c\u0430\u0440\u0448\u0440\u0443\u0442, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u043c \u043e\u0442\u0434\u0430\u0441\u0442 \u0436\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b:  <\/p>\n<pre><code class=\"ruby\">get '\/post_index\/:index(.:format)', controller: :post_indices, action: :get <\/code><\/pre>\n<p>  \u0418, \u0433\u043b\u0430\u0432\u043d\u043e\u0435: html \u0438 javascript, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u044e\u0442 \u0432\u0441\u044e \u043c\u0430\u0433\u0438\u044e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  HTML-\u0444\u043e\u0440\u043c\u0430:  <\/p>\n<pre><code class=\"html\">&lt;form id='address_form'&gt;   &lt;table&gt;     &lt;tr&gt;       &lt;td&gt;&lt;label for='address_postcode'&gt;\u041f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441&lt;\/label&gt;&lt;\/td&gt;       &lt;td&gt;         &lt;input class='postcode_field' id='address_postcode' name='address[postcode]'&gt;         &lt;p class='description'&gt;\u041f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u043f\u043e\u043b\u044f \u00ab\u043e\u0431\u043b\u0430\u0441\u0442\u044c\u00bb, \u00ab\u0440\u0430\u0439\u043e\u043d\u00bb \u0438 \u00ab\u0433\u043e\u0440\u043e\u0434\u00bb \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.&lt;\/p&gt;       &lt;\/td&gt;     &lt;\/tr&gt;     &lt;tr&gt;       &lt;td&gt;&lt;label for='address_region'&gt;\u041e\u0431\u043b\u0430\u0441\u0442\u044c\/\u043a\u0440\u0430\u0439\/\u0440\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430&lt;\/label&gt;&lt;\/td&gt;       &lt;td&gt;&lt;input class='region_field' id='address_region' name='address[region]'&gt;&lt;\/td&gt;     &lt;\/tr&gt;     &lt;tr&gt;       &lt;td&gt;&lt;label for='address_area'&gt;\u0420\u0430\u0439\u043e\u043d&lt;\/label&gt;&lt;\/td&gt;       &lt;td&gt;&lt;input class='area_field' id='address_area' name='address[area]'&gt;&lt;\/td&gt;     &lt;\/tr&gt;     &lt;tr&gt;       &lt;td&gt;&lt;label for='address_city'&gt;\u0413\u043e\u0440\u043e\u0434\/\u0441\u0435\u043b\u043e&lt;\/label&gt;&lt;\/td&gt;       &lt;td&gt;&lt;input class='city_field' id='address_city' name='address[city]'&gt;&lt;\/td&gt;     &lt;\/tr&gt;   &lt;\/table&gt; &lt;\/form&gt; <\/code><\/pre>\n<p>  Javascript-\u043a\u043e\u0434 (\u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439, \u0441 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043e\u0442\u043b\u043e\u0432\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0430)  <\/p>\n<pre><code class=\"javascript\">jQuery(document).ready(function($){   $('.postcode_field').on('keyup change', function () {     \/\/ \u041d\u0430\u0439\u0434\u0451\u043c \u0432\u0441\u0435 \u043f\u043e\u043b\u044f     var postcode_field = $(this);     var form = postcode_field.parents(&quot;form&quot;);     var region_field = $('.region_field', form);     var area_field   = $('.area_field', form);     var city_field   = $('.city_field', form);     \/\/ \u041e\u0447\u0438\u0441\u0442\u0438\u043c \u0432\u0441\u0435 \u043f\u043e\u043b\u044f     region_field.val('');     area_field.val('');     city_field.val('');     \/\/ \u0415\u0441\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u0432\u0432\u0435\u0434\u0451\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e - \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u0451\u043c     var postcode = this.value;     if (postcode.length == 6) {       jQuery.ajax({          dataType: &quot;jsonp&quot;,         url: 'http:\/\/postindexapi.ru\/'+postcode+'.json?callback=?',         beforeSend: function() { \/\/ \u0423\u0432\u0435\u0434\u043e\u043c\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0447\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0434\u0451\u0442           $(&quot;td:last-child p.description.notice, td:last-child p.description.alert&quot;, postcode_field.parents(&quot;tr&quot;)).remove();           $('&lt;p class=&quot;description notice loading&quot;&gt;&lt;\/p&gt;').text(&quot;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u2026&quot;).appendTo($(&quot;td:last-child&quot;, postcode_field.parents(&quot;tr&quot;)))         },         success: function(data){           postcode_field.val(data.index);           region_field.val(data.region);           area_field.val(data.area);           city_field.val(data.city);           if (data.index != postcode) {               var message = &quot;\u0412\u044b \u0432\u0432\u0435\u043b\u0438 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441: &quot;+postcode+&quot;, \u0432\u0430\u0448 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441: &quot;+data.index;               $('&lt;p class=&quot;description notice&quot;&gt;&lt;\/p&gt;').text(message).appendTo($(&quot;td:last-child&quot;, postcode_field.parents(&quot;tr&quot;)))           }         },         error: function (jqxhr, status, e) {           var message = '\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u043f\u043e \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443!'+e;           if (e == 'Not Found') message = '\u041f\u043e\u0447\u0442\u0435 \u0420\u043e\u0441\u0441\u0438\u0438 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d';           if (status == 'timeout') message = '\u0421\u0435\u0440\u0432\u0435\u0440 \u0441 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u043c\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.';           $('&lt;p class=&quot;description alert&quot;&gt;&lt;\/p&gt;').text(message).appendTo($(&quot;td:last-child&quot;, postcode_field.parents(&quot;tr&quot;)))           console.debug(jqxhr, status, e);         },         complete: function () { \/\/ \u0423\u0431\u0435\u0440\u0451\u043c \u043f\u043b\u0430\u0448\u043a\u0443           $(&quot;td:last-child p.description.loading&quot;, postcode_field.parents(&quot;tr&quot;)).remove();         }       });          }   }); }); <\/code><\/pre>\n<p>  \u0418, \u0432\u0443\u0430\u043b\u044f, \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043d\u0430\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0433\u043e\u0440\u043e\u0434 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u0417\u0430\u043e\u0434\u043d\u043e, \u0431\u043e\u043d\u0443\u0441\u043e\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 (\u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0443 \u043b\u044e\u0434\u0435\u0439 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0430\u0434\u0440\u0435\u0441\u0430 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a\u043e\u0432 \u0441 \u0443\u0436\u0435 \u0431\u0435\u0437\u043d\u0430\u0434\u0451\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438).<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/bf6\/c15\/3fe\/bf6c153fe06979c0441abe487334da43.png\"\/><\/p>\n<p>  \u0415\u0449\u0451 \u0448\u0442\u0440\u0438\u0448\u043e\u043a: \u0447\u0442\u043e\u0431\u044b \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0432\u0435\u0436\u0435\u0439, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c rake-\u0442\u0430\u0441\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043a\u0440\u043e\u043d\u0443, \u0441\u043a\u0430\u0436\u0435\u043c, \u0440\u0430\u0437 \u0432 \u0434\u0432\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430 \u043d\u0430\u0441 (\u0432 Gemfile \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <code>gem 'nokogiri'<\/code>, \u043c\u043e\u0436\u043d\u043e \u0441 <code>require: false<\/code>):<\/p>\n<pre><code class=\"ruby\">require 'open-uri' require 'fileutils' require 'nokogiri'  namespace :post_index do    desc 'Update used post indices database to latest'   task update: :environment do     # Get info about post indices database     url_prefix = 'http:\/\/info.russianpost.ru\/database'     doc  = Nokogiri::HTML(open(&quot;#{url_prefix}\/ops.html&quot;))     file = doc.at_css('a[name=newdbdata]+table tr:last-child td:nth-child(4) a').attr :href     FileUtils.mkdir_p &quot;#{Rails.root}\/tmp\/post_indices&quot;     dir = Pathname.new(&quot;#{Rails.root}\/tmp\/post_indices&quot;)     filepath = Pathname.new(&quot;#{dir}\/#{file}&quot;)     filepath_success = Pathname.new(&quot;#{dir}\/#{file}.success&quot;)     if filepath.exist? and filepath_success.exist?       puts 'Already up-to-date.'     else       # Download, unzip, rename and convert post indices file       sh &quot;wget #{url_prefix}\/#{file} -O #{filepath}&quot;       sh &quot;unzip -o #{filepath} -d #{dir}&quot;       dbf_filename = filepath.to_s.gsub \/\\.zip$\/, '.DBF'       sh &quot;cp -f #{dbf_filename} #{dir}\/post_indices.dbf&quot;       sh &quot;pgdbf -u #{dir}\/post_indices.dbf | iconv -f CP866 &gt; #{dir}\/post_indices.sql&quot;       # Import in database       config = Abitur::Application.config.database_configuration[::Rails.env]       dbh, dbu, dbp, db = config['host'], config['username'], config['password'], config['database']       sh &quot;PGPASSWORD=#{dbp} psql -U #{dbu} -w -h #{dbh} #{db} &lt; #{dir}\/post_indices.sql&quot;       # Clean up       FileUtils.rm [dbf_filename, &quot;#{dir}\/post_indices.dbf&quot;, &quot;#{dir}\/post_indices.sql&quot;], force: true       FileUtils.touch filepath_success     end   end  end <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0420\u0435\u0437\u044e\u043c\u0435<\/h3>\n<p>  <b>\u041f\u043b\u044e\u0441\u044b<\/b>: \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438<br \/>  <b>\u041c\u0438\u043d\u0443\u0441\u044b<\/b>: \u0412\u0421\u0415 \u0413\u041e\u0420\u041e\u0414\u0410 \u041a\u0410\u041f\u0421\u041e\u041c, \u041f\u041e\u0427\u0422\u0410 \u0420\u041e\u0421\u0421\u0418\u0418, \u0417\u0410\u0427\u0415\u041c?<\/p>\n<h3>\u0418 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043b\u0435\u043d\u0438\u0432\u044b\u0445<\/h3>\n<p>  \u041d\u0443, \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u0430\u043c \u0442\u0430\u043a\u0430\u044f \u043c\u0435\u043b\u043e\u0447\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c, \u043d\u043e \u0432\u044b \u044f\u0440\u043e\u0441\u0442\u043d\u043e \u043d\u0435 \u0436\u0435\u043b\u0430\u0435\u0442\u0435 \u0442\u0430\u0449\u0438\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a \u0441\u0435\u0431\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0432\u0430\u0441 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043c\u0438\u043d\u0438-\u0441\u0435\u0440\u0432\u0438\u0441 <b><a href=\"http:\/\/postindexapi.ru\/\">postindexapi.ru<\/a><\/b>. \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u044f \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435 \u2014 \u043e\u0442\u0434\u0430\u0451\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u0432 JSON. \u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044f \u043d\u0430 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435! \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418 \u0430\u0432\u0442\u043e\u0440 \u043d\u0435 \u043f\u043e\u0433\u043d\u0443\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u043e\u043d\u0430\u0442\u0443.<\/b><\/p>\n<div class=\"spoiler_text\">\u0410\u0432\u0442\u043e\u0440 \u0441 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u0438\u043c\u0435\u0442 \u043b\u044e\u0431\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 <a href=\"http:\/\/postindexapi.ru\/\">postindexapi.ru<\/a>.<br \/>  PayPal: envek@envek.name<br \/>  WebMoney: R157729290120<br \/>  \u0421 \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u044e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435 pull request&#8217;\u044b \u0438 bug report&#8217;\u044b, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043b\u044e\u0431\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0432 \u0433\u0438\u0442\u0445\u0430\u0431-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438: <a href=\"https:\/\/github.com\/Envek\/postindexapi.ru\">github.com\/Envek\/postindexapi.ru<\/a>  <\/div>\n<\/div>\n<p>  \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\/190122\/\"> http:\/\/habrahabr.ru\/post\/190122\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d83\/26d\/dec\/d8326ddec8b761b84bb119b0a3012cd6.jpg\" align=\"left\"\/>\u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u0430 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0430\u0439\u0442\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u043f\u0440\u043e\u0441\u044f\u0442 \u0435\u0433\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0434\u0440\u0435\u0441. \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043b\u0438, \u0434\u043b\u044f \u043e\u0442\u0441\u044b\u043b\u043a\u0438 \u0431\u0443\u043c\u0430\u0436\u043d\u043e\u0433\u043e <s>\u0441\u043f\u0430\u043c\u0430<\/s> \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043b\u0438. \u0418, \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u2014 \u044d\u0442\u043e \u043c\u0435\u043b\u043e\u0447\u044c. \u0412\u0431\u0438\u043b \u0438\u043d\u0434\u0435\u043a\u0441, <s>\u041c\u043e\u0441\u043a\u0432\u0430, <\/s>\u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0440\u0430\u0439\u043e\u043d, \u0441\u0435\u043b\u043e, \u0443\u043b\u0438\u0446\u0430, \u0434\u043e\u043c, \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430. \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0447\u0442\u043e \u0442\u0443\u0442 \u0443\u043f\u0440\u043e\u0449\u0430\u0442\u044c, \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0440\u043e\u0434\u0435 \u043f\u043e\u043c\u043d\u0438\u0442 \u0441\u0432\u043e\u0439 \u0430\u0434\u0440\u0435\u0441, \u0442\u0440\u0443\u0434\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0432\u0431\u0438\u0442\u044c? \u041d\u043e \u0434\u044c\u044f\u0432\u043e\u043b, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u043b\u043e\u0447\u0430\u0445: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u0434\u0440\u0435\u0441\u0435, \u043f\u043e\u0441\u044b\u043b\u043a\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u0442\u0443\u0434\u0430, \u043b\u0443\u0447\u0438 \u043f\u043e\u043d\u043e\u0441\u0430 \u0438\u0434\u0443\u0442 \u0432\u0430\u043c \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043a\u0430\u0440\u043c\u0430 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f (\u043d\u0435\u0442, \u043d\u0435 \u0442\u0430, \u0447\u0442\u043e \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0445 \u0442\u0430\u043c \u0441\u0430\u0439\u0442\u0430\u0445).<\/p>\n<p>  \u041f\u0440\u0438\u0433\u043b\u044f\u0434\u0438\u0442\u0435\u0441\u044c \u043a \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u2014 \u0438\u043d\u0434\u0435\u043a\u0441\u0443. \u0412 \u044d\u0442\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0437 \u0448\u0435\u0441\u0442\u0438 \u0446\u0438\u0444\u0440 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0440\u0430\u0439\u043e\u043d \u0438 \u0433\u043e\u0440\u043e\u0434\/\u0441\u0435\u043b\u043e. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c. \u042d\u0442\u0438\u043c \u043c\u044b \u0443\u0431\u044a\u0451\u043c \u0441\u0440\u0430\u0437\u0443 \u0434\u0432\u0443\u0445 \u0437\u0430\u0439\u0446\u0435\u0432:<\/p>\n<ul>\n<li>\u0423\u0431\u0435\u0440\u0435\u0436\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a (\u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043e\u043d \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442, \u0447\u0442\u043e \u0433\u043e\u0440\u043e\u0434-\u0442\u043e \u043d\u0435 \u0435\u0433\u043e), \u0447\u0442\u043e, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 (\u0430 \u0442\u043e \u0438 \u043f\u043e\u0441\u044b\u043b\u043a\u0438), \u043c\u043e\u0436\u0435\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u0435\u0451 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c (\u043f\u043e\u043a\u0430 \u0435\u0451 \u043f\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0437\u0430\u0448\u043b\u044e\u0442, \u0434\u0430 \u043f\u043e\u043a\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0443\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0435 \u0442\u0443\u0434\u0430 \u0437\u0430\u0441\u043b\u0430\u043b\u0438, \u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442 \u0442\u0443\u0434\u0430 \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0430\u043c \u0432\u0441\u044e \u043f\u043b\u0435\u0448\u044c \u043f\u0440\u043e\u0435\u0441\u0442)<\/li>\n<li>\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043e \u043d\u0451\u043c \u0437\u0430\u0431\u043e\u0442\u044f\u0442\u0441\u044f \ud83d\ude42<\/li>\n<\/ul>\n<p>  \u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c: \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0431\u0430\u0437\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432.<\/p>\n<p>  \u0418 \u043e\u043d\u0430 \u0435\u0441\u0442\u044c! \u0412\u0441\u0430\u043c\u0434\u0435\u043b\u0438\u0448\u043d\u044f\u044f, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u0438, \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043e\u0442 \u041f\u043e\u0447\u0442\u044b \u0420\u043e\u0441\u0441\u0438\u0438.   <\/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-190122","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190122","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=190122"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190122\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}