NFS mounts can be annoying as they tend to "hang" (for various reasons). Here I show how I replaced os.path.exists(..) with a better solution for potentially hanging paths.
Python is great for writing command line scripts. Before extending a three line Bash script I usually rethink and implement it in Python. This post should summarize some conventions and best practices I recommend.
Since 2002 I'm using GnuCash to track my personal accounts, incomes and expenses. Just recently I discovered the GnuCash mobile Android app. After importing my GnuCash account tree into the mobile app I could easily add expense transactions. The only problem was: How do I get the recorded transactions back into my GnuCash desktop application? The mobile app supports exporting transactions to QIF or OFX files. These files can be imported by the desktop application. But I realized that this manual process is too cumbersome to use on a daily basis.
This site was down for quite some time. I did not want to deploy the old PHP-based site again and therefore looked for alternatives. I never used a static site generator before, but as this site has only a single author (me), I decided to go for it. Python is my favorite programming language, so the site generation tool should also be Python based. I started to look at the Python Wiki blog software list and quickly narrowed my choice down to Nikola: