Converting from Decimal to Binary

binary-Language

After seeing such complicated posts on the Internet, I decided to simplify things and write this brief guide to convert any decimal number to a binary number (which is base 2).

Let’s take the example, a decimal number 219.

Steps to convert to decimal:

1)     Take the largest number of the power of 2, in this case 27 and subtract it from 219. You will get a remainder of 91.

2)     Repeat step one, now taking the new remainder as the base number. You will obtain a remainder of 27 after subtracting 26.

3)     Repeating for 27, we get a remainder of 11 after subtracting 24.

4)     For 11, we get a remainder of 3 after subtracting 23.

5)     For 3, we get a remainder of 1 after subtracting 21.

6)     For the remainder of 1, note that 1 = 20.

7)     Now we are ready to get our binary number.  We will have 8 digit places to fill (note that counting starts from 0). For each power of 2 you have utilised in the above steps, put a ‘1’ into the corresponding digit place.

1

1

0

1

1

0

1

1

That’s it. Voila! We have 219 converted into our binary number: 11011011

And of course the reverse process will get you the decimal number, that is: 27 + 26 + 24 + 23 + 21 + 20 = 219

Please do leave your comments or suggestions below! Thanks.

Guitar Chords and Strum Pattern for Tum Hi Ho – Aashiqui 2

TUM HI HO – AASHIQUI 2 – CAPO 1st Fret

(Em)Hum tere bin ab (C)reh nahi sakte

(D)Tere bina kya wa(B7)jood me(C)ra

 

(Em)Hum tere bin ab (C)reh nahi sakte

(D)Tere bina kya wa(B7)jood me(C)ra

 

(Em)Tujhse juda gar (C)ho jaayenge

Toh (D)khud se hi ho jaa(B7)yenge ju(C)daa

 

Kyunki (Em)tum hi ho

Ab (Am)tum hi ho

(D)Zindagi Ab (Bm)tum hi (C)ho

(Em)Chain bhi, mera (Am)dard bhi

Meri (D)aashiqui Ab (Bm)tum hi (C)ho

 

(Em)-(Bm)-(Am)-(Em)

 

(Em)Tera mera (C)rishta hai kaisa

(D)Ik pal door (B7)gawara (C)nahi

(Em)Tere liye har (C)roz hai jeete

(D)Tujh ko diya mera (B7)waqt (C)sabhi

(D)Koi lamha mera na ho (G)tere bina

(B7)Har saans pe naam (C)tera…(D)

 

Kyunki (Em)tum hi ho

Ab (Am)tum hi ho

(D)Zindagi Ab (Bm)tum hi (C)ho

(Em)Chain bhi, mera (Am)dard bhi

Meri (D)aashiqui Ab (Bm)tum hi (C)ho

 

(Em)-(Bm)-(Am)-(Em)

 

Tumhi ho… Tumhi ho…

 

(C)Tere liye hi jiya (Bm)main

(C)Khud ko jo yun de (Bm)diya hai

Teri (Am)wafa ne mujhko sam(Em)bhala

Saare (Am)ghamon ko dil se ni(Em)kala

(D)Tere saath mera hai (G)naseeb juda

(B7)Tujhe paake adhoora naa (C)raha (D)hmm..

 

Kyunki (Em)tum hi ho

Ab (Am)tum hi ho

(D)Zindagi Ab (Bm)tum hi (C)ho

(Em)Chain bhi, mera (Am)dard bhi

Meri (D)aashiqui Ab (Bm)tum hi (C)ho

 

Kyunki (Em)tum hi ho

Ab (Am)tum hi ho

(D)Zindagi Ab (Bm)tum hi (C)ho

(Em)Chain bhi, mera (Am)dard bhi

Meri (D)aashiqui Ab (Bm)tum hi (C)ho

A Beautiful Film…after a long time.

Aashiqui 2

Rating: ♥♥♥♥♥

Aashiqui 2. The remake of the old hit movie. And it was simply worth every minute. A visual pleasure and an auditory treat, this movie was an outstanding production and brought your emotions to live as well. Despite the characters being newcomers into the industry, their performance was simply outstanding. Shraddha Kapoor‘s innocence and Aditya Roy Kapoor‘s charm simply carries away the hearts of many. The chemistry between the characters was simply intense, pure and at times heart-wrenching. The actors have proved their caliber in this movie by giving their best. Expecting their next release soon.

A Plot Summary:

Rahul Jaykar, a successful musician and singer is introduced as the film begins with his performance. Despite his success, his weakness, alcohol addiction is shown to be limiting his career. The show ends with Rahul in a fight with Aryan, who throws a bottle at him near the end of his first song, Sunn Raha Hain Na. He leaves the show abruptly following this and drives to the local bar. He witnesses a young girl, Aarohi singing his own song in the bar. He is thoroughly impressed with the girl’s potential and believes that she will be the next superstar in singing. He follows her and promises her to transform her into a superstar and asks her never to sing in local bars again.

Trusting Rahul, Aarohi leaves her job at the bar and travels to Mumbai. She calls Rahul, just as he told her to when she reaches Mumbai. However, unfortunately, Rahul gets attacked by a group of thugs and is severely injured in the ensuing brawl. He is subsequently admitted to the hospital where he is under treatment for a month. In the time, Aarohi tries many times to reach Rahul. However, Rahul’s friend and manager, Vivek tells her that Rahul is on an overseas trip for a performance and neglects further calls from her. Aarohi gets despaired by these events and starts to believe that she was cheated. After 2 months of fruitless attempts to reach Rahul, Aarohi gets heart-broken and gives up. She goes back to working at the bar due her family’s financial problems.

Meanwhile, Rahul keeps asking Vivek about Aarohi, but Vivek lies to Rahul that he received no calls or whatsoever. Once Rahul recovers, he leaves determined to find Aarohi. He finds her in a bar and realizes that Vivek has been lying to him all these while. Rahul sacks Vivek and convinces Aarohi that he will help her and recounts his situation for the past 2 months. Aarohi decides to trust Rahul for one last time, and agrees to go with him. Soon Rahul gives vocal training for Aarohi and helps her to attain a music contract with his production company. Aarohi becomes a very successful singer and a sensation. While everything seems fine, rumors spread about Rahul and Aarohi. Rahul becomes distraught about this and gives in to his alcohol addiction. Aarohi who loves him, comforts him and moves in with Rahul despite her mother’s disapproval of her actions. Aarohi slowly helps Rahul to gain control over himself from his addiction. Rahul does fine and involves himself in other activities to keep him away from his addiction. However, an encounter with a journalist who accuses him of using Aarohi for his gains, causes him to turn back to his alcohol addiction for relief. He becomes violent and aggressive. A saddened Aarohi soon decides that she will take a hiatus from her career to help Rahul. Rahul realises that he is the obstacle in Aarohi’s life and will eventually cause her downfall in her career. One morning, Rahul promises Aarohi that he is going to change himself and focus on diet and a gym regime and drives off following a good-bye with Aarohi. However, it seems that it was his last good-bye as he commits suicide by jumping off a bridge. A devastated Aarohi decides to give up on everything and begins to move out with her parents. Rahul’s friend Vivek meet her, and encourages her to pursue her music career for which Rahul sacrificed his life and assures that it was what Rahul truly wanted. Aarohi decides to continue her music career and is successful. The film ends with Aarohi signing an autograph for her fans as “Aarohi Rahul Jaykar”.

Comments:

A must-watch movie that brings back the emotions and liveliness of a true love story. Despite the sorrow, the movie is able to reach deep with the audience. The songs, both “Tum Hi Ho” and “Sunn Raha Hai” are both amazing and addictive.

Click here for the Guitar Strum Pattern and Chords for Tum Hi Ho

An Amazing Article

Gandhi’s 10 Rules for Changing the World

–by Henrik Edberg, syndicated from positivityblog.com, Jun 28, 2013

“You must not lose faith in humanity. Humanity is an ocean; if a few drops of the ocean are dirty, the ocean does not become dirty.”

“The difference between what we do and what we are capable of doing would suffice to solve most of the world’s problem.”

“If I had no sense of humor, I would long ago have committed suicide.”

Mahatma Gandhi needs no long introduction. Everyone knows about the man who lead the Indian people to independence from British rule in 1947.

So let’s just move on to some of my favourite tips from Mahatma Gandhi.

1. Change yourself.

“You must be the change you want to see in the world.”

“As human beings, our greatness lies not so much in being able to remake the world – that is the myth of the atomic age – as in being able to remake ourselves.”

If you change yourself you will change your world. If you change how you think then you will change how you feel and what actions you take. And so the world around you will change. Not only because you are now viewing your environment through new lenses of thoughts and emotions but also because the change within can allow you to take action in ways you wouldn’t have – or maybe even have thought about – while stuck in your old thought patterns.

And the problem with changing your outer world without changing yourself is thatyou will still be you when you reach that change you have strived for. You will still have your flaws, anger, negativity, self-sabotaging tendencies etc. intact.

And so in this new situation you will still not find what you hoped for since your mind is still seeping with that negative stuff. And if you get more without having some insight into and distance from your ego it may grow more powerful. Since your ego loves to divide things, to find enemies and to create separation it may start to try to create even more problems and conflicts in your life and world.

2. You are in control.

“Nobody can hurt me without my permission.”

What you feel and how you react to something is always up to you. There may be a “normal” or a common way to react to different things. But that’s mostly just all it is.

You can choose your own thoughts, reactions and emotions to pretty much everything. You don’t have to freak out, overreact of even react in a negative way. Perhaps not every time or instantly. Sometimes a knee-jerk reaction just goes off. Or an old thought habit kicks in.

And as you realize that no-one outside of yourself can actually control how you feel you can start to incorporate this thinking into your daily life and develop it as a thought habit. A habit that you can grow stronger and stronger over time. Doing this makes life a whole lot easier and more pleasurable.

3. Forgive and let it go.

“The weak can never forgive. Forgiveness is the attribute of the strong.”

“An eye for eye only ends up making the whole world blind.”

Fighting evil with evil won’t help anyone. And as said in the previous tip, you always choose how to react to something. When you can incorporate such a thought habit more and more into your life then you can react in a way that is more useful to you and others.

You realize that forgiving and letting go of the past will do you and the people in your world a great service. And spending your time in some negative memory won’t help you after you have learned the lessons you can learn from that experience. You’ll probably just cause yourself more suffering and paralyze yourself from taking action in this present moment.

If you don’t forgive then you let the past and another person to control how you feel. By forgiving you release yourself from those bonds. And then you can focus totally on, for instance, the next point.

4. Without action you aren’t going anywhere.

“An ounce of practice is worth more than tons of preaching.”

Without taking action very little will be done. However, taking action can be hard and difficult. There can be much inner resistance.

And so you may resort to preaching, as Gandhi says. Or reading and studying endlessly. And feeling like you are moving forward. But getting little or no practical results in real life.

So, to really get where you want to go and to really understand yourself and your world you need to practice. Books can mostly just bring you knowledge. You have to take action and translate that knowledge into results and understanding.

You can check out a few effective tips to overcome this problem in How to Take More Action: 9 Powerful Tips. Or you can move on to the next point for more on the best tip for taking more action that I have found so far.

5. Take care of this moment.

“I do not want to foresee the future. I am concerned with taking care of the present. God has given me no control over the moment following.”

The best way that I have found to overcome the inner resistance that often stops us from taking action is to stay in the present as much as possible and to be accepting.

Why? Well, when you are in the present moment you don’t worry about the next moment that you can’t control anyway. And the resistance to action that comes from you imagining negative future consequences – or reflecting on past failures – of your actions loses its power. And so it becomes easier to both take action and to keep your focus on this moment and perform better.

Have a look at 8 Ways to Return to the Present Moment for tips on how quickly step into the now. And remember that reconnecting with and staying in the now is a mental habit – a sort of muscle – that you grow. Over time it becomes more powerful and makes it easier to slip into the present moment.

6. Everyone is human.

“I claim to be a simple individual liable to err like any other fellow mortal. I own, however, that I have humility enough to confess my errors and to retrace my steps.”

“It is unwise to be too sure of one’s own wisdom. It is healthy to be reminded that the strongest might weaken and the wisest might err.”

When you start to make myths out of people – even though they may have produced extraordinary results – you run the risk of becoming disconnected from them. You can start to feel like you could never achieve similar things that they did because they are so very different. So it’s important to keep in mind that everyone is just a human being no matter who they are.

And I think it’s important to remember that we are all human and prone to make mistakes. Holding people to unreasonable standards will only create more unnecessary conflicts in your world and negativity within you.

It’s also important to remember this to avoid falling into the pretty useless habit of beating yourself up over mistakes that you have made. And instead be able to see with clarity where you went wrong and what you can learn from your mistake. And then try again.

7. Persist.

“First they ignore you, then they laugh at you, then they fight you, then you win.”

Be persistent. In time the opposition around you will fade and fall away. And your inner resistance and self-sabotaging tendencies that want to hold you back and keep you like you have always been will grow weaker.

Find what you really like to do. Then you’ll find the inner motivation to keep going, going and going. You can also find a lot of useful tips on how keep your motivation up in How to Get Out of a Motivational Slump and 25 Simple Ways to Motivate Yourself.

One reason Gandhi was so successful with his method of non-violence was because he and his followers were so persistent. They just didn’t give up.

Success or victory will seldom come as quickly as you would have liked it to. I think one of the reasons people don’t get what they want is simply because they give up too soon. The time they think an achievement will require isn’t the same amount of time it usually takes to achieve that goal. This faulty belief partly comes from the world we live in. A world full of magic pill solutions where advertising continually promises us that we can lose a lot of weight or earn a ton of money in just 30 days. You can read more about this in One Big Mistake a Whole Lot of People Make.

Finally, one useful tip to keep your persistence going is to listen to Gandhi’s third quote in this article and keep a sense of humor. It can lighten things up at the toughest of times.

8. See the good in people and help them.

“I look only to the good qualities of men. Not being faultless myself, I won’t presume to probe into the faults of others.”

“Man becomes great exactly in the degree in which he works for the welfare of his fellow-men.”

“I suppose leadership at one time meant muscles; but today it means getting along with people.”

There is pretty much always something good in people. And things that may not be so good. But you can choose what things to focus on. And if you want improvement then focusing on the good in people is a useful choice. It also makes life easier for you as your world and relationships become more pleasant and positive.

And when you see the good in people it becomes easier to motivate yourself to be of service to them. By being of service to other people, by giving them value you not only make their lives better. Over time you tend to get what you give. And the people you help may feel more inclined to help other people. And so you, together, create an upward spiral of positive change that grows and becomes stronger.

By strengthening your social skills you can become a more influential person and make this upward spiral even stronger. A few articles that may provide you with useful advice in that department are Do You Make These 10 Mistakes in a Conversation? and Dale Carnegie’s Top 10 Tips for Improving Your Social Skills. Or you can just move on to the next tip.

9. Be congruent, be authentic, be your true self.

“Happiness is when what you think, what you say, and what you do are in harmony.”

“Always aim at complete harmony of thought and word and deed. Always aim at purifying your thoughts and everything will be well.”

I think that one of the best tips for improving your social skills is to behave in a congruent manner and communicate in an authentic way. People seem to really like authentic communication. And there is much inner enjoyment to be found when your thoughts, words and actions are aligned. You feel powerful and good about yourself.

When words and thoughts are aligned then that shows through in your communication. Because now you have your voice tonality and body language – some say they are over 90 percent of communication – in alignment with your words.

With these channels in alignment people tend to really listen to what you’re saying. You are communicating without incongruency, mixed messages or perhaps a sort of phoniness.

Also, if your actions aren’t in alignment with what you’re communicating then you start to hurt your own belief in what you can do. And other people’s belief in you too.

10. Continue to grow and evolve.

”Constant development is the law of life, and a man who always tries to maintain his dogmas in order to appear consistent drives himself into a false position.”

You can pretty much always improve your skills, habits or re-evaluate your evaluations. You can gain deeper understanding of yourself and the world.

Sure, you may look inconsistent or like you don’t know what you are doing from time to time. You may have trouble to act congruently or to communicate authentically. But if you don’t then you will, as Gandhi says, drive yourself into a false position. A place where you try to uphold or cling to your old views to appear consistent while you realise within that something is wrong. It’s not a fun place to be. To choose to grow and evolve is a happier and more useful path to take.

Credits to DailyGood and positivityblog.

Boulevard of Broken Dreams -Acoustic Beginner’s Version

Credit: http://www.guitar-skill-builder.com/free-printable-guitar-chord-chart.html
Credit: http://www.guitar-skill-builder.com/free-printable-guitar-chord-chart.html

Here is the basic chord strumming for Boulevard of Broken Dreams by Green Day.

REMEMBER TO CAPO AT 1ST FRET.

Chords Required (in sequence): E(minor), G(major), D(major), A(minor).

Strumming Pattern: D D U (change chord now) D D U (change) … Repeat

Yea, it’s that simple! 😀

Refer to video if unsure: Link to YouTube

Hmmm….Ram vs Hard Disk?

random-access-memory-dt

Well I just thought of an analogy for the difference between Random-Access-Memory (RAM) and hard-disk that has confused me during my younger years.

When your computer often slows down or lags, you’ve probably blamed it on your lousy RAM (like me)…

Well, think of you going into an exam. Consider RAM as the rough paper you use to do your working. For example, if you’re only given 1 sheet, then you are limited by the paper’s size and therefore the working space. The more sums you do, the more cluttered the workspace on your rough paper and the sooner you’ll run out of space. Similarly, the more programs you open and use concurrently, the faster and greater your RAM gets used up.

Hard disk on the other hand can be compared to the textbooks and notes you have. You can have many textbooks full of content, but the moment you apply a particular concept or work on a math problem, you don’t use the textbook. Instead, the rough paper becomes the working ground.

Well, that may not be drastically insightful, but at least that how I relate it to my computer terms.

hello.

Attila Ovari

Loving Life and Inspiring Others

Thought Catalog

Thought Catalog is a digital youth culture magazine dedicated to your stories and ideas.

Working With Grace

Award-Winning Singaporean Business And Lifestyle Blogger! :D

Humans Are Weird

colourful observations

A Sacred Path

Poetry, Essays, Devotional Material, and Other Stuff

ALIENS_ROBOTS_THE EARTH

Embark Into The Adventure...to save the world, and The HUMANITY

ThisTaleIsAboutUs

Now that we have this life, let's make the best of it..

Bucket List Publications

Indulge- Travel, Adventure, & New Experiences

Vincent Desrus's Blog

Blog created to make people think about the world around them

Griffins and Ginger Snaps

To share what I know, what I learn, what's helpful and what's not, and everything in between