{"id":165639,"date":"2013-01-13T15:09:02","date_gmt":"2013-01-13T11:09:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=165639"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=165639","title":{"rendered":"<span class=\"post_title\">\u0422\u044e\u043d\u0438\u043c \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/0c9\/d46\/7e3\/0c9d467e3eaf9ec3d397c5119a27f13f.jpg\"\/><br \/>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c \u0434\u0440\u0443\u0437\u044c\u044f, \u0445\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f: \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0435\u0433\u043e \u0434\u0440\u0443\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0435\u043b \u0435\u0451 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043f\u043e \u043e\u0448\u0438\u0431\u043a\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u0432 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0443 \u043d\u0435 \u0434\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u0443\u044e, \u0438 \u0431\u043e\u043b\u0435\u0435 \u043d\u0435 \u0441\u043c\u043e\u0433 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0435\u043d\u044f. \u041b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0442\u0440\u0443\u0434 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/users\/blide\/\" class=\"user_link\">blide<\/a>!<\/p>\n<p>  \u0418\u0433\u0440\u0430\u044f \u0432 Team Fortess 2 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0448\u0430\u044f \u043c\u0443\u0437\u044b\u043a\u0443, \u044f \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435\u0433\u043e\u0434\u043e\u0432\u0430\u043b \u0438\u0437-\u0437\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f Clementine \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0439 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438. \u041d\u043e \u043b\u0438\u0448\u043d\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442, \u0432\u0441\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u041d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044e \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0435 android-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c http. \u041d\u0435\u0437\u043d\u0430\u043d\u0438\u0435 Java \u0438 Python \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u043b\u043e, \u043d\u0435 \u0441\u043f\u0440\u043e\u0441\u0442\u0430 \u0436\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u0436\u0451\u0441\u0442\u043a\u043e\u043c \u0434\u0438\u0441\u043a\u0435 \u0435\u0441\u0442\u044c ext3-\u0440\u0430\u0437\u0434\u0435\u043b.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0443\u0437\u043d\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u043a\u043b\u0430\u0432\u0438\u0448. \u0412 Ubuntu \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b xmodmap \u0438 \u0444\u0430\u0439\u043b\u0438\u043a\u043e\u0432 \/usr\/library\/X11\/*keysum.h \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u0442\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c:  <\/p>\n<pre><code class=\"cpp\">#define XF86XK_Launch0      0x1008FF40   \/* Launch Application          *\/ \u2026 #define XF86XK_LaunchF      0x1008FF4F   \/* Launch Application          *\/ <\/code><\/pre>\n<p>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043a\u043e\u0434\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0432\u0438\u0448(\u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e 2); \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043e\u0434 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0441 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u00abXF86XK_Launch1\u00bb \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u00abxmodmap -pk|preg &#8216;Launch1&#8217;<br \/>  \u00bb, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u043e\u0434 \u00ab156\u00bb(\u043c\u043d\u043e\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u044b 156 \u0438 157).<\/p>\n<h5>\u0421\u0435\u0440\u0432\u0435\u0440<\/h5>\n<p>  \u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u043d\u0430\u0438\u0436\u0435\u043b\u0435\u0437\u043d\u0435\u0439\u0448\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e tcp-\u0441\u0435\u0440\u0432\u0435\u0440 \u044f \u0431\u0443\u0434\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c \u043c\u043d\u0435 Python 3 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f http. \u042d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u043d\u0435 \u0432\u044b\u0437\u0432\u0430\u043b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0435\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u043e\u0441\u043d\u043e\u0432\u0430 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f tcp-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u043b\u0430\u0441\u0441\u044b \u00abBaseHTTPRequestHandler\u00bb \u0438 \u00abSimpleHTTPRequestHandler\u00bb. \u0414\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448 \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u00abpyatspi.registry\u00bb, \u043d\u0443 \u0442\u0443\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435\u0447\u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>  \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0434\u0435\u0431\u0430\u0433\u0438\u043d\u0433\u0430 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043a\u043b\u0438\u043a\u0430, \u043d\u043e \u0442\u0443\u0442 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435; \u0432 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u0444\u0438\u0447\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043a\u0430\u043a \u043d\u0430\u0434\u043e, \u0430 \u0432\u043e\u0442 \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043a\u043b\u0438\u043a\u0430, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0434\u0435\u0432\u0430\u0439\u0441\u043e\u043c, \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u043c\u0435\u043d\u044f \u043f\u0435\u0440\u0435\u043e\u0441\u043c\u044b\u0441\u043b\u0438\u0442\u044c \u0438\u0434\u0435\u0438 \u043e\u0431 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u0438\u0440\u0430. \u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043c\u043d\u0435 \u043d\u0430\u0447\u0430\u043b\u043e \u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u044f \u2014 \u0433\u0443\u0440\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043c\u0430\u0433\u0438\u0441\u0442\u0440 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0418\u043d\u0430\u0447\u0435 \u043a\u0430\u043a \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043a\u043b\u0438\u043a\u0430 \u0434\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439? \u042f \u0433\u043e\u0442\u043e\u0432 \u0432\u044b\u0441\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0430\u0448\u0438 \u0442\u0435\u043e\u0440\u0438\u044e \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0435\u0446\u0435\u0434\u0435\u043d\u0442\u0443.   <\/p>\n<pre><code class=\"python\">import pyatspi, time import http.server import socketserver  class HttpKeyboard(http.server.BaseHTTPRequestHandler):     server_version = &quot;SimpleHTTP\/0.1&quot;       def do_GET(self):         &quot;&quot;&quot;Serve a GET request.&quot;&quot;&quot;         reg = pyatspi.Registry.generateKeyboardEvent         path = self.path.split('\/')         if len(path) == 3:             ms = int(round(time.time() * 1000)) - int(path[2])             reg(int(path[1]), None, pyatspi.KEY_PRESSRELEASE)             print (&quot;key %s - %s ms&quot; % (path[1], ms))         f = self.send_head()      def send_head(self):         self.send_response(200)         self.send_header(&quot;Content-type&quot;, &quot;text\/html; charset=utf-8&quot;)         self.send_header(&quot;Content-Length&quot;, 0)         self.end_headers()          httpd = socketserver.TCPServer((&quot;&quot;, 8000), HttpKeyboard)  print(&quot;serving at port&quot;, 8000) if __name__ == &quot;__main__&quot;:     httpd.serve_forever() <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u043a\u043b\u0430\u0441\u0441 <a href=\"http:\/\/hg.python.org\/cpython\/file\/3.2\/Lib\/http\/server.py#l640\">SimpleHTTPRequestHandler<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043d\u0435\u0439.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c:<br \/>  <code>key 156 - 527 ms  \/\/ \u043a\u043e\u0434 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430(\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0443\u043b\u044f) <\/code><br \/>  <code> 192.168.0.101 - - [07\/Jan\/2013 19:57:09] &quot;GET \/156\/1357574229198 HTTP\/1.1&quot; 200<\/code><br \/>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435:<br \/>  156 \u2014 \u043a\u043e\u0434 \u043a\u043b\u0430\u0432\u0438\u0448\u0438<br \/>  1357574229198 \u2014 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u0432\u0434\u0432\u043e\u0439\u043d\u0435\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c http-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u044f \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u0434\u0435\u0432\u0430\u0439\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<h5>Android-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h5>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/756\/c09\/008\/756c09008c4d2f936adc46aac3e89d97.png\" align=\"center\"\/><br \/>  \u0414\u043b\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u044f \u0432\u044b\u0431\u0440\u0430\u043b Android Asynchronous Http Client. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 wifi-\u0441\u0435\u0442\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 ip, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u043a\u0440\u043e\u043c\u0435 \u0432\u0440\u0430\u0436\u0434\u0435\u0431\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 System.currentTimeMillis(). \u041f\u043e\u043b\u043d\u044b\u0435 \u0441\u043e\u0440\u0446\u044b \u0441\u043a\u0438\u043d\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435, \u0430 \u0442\u0443\u0442 \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\"> public void KeyHttp(String key) {           AsyncHttpClient client = new AsyncHttpClient();           EditText edit = (EditText) findViewById(R.id.editText1);           client.get(&quot;http:\/\/&quot;+edit.getText()+&quot;\/&quot;+key+&quot;\/&quot;+System.currentTimeMillis(), new AsyncHttpResponseHandler() {               @Override               public void onSuccess(String response) {                   this.log(&quot;success result&quot;);               }                              @Override               public void onStart() {                   this.log(&quot;starting&quot;);               }                              @Override                public void onFailure(Throwable error) {                   this.log(&quot;failure result&quot;);               }                              public void log(String text) {                   TextView view = (TextView) findViewById(R.id.textView1);                   view.setText(text);               }           });     } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0418\u0442\u043e\u0433<\/h5>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u0435\u0432\u0430\u0439\u0441.<br \/>  \u041d\u0443 \u0432\u043e\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e \u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0433\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 linux-\u043c\u0430\u0448\u0438\u043d\u0435 \u0432 Team Fortress 2 \u043f\u043e\u0434 \u0431\u0443\u043d\u0442\u0430\u0440\u0441\u043a\u0438\u0435 \u0440\u0438\u0442\u043c\u044b The Offspring.<\/p>\n<p>  \u041a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435. \u042f \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0432\u0438\u0436\u0443 \u0443 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0445 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440 \u0438 \u043f\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 hdmi, \u043d\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043c\u043d\u0430\u0442\u0430\u0445, \u0442\u0430\u043a\u043e\u0439 itlife-\u0445\u0430\u043a, \u0434\u0443\u043c\u0430\u044e, \u043f\u0440\u0438\u0448\u0451\u043b\u0441\u044f \u0431\u044b \u0438\u043c \u043f\u043e \u0434\u0443\u0448\u0435. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0441\u0444\u0435\u0440\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u0430: \u043e\u0442 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u043c\u0435\u0434\u0438\u0430-\u0446\u0435\u043d\u0442\u0440\u043e\u0432 \u0434\u043e \u043d\u0435\u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u043c\u0435\u0434\u0438\u0430-\u0446\u0435\u043d\u0442\u0440\u043e\u0432.<br \/>   \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043a \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0443.<\/p>\n<h5>\u0421\u0441\u044b\u043b\u043a\u0438:<\/h5>\n<p>  Android Asynchronous Http Client (<a href=\"http:\/\/loopj.com\/android-async-http\/\">http:\/\/loopj.com\/android-async-http\/<\/a>)<br \/>  http.server (<a href=\"http:\/\/docs.python.org\/3.2\/library\/http.server.html\">http:\/\/docs.python.org\/3.2\/library\/http.server.html<\/a>)<br \/>  \u041f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0451\u00a0\u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00a0\u043d\u0430\u00a0Android (<a href=\"http:\/\/habrahabr.ru\/post\/109944\/\">http:\/\/habrahabr.ru\/post\/109944\/<\/a>)<br \/>  man xmodmap<br \/>  <sup>*\u0441\u0438\u043d\u044e\u044e \u0438\u0437\u043e\u043b\u0435\u043d\u0442\u0443 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<\/sup>    \t \t\t   \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\/165639\/\"> http:\/\/habrahabr.ru\/post\/165639\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/0c9\/d46\/7e3\/0c9d467e3eaf9ec3d397c5119a27f13f.jpg\"\/><br \/>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c \u0434\u0440\u0443\u0437\u044c\u044f, \u0445\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f: \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0435\u0433\u043e \u0434\u0440\u0443\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0435\u043b \u0435\u0451 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043f\u043e \u043e\u0448\u0438\u0431\u043a\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u0432 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0443 \u043d\u0435 \u0434\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u0443\u044e, \u0438 \u0431\u043e\u043b\u0435\u0435 \u043d\u0435 \u0441\u043c\u043e\u0433 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0435\u043d\u044f. \u041b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0442\u0440\u0443\u0434 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/users\/blide\/\" class=\"user_link\">blide<\/a>!<\/p>\n<p>  \u0418\u0433\u0440\u0430\u044f \u0432 Team Fortess 2 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0448\u0430\u044f \u043c\u0443\u0437\u044b\u043a\u0443, \u044f \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435\u0433\u043e\u0434\u043e\u0432\u0430\u043b \u0438\u0437-\u0437\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f Clementine \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0439 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438. \u041d\u043e \u043b\u0438\u0448\u043d\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442, \u0432\u0441\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u041d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044e \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0435 android-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c http. \u041d\u0435\u0437\u043d\u0430\u043d\u0438\u0435 Java \u0438 Python \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u043b\u043e, \u043d\u0435 \u0441\u043f\u0440\u043e\u0441\u0442\u0430 \u0436\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u0436\u0451\u0441\u0442\u043a\u043e\u043c \u0434\u0438\u0441\u043a\u0435 \u0435\u0441\u0442\u044c ext3-\u0440\u0430\u0437\u0434\u0435\u043b.  <\/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-165639","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/165639","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=165639"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/165639\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}