What happened last week: 04
Android Studio
Make your logcat more beautiful by changing settings.

Perfect explanation for git fast forward. Original link
Others
A tip to reveal masked passwords in the browsers.
In many places where you need to input your password to gain access, authorize or confirm a transaction, whenever you…www.hongkiat.com
Android Tools
You can get the required permission for the apk with aapt. You can find “aapt” under androidsdk/build-tools/<versions>/aap. I had an issue to execute the command, therefore I copied “aapt” to platform-tools and it worked!
$ aapt d permissions path/to/your.apk
Get apk method count
$ cat classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'
Get minSdkVersion and targetSdkVersion from apk. Version number will be displayed in a text as hex, therefore you need to manipulate the text and convert it to decimal
$ aapt list -a app-release.apk | grep "minSdkVersion"
//output A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
Python
- Manipulating html content with python is super easy. You can use BeautifulSoup
- You can use pylint for static analyzing the code. Super awesome.
$ pip install pylint
$ pylint your_python_file.py
Gradle
- Use “continue” in order to continue tasks after a failure task.
$ ./gradlew failTask nextTask --continue
Tests
Use ignore annotation to ignore unit tests instead of ugly comment out
@ Ignore("I can't solve this test")
@ Test public void mytest(){}
Great talk about how to make acceptance/functional tests easier and more readable. Testing Robots(Page object concept)
Libraries like Espresso allow UI tests to have stable interactions with your app, but without discipline these tests…realm.io
Git
How to get the current branch name.
$ git rev-parse --short HEAD
Use aliases for git
$ git config --global alias.lol "log --oneline --graph --decorate"
$ git config --global alias.lo "log --oneline --decorate"
$ git config --global alias.l "log --oneline"
$ git config --global alias.st "status"
$ git lol
$ git lo
$ git l
$ git st