Tuesday, December 31, 2013

Motivational Beliefs


 
Developing motivational beliefs that help you recognize your responsibility to create the life you want, can help you build the life you’ve dreamed of. If you choose to live by these motivational beliefs, you’ll learn how to recognize the power you have to control your destiny.
 
1. I Can Bring My Passion with Me Wherever I Go
 
You don’t have to only be passionate about the things you love in life. Instead, you can choose to be a passionate person who brings passion everywhere you go. Behave passionately whether you’re cleaning up garbage or speaking to an auditorium full of people.
 
2. I Control My Attitude
 
A lot of things in life aren’t within your control. You can’t control your past, how other people behave, or how the world works. You can, however, choose to control your attitude about it. Choosing to have a positive attitude when things go wrong speaks volumes about your character.
 
3. I Can Find a Way to Make Things Work
 
A motivational belief that keeps you from giving up can help you gain success in all areas of your life. Often, things don’t go the way we want the first time around. Sometimes, it takes many attempts to get things right. If you resolve to find a way to make things work you’ll look for strategies to overcome obstacles until you reach your goal.
 
4. Hurt and Pain Make Me Stronger
 
Hurt and pain are inevitable in life. If you waste time complaining that life isn’t fair or you try to play the role of a victim, you won’t reach your full potential in life. Use the pain and hurt you’ve experienced to become a stronger person. When you’ve experienced deep sorrow, you’ll truly be able to appreciate joy.
 
5. I Have the Power to Make Things Happen
 
Believe in your ability to get things done. Never underestimate your potential and you’ll amaze yourself when you see how capable you are. Whether you’re at work, at home, or in a relationship, remind yourself that you aren’t helpless and that you have the power to make things happen.
 
6. I am a Product of My Choices
 
You aren’t defined by your circumstances. Instead, you’re defined by the choices you choose to make. If you choose to make good choices, even when you find yourself in bad circumstances, you’ll find out exactly how powerful you are.
 
7. I Have a Lot to be Grateful for Every Day
 
Dwelling on what you don’t have in life won’t get you anywhere. Focusing on your gratitude and recognizing how fortunate you are, however, can help you stay focused on what’s important in life. Looking at how much you have to be grateful for will also prevent you from feeling jealous of other people’s success.
 
8. I Have the Opportunity to Try Anything
 
Today’s world offers you endless opportunities. If you don’t like your job, get a new one. If you don’t like where you live, move somewhere else. Recognize that you have an opportunity to do anything you want in life.
 
9. I Must Stay Committed to See Results
 
Change doesn’t happen overnight. Adopting a motivational belief that reinforces the need for commitment can help you to stay on track even when you don’t see immediate results. Whether you’re saving money to pay off debt or trying to lose weight, it takes time and hard work to reach your goals.
 
10. I Can Learn From My Failures
 
Failure is a part of life and is often a necessary step toward eventual success. Resolve to learn from your failures and get better. Don’t give up trying and don’t repeat the same mistakes. Instead, use your failures to help you reach success.
http://www.olaalaa.com/wp-content/uploads/2013/01/nice-life-motivational-quotes-thoughts-egg-force-broken.jpg

9 Ways to Work Smarter Than Others


 
Do you ever have lots of work to do and not enough time to get it all done? That’s not unusual. Many people complain about having a never-ending to-do list with items that never seem to get ticked off. But it doesn’t have to be this way. There are ways to improve your daily experience and get more work done more quickly and more efficiently. With a couple of simple changes to your day, you can turn yourself into a powerhouse of productivity and efficiency. The best place to start is with your goals.
 
1. Know your goals
 
If you are clear about what you want to achieve, that’s a great start. People who don’t define their weekly, monthly or yearly goals end up being busy, frantically racing from one task to the next without really knowing which one is their priority. Having clearly-defined goals eliminates this possibility. Knowing what you are aiming for helps when deciding what is your top priority and what you should be working on each day. Once you decide which tasks have priority, the next step is to schedule them.
 
2. Schedule your time
 
Number one tip for beating procrastination and staying focused is to use your calendar. What gets scheduled gets done, or at least doesn’t get forgotten about. Once you schedule something into your calendar, it will get done sooner or later. So often people complain that urgent daily tasks push out what they had scheduled. This may happen at times, so when it does, reschedule your planned task for tomorrow or your next available slot. But remember to always ask yourself which task has priority.
 
3. Turn stuff off
 
Ever get disturbed by a text message while you are writing a report, or by an email notification while concentrating on important documentation? If you want to be smarter than others, the wisest solution is to switch off your phone and gadgets and close any programs on your computer that you are not currently using.
 
4. Use a task management system
 
You need a place to store and prioritize your tasks. Don’t use your inbox as a to-do list. If you do, you will always be reacting to the work other people want you to do instead of what you have planned to do. Use a task list and your calendar to schedule the work you choose to do.
 
5. Work with your energy
 
Some of us are night owls, while others are early birds. Know which one you are and work with your energy and focus. Plan the difficult work for the times when you have the most energy. The post-lunch slump is never a good time for brainstorming important projects. Most people are more alert and focused in the morning.
 
6. Get enough sleep
 
Sleep is vital for focus and productivity. If you want to work smarter, make sure you are getting enough sleep. Lack of sleep affects the neurons in the brain and makes Jack a dull boy!
 
7. Get plenty of exercise
 
Branson’s number one productivity tip is exercise, so make it your first priority. Exercise creates energy and focus. It reduces stress and increases well-being. Try to get some exercise daily — not only will you work smarter, you will feel great too.
 
8. Drink water during the day
 
Because our bodies are said to be made of 70% water, being low on water will affect every cell in your body. If you want to work smarter, you better be sure the cells in your brain have enough water. Dehydration will drain your energy and affect your brain’s ability to focus.
 
9. Don’t skip meals
 
Lack of energy and low blood sugar are two states you want to avoid if you are trying to focus and get things done. Regular meals throughout the day will reduce the possibility of an afternoon or midday slump, or a slump at any time of the day. Eat a substantial breakfast and try not to eat too large a meal in the middle of the day. This will maintain your energy levels throughout the day and keep your brain on high alert.
 
Try any of these ways to work smarter and you will get a lot more work done while feeling more focused, energetic, and maybe even happier, too.
 
http://img.gawkerassets.com/img/18ixgys0n40jejpg/k-bigpic.jpg
Thank you,

Using Models

At its simplest, a Model is only a set of fields and their data. In this guide we are going to look at four of the principal parts of Ext.data.Model — Fields,Proxies, Associations and Validations.
The following code sample illustrates the creation of a model:
Ext.define('User', {
    extend: 'Ext.data.Model',
    config: {
        fields: [
            { name: 'id', type: 'int' },
            { name: 'name', type: 'string' }
        ]
    }
});

Using Proxies

Proxies are used by stores to handle the loading and saving of model data. There are two types of proxy: client and server. Examples of client proxies include Memory for storing data in the browser's memory and Local Storage which uses the HTML 5 local storage feature when available. Server proxies handle the marshaling of data to some remote server, and examples include Ajax, JsonP, and Rest.
Proxies can be defined directly on a model, as shown in the following code sample:
Ext.define('User', {

    extend: 'Ext.data.Model',

    config: {
        fields: ['id', 'name', 'age', 'gender'],
        proxy: {
            type: 'rest',
            url : 'data/users',
            reader: {
                type: 'json',
                root: 'users'
            }
        }
    }
});

// Uses the User Model's Proxy
Ext.create('Ext.data.Store', {
    model: 'User'
});
This way of defining models provides two benefits. First, since it is likely that every store that uses the User model will need to load its data the same way, we avoid duplicating the proxy definition for each store. Second, we can load and save model data without calling a store:
// Gives us a reference to the User class
var User = Ext.ModelMgr.getModel('User');

var ed = Ext.create('User', {
    name: 'Ed Spencer',
    age : 25
});

// We can save Ed directly without having to add him to a Store first because we
// configured a RestProxy which will automatically send a POST request to the url /users
ed.save({
    success: function(ed) {
        console.log("Saved Ed! His ID is "+ ed.getId());
    }
});

// Load User 1 and do something with it (performs a GET request to /users/1)
User.load(1, {
    success: function(user) {
        console.log("Loaded user 1: " + user.get('name'));
    }
});
There are also proxies that take advantage of the new capabilities of HTML5 - LocalStorage and SessionStorage. Although older browsers do not support these new HTML5 APIs, these are so useful that a lot of applications will benefit enormously by using them.

Associations

Models can be linked together using the Associations API. Most applications deal with many different models, and the models are almost always related. A blog authoring application might have models for User, Post, and Comment. Each user creates posts and each post receives comments. We can express those relationships as shown in the following example:
Ext.define('User', {
    extend: 'Ext.data.Model',
    config: {
        fields: ['id', 'name'],
        proxy: {
            type: 'rest',
            url : 'data/users',
            reader: {
                type: 'json',
                root: 'users'
            }
        },

        hasMany: 'Post' // shorthand for { model: 'Post', name: 'posts' }
    }
});

Ext.define('Comment', {
    extend: 'Ext.data.Model',

    config: {
        fields: ['id', 'post_id', 'name', 'message'],
        belongsTo: 'Post'
    }
});

Ext.define('Post', {
    extend: 'Ext.data.Model',

    config: {
        fields: ['id', 'user_id', 'title', 'body'],

        proxy: {
            type: 'rest',
            url : 'data/posts',
            reader: {
                type: 'json',
                root: 'posts'
            }
        },
        belongsTo: 'User',
        hasMany: { model: 'Comment', name: 'comments' }
    }
});