Участник:StasFomin/Bookmarks/Stegano — различия между версиями

Материал из DISCOPAL
Перейти к: навигация, поиск
(Добавлена закладка Как мы портировали OpenCV на WindowsRT / Блог компании Intel / Хабр)
(Добавлена закладка pygtail · PyPI)
(не показано 47 промежуточных версий этого же участника)
Строка 1: Строка 1:
 
== 2020 ==
 
== 2020 ==
 +
=== 2020-10 ===
 +
 +
* 2020-10-29, 00:10:17: [https://pypi.org/project/pygtail/ pygtail · PyPI]
 +
*: <html><span class="kn">from</span> <span class="nn">pygtail</span> <span class="kn">import</span> <span class="n">Pygtail</span>  <span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">Pygtail</span><span class="p">(</span><span class="s2">"some.log"</span><span class="p">):</span>    <span class="n">sys</span><span class="o">.</span><span class="n">stdout</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">line</span><span class="p">)</span></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-10-29, 00:09:15: [https://stackoverflow.com/questions/36327265/python-parse-log-file-in-realtime-reload-when-the-log-rotates Python Parse log file in realtime, reload when the log rotates - Stack Overflow]
 +
*: <html><span class="hljs-keyword">import</span> os  file_path = <span class="hljs-string">'/var/log/app/access.log'</span>  <span class="hljs-keyword">with</span> open(file_path) <span class="hljs-keyword">as</span> f:    file_size = <span class="hljs-number">0</span>    <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:        line = f.readline()        <span class="hljs-keyword">if</span> line:            <span class="hljs-keyword">print</span> line        file_status_obj = os.stat(file_path)        <span class="hljs-keyword">if</span> file_size &lt; file_status_obj.st_size:            f.seek(<span class="hljs-number">0</span>)        file_size = file_status_obj.st_size </html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-10-28, 23:11:37: [https://github.com/Rune28/Uchi/blob/c955d157c1ad85db19cbbece9e61cb8924ad4e40/event_data_parser.py Uchi/event_data_parser.py at c955d157c1ad85db19cbbece9e61cb8924ad4e40 · Rune28/Uchi]
 +
* 2020-10-28, 23:08:22: [https://github.com/search?l=Python&p=10&q=clickhouse_driver&type=Code Search · clickhouse_driver]
 +
* 2020-10-28, 23:04:44: [https://github.com/ericmccarthy7/clickhouse-pool/blob/ac438b1f331a166be98faee2ab081e4afc7c59bc/clickhouse_pool/pool.py clickhouse-pool/pool.py at ac438b1f331a166be98faee2ab081e4afc7c59bc · ericmccarthy7/clickhouse-pool]
 +
* 2020-10-28, 19:53:31: [https://github.com/recoilme/pudge recoilme/pudge: Fast and simple key/value store written using Go's standard library]
 +
* 2020-10-28, 18:39:29: [https://habr.com/ru/company/vk/blog/430168/ Использование ClickHouse в VK, или Зачем мы написали KittenHouse / Блог компании ВКонтакте / Хабр]
 +
* 2020-10-25, 16:00:41: [https://www.virtualbox.org/wiki/Testbuilds Testbuilds – Oracle VM VirtualBox]
 +
* 2020-10-24, 23:01:03: [https://stackoverflow.com/questions/58984413/how-to-progammatically-pass-the-callable-to-gunicorn-instead-of-arguments python - How to progammatically pass the callable to gunicorn instead of arguments - Stack Overflow]
 +
*: <html><button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" aria-describedby="--stacks-s-tooltip-5nem8fah"></button><div id="--stacks-s-tooltip-5nem8fah" class="s-popover s-popover__tooltip pe-none" aria-hidden="true" role="tooltip">This answer is useful<div class="s-popover--arrow"></div></div>        <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="0">0</div>        <button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" aria-describedby="--stacks-s-tooltip-o4ee66hq"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"></svg></button></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-10-21, 22:32:57: [https://forums.virtualbox.org/viewtopic.php?f=6&t=90853&start=300 virtualbox.org • View topic - VirtualBox 6.0 and Hyper-V]
 +
*: <html>github . com/MicrosoftDocs/WSL/issues/798</html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-10-21, 22:21:56: [https://github.com/MicrosoftDocs/WSL/issues/798 WSL2 breaks VirtualBox 6.1 · Issue #798 · MicrosoftDocs/WSL]
 +
* 2020-10-21, 22:10:57: [https://forums.virtualbox.org/viewtopic.php?f=6&t=90853 virtualbox.org • View topic - VirtualBox 6.0 and Hyper-V]
 +
* 2020-10-20, 18:33:19: [https://habr.com/ru/post/427217/ Анализ производительности WSGI-серверов: Часть вторая / Хабр]
 +
* 2020-10-16, 12:00:06: [https://medium.com/dataseries/how-to-make-a-photo-editor-with-react-f81485a5ce08 How to Make a Photo Editor with React | by John Au-Yeung | DataSeries | Medium]
 +
* 2020-10-13, 20:47:25: [https://coq.discourse.group/ Coq - The Coq proof assistant user and developer forum.]
 +
 +
=== 2020-09 ===
 +
 +
* 2020-09-28, 11:22:51: [https://github.com/malikwahab/pilxel/issues/15 Uploading to pilxel.herokuapp.com does not work · Issue #15 · malikwahab/pilxel]
 +
*: <html>Uploading to pilxel.herokuapp.com  does not work </html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-09-24, 11:38:34: [https://www.reddit.com/r/Fedora/comments/fx5z9e/communication_between_docker_containers_blocked/ Communication between Docker containers blocked by firewall in Fedora 32 : Fedora]
 +
*: <html><p class="_1qeIAgB0cPwnLhDF9XSiJM">You may need to adjust firewallds backend from nftables to iptables.</p><p class="_1qeIAgB0cPwnLhDF9XSiJM">See FirewallBackend in  /etc/firewalld/firewalld.conf</p></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-09-18, 19:07:59: [http://robocraft.ru/blog/computervision/549.html OpenCV - голографическое кодирование картинки / Компьютерное зрение / RoboCraft. Роботы? Это просто!]
 +
* 2020-09-08, 21:22:06: [https://habr.com/ru/post/454440/ Мелкая питонячая радость #2: Starlette / Хабр]
 +
*: <html>Starlette</html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-09-06, 13:22:25: [https://news.ycombinator.com/item?id=22432616 Hasura is a game-changer. I'm never writing CRUD backend apps again by hand. Co... | Hacker News]
 +
* 2020-09-06, 12:58:00: [https://github.com/cpursley/react-admin-low-code cpursley/react-admin-low-code: react-admin (via ra-data-hasura-graphql provider) + hasura = :)]
 +
* 2020-09-02, 21:56:11: [https://github.com/Nuitka/Nuitka/issues/618 Python3.5: Absolute "import from" of a module was not supported · Issue #618 · Nuitka/Nuitka]
 +
*: <html><p>I can confirm that pydantic / fapi now compiles with Nuitka 0.6.8rc4.</p> <p>As you suggested, uvicorn ASGI server won't run, but that wasn't your target for the issue.<br> Maybe as a side effect of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="557115491" data-permission-text="Title is private" data-url="https://github.com/Nuitka/Nuitka/issues/613" data-hovercard-type="issue" data-hovercard-url="/Nuitka/Nuitka/issues/613/hovercard" href="https://github.com/Nuitka/Nuitka/issues/613">#613</a>, the error message stating that it cannot run ASGI app has some unicode signs in it:</p></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-09-01, 22:47:38: [https://habr.com/ru/company/lanit/blog/516330/?utm_campaign=516330&utm_source=habrahabr&utm_medium=rss Как устроена графика в Linux: обзор различных сред оформления рабочего стола / Блог компании ГК ЛАНИТ / Хабр]
 +
* 2020-09-01, 21:06:44: [https://habr.com/ru/post/473620/?utm_campaign=473620&utm_source=habrahabr&utm_medium=rss Как мы воспринимаем цвет. Занимательные факты. Просто об очень сложном / Хабр]
 +
* 2020-09-01, 08:57:02: [https://www.gwern.net/docs/www/patents.google.com/ad1bbbc992f81457e577a71d7397022eee67a316.html US20150124107A1 - Associating cameras with users and objects in a social networking system - Google Patents]
 +
* 2020-09-01, 08:56:28: [https://scholar.google.com/scholar?hl=en&as_sdt=0%2C21&q=identification+sensor+noise+anonymity+OR+forensics&btnG= identification sensor noise anonymity OR forensics - Google Scholar]
 +
 +
=== 2020-08 ===
 +
 +
* 2020-08-22, 18:10:22: [https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk Download the Windows Driver Kit (WDK) - Windows drivers | Microsoft Docs]
 +
*: <html><p>You can run the Windows 10, version 2004 WDK on Windows 7 and later, and use it to develop drivers for these operating systems:</p> <div class="table-scroll-wrapper"><table class="table"><caption class="visually-hidden">Runtime requirements</caption> <thead> <tr> <th>Client OS</th> <th>Server OS</th> </tr> </thead> <tbody> <tr> <td>Windows 10</td> <td>Windows Server 2019, Windows Server 2016</td> </tr> <tr> <td>Windows 8.1</td> <td>Windows Server 2012 R2</td> </tr> <tr> <td>Windows 8</td> <td>Windows Server 2012</td> </tr> <tr> <td>Windows 7</td> <td>Windows Server 2008 R2 SP1</td></tr></tbody></table></div></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-08-22, 04:02:26: [https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/converting-wdk-8-1-projects-to-wdk-10 Converting WDK 8.1 Projects to WDK 10 - Windows drivers | Microsoft Docs]
 +
* 2020-08-12, 19:35:35: [https://github.com/tlaplus/PlusPy tlaplus/PlusPy: Python interpreter for TLA+ specifications]
 +
* 2020-08-12, 19:25:48: [https://ieeexplore.ieee.org/abstract/document/8991646 Blockchain and IoT Based Formal Model of Smart Waste Management System Using TLA+ - IEEE Conference Publication]
 +
* 2020-08-07, 15:54:09: [https://www.virtualbox.org/ticket/19086 #19086 (rm / rmdir not working correctly in shared folders) – Oracle VM VirtualBox]
 +
* 2020-08-05, 12:30:58: [https://stackoverflow.com/questions/4193514/how-to-get-hard-disk-serial-number-using-python/4194146#4194146 linux - How to get hard disk serial number using Python - Stack Overflow]
 +
*: <html><span class="kwd">with</span><span class="pln"> open</span><span class="pun">(</span><span class="pln">sys</span><span class="pun">.</span><span class="pln">argv</span><span class="pun">[</span><span class="lit">1</span><span class="pun">],</span><span class="pln"> </span><span class="str">"rb"</span><span class="pun">)</span><span class="pln"> </span><span class="kwd">as</span><span class="pln"> fd</span><span class="pun">:</span><span class="pln">    </span><span class="com"># tediously derived from the monster struct defined in &lt;hdreg.h&gt;</span><span class="pln">    </span><span class="com"># see comment at end of file to verify</span><span class="pln">    hd_driveid_format_str </span><span class="pun">=</span><span class="pln"> </span><span class="str">"@ 10H 20s 3H 8s 40s 2B H 2B H 4B 6H 2B I 36H I Q 152H"</span><span class="pln">    </span><span class="com"># Also from &lt;hdreg.h&gt;</span><span class="pln">    HDIO_GET_IDENTITY </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0x030d</span><span class="pln">    </span><span class="com"># How big a buffer do we need?</span><span class="pln">    sizeof_hd_driveid </span><span class="pun">=</span><span class="pln"> struct</span><span class="pun">.</span><span class="pln">calcsize</span><span class="pun">(</span><span class="pln">hd_driveid_format_str</span><span class="pun">)</span><span class="pln">      </span><span class="com"># ensure our format string is the correct size</span><span class="pln">    </span><span class="com"># 512 is extracted using sizeof(struct hd_id) in the c code</span><span class="pln">    </span><span class="kwd">assert</span><span class="pln"> sizeof_hd_driveid </span><span class="pun">==</span><span class="pln"> </span><span class="lit">512</span><span class="pln">      </span><span class="com"># Call native function</span><span class="pln">    buf </span><span class="pun">=</span><span class="pln"> fcntl</span><span class="pun">.</span><span class="pln">ioctl</span><span class="pun">(</span><span class="pln">fd</span><span class="pun">,</span><span class="pln"> HDIO_GET_IDENTITY</span><span class="pun">,</span><span class="pln"> </span><span class="str">" "</span><span class="pln"> </span><span class="pun">*</span><span class="pln"> sizeof_hd_driveid</span><span class="pun">)</span><span class="pln">    fields </span><span class="pun">=</span><span class="pln"> struct</span><span class="pun">.</span><span class="pln">unpack</span><span class="pun">(</span><span class="pln">hd_driveid_format_str</span><span class="pun">,</span><span class="pln"> buf</span><span class="pun">)</span><span class="pln">    serial_no </span><span class="pun">=</span><span class="pln"> fields</span><span class="pun">[</span><span class="lit">10</span><span class="pun">].</span><span class="pln">strip</span><span class="pun">()</span><span class="pln">    model </span><span class="pun">=</span><span class="pln"> fields</span><span class="pun">[</span><span class="lit">15</span><span class="pun">].</span><span class="pln">strip</span><span class="pun">()</span><span class="pln">    </span><span class="kwd">print</span><span class="pun">(</span><span class="str">"Hard Disk Model: %s"</span><span class="pln"> </span><span class="pun">%</span><span class="pln"> model</span><span class="pun">)</span><span class="pln">    </span><span class="kwd">print</span><span class="pun">(</span><span class="str">"  Serial Number: %s"</span><span class="pln"> </span><span class="pun">%</span><span class="pln"> serial_no</span><span class="pun">)</span></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-08-04, 03:05:33: [http://sourceware.org/binutils/docs/ld/VERSION.html VERSION - Untitled]
 +
* 2020-08-03, 14:43:19: [https://habr.com/ru/company/veeam/blog/471226/ Linux многоликий: как работать на любом дистрибутиве / Блог компании Veeam Software / Хабр]
 +
*: <html>Вы можете компилировать программы современным компилятором, в современном дистрибутиве, и использовать динамическую линковку со старыми заголовками glibc, чтобы ваша программа запускалась на древнегреческих дистрибутивах, но при этом не требовала собственного libc.<br> См. <a href="https://github.com/wheybags/glibc_version_header">github.com/wheybags/glibc_version_header</a> и <a href="https://github.com/sulix/bingcc">github.com/sulix/bingcc</a></html>
 +
<!-- NEXT BOOKMARK -->
 +
 
=== 2020-07 ===
 
=== 2020-07 ===
  
 +
* 2020-07-25, 13:22:16: [https://answers.microsoft.com/en-us/windows/forum/all/applications-do-not-work-in-windows-sandbox/a5547057-d2b1-4db5-8c6e-0cfcdc03dd65 Applications do not work in windows sandbox - Microsoft Community]
 +
* 2020-07-25, 04:07:07: [https://pro.ant.design/ Ant Design Pro - Out-of-box UI solution for enterprise applications]
 +
* 2020-07-25, 03:49:20: [https://github.com/marmelab/react-admin/tree/master/examples/demo react-admin/examples/demo at master · marmelab/react-admin]
 +
* 2020-07-25, 03:22:44: [https://www.codingforentrepreneurs.com/blog/opencv-python-extract-faces-rest-api-flask OpenCV & Python: Extract Faces with a REST API | Post | Coding For Entrepreneurs]
 +
*: <html>OpenCV &amp; Python: Extract Faces with a REST API</html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-07-25, 02:54:20: [https://github.com/arshit09/AI-Photo-Editor arshit09/AI-Photo-Editor: AI Photo Editor]
 +
* 2020-07-25, 02:42:48: [https://github.com/Nuitka/Nuitka/issues/700 Flask application compilation · Issue #700 · Nuitka/Nuitka]
 +
*: <html><span class="js-issue-title">Flask application compilation      </span>      <span class="gh-header-number">#700</span></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-07-25, 02:35:28: [https://github.com/Nuitka/Nuitka/issues/478 nuitka compiles code successfuly but give SyntaxError: Non-UTF-8 code starting with '\x9d' in file on running · Issue #478 · Nuitka/Nuitka]
 +
*: <html><em class="diigoHighlight id_17248e39bbaf83dbbd429304cebd5cfc type_0 yellow">I compiled my flask app as a standalone binary using the command :</em><br> <code><em class="diigoHighlight id_17248e39bbaf83dbbd429304cebd5cfc type_0 yellow">python3 -m nuitka --standalone --follow-imports --recurse-all --show-progress --show-scons run.py</em></code><br><em class="diigoHighlight id_17248e39bbaf83dbbd429304cebd5cfc type_0 yellow"> it compiles successfully everything but on running the binary it give:</em></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-07-25, 02:32:36: [https://github.com/benoitc/gunicorn/issues/1555 Nuitka compiler can not be used with gunicorn · Issue #1555 · benoitc/gunicorn]
 +
*: <html>Alternatively, you may be able to use the <code>--module</code> <a href="http://nuitka.net/doc/user-manual.html#use-case-2-extension-module-compilation" rel="nofollow">form of Nuitka compilation</a> to compile your module or package. That should produce a standard shared object extension module that if you arrange to be on sys.path gunicorn should be able to find and import. This should be the same as compiling your module using Cython, and I would expect that to work under limited circumstances.</html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-07-24, 00:14:29: [https://github.com/mhammond/pywin32/issues/1302 (Feature request) Python service without pythonservice.exe when using Nuitka · Issue #1302 · mhammond/pywin32]
 +
*: <html><p>Is there any hope to make pythonservice.exe load the Nuitka compiled exe itself instead of trying to import py files ?</p> <ul> <li>Steps to reproduce the problem.<br> Create a basic service like <a href="https://gist.github.com/deajan/4af18971ca0e2315ebdf872c57feeea6">https://gist.github.com/deajan/4af18971ca0e2315ebdf872c57feeea6</a></li> </ul> <p>Compile with nuitka as standalone</p> <pre><code>nuitka --standalone --experimental=useInternalDependencyWalker --import-module=win32timezone myservice.py </code></pre> <p>I made sure pythonservice.exe and pywintypes32.dll are in the nuitka distribution folder.<br> The service installs, but then tries to load directly the .py files instead of the executable created by Nuitka.</p> <p>Best regards.</p> <p>Using Python 3.7.2 and pywin32 224.</p></html>
 +
<!-- NEXT BOOKMARK -->
 +
* 2020-07-19, 22:46:38: [https://docs.python.org/3/using/windows.html 3. Using Python on Windows — Python 3.8.4 documentation]
 
* 2020-07-19, 22:45:40: [https://habr.com/ru/company/intel/blog/210832/ Как мы портировали OpenCV на WindowsRT / Блог компании Intel / Хабр]
 
* 2020-07-19, 22:45:40: [https://habr.com/ru/company/intel/blog/210832/ Как мы портировали OpenCV на WindowsRT / Блог компании Intel / Хабр]
 
* 2020-07-19, 22:44:46: [https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019 Visual Studio Build Tools workload and component IDs | Microsoft Docs]
 
* 2020-07-19, 22:44:46: [https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019 Visual Studio Build Tools workload and component IDs | Microsoft Docs]
Строка 171: Строка 256:
 
* 2020-07-03, 00:11:26: [https://github.com/kivy/buildozer kivy/buildozer: Generic Python packager for Android and iOS]
 
* 2020-07-03, 00:11:26: [https://github.com/kivy/buildozer kivy/buildozer: Generic Python packager for Android and iOS]
 
* 2020-07-03, 00:11:16: [https://github.com/HeaTTheatR/KivyMD HeaTTheatR/KivyMD: KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications.]
 
* 2020-07-03, 00:11:16: [https://github.com/HeaTTheatR/KivyMD HeaTTheatR/KivyMD: KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications.]
* 2020-07-03, 00:10:47: [https://pybenchmarks.org/u64q/benchmark.php?test=all&lang=nuitka&lang2=numba&data=u64q Nuitka vs Numba | Python Interpreters Benchmarks]
+
* 2020-07-03, 00:10:47: [https://pybenchmarks.org/u64q/benchmark.php?test=all&lang=nuitka&lang2=numba&data=u64q Nuitka vs Numba | Python Interpreters Benchmarks]
 
* 2020-07-03, 00:04:35: [https://github.com/megastep/makeself megastep/makeself: A self-extracting archiving tool for Unix systems, in 100% shell script.]
 
* 2020-07-03, 00:04:35: [https://github.com/megastep/makeself megastep/makeself: A self-extracting archiving tool for Unix systems, in 100% shell script.]
 
* 2020-07-02, 23:52:52: [https://stackoverflow.com/questions/15365249/build-python-with-mingw-and-gcc Build Python with Mingw and gcc - Stack Overflow]
 
* 2020-07-02, 23:52:52: [https://stackoverflow.com/questions/15365249/build-python-with-mingw-and-gcc Build Python with Mingw and gcc - Stack Overflow]

Версия 21:10, 28 октября 2020

2020

2020-10

2020-09

2020-08

2020-07

Навигация