Translate

Tuesday, 7 April 2015

Be positive in thoughts and actions, world will be yours :)

How to Be Positive in Thoughts and Actions

By Alok yadav
Do you sometimes wonder how to be positive in your thoughts and actions, especially when you are unhappy and unsatisfied, or when life is difficult and tough? For many, it is difficult to be positive, even when things go well.
Though it's so simple, most people don't know how to be positive. Sometimes, they prefer to stay negative, because it is a more familiar state of mind.
Like every other subject, the know-how of how to be positive can be learned and the skill developed. It has much to do with changing your attitude and your mindset.
If you keep thinking the same thoughts, day and night, they might, sooner or later, manifest in your world, becoming your reality. This means that if you want your life to be as you want it to be, you have to be careful of what you think. You need to start thinking more positively.

Your Mind Creates Your Reality

As you think, so your life becomes. Changing your attitude and expectations, will sooner or later, change your life accordingly.
It is your mind that creates the kind of life you live. If you think positively, you will transform your life accordingly. Everything starts from within, from the most simple action, to the greatest achievement.
We cannot always control our external circumstances, but we can control our inner world of thoughts, where everything begins. We cannot always control our outer universe, but we can, with some effort, control our inner universe.
If you are unhappy and negative, you can change the way you feel and think.
With a little work and effort, you can change your attitude, expectations, actions and reactions, and this will lead to more motivation, happiness, and improved life conditions.

How to Be Positive

  1. Substitute your negative thoughts with positive ones. Substitute thoughts about poverty, with thoughts about wealth, weakness with strength, lack of self esteem with self esteem, disharmony with harmony. Whenever you catch yourself thinking negatively, fill your mind with opposite thoughts, of happiness and success.
  2. Focus on what you want, not on what you don't want.
  3. Focus your mind on the good things you already have in your life. This will cause them to increase in your life.
  4. Do not fill your mind with thoughts of lack. Think and believe that you already have abundance, success, love and happiness.
  5. Learn to feel, think and even act, as if you are already living the life you want. If you can feel, think and act consistently in this way, you will become happier, and will attract new opportunities into your life.
  6. Think about what you want, create a picture of it in your mind, and make it very clear and precise. Hold it there and focus on it in a positive way, until it becomes a reality in your life.
  7. Always tell yourself, "I can", "I am able", "I can do it".
  8. Often, during the day, repeat positive affirmations about what you want. Do so with faith, feelings, intention and focus.
  9. Look for the good in every situation. There is always something good, or at least something useful to learn, even in difficult or unpleasant situations.
  10. Follow your positive thoughts with positive actions. It is not enough to think, you also need to act to make things happen.
  11. Always focus your mind on the full half of the cup, not on the empty half.
  12. Be aware of your company. Choose to be around positive people.
  13. Read about other people's success. Read things that inspire you and make you feel good.
  14. Focus your mind on how to be positive and you will discover more ways to be so.
We get what we expect to get. Therefore, begin right now to expect the very best of everything that this world has to offer, and wish the same for everyone else. There is plenty of everything in the Universe for everyone, and the Universe can create more of the good things for everyone.
Don't think lack, think abundance, for you and for everyone else.

Monday, 6 April 2015

iOS – File Sharing Using WiFi

Objective: The main objective of this post is to describe how to share file between two apple devices using WiFi. In following demo I have described how to connect two devices using WiFi and then share large size image file by dividing it in data chunks and save shared file in camera roll of other device.
Note : To connect devices and share file application must be installed in both devices.
* Turn Off bluetooth while WiFi sharing, as it will interfere WiFi.
  • iOS – File Sharing Using WiFi
Step 1: Create new XCode project name it as FileShareDemo. It contains one UIViewController Main.storyboard file.
Step 2: Add two UIButton in UIVIewController and set title “Connect” and “Share” respectively in both UIButton.
Step 3: Add MultipeerConnectivity framework in your project. Also add .png file which you want to share.
Step 4: In ViewController.h file you have to import MultipeerConnectivity framework, set delegate and declare property as below.
Step 5: Initialize both NSMutableArray object in viewDidLoad method.
Step 6: Initialize MCSession object, MCBrowserViewController object, and MCPeerID object in setUpMultipeer method.
Also implement below methods in your ViewController.m file.
Step 6: Call setUpMultipeer and showBrowserVC methods from connect button action method.
Step 7: Implement MCBrowserViewControllerDelegate methods.
Step 7: Now in sendData method divide your image in data chunks and call sendData:toPeers:withMode :error method of MCSession object and pass data chunk in it to connected peer.
Step 9: Call sendData method from send button action method.
Step 8: Add appendFileData method to append all chunks and save file on receiver device and display alert message after image saved successfully in camera roll.
Step 9: Add MCSessionDelegate methods.