<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2681650153688202127</id><updated>2024-09-05T03:16:02.315+05:00</updated><category term="OpenSUSE"/><category term=".NET"/><category term="C#"/><category term="php"/><category term="Yii2"/><category term="linux"/><category term="Composer"/><category term="MySQL"/><category term="vsftpd"/><category term="wxWidgets"/><category term=".htaccess"/><category term="Drivers"/><category term="Google"/><category term="GoogleDocs"/><category term="HP Pavilion dv2"/><category term="List&lt;T&gt;"/><category term="OpenOffice"/><category term="Radeon"/><category term="WiFIi"/><category term="api"/><category term="bios"/><category term="curl"/><category term="dektrium"/><category term="explorer.exe"/><category term="fail"/><category term="ftp"/><category term="openssl"/><category term="python"/><category term="vk"/><category term="windows"/><category term="wine"/><category term="wxFrame"/><category term="wxStyle"/><category term="xorg"/><category term="ООП"/><category term="Регулярные выражения"/><category term="Сибирь"/><category term="Социальная сеть"/><category term="Футбол"/><category term="ЦСКА"/><category term="алгоритм"/><category term="перевод"/><category term="программирование"/><category term="фильмы"/><title type='text'>Delegate Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-7584918085528146633</id><published>2017-12-22T13:38:00.000+05:00</published><updated>2017-12-22T13:48:24.370+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api"/><category scheme="http://www.blogger.com/atom/ns#" term="openssl"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="vk"/><title type='text'>Проблемы с SSL при использовании VK API</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
При реализации одного из проектов, связанных с API VK я столкнулся с одной крайне интересной проблемой. У меня просто перестал работать скрипт, при этом выдавая следующую ошибку:&lt;/div&gt;
&lt;pre class=&quot;powershell&quot; style=&quot;background-color: white; box-sizing: border-box; color: #212529; font-size: 11.7px; margin-bottom: 1rem; overflow: auto;&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;powershell&quot; style=&quot;background-color: white; box-sizing: border-box; color: #212529; font-size: 11.7px; margin-bottom: 1rem; overflow: auto;&quot;&gt;Traceback &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;most recent call last&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;:
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\contrib\pyopenssl.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;441&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; wrap_socket
    cnx.do_handshake&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\OpenSSL\SSL.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;1806&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; do_handshake
    self._raise_ssl_error&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;self._ssl&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; result&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\OpenSSL\SSL.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;1546&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; _raise_ssl_error
    _raise_current_error&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\OpenSSL\_util.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; exception_from_error_queue
    raise exception_type&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;errors&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
OpenSSL.SSL.Error: &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;SSL routines&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;tls_process_server_certificate&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;certificate verify failed&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;]&lt;/span&gt;
&amp;nbsp;
During handling of the above exception&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; another exception occurred:
&amp;nbsp;
Traceback &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;most recent call last&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;:
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;601&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; urlopen
    chunked&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;chunked&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;346&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; _make_request
    self._validate_conn&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;conn&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;850&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; _validate_conn
    conn.connect&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connection.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;326&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; connect
    ssl_context&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;context&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\util\ssl_.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;329&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; ssl_wrap_socket
    &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;return&lt;/span&gt; context.wrap_socket&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;sock&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; server_hostname&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;server_hostname&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\contrib\pyopenssl.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;448&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; wrap_socket
    raise ssl.SSLError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;bad handshake: %r&#39;&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;%&lt;/span&gt; e&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
ssl.SSLError: &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;bad handshake: Error([(&#39;SSL routines&#39;, &#39;tls_process_server_certificate&#39;, &#39;certificate verify failed&#39;)],)&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
&amp;nbsp;
During handling of the above exception&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; another exception occurred:
&amp;nbsp;
Traceback &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;most recent call last&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;:
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\adapters.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;440&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; send
    timeout&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;timeout
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;639&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; urlopen
    _stacktrace&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;sys.exc_info&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\util\retry.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;388&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; increment
    raise MaxRetryError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;_pool&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; url&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; error or ResponseError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;cause&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;host&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;m.vk.com&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; port&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;443&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;: Max retries exceeded with url: &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;Caused by SSLError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;SSLError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;bad handshake: Error([(&#39;SSL routines&#39;, &#39;tls_process_server_certificate&#39;, &#39;certificate verify failed&#39;)],)&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
&amp;nbsp;
During handling of the above exception&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; another exception occurred:
&amp;nbsp;
Traceback &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;most recent call last&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;:
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;E:\work\python\vk\parse_group.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;&amp;lt;&lt;/span&gt;module&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;&amp;gt;&lt;/span&gt;
    session &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt; vk.AuthSession&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;app_id&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;***&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; user_login&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;***&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; user_password&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;***&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vk\mixins.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;32&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; __init__
    self.access_token &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt; self.get_access_token&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vk\mixins.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;69&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; get_access_token
    self.login&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vk\mixins.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;82&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; login
    response &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt; self.auth_session.get&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;self.LOGIN_URL&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;521&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; get
    &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;return&lt;/span&gt; self.request&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;GET&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; url&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;**&lt;/span&gt;kwargs&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vk\utils.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; request
    response &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt; super&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;LoggingSession&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; self&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;.request&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;method&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; url&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;**&lt;/span&gt;kwargs&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;508&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; request
    resp &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt; self.send&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;prep&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;**&lt;/span&gt;send_kwargs&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;618&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; send
    &lt;span style=&quot;box-sizing: border-box; color: teal; font-weight: bold;&quot;&gt;r&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt; adapter.send&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;request&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;**&lt;/span&gt;kwargs&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
  File &lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;C:\Users\Oleg\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\adapters.py&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; line &lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;506&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;in&lt;/span&gt; send
    raise SSLError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;e&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; request&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;request&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
requests.exceptions.SSLError: HTTPSConnectionPool&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;host&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&#39;m.vk.com&#39;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt; port&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;443&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;: Max retries exceeded with url: &lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;Caused by SSLError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;SSLError&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon;&quot;&gt;&quot;bad handshake: Error([(&#39;SSL routines&#39;, &#39;tls_process_server_certificate&#39;, &#39;certificate verify failed&#39;)],)&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: black;&quot;&gt;)&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;&lt;/pre&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre;&quot;&gt;Странность состояла в том, что на двух виндовых машинах данный скрипт не запускался, а на unix машине все работало без проблем. Искал долго решение проблемы, но ни к чему это не привело. Как итог я сделал следующий костыль:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre;&quot;&gt;Отключил проверку сертификата в файле utils.py (Lib\site-packages\vk)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #333333; padding: 5pt 5pt 5pt 5pt; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: #333333; color: #888888; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;# Строка 78&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; response = super(LoggingSession, self).request(method, url, **kwargs, verify=&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: #fcc28c; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;False&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
После этого все заработало, но начали появляться предупреждения типа&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;powershell&quot; style=&quot;background-color: white; box-sizing: border-box; color: #212529; font-size: 11.7px; margin-bottom: 1rem; overflow: auto;&quot;&gt;C:\Users\Oleg\AppData\Local\Programs\Python\Python36&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;32&lt;/span&gt;\lib\site&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;-&lt;/span&gt;packages\urllib3\connectionpool.py:&lt;span style=&quot;box-sizing: border-box; color: #804000;&quot;&gt;858&lt;/span&gt;: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https:&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;//&lt;/span&gt;urllib3.readthedocs.io&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;/&lt;/span&gt;en&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;/&lt;/span&gt;latest&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;/&lt;/span&gt;advanced&lt;span style=&quot;box-sizing: border-box; color: pink;&quot;&gt;-&lt;/span&gt;usage.html&lt;span style=&quot;box-sizing: border-box; color: green;&quot;&gt;#ssl-warnings&lt;/span&gt;&lt;/pre&gt;
&lt;span&gt;Которые убрались внедрением следующего кода:&lt;/span&gt;
&lt;br /&gt;
&lt;span&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #333333; padding: 5pt 5pt 5pt 5pt; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: #333333; color: #fcc28c; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; urllib3&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #333333; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
Я понимаю, что это достаточно кривой способ решения проблемы, но пока я даже причины не нашел, поэтому приходится довольствоваться подобными “костылями”.&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-c737b603-7d65-8cf9-5e54-fd9651d975f2&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/7584918085528146633/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2017/12/ssl-vk-api.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/7584918085528146633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/7584918085528146633'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2017/12/ssl-vk-api.html' title='Проблемы с SSL при использовании VK API'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-2096721179645194618</id><published>2016-10-13T11:43:00.000+05:00</published><updated>2016-10-13T11:43:42.078+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dektrium"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Yii2"/><title type='text'>Отмена возможности регистрации в dektrium / yii2-user</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
В одном из проектов появилась необходимость регистрации пользователей только с помощью панели администрирования. То есть &amp;nbsp;исключить полностью возможность регистрации пользователями.&lt;br /&gt;
&lt;br /&gt;
Для авторизации в проекте (Yii2) исспользую библиотеку dektrium.&lt;br /&gt;
&lt;br /&gt;
В &lt;a href=&quot;https://github.com/dektrium/yii2-user/blob/master/docs/configuration.md&quot; target=&quot;_blank&quot;&gt;документации &lt;/a&gt;пишут следующее:&lt;br /&gt;
&lt;h4 style=&quot;box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 16px; line-height: 1.25; margin-bottom: 16px; margin-top: 24px;&quot;&gt;
enableRegistration (Type:&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: inherit; margin: 0px; padding: 0.2em 0px;&quot;&gt;boolean&lt;/code&gt;, Default value:&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: inherit; margin: 0px; padding: 0.2em 0px;&quot;&gt;true&lt;/code&gt;)&lt;/h4&gt;
&lt;div style=&quot;box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 16px; line-height: 24px; margin-bottom: 16px;&quot;&gt;
If this option is set to&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0px;&quot;&gt;false&lt;/code&gt;, users will not be able to register an account. Registration page will throw&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0px;&quot;&gt;HttpNotFoundException&lt;/code&gt;. However confirmation will continue working and you as an administrator will be able to create an account for user from admin interface.&lt;/div&gt;
Если данная опция устанеовлена в false, пользователи не смогут зарегистрировать свой аккаунт. Страница регистрации будет выводить&amp;nbsp;&lt;span style=&quot;background-color: rgba(0, 0, 0, 0.0392157); color: #333333; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 24px;&quot;&gt;HttpNotFoundException&lt;/span&gt;&amp;nbsp;исключение. В тоже время подтверждение регистрации будет работать, и вы, как администратор будете иметь возможность создавать пользователей из панели администрирования.&lt;br /&gt;
&lt;br /&gt;
Т.е в конфиге должно быть следующее:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;modules&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; [&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;user&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; [&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;class&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;dektrium\user\Module&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;enableUnconfirmedLogin&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: navy; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;confirmWithin&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: blue;&quot;&gt;21600&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;cost&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: blue;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;enableRegistration&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: navy; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;admins&#39; &lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;=&amp;gt; [&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff; color: green; font-weight: bold;&quot;&gt;&#39;admin&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;    ]&lt;/span&gt;&lt;span style=&quot;background-color: #f7faff;&quot;&gt;],&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/2096721179645194618/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/10/dektrium-yii2-user.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/2096721179645194618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/2096721179645194618'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/10/dektrium-yii2-user.html' title='Отмена возможности регистрации в dektrium / yii2-user'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-1149896102922418244</id><published>2016-09-15T12:04:00.003+05:00</published><updated>2016-09-15T12:04:48.043+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Ошибка в mysql &quot;BLOB/TEXT COLUMN &#39;COLUMNNAME&#39; CAN&#39;T HAVE A DEFAULT VALUE&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
При создании поля типа TEXT или BLOB в MySQL, если указать полю значение по умолчанию, &amp;nbsp;можно столкнуться со следующей ошибкой:&lt;br /&gt;
&lt;br /&gt;
BLOB/TEXT column &#39;...&#39; can&#39;t have a default value&lt;br /&gt;
&lt;br /&gt;
Данная проблема решается путем изменения настроек mysql в файле my.cnf:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(250, 250, 250); border-color: rgb(242, 242, 242) rgb(242, 242, 242) rgb(242, 242, 242) rgb(236, 152, 31); border-style: solid; border-width: 1px 1px 1px 3px; color: #666666; font-family: &amp;quot;Lucida Console&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: 11.36px; font-stretch: normal; line-height: 17.04px; margin-bottom: 5px; margin-top: 5px; overflow: auto; padding: 10px;&quot;&gt;sql-mode=&quot;STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Меняем на&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background: rgb(250, 250, 250); border-color: rgb(242, 242, 242) rgb(242, 242, 242) rgb(242, 242, 242) rgb(236, 152, 31); border-style: solid; border-width: 1px 1px 1px 3px; color: #666666; font-family: &amp;quot;Lucida Console&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: 11.36px; font-stretch: normal; line-height: 17.04px; margin-bottom: 5px; margin-top: 5px; overflow: auto; padding: 10px;&quot;&gt;sql-mode=&quot;NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
То есть необходимо просто убрать директиву NO_ENGINE_SUBSTITUTION&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/1149896102922418244/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/09/mysql-blobtext-column-columnname-cant.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1149896102922418244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1149896102922418244'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/09/mysql-blobtext-column-columnname-cant.html' title='Ошибка в mysql &quot;BLOB/TEXT COLUMN &#39;COLUMNNAME&#39; CAN&#39;T HAVE A DEFAULT VALUE&quot;'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-4721662857022009484</id><published>2016-08-22T19:02:00.001+05:00</published><updated>2016-08-22T19:02:50.296+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ftp"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><category scheme="http://www.blogger.com/atom/ns#" term="vsftpd"/><title type='text'>500 Illegal PORT command + vsftpd + linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Часто, если сервер находится за шлюзом и нам необходимо поднимать ftp, мы столкнемся с данной проблемой. Сторонний клиент из-за шлюза не сможет подключиться к нашему ftp-серверу, но с локальной сети никаких нестыковок не возникнет.&lt;br /&gt;
&lt;br /&gt;
Проблема заключается в особенностях работы пассивного режима FTP.&lt;br /&gt;
&lt;br /&gt;
Используя vsftpd нам необходимо предпринять несколько шагов для устранения данной неполадки.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Внести изменения в vsftpd.conf (/etc/vsftpd.conf).&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;i&gt;passv_enable=YES&lt;br /&gt;passv_min_port=30000&lt;br /&gt;passv_max_port=30100&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Перезагрузить vsftpd&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Открыть порты 30000-30100 на сервере&lt;/li&gt;
&lt;li&gt;Пробросить порты 30000-30100 на вашем коммутаторе в сторону сервера..&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
После этого из интернета ftp будет доступен в пассивном режиме.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/4721662857022009484/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/08/500-illegal-port-command-vsftpd-linux.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/4721662857022009484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/4721662857022009484'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/08/500-illegal-port-command-vsftpd-linux.html' title='500 Illegal PORT command + vsftpd + linux'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-723186655827658566</id><published>2016-08-17T13:13:00.001+05:00</published><updated>2016-08-17T13:13:26.388+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Composer"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Yii2"/><title type='text'>Ошибка при установке плагина composer-asset-plugin v1.0.0-beta3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
При попытке установки плагина&amp;nbsp;composer-asset-plugin v1.0.0-beta3 с помощью команды php composer.phar global require &quot;fxp/composer-asset-plugin:1.0.0-beta3&quot; может возникнуть следующая ошибка:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Your requirements could not be resolved to an installable set of packages.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; Problem 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; - Installation request for fxp/composer-asset-plugin 1.0.0-beta3 -&amp;gt; satisfiable by fxp/composer-asset-plugin[v1.0.0-beta3].&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; - fxp/composer-asset-plugin v1.0.0-beta3 requires composer-plugin-api 1.0.0 -&amp;gt; no matching package found.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Potential causes:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp;- A typo in the package name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp;- The package is not available in a stable-enough version according to your minimum-stability setting&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;see &amp;lt;https://getcomposer.org/doc/04-schema.md#minimum-stability&amp;gt; for more details.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Read &amp;lt;https://getcomposer.org/doc/articles/troubleshooting.md&amp;gt; for further common problems.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Installation failed, deleting ./composer.json.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Проблема решается банально. Необходимо ставить обновленный пакет. Команда выше описана в относительно старых документациях по Yii 2. Проблему решит следующее:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;php composer.phar global require &quot;fxp/composer-asset-plugin:1.1.4&quot;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/723186655827658566/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/08/composer-asset-plugin-v100-beta3.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/723186655827658566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/723186655827658566'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/08/composer-asset-plugin-v100-beta3.html' title='Ошибка при установке плагина composer-asset-plugin v1.0.0-beta3'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-9038650233119578175</id><published>2016-08-15T16:37:00.000+05:00</published><updated>2016-08-15T16:37:39.302+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Composer"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Yii2"/><title type='text'>Проблемы с установкой Composer для Yii2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Давеча начал изучать фраймворк Yii2. Так как с ним раньше не имел никаких дел, начал с нуля, то есть скачал книгу Web application development with yii 2 and php (кстати думаю сделать перевод, так как не нашел нигде). Первое что надо было - установить Composer, и тут я столкнулся с проблемой.&lt;br /&gt;
&lt;br /&gt;
Почвой для изучения и тестирования я выбрал Linux OpenSUSE 12.3, так как неплохо с ним знаком. Установил его себе на VirtualBox.&lt;br /&gt;
&lt;br /&gt;
Для начала мне необходимо скачать архив с нужным инструментом:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;$ curl -sS https://getcomposer.org/installer | php&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
На что я получил ошибку:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;If &#39;php&#39; is not a typo you can use command-not-found to lookup the package that contains it, like this cnf php&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
То есть, для начала нам необходимо установить php. No problem...&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;yast -i php&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Но меня снова ждало разочарование&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Some settings on your machine make Composer unable to work properly.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Make sure that you fix the issues listed below and run this script again:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The phar extension is missing.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Install it or recompile php without --disable-phar&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The openssl extension is missing, which means that secure HTTPS transfers are impossible.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;If possible you should enable it or recompile php with --with-openssl&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Установил пакеты php5-openssl и php5-phar.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
И все завелось.&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;All settings correct for using Composer&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Downloading 1.2.0...&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Composer successfully installed to: /home/hitechnt/composer.phar&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
PS. Необходим PHP 5.4. Так как в моей версии OpenSUSE присутствует только 5.3 пришлось добавить репозитарий http://download.opensuse.org/repositories/devel:/languages:/php:/php54/openSUSE_Factory/&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/9038650233119578175/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/08/composer-yii2.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/9038650233119578175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/9038650233119578175'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/08/composer-yii2.html' title='Проблемы с установкой Composer для Yii2'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-5786654710347696029</id><published>2016-06-16T23:01:00.004+05:00</published><updated>2016-06-16T23:14:39.237+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="List&lt;T&gt;"/><title type='text'>Ищем отличия между двумя коллекциями объектов с помощью C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Введение&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Имея некую текущую коллекцию объектов и новую коллекцию, нам
необходимо узнать какие элементы были добавлены в оригинал, а которые были
удалены.&lt;/span&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Описание&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Что бы было проще, назовем текущую коллекцию А, а новую
коллекцию, в которой будут изменения – B
Объекты, которые удалены &amp;nbsp;содержатся в коллекции А, но не содержаться в &lt;span lang=&quot;EN-US&quot;&gt;B&lt;/span&gt;Объекты, которые добавлены – это те объекты, которые содержатся
в коллекции B, но не содержаться в A&lt;/span&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Код:&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Опишем сказанное выше с помощью следующего кода:&lt;/span&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;
&lt;div style=&quot;font-family: monospace; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Compare&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;T&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;T&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; existing, List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;T&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; updated, out List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;T&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; added, out List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;T&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; removed&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; where T &lt;span style=&quot;color: teal;&quot;&gt;:&lt;/span&gt; IComparable&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;font-family: monospace; text-align: left;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
    added &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; updated.&lt;span style=&quot;color: #007788;&quot;&gt;Except&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;existing&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;ToList&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
    removed &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; existing.&lt;span style=&quot;color: #007788;&quot;&gt;Except&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;updated&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;ToList&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;font-family: monospace; text-align: left;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;В принципе, как вы видите ничего сложного.&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Пример&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Теперь прикинем на примере:&lt;/span&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;font-family: monospace; text-align: left;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;string&lt;span style=&quot;color: green;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;]&lt;/span&gt; args&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
    List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; A &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;new&lt;/span&gt; List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
    List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; add &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;new&lt;/span&gt; List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
    List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; rmv &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;new&lt;/span&gt; List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #666666;&quot;&gt;// Заполняем первую коллекцию&lt;/span&gt;
    &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: #000040;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt; A.&lt;span style=&quot;color: #007788;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;i&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #666666;&quot;&gt;// Копируем коллекцию&lt;/span&gt;
    List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; B &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;new&lt;/span&gt; List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;A&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #666666;&quot;&gt;// Вносим изменения&lt;/span&gt;
    B.&lt;span style=&quot;color: #007788;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; B.&lt;span style=&quot;color: #007788;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #000040;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000dd;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; B.&lt;span style=&quot;color: #007788;&quot;&gt;Remove&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; B.&lt;span style=&quot;color: #007788;&quot;&gt;Remove&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    Compare&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;A, B, out add, out rmv&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    Console.&lt;span style=&quot;color: #007788;&quot;&gt;Write&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Added: &quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
    foreach &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; a in add&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt; Console.&lt;span style=&quot;color: #007788;&quot;&gt;Write&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;a &lt;span style=&quot;color: #000040;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;; &quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
    Console.&lt;span style=&quot;color: #007788;&quot;&gt;Write&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;Removed: &quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
    foreach &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; r in rmv&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt; Console.&lt;span style=&quot;color: #007788;&quot;&gt;Write&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;r &lt;span style=&quot;color: #000040;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;; &quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
    Console.&lt;span style=&quot;color: #007788;&quot;&gt;ReadLine&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;font-family: monospace; text-align: left;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: green; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;a href=&quot;http://letitbit.net/download/28926.2f95da2d1f5298d9756790adae57/DifferencesBetweenTwoCollections.rar.html&quot; target=&quot;_blank&quot;&gt;Скачать проект&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/Tips/1107118/Find-Differences-Between-Two-Collections&quot; target=&quot;_blank&quot;&gt;Источник&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/5786654710347696029/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/06/c.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/5786654710347696029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/5786654710347696029'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/06/c.html' title='Ищем отличия между двумя коллекциями объектов с помощью C#'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-574680079229971752</id><published>2016-03-11T22:08:00.000+05:00</published><updated>2016-03-11T22:08:15.634+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Регулярные выражения"/><title type='text'>Получить все подстроки между круглыми скобками с помощью регулярных выражений</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Часто встречается необходимость выделить из строки
выражения, которые находятся между простых скобок. Для примера у меня была
задача найти в коде все вхождения функции function(&lt;span lang=&quot;EN-US&quot;&gt;var&lt;/span&gt;1, &lt;span lang=&quot;EN-US&quot;&gt;var&lt;/span&gt;2) и получить оттуда переменные.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Подобные задачи решаются с помощью регулярных выражений. В
данном случае:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;pre class=&quot;cpp&quot; style=&quot;font-family:monospace;&quot;&gt;function\&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt;val&lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt;.&lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;\&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;div class=&quot;MsoNormal&quot;&gt;
Разберем данное выражение подробнее.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;function&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;– последовательность символов до скобок
(название нашей функции)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;\(&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;, &lt;b&gt;\)&lt;/b&gt; - экранированные символы «скобка»&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;(?&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;, &amp;nbsp;&lt;b&gt;?)&lt;/b&gt; – Выделяет часть нужного нам выражения в группу&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;val&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt; - группа нужного нам выражения&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;.*&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt; - учитывать все символы между скобками&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
В итоге у нас получился следующий код (для C#)&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;pre class=&quot;cpp&quot; style=&quot;font-family:monospace;&quot;&gt;Regex pattern &lt;span style=&quot;color: #000080;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;new&lt;/span&gt; Regex&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;@&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;quot;function\((?&amp;lt;val&amp;gt;.*?)\)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
foreach &lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;Match m in pattern.&lt;span style=&quot;color: #007788;&quot;&gt;Matches&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;fStr&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#123;&lt;/span&gt;
     &lt;span style=&quot;color: #0000ff;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;m.&lt;span style=&quot;color: #007788;&quot;&gt;Success&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;
     &lt;span style=&quot;color: #008000;&quot;&gt;&amp;#123;&lt;/span&gt;
           string val1 &lt;span style=&quot;color: #000080;&quot;&gt;=&lt;/span&gt; m.&lt;span style=&quot;color: #007788;&quot;&gt;Groups&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;quot;val&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Value&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Split&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000dd;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;;&lt;/span&gt;
           string val2 &lt;span style=&quot;color: #000080;&quot;&gt;=&lt;/span&gt; m.&lt;span style=&quot;color: #007788;&quot;&gt;Groups&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;quot;val&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Value&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Split&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000dd;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
      &lt;span style=&quot;color: #008000;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #008000;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/574680079229971752/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2016/03/blog-post.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/574680079229971752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/574680079229971752'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2016/03/blog-post.html' title='Получить все подстроки между круглыми скобками с помощью регулярных выражений'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-8732979769543565116</id><published>2015-02-19T17:31:00.001+05:00</published><updated>2015-02-19T17:31:24.331+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="ООП"/><category scheme="http://www.blogger.com/atom/ns#" term="перевод"/><title type='text'>Почему нельзя наследовать структуры в C# ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Введение - зачем используются структуры?&lt;/h3&gt;
&lt;div&gt;
Все мы сильно любим структуры (идея, чуждая Java, не считая примитивных типов). Структуры, когда они не упакованы, зачастую, предоставляют прекрасную возможность обрабатывать динамические данные относительно небольшого размера.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Размещение и освобождение типов данных в целом проще, чем размещение и освобождение ссылочных типов. Это связано тем, что структуры размещаются в стеке, либо встроены в содержащиеся типы и освобождаются, при очищении стека либо когда встроенные типы перераспределяются, в то время, как ссылочные типы размещаются в куче и очищаются сборщиком мусора (garbage-collected)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Хм... Структуры не хотят наследоваться.&lt;/h3&gt;
&lt;div&gt;
Объектно-Ориентированное Программирование дает нам возможность делать много полезных вещей. И основной коцепт - это, конечно же, наследование. Многие из нас, когда либо, пытались наследовать структуру только для того, что бы понять, что C# не позволит нам этого сделать.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Для примера рассмотрим код:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;CSharp&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Что может быть не так с этим простым кодом?
&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; DateTime это структура, если вы еще об этом не знаете, то Now() хорошее время для того, что // бы узнать это :)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;struct&lt;/span&gt; MyDateTime : DateTime
{
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;double&lt;/span&gt; SecondsFromMyBirthday { get; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; set; }
}


&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; или с этим, довольно разумным запросом на наследование:
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;struct&lt;/span&gt; Point
{
   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; x, y;
}

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;struct&lt;/span&gt; Point3D : Point
{
   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; z;
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4SCkgO763DhjJHDoOr0tJwzoOH6NlaZpr2OJoVAroBSGdr5m_lty9Ku0tKcRZo5riq-1uy6FIPcxL0yvSW9V1vxZpEvxsmGa_qoAZMoFah1M-u2xkvjpKoGcfYuKH6O7Ur32uHvBsCgY/s1600/PointInherit.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4SCkgO763DhjJHDoOr0tJwzoOH6NlaZpr2OJoVAroBSGdr5m_lty9Ku0tKcRZo5riq-1uy6FIPcxL0yvSW9V1vxZpEvxsmGa_qoAZMoFah1M-u2xkvjpKoGcfYuKH6O7Ur32uHvBsCgY/s1600/PointInherit.png&quot; height=&quot;243&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Честно говоря, каждый программист желает &amp;nbsp;расширить структура &lt;b&gt;DateTime&lt;/b&gt;, не так ли?&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Это код выведет ошибку компиляции:&amp;nbsp;&lt;i&gt;Type &#39;DateTime&#39; in interface list is not an interface.&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Если структура будет перемещена в класс, то выйдет следующая ошибка компиляции:&lt;i&gt;&amp;nbsp;&#39;MyDateTime&#39;: cannot derive from sealed type &#39;System.DateTime&#39;&lt;/i&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Теперь мы понимаем, что System.DateTime упакован. Но почему?&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Замечание:&lt;/b&gt; &lt;i&gt;фактически, все типы структур унаследованы от класса System.ValueType, который, в свою очередь унаследован от класса object.&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ответ&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
В памяти структуре выделен стек фиксированного размера.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Давайте рассмотрим код примера Point/Point3D структуры, который указан выше. Рассмотрим следующую строку кода:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;CSharp&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Предположительно, у нас есть p2d - Point, 
&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; и p3d - Point3D
&lt;/span&gt;p2d = p3d; &lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Что должно произойти? Стек p2d расширит свою память для поддержки присвоения?&lt;br /&gt;
&lt;br /&gt;
Кроме того, структуры, являясь типами значений, не используют ссылки (кроме упакованных). Это сделало бы полиморфизм бессмысленным, поскольку отсутствуют пути через ссылочные указатели.&lt;br /&gt;
&lt;br /&gt;
Что же касается массивов, массивы типов данных хранятся &amp;nbsp;&quot;inline&quot; (для повышения производительности и сборки мусора). Если мы будем использовать структуру без понимания этого, то &quot;обрезанная структура&quot; приведет к повреждению памяти.&lt;br /&gt;
&lt;br /&gt;
В заключении - мы увидели неразумность наследования структур в .NET. Хорошая новость - наследовать можно &lt;b&gt;классы&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Источник:&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/Tips/877525/Inherit-a-struct-in-Csharp-why-not&quot;&gt;http://www.codeproject.com/Tips/877525/Inherit-a-struct-in-Csharp-why-not&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/8732979769543565116/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2015/02/c.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/8732979769543565116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/8732979769543565116'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2015/02/c.html' title='Почему нельзя наследовать структуры в C# ?'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4SCkgO763DhjJHDoOr0tJwzoOH6NlaZpr2OJoVAroBSGdr5m_lty9Ku0tKcRZo5riq-1uy6FIPcxL0yvSW9V1vxZpEvxsmGa_qoAZMoFah1M-u2xkvjpKoGcfYuKH6O7Ur32uHvBsCgY/s72-c/PointInherit.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-996971678627525530</id><published>2015-02-02T20:38:00.003+05:00</published><updated>2015-02-02T20:38:49.426+05:00</updated><title type='text'>Парсинг HTML с помощью C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Для парсинга &lt;span lang=&quot;EN-US&quot;&gt;HTML&lt;/span&gt;
я решил использовать библиотеку &lt;span lang=&quot;EN-US&quot;&gt;htmlagilitypack&lt;/span&gt;.
Скачать ее можно здесь(&lt;a href=&quot;http://htmlagilitypack.codeplex.com/&quot;&gt;http://htmlagilitypack.codeplex.com/&lt;/a&gt;)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
После скачивания не забываем подключить dll к нашему
проекту.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Ниже приведен пример кода использования данной утилиты:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;cpp&quot; style=&quot;background: rgb(244, 244, 255); border: 1px solid rgb(153, 153, 153); color: #0f0f0f; font-size: 15px; line-height: 20px; padding: 6px;&quot;&gt;htmlCode &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; WebUtility.&lt;span style=&quot;color: #007788;&quot;&gt;HtmlDecode&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;htmlCode&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
HtmlAgilityPack.&lt;span style=&quot;color: #007788;&quot;&gt;HtmlDocument&lt;/span&gt; result &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;new&lt;/span&gt; HtmlAgilityPack.&lt;span style=&quot;color: #007788;&quot;&gt;HtmlDocument&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
result.&lt;span style=&quot;color: #007788;&quot;&gt;LoadHtml&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;htmlCode&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
List&lt;span style=&quot;color: navy;&quot;&gt;&amp;lt;&lt;/span&gt;HtmlAgilityPack.&lt;span style=&quot;color: #007788;&quot;&gt;HtmlNode&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;&amp;gt;&lt;/span&gt; list &lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; result.&lt;span style=&quot;color: #007788;&quot;&gt;DocumentNode&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Descendants&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Where&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;x &lt;span style=&quot;color: navy;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;x.&lt;span style=&quot;color: #007788;&quot;&gt;Name&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;div&quot;&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; x.&lt;span style=&quot;color: #007788;&quot;&gt;Attributes&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;class&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; null &lt;span style=&quot;color: #000040;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;
x.&lt;span style=&quot;color: #007788;&quot;&gt;Attributes&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;class&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Value&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;Contains&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;main&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #007788;&quot;&gt;ToList&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
foreach &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;HtmlAgilityPack.&lt;span style=&quot;color: #007788;&quot;&gt;HtmlNode&lt;/span&gt; node in list&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
     rtbTest.&lt;span style=&quot;color: #007788;&quot;&gt;Text&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;=&lt;/span&gt; node.&lt;span style=&quot;color: #007788;&quot;&gt;InnerText&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/996971678627525530/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2015/02/html-c.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/996971678627525530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/996971678627525530'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2015/02/html-c.html' title='Парсинг HTML с помощью C#'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-1878142539968224314</id><published>2015-01-13T22:19:00.000+05:00</published><updated>2015-01-13T22:19:30.650+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><category scheme="http://www.blogger.com/atom/ns#" term="программирование"/><title type='text'>Использование curl в C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Для того что бы скачать страницу какого-либо сайта в основном
используют код следующего вида:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;csharp&quot; style=&quot;background: rgb(244, 244, 255); border: 1px solid rgb(153, 153, 153); color: #0f0f0f; font-size: 15px; line-height: 20px; padding: 6px;&quot;&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; page&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;var&lt;/span&gt; client &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; WebClient&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
    page &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; client&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DownloadString&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;http://www.example.com/&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Конечно, это простейший код, но в большинстве случаев он
работает. Но бывают случаи, когда при &quot;парсинге&quot; возникает ошибка: &amp;nbsp;&lt;b&gt;500 &lt;span lang=&quot;EN-US&quot;&gt;Internal&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;Server&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;Error&lt;/span&gt;&lt;/b&gt;. &amp;nbsp;В основном, она возникает в случае, если сервер
не может получить от нас h&lt;span lang=&quot;EN-US&quot;&gt;t&lt;/span&gt;tp-заголовок
при запросе данных. (Конечно, это может быть и ошибка на сервере, но мы будет
обсуждать случай, когда сайт защищен подобным способом)&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
В данном случае нам необходимо отправлять http-заголовок на
сервер, таким образом мы маскируемся под браузер. Для этого и служит библиотека
curl.&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background: white; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: RU; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Программа cURL может
автоматизировать передачу файлов или последовательность таких операций.
Например, это хорошее средство для моделирования действий пользователя в
веб-обозревателе. (&lt;a href=&quot;https://ru.wikipedia.org/wiki/CURL&quot;&gt;wikipedia&lt;/a&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background: white; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: RU; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Для использования данной
функции необходимо скачать библиотеку libcurl:&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/libcurl-net/&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;http://sourceforge.net/projects/libcurl-net/&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Из полученного архива нам понадобятся три файла: libcurl.dll,
LibCurlNet.dll, LibCurlShim.dll в папке bin. Их нужно поместить в папку в
проектом и подключить к нему LibCurlNet.dll.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Далее нужно создать класс для curl. &lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;



&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;Файл http.cs:&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;csharp&quot; style=&quot;background: rgb(244, 244, 255); border: 1px solid rgb(153, 153, 153); color: #0f0f0f; font-size: 15px; line-height: 20px; padding: 6px;&quot;&gt;&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;System.Collections.Generic&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;System.Linq&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;System.Text&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;SeasideResearch.LibCurlNet&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;System.IO&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;namespace&lt;/span&gt; namespace
&lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;class&lt;/span&gt; http
    &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; Easy easy&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; Random rand &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; Random&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; SockBuff&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; CookieFile &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; AppDomain&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CurrentDomain&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;BaseDirectory&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;cookie&quot;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; rand&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;.txt&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; UserAgent &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; Proxy &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; referer &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;void&lt;/span&gt; Dispose&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            ClearCookies&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; getCookieFile&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;return&lt;/span&gt; CookieFile&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;void&lt;/span&gt; CurlInit&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            Curl&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;GlobalInit&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;CURLinitFlag&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURL_GLOBAL_ALL&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;void&lt;/span&gt; ClearCookies&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;File&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Exists&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CookieFile&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                File&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Delete&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CookieFile&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; HTTPGet&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; URL, &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; Proxy&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            easy &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; Easy&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
            SockBuff &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;try&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                Easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteFunction&lt;/span&gt; wf &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; Easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteFunction&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;OnWriteData&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_URL&lt;/span&gt;, URL&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_TIMEOUT&lt;/span&gt;, &lt;span style=&quot;color: #666666;&quot;&gt;&quot;60&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_WRITEFUNCTION&lt;/span&gt;, wf&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_USERAGENT&lt;/span&gt;, UserAgent&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_COOKIEFILE&lt;/span&gt;, CookieFile&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_COOKIEJAR&lt;/span&gt;, CookieFile&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_FOLLOWLOCATION&lt;/span&gt;, &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
                &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;URL&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Contains&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;https&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_SSL_VERIFYHOST&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_SSL_VERIFYPEER&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
                &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;Proxy &lt;span style=&quot;color: green;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_PROXY&lt;/span&gt;, Proxy&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_PROXYTYPE&lt;/span&gt;, CURLproxyType&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLPROXY_HTTP&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Perform&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Cleanup&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;catch&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;Get Request Error&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;return&lt;/span&gt; SockBuff&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; HTTPPost&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; URL, &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; http_headers, &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; Content&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            easy &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; Easy&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
            SockBuff &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;String&lt;/span&gt; proxy&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;try&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                Easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteFunction&lt;/span&gt; wf &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; Easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteFunction&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;OnWriteData&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_URL&lt;/span&gt;, URL&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_TIMEOUT&lt;/span&gt;, &lt;span style=&quot;color: #666666;&quot;&gt;&quot;60&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_WRITEFUNCTION&lt;/span&gt;, wf&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_USERAGENT&lt;/span&gt;, UserAgent&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_COOKIEFILE&lt;/span&gt;, CookieFile&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_COOKIEJAR&lt;/span&gt;, CookieFile&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_HTTPHEADER&lt;/span&gt;, http_headers&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_REFERER&lt;/span&gt;, referer&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: teal; font-style: italic;&quot;&gt;//easy.SetOpt(CURLoption.CURLOPT_POSTFIELDSIZE, Content.Length); &lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_FOLLOWLOCATION&lt;/span&gt;, &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_STDERR&lt;/span&gt;, &lt;span style=&quot;color: #666666;&quot;&gt;&quot;test.txt&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_HTTPHEADER&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_POST&lt;/span&gt;, &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_POSTFIELDS&lt;/span&gt;, Content&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
                &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;URL&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Contains&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;https&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_SSL_VERIFYHOST&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_SSL_VERIFYPEER&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
                &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;Proxy &lt;span style=&quot;color: green;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_PROXY&lt;/span&gt;, Proxy&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                    easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SetOpt&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;CURLoption&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_PROXYTYPE&lt;/span&gt;, CURLproxyType&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLPROXY_HTTP&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Perform&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                easy&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Cleanup&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;catch&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;return&lt;/span&gt; SockBuff&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; SafeString&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; data&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;return&lt;/span&gt; Curl&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Escape&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;data, data&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Length&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; UnSafeString&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; data&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;return&lt;/span&gt; Curl&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Unescape&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;data, data&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Length&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; Int32 OnWriteData&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;Byte&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;]&lt;/span&gt; buf, Int32 size, Int32 nmemb, &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;Object&lt;/span&gt; extraData&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: teal; font-style: italic;&quot;&gt;// Console.Write(System.Text.Encoding.UTF8.GetString(  buf)); &lt;/span&gt;
            SockBuff &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; SockBuff &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;System.&lt;span style=&quot;color: blue;&quot;&gt;Text&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Encoding&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;UTF8&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;GetString&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;buf&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
            &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;return&lt;/span&gt; size &lt;span style=&quot;color: green;&quot;&gt;*&lt;/span&gt; nmemb&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Далее в коде программы:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;Файл &lt;span lang=&quot;EN-US&quot;&gt;Form&lt;/span&gt;1.&lt;span lang=&quot;EN-US&quot;&gt;cs:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;csharp&quot; style=&quot;background: rgb(244, 244, 255); border: 1px solid rgb(153, 153, 153); color: #0f0f0f; font-size: 15px; line-height: 20px; padding: 6px;&quot;&gt;http httpVar &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; http&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
httpVar&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CurlInit&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: teal; font-style: italic;&quot;&gt;// cURL init&lt;/span&gt;
httpVar&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ClearCookies&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;String&lt;/span&gt;
http_headers &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
http_headers &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; http_headers &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
http_headers &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; http_headers &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;Accept-Encoding: gzip,deflate,sdch&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
http_headers &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; http_headers &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;&quot;Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;string&lt;/span&gt; htmlCode &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; httpVar&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;HTTPGet&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;tbAdress&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Text&lt;/span&gt;, &lt;span style=&quot;color: #666666;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/1878142539968224314/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2015/01/curl-c.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1878142539968224314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1878142539968224314'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2015/01/curl-c.html' title='Использование curl в C#'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-1259462246535661857</id><published>2014-01-13T21:35:00.000+06:00</published><updated>2014-01-13T21:35:15.478+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="GoogleDocs"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenOffice"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><title type='text'>OpenOffice не синхронизируется с Google Docs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
 
 
 


&lt;br /&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
Работаю с
одними документами с разных компов.
Решил их синхронизировать. Остановил
свой выбор на Google Docs. Так как дома у меня
стоит OpenSUSE, работаю я с OpenOffice. Благо там
уже есть встроенная фича по экспорту.
Файл → GoogleDocs &amp;amp; Zoho → Export to Google Docs. 
Выбрал, ввел логин и пароль и тут мне
выдало ошибку: 
&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Monaco, DejaVu Sans Mono, Bitstream Vera Sans Mono, Lucida Console, monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Server
returned HTTP response code: 400 for URL:
&lt;a href=&quot;https://docs.google.com/feeds/upload/create-session/default/private/full?convert=false&quot;&gt;https://docs.google.com/feeds/upload/create-session/default/private/full?convert=false&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
Оказалось, что
этот сервис тупо не поддерживает форматы
.docx, .xlsx и иже с ними. Пришлось сохраняться
как .doc  и работать дальше. Благо большого
дискомфорта мне это не принесло.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/1259462246535661857/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2014/01/openoffice-google-docs.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1259462246535661857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1259462246535661857'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2014/01/openoffice-google-docs.html' title='OpenOffice не синхронизируется с Google Docs'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-3510712663617064275</id><published>2014-01-06T19:57:00.001+06:00</published><updated>2014-01-06T19:57:46.531+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drivers"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><category scheme="http://www.blogger.com/atom/ns#" term="Radeon"/><title type='text'>Проблема тормозов ATI видеокарт в OpenSUSE Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
После установки драйверов на видеокарту ATI Radeon HD 5570 столкнулся с проблемой заторможенности графики. Перерыл множество гайдов и форумов, не нашел ничего путного, проблема решилась случайно и до банальности просто.&lt;br /&gt;
&lt;br /&gt;
Настраивая новую звуковуху я неожиданно обнаружил, что у этой видеокарты есть еще и звуковое устройство.&lt;br /&gt;
&lt;br /&gt;
Параметры системы - Мультимедиа - Phonon. Под названием Redwood HDMI Audio [Radeon HD 5000 Series].&lt;br /&gt;
&lt;br /&gt;
После отключения этого устройства тормоза самоустранились.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/3510712663617064275/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2014/01/ati-opensuse-linux.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3510712663617064275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3510712663617064275'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2014/01/ati-opensuse-linux.html' title='Проблема тормозов ATI видеокарт в OpenSUSE Linux'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-3096099414857117797</id><published>2013-05-17T12:59:00.002+06:00</published><updated>2013-05-17T12:59:34.097+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HP Pavilion dv2"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><category scheme="http://www.blogger.com/atom/ns#" term="WiFIi"/><title type='text'>Настройка WiFi на ноутбуке HP Pavilion dv-2 на OpenSUSE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
При установке OpenSUSE 11.3 на бук&amp;nbsp;&amp;nbsp;HP Pavilion dv-2 не была автоматом определена и установлена WiFi карточка. Пришлось подгонять ее вручную.&lt;br /&gt;
&lt;br /&gt;
Во-первых необходимо узнать что за оборудование вообще стоит у нас. Решается с помощью команды&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;/sbin/lspci&lt;/i&gt;&lt;/blockquote&gt;
У меня вывел карточку Broadcom BCM4312. Далее необходимо под нее взять rpm-пакет, который был быстро найден в интернете:&amp;nbsp;&lt;a href=&quot;http://packman.links2linux.org/package/b43-firmware&quot;&gt;http://packman.links2linux.org/package/b43-firmware&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Установка пакета:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;rpm -i&amp;nbsp;b43-firmware-4.174.64.19-3.11.noarch.rpm&lt;/i&gt;&lt;/blockquote&gt;
Дальше проверяем карточку:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;iwconfig&lt;/i&gt;&lt;/blockquote&gt;
И если она у нас появилась, то с помощью NetworkManager ловим сети и подключаемся к интернету.&lt;br /&gt;
&lt;br /&gt;
Все просто, но может начинающим пользователем эта статья поможет.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/3096099414857117797/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2013/05/wifi-hp-pavilion-dv-2-opensuse.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3096099414857117797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3096099414857117797'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2013/05/wifi-hp-pavilion-dv-2-opensuse.html' title='Настройка WiFi на ноутбуке HP Pavilion dv-2 на OpenSUSE'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-912564263488699074</id><published>2013-05-13T21:09:00.002+06:00</published><updated>2013-05-13T21:10:17.644+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><category scheme="http://www.blogger.com/atom/ns#" term="wine"/><category scheme="http://www.blogger.com/atom/ns#" term="xorg"/><title type='text'>Сворачивание полноэкранных wine приложений в opensuse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Многие приложения, запущенные из-под wine перехватывают сочетания клавиш, и по этой&amp;nbsp;причине&amp;nbsp;возникают трудности при переключении между окнами или сворачивании. Из такой ситуации можно выйти путем запуска приложения на новом x-сервере.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Первое, что необходимо - это создать файл для запуска приложения. У меня был Warcraft 3, поэтому назовем файл war3.sh и запишем в него следующее:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;#! /bin/bash&lt;/i&gt;&lt;i&gt;cd /home/delegate/.wine/drive_c/distr/War\ 3\ Icuupe\ and\ Garena/Warcraft\ III/&lt;/i&gt;&lt;i&gt;wine war3.exe&lt;/i&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
Далее запускаем это файл в новых иксах:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;startx ./war3.sh -- :1&lt;/i&gt;&lt;/blockquote&gt;
&lt;div&gt;
Где 1 - порядковый номер сервера (мы сейчас запущены на нулевом)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Я столкнулся с двумя проблемами:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. Не запускались иксы.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Fatal server error:&lt;/div&gt;
&lt;div&gt;
Cannot move old log file &quot;/var/log/Xorg.1.log&quot; to &quot;/var/log/Xorg.1.log.old&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Проблема решилась добавлением на них необходимых прав:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;chmod +s /usr/bin/Xorg&lt;/i&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
2. Не было звука в игре. Проблема опять таки в правах и решилась так:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;gpasswd -a username audio&lt;/i&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
Где username - имя моего пользователя. Вроде все, приятной игры. И если у кого возникли еще проблемы, пишите в комментариях, постараемся разобраться.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/912564263488699074/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2013/05/wine-opensuse.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/912564263488699074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/912564263488699074'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2013/05/wine-opensuse.html' title='Сворачивание полноэкранных wine приложений в opensuse'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-1811112370322351869</id><published>2013-05-06T22:06:00.000+06:00</published><updated>2013-05-06T22:18:26.649+06:00</updated><title type='text'>Проблемы с подключением к FTP в OpenSUSE 12.3.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;На днях столкнулся с проблемой подключения к FTP из программы ZendStudio 8. При создании нового удаленного проекта он ни в какую не хотел заканчивать подключение к удаленному серверу. Причем авторизацию проходил на ура. Более того, на этот же FTP сервер я мог заходить как через командную строку, так и через дельфин. Встревал же он на этапе&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;The project directory you have entered does not exist on the server. Please enter a valid project directory&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
Не скажу, что быстро и легко, но все же я нашел решение этой проблемы.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fefefe;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: #fefefe;&quot;&gt;В файле &amp;nbsp;/etc/sysconfig/SuSEfirewall2&amp;nbsp;добавляем&amp;nbsp;модуль:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: #fefefe;&quot;&gt;FW_LOAD_MODULES=&quot;[...] nf_conntrack_ftp&quot;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;В файле /etc/sysconfig/scripts/SuSEfirewall2-custom:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: #fefefe;&quot;&gt;В функции &quot;fw_custom_before_port_handling()&quot;, перед &#39;true&#39;:&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: #fefefe;&quot;&gt;iptables -A INPUT -m helper --helper&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fefefe;&quot;&gt;ftp&lt;/span&gt;&lt;span style=&quot;background-color: #fefefe;&quot;&gt;&amp;nbsp;-j ACCEPT&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;После перезапуска файервола проблема устранилась.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;PS. Я все равно снес к чертовой матери восьмую Zend Studio. Такое дерьмо оказалось. Семерка наше все )&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;PSS. &lt;a href=&quot;https://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/unreviewed-how-faq/477078-active-ftp-connection-remote-host-through-susefirewall2.html&quot;&gt;Инфу я нашел на офф форуме OpenSUSE&lt;/a&gt;:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/1811112370322351869/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2013/05/ftp-opensuse-123.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1811112370322351869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1811112370322351869'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2013/05/ftp-opensuse-123.html' title='Проблемы с подключением к FTP в OpenSUSE 12.3.'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-2925726744892540152</id><published>2013-04-30T12:43:00.001+06:00</published><updated>2013-04-30T12:43:42.286+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bios"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSUSE"/><title type='text'>Проблема с установкой OpenSUSE 12.3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
На днях столкнулся с проблемой установки OpenSUSE 12.3 с DVD диска.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Скачал ISO файл с офф сайта, и нарезал его. Вроде ничего не предвещало беды, сто раз уже так раньше делал с предыдущим версиями. Но не в этот раз. После начала установки процесс начинает вставать на подготовке на отметке 60%. Пункт &quot;Поиск разделов Linux&quot;. После активного гугления было много ответов типа &quot;проверьте вашу разметку диска&quot;, удалите все диски кроме системного где винда. Не помогло ничего.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Проблема решилась банально. В BIOS был отключен floppy disk. PS. Его физически у меня и не было никогда. После этого установка продолжилась и больше проблем не возникло. Вот как-то так.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/2925726744892540152/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2013/04/opensuse-123.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/2925726744892540152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/2925726744892540152'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2013/04/opensuse-123.html' title='Проблема с установкой OpenSUSE 12.3'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-4727318961195606238</id><published>2011-10-19T22:55:00.000+06:00</published><updated>2011-10-19T23:01:49.184+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wxFrame"/><category scheme="http://www.blogger.com/atom/ns#" term="wxStyle"/><category scheme="http://www.blogger.com/atom/ns#" term="wxWidgets"/><title type='text'>wxWidgets. Окна на весь экран.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Фреймы в wxWidgets развернуть на весь экран достаточно
легко. Стоит только указать в конце функции его описания&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;Maximize(&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;);
&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-no-proof: yes;&quot;&gt;MyFrame::MyFrame(&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;
wxString &amp;amp;title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition,
wxSize(200, 200) )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Maximize(&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;);
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span&gt;Также достаточно &lt;/span&gt;полезно&lt;span&gt; пользоваться «стилями» фреймов.&lt;span&gt;&amp;nbsp; &lt;/span&gt;Здесь я приведу их описания, взятые с офф
сайта wxWidgets с &lt;/span&gt;некоторыми&lt;span&gt;
комментариями.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxDEFAULT_FRAME_STYLE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Определяется&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;background: white;&quot;&gt;как&lt;/span&gt;&lt;span style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt; &lt;span lang=&quot;EN-US&quot;&gt;wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER |
wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_&lt;/span&gt;&lt;/span&gt;CHILDREN&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Стиль, который используется в
фреймах &lt;/span&gt;по&lt;span style=&quot;background: white;&quot;&gt;-умолчанию.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxICONIZE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Отображает фрейм без
заголовка и без &lt;/span&gt;границ&lt;span style=&quot;background: white;&quot;&gt;. В этом случае
можно указываь размер и положение на экране. Только для Windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxCAPTION&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Показывает заголовок на &lt;/span&gt;фрейме&lt;span style=&quot;background: white;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxMINIMIZE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Идентично &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;wxICONIZE&lt;/span&gt;&lt;span style=&quot;background: white;&quot;&gt;. Только для Windows. Черт его знает зачем два &lt;/span&gt;одинаковых&lt;span style=&quot;background: white;&quot;&gt; стиля.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxMINIMIZE_BOX&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Показывает кнопку «&lt;/span&gt;свернуть&lt;span style=&quot;background: white;&quot;&gt;»&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxMAXIMIZE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Показывает кнопку
«развернуть».Только &lt;/span&gt;для&lt;span style=&quot;background: white;&quot;&gt; Windows и GTK+.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxCLOSE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt;&quot;&gt;_&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;BOX&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Показывает кнопку «&lt;/span&gt;закрыть&lt;span style=&quot;background: white;&quot;&gt;»&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxSTAY_ON_TOP&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Тут все понятно. Поверх всех окон.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxSYSTEM_MENU&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Добавляет системное меню, содержащее разные команды в
заголовке окна (закрыть, свернуть и т.д.). &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxRESIZE_BORDER&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Показывает изменяемые границы
&lt;/span&gt;окна&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; mso-ansi-language: EN-US;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxFRAME_TOOL_WINDOW&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white;&quot;&gt;Не совсем &lt;/span&gt;понимаю&lt;span style=&quot;background: white;&quot;&gt; что это =)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;style&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: #880000; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;wxFRAME_NO_TASKBAR&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-family: Arial; font-size: 10.5pt; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Создается обычный фрейм, но он не появляется&lt;span&gt;&amp;nbsp; &lt;/span&gt;в панеле задач под виндой и GTK+&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
И небольшой пример:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Что бы создать фрейм, у которого невозможно изменять размер
необходимо применить следующий стиль:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: whitesmoke; border: solid #CCCCCC 1.0pt; margin-left: 1.5pt; margin-right: 6.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-element: para-border-div; padding: 3.0pt 5.0pt 3.0pt 5.0pt;&quot;&gt;
&lt;pre style=&quot;background: whitesmoke; border: none; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-border-alt: solid #CCCCCC .75pt; mso-padding-alt: 3.0pt 5.0pt 3.0pt 5.0pt; padding: 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; mso-ansi-language: EN-US;&quot;&gt;wxDEFAULT_FRAME_STYLE &amp;amp; ~(&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;&lt;a href=&quot;http://docs.wxwidgets.org/2.9.2/defs_8h.html#b2e7b3533b073e1df781c5b60ccc92d5&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;wxRESIZE_BORDER&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; mso-ansi-language: EN-US;&quot;&gt; | &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;&lt;a href=&quot;http://docs.wxwidgets.org/2.9.2/defs_8h.html#8968324afeca5856872724521f199e04&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;wxMAXIMIZE_BOX&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: black; mso-ansi-language: EN-US;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-no-proof: yes;&quot;&gt;MyFrame::MyFrame(&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;
wxString &amp;amp;title) : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-no-proof: yes;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;wxFrame(NULL,
wxID_ANY, title, wxPoint(40, 40), wxSize(200, 200), wxDEFAULT_FRAME_STYLE &amp;amp;
~(wxRESIZE_BORDER | wxMAXIMIZE_BOX))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;{&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Centre(&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;);
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/4727318961195606238/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2011/10/wxwidgets_19.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/4727318961195606238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/4727318961195606238'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2011/10/wxwidgets_19.html' title='wxWidgets. Окна на весь экран.'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-6036030071853501304</id><published>2011-10-19T22:52:00.000+06:00</published><updated>2011-10-19T22:59:50.637+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wxWidgets"/><title type='text'>Установка и настройка wxWidgets.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
C этой статьи я начну делиться с вами опытом в программирование на wxWidgets. Начнем с установки.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Скачиваем      установочник по ссылке &lt;a href=&quot;http://sourceforge.net/projects/wxwindows/files/2.8.12/wxMSW-2.8.12-Setup.exe/download&quot;&gt;http://sourceforge.net/projects/wxwindows/files/2.8.12/wxMSW-2.8.12-Setup.exe/download&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Далее      добавлем в систему переменную среду. &lt;b&gt;Свойста      системы – Дополнительно – Переменные среды – Создать&lt;/b&gt;. Имя переменной –      &lt;b&gt;WXWIN&lt;/b&gt;, значение – путь к папке,      куда был установлен wxWidgets.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Запускаем      в студии файл &lt;b&gt;build\msw\wx.dsw&lt;/b&gt;      и компилируем этот проект.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Создаем      свой новый проект&lt;b&gt;. Visual C++ -      Проект &lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Win&lt;/span&gt;32 – Приложение Windows&lt;/b&gt; и не      забываем ставить галочку «Пустой проект».&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Настраиваем      свойства проекта:&lt;/li&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;a&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Свойства конфигурации – С++ -       Дополнительные каталоги включения&lt;/b&gt; - &lt;i&gt;&quot;$(WXWIN)\include&quot;;&quot;$(WXWIN)\contrib\include&quot;;&quot;$(WXWIN)\lib\vc_lib\mswd&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Свойства конфигурации – С++ -       Препроцессор – Определения препроцессора&lt;/b&gt; - &lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WIN&lt;/span&gt;32;_&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;DEBUG&lt;/span&gt;;_&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WINDOWS&lt;/span&gt;;__&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WINDOWS&lt;/span&gt;__;__&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WXMSW&lt;/span&gt;__;__&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WXDEBUG&lt;/span&gt;__;&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WXDEBUG&lt;/span&gt;=1;__&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WIN&lt;/span&gt;95__;__&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WIN&lt;/span&gt;32__;&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;WINVER&lt;/span&gt;=0&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;x&lt;/span&gt;0400;&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;STRICT&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Свойства конфигурации – Компоновщик –       Общие - Дополнительные каталоги библиотек &lt;/b&gt;- &lt;i&gt;&quot;$(WXWIN)\lib&quot;;&quot;$(WXWIN)\contrib\lib&quot;;&quot;$(WXWIN)\lib\vc_lib&quot;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Свойства конфигурации – Компоновщик –       Ввод – Дополнительные зависимости - &lt;/b&gt;&lt;i&gt;wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib       wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib winmm.lib comctl32.lib       rpcrt4.lib wsock32.lib oleacc.lib kernel32.lib user32.lib gdi32.lib       winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib       uuid.lib odbc32.lib odbccp32.lib&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Свойства       конфигурации – Ресурсы – Общие – Дополнительные каталоги для поиска       включаемых файлов - &lt;i&gt;&quot;$(WXWIN)\lib&quot;;&quot;$(WXWIN)\contrib\lib&quot;;&quot;$(WXWIN)\lib\vc_lib&quot;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Обязательно!!!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
В свойствах проекта &lt;b&gt;Общие – Набор знаков&lt;/b&gt;, выставить «&lt;i&gt;Не задано&lt;/i&gt;». Иначе будут возникать ошибки следующего вида:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;error LNK2001: неразрешенный внешний символ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;error LNK2019: ссылка на неразрешенный внешний символ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;PS&lt;/span&gt;. Предыдущие настройки выданы для &lt;span lang=&quot;EN-US&quot;&gt;Debug&lt;/span&gt;. R&lt;span lang=&quot;EN-US&quot;&gt;elease опишу позже.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/6036030071853501304/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2011/10/wxwidgets.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/6036030071853501304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/6036030071853501304'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2011/10/wxwidgets.html' title='Установка и настройка wxWidgets.'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-946233462018581771</id><published>2011-02-03T21:36:00.001+05:00</published><updated>2011-02-03T21:37:44.760+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="explorer.exe"/><category scheme="http://www.blogger.com/atom/ns#" term="fail"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Запуски explorer.exe...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Сегодня приключился fail. Звонят клиенты - чистый рабочий стол. Ни ярлыков, ничего. Ну, думаю, дело ясное и нехитрое. Затерся explorer.exe. Приехал. И впрямь - чистый рабочий стол. Проверка - ALT + CTRL + DEL -&amp;gt; Выполнить -&amp;gt; C:/Windows/System32/explorer -&amp;gt; OK. Вот тут-то фиг. Выскочила ошибка, что не найден файл shdocvw.dll.&lt;br /&gt;
&lt;br /&gt;
Я не знаю, что на меня нашло, но я, опять-таки, через &quot;выполнить&quot; запускаю IE и лечу в гугл смотреть шо это за файл. Затем с чем может быть связана проблема и решения этой проблемы. Перепробовал штуки 4, два раза перезагрузился. Ничего! &lt;br /&gt;
&lt;br /&gt;
Затем меня &quot;осенило&quot;. Скачал эту dll, перезагрузил. Запустился. Установил каспера, нашел 3 вируса и ушел. Это я должен был сделать в первую очередь. Что меня дернуло лезть смотреть что это за файл, когда мне винда ясно дала понять, что она его тупо не может найти, я до сих пор не знаю. В итоге потерянные 30 минут.&lt;br /&gt;
&lt;br /&gt;
А может быть я ей НАСТОЛЬКО не доверяю? =)&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/946233462018581771/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2011/02/explorerexe.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/946233462018581771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/946233462018581771'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2011/02/explorerexe.html' title='Запуски explorer.exe...'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-6673377517342925363</id><published>2011-01-24T11:34:00.000+05:00</published><updated>2011-01-24T11:34:50.025+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Социальная сеть"/><category scheme="http://www.blogger.com/atom/ns#" term="алгоритм"/><category scheme="http://www.blogger.com/atom/ns#" term="фильмы"/><title type='text'>Алгоритм Эдуардо Сэверина из фильма &quot;Социальная сеть&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Если вы смотрели фильм про Facebook &quot;Социальная сеть&quot;, то вы, должно быть, обратили внимание на алгоритм, который Эдурдо Северин предоставил Марку Цукербергу для его идеи FaceSmach. Вот этот алгоритм:&lt;br /&gt;
&lt;br /&gt;
Ea = ________1_________&lt;br /&gt;
1 + 10 (Rb -Ra) /400&lt;br /&gt;
&lt;br /&gt;
Eb = ________1_________&lt;br /&gt;
1 + 10 (Ra -Rb) /400&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;left&quot; class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uNprYExk009j2d_XbyPXPIXmyahilPmKa8tj0hYN0e1I7xoR7pfdkolVq1T5AMaDC7TZ3v5AsMes1Bag6NSdveQpTH-LLt0nmfduRGnX4V43Mej34CVdRIG4sPxJiT-Lsss7qU36wAya/s320/Picture+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uNprYExk009j2d_XbyPXPIXmyahilPmKa8tj0hYN0e1I7xoR7pfdkolVq1T5AMaDC7TZ3v5AsMes1Bag6NSdveQpTH-LLt0nmfduRGnX4V43Mej34CVdRIG4sPxJiT-Lsss7qU36wAya/s320/Picture+2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
На самом же деле алгоритм этот уже давно известен и называется он &lt;a href=&quot;http://ru.wikipedia.org/wiki/%D0%A0%D0%B5%D0%B9%D1%82%D0%B8%D0%BD%D0%B3_%D0%AD%D0%BB%D0%BE&quot;&gt;&quot;Рейтинг Эло&quot;&lt;/a&gt;. В фильме этот алгоритм представляется чем-то невероятно сложным и удивительным, хотя, на самом деле он используется в течении многих лет в официальных шахматных рейтингах.&lt;br /&gt;
&lt;br /&gt;
Напомню, что по фильму этот алгоритм использовался Марком для сравнивания &amp;nbsp;рейтинга девченок из его Университета.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/6673377517342925363/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2011/01/blog-post.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/6673377517342925363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/6673377517342925363'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2011/01/blog-post.html' title='Алгоритм Эдуардо Сэверина из фильма &quot;Социальная сеть&quot;'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uNprYExk009j2d_XbyPXPIXmyahilPmKa8tj0hYN0e1I7xoR7pfdkolVq1T5AMaDC7TZ3v5AsMes1Bag6NSdveQpTH-LLt0nmfduRGnX4V43Mej34CVdRIG4sPxJiT-Lsss7qU36wAya/s72-c/Picture+2.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-3678623062651231211</id><published>2010-10-16T23:19:00.002+06:00</published><updated>2010-10-16T23:21:24.372+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".htaccess"/><category scheme="http://www.blogger.com/atom/ns#" term="vsftpd"/><title type='text'>FTP не видит файл .htaccess</title><content type='html'>При стандартных настройках FTP-сервера vsftp некоторые FTP клиенты не видят файлы с названиями, начинающимися на точку (например .htaccess). Проблема решается просто. В файл vsftpd.conf необходимо добавить, либо раскомментировать следующее:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;force_dot_files=YES&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/3678623062651231211/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2010/10/ftp-htaccess.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3678623062651231211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3678623062651231211'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2010/10/ftp-htaccess.html' title='FTP не видит файл .htaccess'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-1606089374492378234</id><published>2010-10-14T13:52:00.002+06:00</published><updated>2010-10-14T14:30:03.551+06:00</updated><title type='text'>Не работает rutracker.org</title><content type='html'>Вроде бы не все так страшно:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&quot;Пожар, возникший в административном здании на Марксистской  улице в Москве, в котором пострадало около 10 человек, а общая площадь  возгорания ресторана, в котором и произошел пожар, составила более 500  кв. метров. Причиной пожара стал взрыв баллона с газом в подвале здания.  В соседней десятиэтажке, на которую перекинулся огонь располагался и  дата-центр, поддерживающий записи DNS для Rutracker.org&quot;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;http://www.securitylab.ru/news/398519.php &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Будем надеяться, что вскоре все исправят&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/1606089374492378234/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2010/10/rutrackerorg.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1606089374492378234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/1606089374492378234'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2010/10/rutrackerorg.html' title='Не работает rutracker.org'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-3720138967995479487</id><published>2010-10-12T00:00:00.000+06:00</published><updated>2010-10-12T00:00:59.015+06:00</updated><title type='text'>OpenSuse. Как обойти динамический IP?</title><content type='html'>Динамику в статику лучше преобразовывать с помощью сайта http://www.dyndns.com/.&lt;br /&gt;
&lt;br /&gt;
Заходим и регистрируем себе бесплатный адрес домена. Например test.dyndns-work.com.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Далее лучше пойти по пути меньшего сопротивления. Открываем Yast и с помощью менеджера ПО качаем с репозитариев и устанавливаем ddclient.&lt;br /&gt;
&lt;br /&gt;
Далее ползем в /etc/ddclient.conf удаляем все и вставляем следующие строки:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;pid=/var/run/ddclient.pid&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;daemon=600&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;protocol=dyndns2&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;use=web, web=support.easydns.com/utils/get_ip.php&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;server=members.dyndns.org&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;login=ВАШЛОГИН&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;password=ВАШПАРОЛЬ&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;ВАШДОМЕН&lt;/div&gt;&lt;br /&gt;
Сохраняем и создаем скрипт для запуска клиента:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;chkconfig ddclient on&lt;/div&gt;&lt;br /&gt;
Вот и все. Осталось только запустить его:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;/etc/init.d/ddclient start  &lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/3720138967995479487/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2010/10/opensuse-ip.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3720138967995479487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3720138967995479487'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2010/10/opensuse-ip.html' title='OpenSuse. Как обойти динамический IP?'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681650153688202127.post-3302763121478663598</id><published>2010-09-21T00:05:00.002+06:00</published><updated>2010-09-21T00:12:32.754+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Сибирь"/><category scheme="http://www.blogger.com/atom/ns#" term="Футбол"/><category scheme="http://www.blogger.com/atom/ns#" term="ЦСКА"/><title type='text'>ЦСКА - Сибирь. 1:0</title><content type='html'>Решил сегодня посмотреть матч ЦСКА-Сибирь. Хоть и симпатизирую ЦСКА, но сегодня болел именно за сибиряков. Нравиться мне эта команда и географически роднее чем москвичи. &lt;br /&gt;
К тому же не наиграли они вылет в &quot;пердив&quot;. Но в конечном итоге придется им с элитой похоже попрощаться. &lt;br /&gt;
В принципе матч получился не слишком зрелищным. Запомнился сейв Акинфеева и пас Вагнера. О последнем отдельный разговор. Уже в котором матче замечаю за ним особенность.&lt;br /&gt;
Вроде бы и не заметен на поле в течении практически всего матча, а итог игры решает именно он. Так и сегодня он выдал воистину великолепный пас на Олисе.&lt;br /&gt;
&lt;object width=&quot;500&quot; height=&quot;306&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/GBDZYRXql64?fs=1&amp;amp;hl=ru_RU&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/GBDZYRXql64?fs=1&amp;amp;hl=ru_RU&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;500&quot; height=&quot;306&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
Разочаровали комментаторы на НТВ+. Сравнивать Сибирь с джентльменом с &quot;дыркой сзади штанов&quot; это по-моему перебор даже для Уткина.&lt;br /&gt;
&lt;br /&gt;
Ну что-же. С победой ЦСКА, а Сибири желаю вернуться через сезон в Премьер Лигу.&lt;div class=&quot;blogger-post-footer&quot;&gt;Подписывайтесь на мой Telegram канал.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delegate-nt.blogspot.com/feeds/3302763121478663598/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://delegate-nt.blogspot.com/2010/09/10.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3302763121478663598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681650153688202127/posts/default/3302763121478663598'/><link rel='alternate' type='text/html' href='http://delegate-nt.blogspot.com/2010/09/10.html' title='ЦСКА - Сибирь. 1:0'/><author><name>delegate</name><uri>http://www.blogger.com/profile/01500642050892793104</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>