<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Python on Nico Maas</title>
        <link>https://www.nico-maas.de/categories/python/</link>
        <description>Recent content in Python on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Thu, 02 Apr 2020 14:14:36 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/categories/python/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Quickly check python imports</title>
            <link>https://www.nico-maas.de/posts/2020-04-02-quickly-check-python-imports/</link>
            <pubDate>Thu, 02 Apr 2020 14:14:36 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2020-04-02-quickly-check-python-imports/</guid>
            <description>&lt;p&gt;If you happen to write a lot of python scripts and just want to check which of the added &amp;ldquo;imports&amp;rdquo; are actually needed to function - and do not want to use an IDE - just check out &lt;a class=&#34;link&#34; href=&#34;https://pypi.org/project/importchecker/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://pypi.org/project/importchecker/&lt;/a&gt; - it comes down to a quick&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;easy_install importchecker&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and afterwards you can check your scripts by using&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;importchecker myScript.py&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It will only output the imports NOT needed, which you can then remove by hand&lt;/p&gt;</description>
        </item><item>
            <title>CUDA and Tensorflow in Docker</title>
            <link>https://www.nico-maas.de/posts/2017-07-24-cuda-and-tensorflow-in-docker/</link>
            <pubDate>Mon, 24 Jul 2017 12:00:25 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2017-07-24-cuda-and-tensorflow-in-docker/</guid>
            <description>&lt;p&gt;In this howto we will get CUDA working in Docker. And - as bonus - add Tensorflow on top! However, please note that you&amp;rsquo;ll need following prereqs:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;GNU/Linux x86_64 with kernel version &amp;gt; 3.10&#xD;&#xA;Docker &amp;gt;= 1.9 (official docker-engine, docker-ce or docker-ee only)&#xD;&#xA;NVIDIA GPU with Architecture &amp;gt; Fermi (2.1)&#xD;&#xA;NVIDIA drivers &amp;gt;= 340.29 with binary nvidia-modprobe&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;We will install the NVIDIA drivers in this tutorial, so you should only have the right kernel and docker version already installed, we&amp;rsquo;re using a Ubuntu 15.05 x64 machine here. For CUDA, you&amp;rsquo;ll need a Fermi 2.1 CUDA card (or better), for tensorflow a &amp;gt;= 3.0 CUDA card&amp;hellip;&lt;/p&gt;</description>
        </item><item>
            <title>[Python / QL-570] Using Brother QL Printers via Python</title>
            <link>https://www.nico-maas.de/posts/2016-11-22-python-ql-570-using-brother-ql-printers-via-python/</link>
            <pubDate>Tue, 22 Nov 2016 20:45:44 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-11-22-python-ql-570-using-brother-ql-printers-via-python/</guid>
            <description>&lt;p&gt;I have been building an complete Invoice / Cashier system for Cafés in my spare time for quite some time. It consists of an server, running the web app, an laptop to use as the real cashier system, multiple Android Phones as a way for the waiters to enter their orders and two Raspberry Pis with Brother QL-570s as Invoice Printers. One of those is set at the counter, printing the &amp;ldquo;normal invoice&amp;rdquo;, the second one is located at the kitchen and got some special routing logic, so that it only recieves the items actually produced in the kitchen. However, as I was using these special kind of printers, I was bound to use the printer-ptouch drivers&amp;hellip; and yeah, they are &lt;em&gt;kind of&lt;/em&gt; buggy. Buggy in that way, that, after installing them with cups and hacking your paper media in there - they will just stop working from time to time. Without further warning. They will stop printing just somewhere in the middle of the job. I really tried all options available to me now - and was now keen on finding &lt;em&gt;other&lt;/em&gt; kinds of solutions. And after two days of searching, I stumpled upon this master piece: &lt;a class=&#34;link&#34; href=&#34;https://github.com/pklaus/brother_ql&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/pklaus/brother_ql&lt;/a&gt;. Mr. Philipp Klaus did actually dump the whole cups and printer server stuff and directly converted png files into the needed binary code for the printer. And not only the QL-570, but other types as well. I really recommend checking out his code and trying his way on printing - its a huge timesaver, especially on embedded devices like the Raspberry Pi :)!&lt;/p&gt;</description>
        </item><item>
            <title>[ØMQ] Getting started with ØMQ and Python on Windows 7, x64</title>
            <link>https://www.nico-maas.de/posts/2015-04-15-omq-getting-started-with-omq-and-python-on-windows-7-x64/</link>
            <pubDate>Wed, 15 Apr 2015 15:36:40 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2015-04-15-omq-getting-started-with-omq-and-python-on-windows-7-x64/</guid>
            <description>&lt;p&gt;ØMQ (zeroMQ) is one of these sexy &amp;ldquo;new&amp;rdquo; Message Queue Systems. I wanted to dive into it right away, starting with Java. However, building zeroMQ with Java Binding on Windows 7, x64 is a pain (read: Did not work out fast enough - as I wanted to get my feet wet fast!) - so I switched over to Python. Well. Getting that to work is quite easy.&lt;/p&gt;&#xA;&lt;p&gt;1.) Download and install latest zeroMQ&lt;br&gt;&#xA;You can get the Windows Downloads on &lt;a class=&#34;link&#34; href=&#34;https://zeromq.org/distro:microsoft-windows&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://zeromq.org/distro:microsoft-windows&lt;/a&gt;, i choose the Stable Release 4.0.4 for Windows, x64 Release for Vista and newer. Just download and install it.&lt;/p&gt;</description>
        </item><item>
            <title>[Python] Python HTTP Server One Liner</title>
            <link>https://www.nico-maas.de/posts/2015-01-19-python-python-http-server-one-liner/</link>
            <pubDate>Mon, 19 Jan 2015 21:22:50 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2015-01-19-python-python-http-server-one-liner/</guid>
            <description>&lt;p&gt;As fidepus learned the &amp;ldquo;Python HTTP Server One Liner&amp;rdquo; from anyk, I needed to duplicate this wisdom myself - because I&amp;rsquo;ll forget it as well ;)!&lt;/p&gt;&#xA;&lt;p&gt;These commands will start an HTTP server on the current directory, listening on Port 8080.&lt;/p&gt;&#xA;&lt;p&gt;Python 2.X:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;python -m SimpleHTTPServer&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Python 3.X:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;python -m http.server&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Original Post and Kudos to: &lt;a class=&#34;link&#34; href=&#34;http://www.fidepus.de/2014/05/python-server-one-liner/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;http://www.fidepus.de/2014/05/python-server-one-liner/&lt;/a&gt;&lt;/p&gt;</description>
        </item></channel>
</rss>
