Installing gradle using commandline (Mac)

Simple ! Just execute this command on your terminal :

brew install gradle

Pre-req: you should have Homebrew for Mac already installed. 

Installing gradle on Mac (using gradle wrapper)

The simplest way to install gradle from commandline is to simply execute this script that comes with gradle wrapper.

All you have to do is to execute this command on terminal:
./gradlew
Output:

Downloading https://services.gradle.org/distributions/gradle-2.3-bin.zip
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /Users/PTyagi/.gradle/wrapper/dists/gradle-2.3-bin/a48v6zq5mdp1uyn9rwlj56945/gradle-2.3-bin.zip to /Users/PTyagi/.gradle/wrapper/dists/gradle-2.3-bin/a48v6zq5mdp1uyn9rwlj56945
Set executable permissions for: /Users/PTyagi/.gradle/wrapper/dists/gradle-2.3-bin/a48v6zq5mdp1uyn9rwlj56945/gradle-2.3/bin/gradle 

Keep trying out ideas !

This is not a technical post, but worth giving a though into !

The best way to invent something Great in life, is to keep trying out Silly ideas :)

"And yet the best way to have a good idea is to have as many bad ones as you can. The best way to write good poetry is to write a whole lot of stuff, and find the diamonds in the rough. The best way to set goals is to set 45 of them and see which ones stick around that are really the most interesting to us. And the best way to keep loving people we love is to keep the air clear with honest feedback." ~ David Allen

Android Dev Tools

Here's casual list for Android developer tools that could be really useful when developing complex applications:

  • StrictMode: A tool for identifying long running operations on Main UI Thread.
  • @UiThread/@WorkerThread : Useful support annotations for static analysis for catching Threading bugs.

Android Fragments using RxJava and Dagger

This is really cool introduction on Android Fragments using RxJava and Dagger dependency injection framework.

How to keep github fork repo in sync with main repo

This is how I keep my forked repo in sync with their main repos:

Create fork of the main repo.

Clone forked repo to your local machine:
git clone https://github.com/<username>/somerepo.git

Add main repo as another remote:

git remote add mainrepo https://github.com/<someurl>/somerepo.git

Fetch all the branches from mainrepo :
 git fetch mainrepo

Make sure that you're on your master (origin/master) :
git checkout master

Rebase your copy of master with main repo's master like this:
git rebase mainrepo/master

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .