Monday, 13 March 2017

Unix Program To check whether the given number is polindrome or not

Polindrome means a word or a number which gives the same value when  read from both directions(either from left to right order or right to left order.
for example if we take a number 1221 it gives the same number when read from both directions.

The following is the simple unix program to check the given input is polindrome.
 #!/bin/bash

echo -n "Enter number : "
read n
sd=0
rev=""
on=$n
while [ $n -gt 0 ]
do
    sd=$(( $n % 10 )) # get Remainder
    n=$(( $n / 10 ))  # get next digit
    rev=$( echo ${rev}${sd} )
done
if [ $on -eq $rev ];
then
  echo "Number is palindrome"
else
  echo "Number is NOT palindrome"
fi

Saturday, 11 February 2017

How to turn safe mode on and off in android phone

How to turn safe mode on and off in an android phone:-

If your phone has any problems like getting alow and fast battery drain and getting over heat then tha safe mode is very useful.If you boot your phone safe mode then you cannot install any third party apps in your phone.

   Here is how can you turn on and off safe mode in android phones.

How to turn on safe mode:-

  1. Press and hold power button and click on power off button to  power off the phone.
  2. Now release the power button and again press and hold.
  3. Now your device will power on and your phone logo will appers.
  4. Now release power button and press and hold volume down button untill your phone boots.
  5. Now you can see the option like boot in safe mode on bottom left corner.
  6. Now you can see safe mode in left bottom corner while using the phone.

How to turn off safe mode:-

  1. Press and hold the power button.
  2. Click on restart.
  3. Then a simple reatart can turn off safe mode in you android device

Friday, 10 February 2017

Turn your android phone into usb pendrive

You can use your android phone as usb pendrive.The following are the instructions to make your android phone as pendrive.
  1. First of all you need to turn on developer options in your android phone.
  2. If you don't know how to turn on developer options Click here
  3. Now open developer options and click on USB DEBUGGIND.
  4. Now connect your phone to pc or laptop with usb cable.
  5. In your phone you can find four options like usb storage,media device etc.
  6. Click on usb storage option.
  7. Now you can see one option on your phone like usb connectd,click to copy files.
  8. Now click on that option.
  9. Now you can use your android phone as USB PENDRIVE

How to turn on developer options in android phone


  1. First of all you need a android phone with the android version 4.0 or above
  2. Now go to settings.
  3. In the settings at last you find one option About phone.
  4. Now click on about phone.
  5. After that you will get all details of your phone like android version etc.
  6.  Now you can see one option BUILD NUMBER.Now click 7 times on build number.
  7. Thats it,Now go to main settings and you can find option like developer options.
  8. Now click on that option and click on turn on developer options button
  9. Now developer options are truned on on your android device

Tuesday, 24 January 2017

Reset microsoft account password

Reset microsoft account password

Reset Microsoft Account Passowrd

First, try the easiest thing: if you remember your password but it isn’t working, make sure that Caps Lock is turned off and that your email address is spelled correctly.
Reset your password
If you can't remember your password, follow these steps to get into your account.
  1. Go to the
    Password Reset Page
  2. Choose the reason you need your password reset, then click Next 
  3. Enter the email address you used when you made your Microsoft account. 
  4. This could be any email address, or an email ending in a Microsoft domain like hotmail.com or outlook.com.Enter the characters you see on the screen (this lets us know you’re not a robot), then click Next.
  5.  If you've added security info to your account, we'll send a one-time code to the alternate phone number or email address you gave us. After you enter that code on the next screen, you'll be able to make a new password.
If password reset doesn't work
Sometimes changing settings in your account can affect how you sign in, and resetting your password won't fix it. See if one of the scenarios below applies to you.

 

How to Find Your Passion for Anything

How to Find Your Passion for Anything

How to Find Your Passion for Anything

There’s a big myth in our culture: that passion can only be spontaneous. You either love your job or you don’t. You either enjoy exercising or hate it. You are interested in reading books or you find them boring. That passion can’t be forced or created.
I disagree. Passion can be created. Even for things you don’t currently enjoy.
By tweaking the activities and pursuits you engage in, you can find a passion for anything. All it takes is a bit of patience and an open mind.
The benefit is that you end up loving the things you have to do anyways. Exercising, learning, studying, working and almost any pursuit can be made into a passion. And if you know how to do it, existing passions can be turned from mildly interesting to exciting. The skill of finding your passion is like turning up the dial for the amount of color you experience in life.Here are some ways to find your passion
1. Get Curious – Curiosity is the basis of passion. Shake off your current understandings and begin from the view that you are almost completely ignorant on the subject. Then look for novelty to boost your interest.
2. Make it a Game – Give yourself rules, objectives and strategic constraints. The more creative thinking required, the better.
3. Set a Goal – Create a specific goal along with a deadline. This can infuse mundane activities with a sense of direction and purpose. Writing a report goes from being just another task, to a creative challenge that pushes you.
4. Express Yourself – Find hidden opportunities for self-expression. This could mean inventing a style for folding clothes. Changing the format you write code in or altering the style of your presentation. View each activity as an act of expression and originality.
5. Focus – Cut distractions and eliminate noise. The more you focus on an activity the better you can notice interesting qualities about it. The only truly boring activity is the one you can’t pay attention to.
6. Jigsaw Piecing – A jigsaw puzzle has hundreds of uniquely shaped pieces of a picture. View your activities as pieces of a larger image. This can turn dull activities into individual snippets of a more fascinating whole.
7. Dial Down Cravings – Have you ever noticed how the hungrier you are, the less able you are to enjoy the taste of food? This works the same way with passion. The more you crave a goal (instead of the process containing the goal) the less likely you are to develop a passion for it. Goal-setting is good. Goal-obsession is not.
8. Connect with Talents – How can you apply your existing talents to an activity? Find ways to use skills you already have in a new endeavor. An artistic person could draw pictures to help himself study. An athletic person might be able to use her strength and endurance as a speaker.
9. Overcome the Frustration Barrier – If an activity is too difficult for you to become enthusiastic about it, slow down. Worry less about results and more about experimenting until you build up skill. Whenever I try a new hobby, I strive to just try things out before building skills. This keeps me from getting frustrated and ensures the process is fun.
10. Leech Enthusiasm – Energy is contagious. If you spend time with someone who exudes passion about a subject, some of it will rub off on you. Seek out people who have the energy you want and get them to describe their motivation. Often it will point you to key information you had no idea could be so interesting.
11. Remove the Chains – Feeling forced into an activity is a sure way to kill any passion. Instead of flowing with the task, you rebel against it, making you miserable. Be aware of the consequences for not acting, but remove the feeling that you don’t have a choice. You always have a choice.
12. Tune the Challenge – For boring tasks, make them more difficult. For frustrating tasks, make them easier. This can be done by varying the speed or constraints you need to complete a task. Boring chores can be made more interesting by setting a time-limit. Frustrating assignments can be made easier by allowing yourself an awful first-draft instead of perfection.
13. Get instruction – Finding a teacher can give you the basic level of understanding necessary to enjoy an activity. Sometimes passion can be drained just by not knowing the basics.
14. Humble confidence – Confidence is necessary for passion, but arrogance can destroy it. Build a humble confidence where you believe in your abilities to handle the unknown, but you also have a great respect for it.
15. Focus Immediately – Look at the next immediate step. Don’t concern yourself over what needs to be done next month or next year if it overwhelms you. Focus on each step of the marathon, not how many miles you have left.
16. Play – If the process confuses or bothers you, just play with it. Don’t have a purpose until you can define one.
17. Eliminate – This one might not apply, but it is always good to use. If you really can’t enjoy something, find a way to eliminate it from your life. Don’t waste your time doing things you don’t enjoy. Either cultivate a passion or get rid of it.