Sunday, November 29, 2015

Best Motivational Quotes

Best Motivational Quotes

Here are some quotes that I read from time to time to keep myself motivated.

Best Motivational Quotes

"Greater love has no one than this, that he lay down his life for his friends."
– John 15:13

"Be strong and courageous. Do not be afraid or terrified because of them, for the LORD your God goes with you; he will never leave you nor forsake you."
– Deuteronomy 31:6

"What, then, shall we say in response to this? If God is for us, who can be against us?"
– Romans 8:31

"The will to win, the desire to succeed, the urge to reach your full potential... these are the keys that will unlock the door to personal excellence."
– Confucius

"Great minds discuss ideas; average minds discuss events; small minds discuss people."
– Eleanor Roosevelt

"Ask and it will be given to you; search, and you will find; knock and the door will be opened for you."
– Jesus Christ - Mathew 7:7

"I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed."
– Michael Jordan

"A man who views the world the same at fifty as he did at twenty has wasted thirty years of his life."
– Muhammad Ali

"The only person you are destined to become is the person you decide to be."
 – Ralph Waldo Emerson

"Too many people spend money they earned..to buy things they don’t want..to impress people that they don’t like."
– Will Rogers

"I will tell you the secret to getting rich on Wall Street. You try to be greedy when others are fearful. And you try to be fearful when others are greedy."
– Warren Buffett

"Financial peace isn’t the acquisition of stuff. It’s learning to live on less than you make, so you can give money back and have money to invest. You can’t win until you do this."
– Dave Ramsey

“Only buy something that you’d be perfectly happy to hold if the market shut down for 10 years.”
– Warren Buffett

“I never attempt to make money on the stock market. I buy on the assumption that they could close the market the next day and not reopen it for five years.”
– Warren Buffett

"If you aren’t willing to own a stock for ten years, don’t even think about owning it for ten minutes"
– Warren Buffett

"Good artists copy, great artists steal."
– Pablo Picasso

"All children are artists. The problem is how to remain an artist once he grows up."
– Pablo Picasso

"Only put off until tomorrow what you are willing to die having left undone."
– Pablo Picasso

"I am always doing that which I can not do, in order that I may learn how to do it."
– Pablo Picasso

"You miss 100% of the shots you don’t take."
– Wayne Gretzky

"Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do, so throw off the bowlines, sail away from safe harbor, catch the trade winds in your sails.  Explore, Dream, Discover."
– Mark Twain

"Build your own dreams, or someone else will hire you to build theirs."
– Farrah Gray

"It does not matter how slowly you go as long as you do not stop."
– Confucius

"If you do what you’ve always done, you’ll get what you’ve always gotten."
– Tony Robbins

"The only way to do great work is to love what you do."
– Steve Jobs

"He who who says he can and he who says he can’t are both usually right."
– Confucius

"It's better to be prepared for an opportunity and not have one than to have an opportunity and not be prepared."
– Whitney Young Jr.

"We are all self-made, but only the successful will admit it."
– Earl Nightingale

"If you want a thing bad enough to go out and fight for it, to work day and night for it, to give up your time, your peace and your sleep for it… if all that you dream and scheme is about it, and life seems useless and worthless without it… if you gladly sweat for it and fret for it and plan for it and lose all your terror of the opposition for it… if you simply go after that thing you want with all of your capacity, strength and sagacity, faith, hope and confidence and stern pertinacity… if neither cold, poverty, famine, nor gout, sickness nor pain, of body and brain, can keep you away from the thing that you want… if dogged and grim you beseech and beset it, with the help of God, you will get it!"
– Les Brown

"He who has a why to live for can bear almost any how."
– Friedrich Nietzsche

"To be successful, you must be willing to do the things today others won't do in order to have the things tomorrow others won't have."
– Les Brown

"People are always blaming their circumstances for what they are. I don't believe in circumstances. The people who get on in this world are the people who get up and look for the circumstances they want, and if they can't find them, make them."
– George Bernard Shaw

"Look at a man the way that he is, he only becomes worse. But look at him as if he were what he could be, then he becomes what he should be."
– Goethe

"Train people well enough so they can leave, but treat them well enough so they don't want to."
– Richard Branson

"By failing to prepare, you are preparing to fail."
– Benjamin Franklin

"Be the change that you wish to see in the world."
– Mahatma Gandhi

"The people who wait for external changes before they make an internal decision will get cooked in the squat every, single, time."
– Zig Ziglar

"Do you have a target or a goal? You must have a goal because it's just as difficult to reach a destination you don't have, as it is to come back from a place you've never been."
– Zig Ziglar

Sunday, October 11, 2015

Avoiding AppCompat Proguard Crashes on Samsung Devices

appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2

Original Issue: https://code.google.com/p/android/issues/detail?id=78377

Google already provides Proguard rules for some of their libraries through AARs. One major issue that affects Samsung Jellybean devices(Android 4.2), is App Compat's Toolbar.

For those that have devices from Samsung running the same Android OS version or are tracking crash reports, you will most likely see the following error:

java.lang.NoClassDefFoundError: android.support.v7.internal.view.menu.MenuBuilder

Here is the Proguard rules to resolve this issue for (AppCompat-v7, v21,22,23.0.1):



Apply it to your own build.gradle:
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), rootProject.file('proguard-rules.pro')

Tuesday, May 26, 2015

My Repo is Trending on Github!

Trending Repository on Github
 
I recently made this template on Github for people starting software development with Android who want to use Intellij or Android Studio who are planning on using different testing libraries with test coverage. I plan on adding more examples for Mockito and Espresso testing libraries. Here is the

Github link: https://github.com/jaredsburrows/AndroidGradleTemplate

Here is an image of my repository on the Java page!

https://github.com/trending?l=java (wont always be trending)

Sunday, May 17, 2015

How to test Android with Gradle(Robolectric + EasyMock/PowerMock + JaCoCo + TravisCI)

How to test Android with Gradle + Android Studio + Robolectric + Mockito + EasyMock/PowerMock + JaCoCo + TravisCI

Here is my Github example:
https://github.com/jaredsburrows/AndroidGradleTemplate

AndroidGradleTemplate Status Coverage Status

Gradle + Android Studio + Robolectric + Mockito + EasyMock/PowerMock + JaCoCo

Technologies used:

Works with the following Configurations:
  • Multiple Modules
  • Multiple Flavors
  • Android Libraries

Getting Started:

Android Studio or Intellij Support(Simple):

  1. Import/Open this project with Android Studio/Intellij(click on build.gradle)
  2. Change the Build Variant Test Artifact to Unit Tests instead of Instrumentation Tests

Comand Line(Advanced):

Clone with Git:
  • git clone https://github.com/jaredsburrows/AndroidGradleTemplate.git
  • cd AndroidGradleTemplate
Installing/Running with Gradle:
  • Install the debug flavor on your Android Device:
    • gradlew installDebug
  • Install and Run the debug flavor on your Android Device:
    • gradlew runDebug
Testing with Gradle:
  • Run all tests in all flavors:
    • gradlew test
  • Run single test in all flavors:
    • gradlew test --tests="*MainActivityTest*"
  • Run all the debug flavor tests:
    • gradlew testDebug
  • Run single test in the debug flavor:
    • gradlew testDebug --tests="*MainActivityTest*"
  • Run single test in the debug flavor with Jacoco test reports:
    • gradlew testDebug --tests="*MainActivityTest*" jacocoTestReport

License

Copyright (C) 2015 AndroidGradleTemplate by Jared Burrows

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Thursday, March 5, 2015

Featured on Wired.com

Recently I was featured in an article on Wired.com


Read the article here:

http://www.wired.com/2015/03/forget-pc-real-crapware-problem-android/

Wednesday, February 25, 2015

How to completely remove Android Studio from Mac OSX

How to completely remove Android Studio from Mac OSX

rm -rf ~/Library/Application Support/AndroidStudio
rm -rf ~/Library/Caches/AndroidStudio
rm -rf ~/Library/Logs/AndroidStudio
rm -rf ~/Library/Preferences/AndroidStudio

How to completely remove Google Chrome from Mac OSX

How to completely remove Google's Chrome from Mac OSX

Delete Google folder from ~/Library/Application Support
Delete below folders from ~/Library/Caches
Delete ~/Library/Google folder

Monday, November 17, 2014

Gradle iOS Plugin

Gradle iOS Plugin

This plugin is in Beta and Open Source:

https://github.com/jaredsburrows/gradle-ios-plugin

There is an example repository here:

https://github.com/jaredsburrows/gradle-ios-plugin-example


There is an Android Plugin for Gradle, why isn't there one for iOS?

Example "build.gradle":

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'burrows.apps.ios:gradle:0.0.1'
    }
}

apply plugin: 'com.ios.application'

ios {
    compileSdkVersion '8.1'     //  iOS SDK version
    buildToolsVersion '6.1'     //  XCode version

    defaultConfig {
        minSdkVersion 8         // Minimum iOS SDK version
        targetSdkVersion 19     // Target iOS SDK version
        versionCode 1           // *optional*
        versionName '1.0'       // *optional*
    }

    // Cocoa Pods
    pods {
        pod 'Google-Mobile-Ads-SDK'
        pod 'GoogleAnalytics-iOS-SDK'
    }
}

dependencies {
    ...
}