I decided to move this little blog of mine to GitHub Pages. Using git to manage blog posts it is a lot more appealing to me than copy-pasting stuff to Tumblr.
I’m often using Setuptools to package
and distribute Python modules. Recently I needeed to add a custom command
setup.py so I can run it like this:
$ python setup.py mycommand --option --another-option value
The official documentation of Setuptools isn’t very specific on how to do it so here is what I came up with after a little research.
This is a very simple yet effective way to get rid of advertisements
in Android apps – without rooting the device. In principle it is the
same method that the Android AdBlock app uses: resolve all DNS queries for
various ad servers to
127.0.0.1. But AdBlock app requires a rooted device, which
not everyone is able or wants to do.