<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>KHE (Posts about python)</title><link>https://east.fm/</link><description></description><atom:link href="https://east.fm/categories/python.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 09 Dec 2018 21:36:35 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>git pre-commit Hooks for Python</title><link>https://east.fm/posts/using-git-pre-commit-hooks/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;As part of an effort to move to a fully automated CI/CD process, I wanted to begin using
&lt;code&gt;git&lt;/code&gt; pre-commit hooks for my python code.  These are my notes on setting that up.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/using-git-pre-commit-hooks/index.html"&gt;Read more…&lt;/a&gt; (5 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>CI</category><category>devops</category><category>emacs</category><category>git</category><category>python</category><guid>https://east.fm/posts/using-git-pre-commit-hooks/index.html</guid><pubDate>Sun, 09 Dec 2018 00:59:12 GMT</pubDate></item><item><title>Emacs 26, Mojave, elpy, readline</title><link>https://east.fm/posts/emacs-26-mojave-elpy-readline/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;I first started having problems with macOS &lt;code&gt;readline&lt;/code&gt; and macports Python a year or two
ago.  Initially, it was bugs in resetting the tty to a sane configuration when a Python
REPL exited.  That seems to have been solved, but I'm now encountering &lt;code&gt;readline&lt;/code&gt;
problems with Python 3.7, GNU Emacs 26.1, and &lt;code&gt;elpy&lt;/code&gt;.  These notes describe what seems
to be a solution, at least for the time being.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/emacs-26-mojave-elpy-readline/index.html"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>emacs</category><category>macos</category><category>mojave</category><category>python</category><guid>https://east.fm/posts/emacs-26-mojave-elpy-readline/index.html</guid><pubDate>Wed, 03 Oct 2018 05:00:00 GMT</pubDate></item><item><title>Configuring GNU emacs with elpy on MacOS</title><link>https://east.fm/posts/configuring-gnu-emacs-with-elpy-on-macos/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;Note on installing and configuring &lt;code&gt;elpy&lt;/code&gt; in GNU Emacs 26.1 with Python 3.7 on
MacOS Sierra (10.12).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/configuring-gnu-emacs-with-elpy-on-macos/index.html"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>emacs</category><category>python</category><guid>https://east.fm/posts/configuring-gnu-emacs-with-elpy-on-macos/index.html</guid><pubDate>Sat, 29 Sep 2018 19:17:15 GMT</pubDate></item><item><title>Using acme.sh with cpanel on a2hosting</title><link>https://east.fm/posts/acme-sh-cpanel-a2hosting/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;I've used &lt;a class="reference external" href="http://a2hosting.com"&gt;a2hosting.com&lt;/a&gt; for many years with good results.  This site
lives there on an inexpensive shared hosting plan.  I've been
converting client sites to use &lt;a class="reference external" href="http://letsencrypt.org"&gt;Let's Encrypt&lt;/a&gt; (LE) and decided to do the
same for my site.  Here is how I automated LE SSL certificate renewal and
installation using &lt;a class="reference external" href="https://acme.sh"&gt;acme.sh&lt;/a&gt;, Cpanel, and a short python script.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/acme-sh-cpanel-a2hosting/index.html"&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>ACME</category><category>Cpanel</category><category>httpd</category><category>python</category><category>SSL</category><category>sysadmin</category><guid>https://east.fm/posts/acme-sh-cpanel-a2hosting/index.html</guid><pubDate>Tue, 14 Feb 2017 20:28:24 GMT</pubDate></item><item><title>Using an Amazon Dash Button for Emergency Notifications</title><link>https://east.fm/posts/using-an-amazon-dash-button-for-emergency-notifications/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div class="section" id="using-an-amazon-dash-iot-button-for-medical-emergencies"&gt;
&lt;h2&gt;Using an Amazon Dash/IoT Button for Medical Emergencies&lt;/h2&gt;
&lt;p&gt;I've been interested in the Amazon Dash button as a generic IoT device since
they were introduced.  The original branded buttons are a great deal at $5,
but using them for other than their intended purpose is a chore.
With Amazon's introduction of the generic &lt;tt class="docutils literal"&gt;IoT Button&lt;/tt&gt;, it is now quite
simple to create custom behavior associated with the button.  These notes
describe how I used one to I create an 'emergency' button for my 103 year old
father.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/using-an-amazon-dash-button-for-emergency-notifications/index.html"&gt;Read more…&lt;/a&gt; (6 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>AWS</category><category>IoT</category><category>python</category><guid>https://east.fm/posts/using-an-amazon-dash-button-for-emergency-notifications/index.html</guid><pubDate>Thu, 26 Jan 2017 22:39:19 GMT</pubDate></item><item><title>Current Method for Installing and Managing Python on macOS</title><link>https://east.fm/posts/current-method-for-installing-and-managing-python-on-macos/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;It seems that I change my method of installing and managing multiple Python
versions on macOS about every 9-12 months.  This note describes my current
method, which also happens to be the simplest that I've used.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/current-method-for-installing-and-managing-python-on-macos/index.html"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>macos</category><category>python</category><guid>https://east.fm/posts/current-method-for-installing-and-managing-python-on-macos/index.html</guid><pubDate>Sat, 21 Jan 2017 01:30:39 GMT</pubDate></item><item><title>A Digital Image Workflow Tool</title><link>https://east.fm/posts/a-digital-image-workflow-tool/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;This note describes some simple software I've written called &lt;tt class="docutils literal"&gt;photos&lt;/tt&gt;, which
to collects the photos and videos I take and stores them in a repository for
further organization and backup.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/a-digital-image-workflow-tool/index.html"&gt;Read more…&lt;/a&gt; (5 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>image</category><category>photo</category><category>python</category><category>workflow</category><guid>https://east.fm/posts/a-digital-image-workflow-tool/index.html</guid><pubDate>Tue, 29 Nov 2016 20:42:49 GMT</pubDate></item><item><title>OS-X, 'Open With', and emacsclient</title><link>https://east.fm/posts/open-with-emacsclient/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;Because I've configured my GNU emacs to &lt;a class="reference external" href="https://east.fm/posts/gnu-emacs-setup-for-os-x/index.html"&gt;automatically run in daemon mode&lt;/a&gt; I wish to 'use' emacs by running
&lt;tt class="docutils literal"&gt;emacsclient&lt;/tt&gt; exclusively.  But emacsclient isn't an OS-X 'app' which means
that I can't double click on a file to open it with emacsclient.  It also
means that I can't use the 'Open With' menu to edit a file via emacsclient.
Here is how to resolve those issues.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/open-with-emacsclient/index.html"&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>emacs</category><category>OS-X</category><category>plist</category><category>python</category><guid>https://east.fm/posts/open-with-emacsclient/index.html</guid><pubDate>Tue, 15 Dec 2015 01:57:02 GMT</pubDate></item><item><title>Python pprint with colored syntax highlighting</title><link>https://east.fm/posts/python-pprint-with-colored-syntax-highlighting/index.html</link><dc:creator>Kenneth H. East</dc:creator><description>&lt;div&gt;&lt;p&gt;Code snippet for colored syntax highlighting with &lt;tt class="docutils literal"&gt;pprint&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://east.fm/posts/python-pprint-with-colored-syntax-highlighting/index.html"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>python</category><guid>https://east.fm/posts/python-pprint-with-colored-syntax-highlighting/index.html</guid><pubDate>Thu, 28 May 2015 15:14:11 GMT</pubDate></item></channel></rss>