Saturday, 29 August 2015

Python Logging

Just pulling together the best of the web on Python logging:

https://docs.python.org/2/library/logging.html
The standard library documentation.

http://pieces.openpolitics.com/2012/04/python-logging-best-practices/
Insightful and reviewed by Vinay Sajip.

http://victorlin.me/posts/2012/08/26/good-logging-practice-in-python
Helpful tips on which logger levels to use.

http://stackoverflow.com/questions/15727420/using-python-logging-in-multiple-modules
Answer provided by Vinay Sajip.

Sunday, 14 June 2015

Android Studio up and running

My standard development environment for native Android development has been Vim and Ant.

Today I finally took the plunge and got started with Android Studio (AS).

I ported in ZipZipBooks, which is my mobile record keeping application for HMRC with a view to giving at a bit of a refresh. Didn't take too long to get it up and running on AS.

Key issues:

  1. The code for the existing project is in a Mercrurial repository. My first attempt to import the project, I went down the "Check out the project from version control" route, and chose Mercurial. Unfortunately this did not play niceley with Gradle. Instead, I found that I could instead start with the "Import Project" route. That allowed AS to convert my Ant build to Gradle.
  2. Adding library dependencies for which this answer was very helpful;
  3. I might need to get a faster/bigger/hotter/noisier laptop.
  4. Running on Windows 8, there was no need to update any drivers for the physical Android devices on which I performed testing.