Sunday, January 29, 2012

Motivation

 Daniel Ek, CEO, Spotify
Figure out what the top five most important stuff is, focus relentlessly on that and keep iterating. Less is more.

Dennis Crowley, CEO, FourSquare

Don’t let people tell you your ideas won’t work. If you have a hunch that something will work, go build it. Ignore the haters.

Sarah Prevette, Founder, Sprouter

Just do it. Get it out there, absorb the feedback, adjust accordingly, hustle like hell, persevere and never lose your swagger.

Sarah Lacy, CEO, PandoDaily

Follow your gut. it may be wrong, but you won’t regret it if you fail. You’ll regret it if you ignore your gut and fail.

Craig Newmark, Founder, Craigslist

Treat people like you want to be treated. Apply to customer service.

Gary Vaynerchuk, CEO, VaynerMedia

Do work for your customers, not for press or VCs. The end user is what matters long term.

Matt Mullenweg, CEO, Automattic

Only reinvent the wheels you need to get rolling.

Jason Goldberg, CEO, Fab.com

Pick one thing and do that one thing — and only that one thing — better than anyone else ever could.

 Alexis Ohanian, CEO, Reddit

Make something people want. Then give more damns than anyone else about it and you’ll make something they love.

Chris Brogan, President, Human Business Works

Buy @ericries’s book. Beyond that? Build a platform. This is the big year.

Matt Howard, CEO, ZoomSafer

Startup wisdom: The number one job of a CEO is to not run out of money.

Brian Wong, CEO, Kiip

Always be learning from others. Whenever you meet someone, you don’t want something from them, you want to learn from them.

Seth Priebatsch, Chief Ninja, SCVNGR and LevelUp

Something my dad taught me: Ask forgiveness, not permission!

Hooman Radfar, Founder, Clearspring

Give away the wins, own the loses. Your job is to curate greatness.

Alexa Hirschfeld, CEO, Paperless Post

Users and employees are key predictive indicators of a company’s success; press and investors generally months behind.
Reference:
http://gigaom.com/2012/01/28/corbett-15-things-ceos-want-you-to-know/

Sunday, January 1, 2012

Good Java Tutorial Websites

SCJP

package test;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;

// Annotation
@MyAnnotationType(version = 1.1, clients = { "Programs" })
class Main
{
    public void method1()
    {
    }
}

public class Main1 extends Main
{
    public static void main(String[] args)
    {
        Main1 m = new Main1();
        m.method1();
    }

    // Annotation provided by java
    // annotation tells the compiler to suppress specific warnings that it would otherwise generate.
    @SuppressWarnings({ "unchecked", "deprecation" })
    // annotation informs the compiler that the element is meant to override an element declared in a superclass.
    @Override
    // annotation indicates that the marked element is deprecated and should no longer be used.
    @Deprecated
    public void method1()
    {
        List l;
    }
}

// The filename should be named same as public class or interface
// meta annotation - annotation to annotation
@Documented
@Inherited
// public enum ElementType {
//    TYPE,         // Class, interface, or enum (but not annotation)
//    FIELD,        // Field (including enumerated values)
//    METHOD,       // Method (does not include constructors)
//    PARAMETER,        // Method parameter
//    CONSTRUCTOR,      // Constructor
//    LOCAL_VARIABLE,   // Local variable or catch clause
//    ANNOTATION_TYPE,  // Annotation Types (meta-annotations)
//    PACKAGE       // Java package
//  }
@Target({ ElementType.FIELD, ElementType.TYPE })
// public enum RetentionPolicy {
//    SOURCE,       // Annotation is discarded by the compiler
//    CLASS,        // Annotation is stored in the class file, but ignored by the VM
//    RUNTIME       // Annotation is stored in the class file and read by the VM
//  }
@Retention(RetentionPolicy.SOURCE)
// simple annotation type
@interface MyAnnotationType {

    public enum MyEnum {
        ONE, TWO, THREE
    };

    //Annotation declaration should start with an 'at' sign like @, following with an interface keyword, following with the annotation name.
    //Method declarations should not have any parameters.
    //Method declarations should not have any throws clauses.
    //Return types of the method should be one of the following: primitives,String,Class,enum,array of the above types

    // string type
    String author() default "n/a";

    // array type
    String[] clients() default { "Programs", "GUI", "TestJig" };

    // enum
    MyEnum update() default MyEnum.ONE;

    // double type
    double version() default 1.0;

}
References:
http://docs.oracle.com/javase/tutorial/java/javaOO/annotations.html
http://www.developer.com/java/other/article.php/3556176/An-Introduction-to-Java-Annotations.htm
http://technicalmumbojumbo.wordpress.com/2008/01/13/java-custom-annotations/
http://www.ibm.com/developerworks/library/j-annotate2/index.html