How To Crack The Code Of Life And Achieve Happiness

Cracking the life code by practising CSS to achieve PHP

- | 58 Aha! comments | Posted in category: Happiness, Life & Inspiration

Code of life image showing a person in compassion meditation with a lock symbolizing life hack


Life is a mystery and to understand it you need to decode it. If you are successful in cracking the code of life, you achieve happiness.

Believe me, the happiness code is no secret or difficult to implement in life.

Don’t be surprised by the title of the post and the talk of codes because it is not about software programming! It is neither about genetic engineering nor genomics. 🙂

However, if you are a computer programmer, you will like the interpretation of life codes in this post.

By codes, I mean certain principles or rules of life that will do you good if you follow them.

There are ways of life that can help you live easily. You always have an option of following a code of living that can help you enjoy life and be successful too.

You can say that this post is somewhat about the programming of life through practical ways to make it better.

Who wouldn’t like to live a better life? You sure wouldn’t mind cracking some magical formulas or secret codes to get it all in life, right?

Okay, tell me, what do you need in life to make it better?

I think I can read your mind, so I’ve listed some of the options below that you might be thinking right now:

Money. I know we all need money to live a comfortable life, so I agree with you.

Girlfriend or a boyfriend. Well, we do need a companion, and if you can get a soulmate, that’s the best.

Good physique. Oh yes, you can impress others with a good body. More so, a healthy body will also help you be mentally healthy.

Now your mind is flooding with more desires and requirements – you need an expensive car, a lavish house, the latest mobile, branded clothes, and this and that!

And I agree with you – ALL of these things can make your life better.

But have you ever thought that what you try to achieve through these materialistic things are eventually some abstract qualities of life.

That’s right.

Whatever you do, indirectly you try to achieve “PHP” – PHP here stands for Peace, Happiness, and Prosperity (and not Hypertext Pre-processor, the HTML-embedded scripting language). 🙂

Actually, no matter what your beliefs are, the path of life you take, or which corner of the world you live in, your ultimate aim in life is to be happy.

Yes, its the happiness code that you really need instead of loads of material goods!


So, why not get “PHP” directly instead of taking the indirect, long route?

Why not take a shortcut in place of spending all your time and effort doing tens of things, do a few simple things to get more? Does it make sense?

But for that you need to know the code to get direct access to PHP in life. I bet you want to know about it, right?

I won’t keep you guessing, so here it is. Let’s crack the code of life to achieve peace, happiness, and prosperity!

Diagram of programming life using codes CSS and PHP


The CSS Code Of Life

In computer programming language, CSS means Cascading Style Sheets. If you are a WordPress blogger, you must have come across this term.

In this post, “CSS” is the seed code to get the fruit of “PHP” in life. You can program your life using the principles of CSS.

Here, CSS stands for Compassion, Spirituality, and Self-improvement.

Now, that’s very simple. In fact, it is one of the basics of life that everybody knows, so what’s so special about it?

The only specialty of the act of compassion, spirituality, and self-improvement is that it can easily, directly, and quickly get you long-term happiness, peace, and prosperity in life.

This is such a simple happiness code of life, but sadly, most of us aren’t able to understand it to implement it in our lives.

Don’t take it personally, as I’m relating to it in general terms. If everybody starts practicing CSS in their lives, wouldn’t this world be a better place to live in?

What does the world need now? Read this Aha!NOW post to know and reflect upon.

The Golden Rule

Do you know the golden rule of life?

We mostly use and refer to this rule but do not realize the power of this maxim of life.

Wikipedia defines Golden Rule as the ethic of reciprocity. This ethical code of life states –

One should treat others as one would like others to treat oneself.

One should not treat others in ways that one would not like to be treated (also known as the Silver Rule).

Now, if you are a blogger and a member of the ABC, you know the meaning and value of reciprocity. It is a two-way relationship formed by the act of equal and mutual exchange.

Not only the ABC members, I think most bloggers know the power of reciprocation, which means if you want more comments, shares, and visits on your blog – then you should visit other blogs and share their posts as well as comment too.

I don’t want to give a religious tone to this post, but I can’t help mention that the golden rule of “Do unto others as you would have them do unto you” is a part of the core of all religions.

Though this text may be taken from the Bible, all major religions of the world follow this principle and term it in their own ways.

This principle of empathy is also the foundation for cultivating compassion in life.

Image of Dalai Lama with a quote on how to be happy with compassion


If you want others to care for you, you should care for others. Fair enough?

According to the dictionary, caring is a loving feeling. It is a feeling and exhibition of concern and empathy for others.

You care for your family, friends, partner, and you can even care for strangers.

Caring gives rise to compassion, which is a deep awareness of sympathy for another’s suffering with a desire to help alleviate it.

Compassion leads to Altruism. Altruism is the principle or practice of concern for the welfare of others.

By being compassionate, you tend to donate to charities, volunteer to help suffering people, or render your services and time free of charge in the welfare for others.

According to Greater Good of Berkeley University, Altruism makes us happy, healthy, more loving, and a better human being.

See, you don’t have to buy anything or possess anybody to be happy. You just need to crack the code of life to get to the basics and unveil the mystery.

As per the Pursuit of Happiness website, “People who care for others’ well-being through acts of altruism, volunteering, or formation of communal relationships seem to be happier and less depressed.”

We now know for sure that compassion begets long-term happiness in life. 

How to Develop Compassion and Altruism

Caring becomes meaningful when you get down to implementing the care, selflessly. In fact, you need to program your life to selflessly help people.

According to a study and this article, compassion can be developed, and it is a skill that can be learned. Your brain can be trained to act compassionately and thus achieve happiness.

Here are some ways to develop compassion:

Believe in compassion –

Compassion is the magic potion for happiness. Here is the master saying it himself as you read above:

If you want others to be happy, practice compassion. If you want to be happy, practice compassion.” ~ Dalai Lama

Compassion will help you change your perspective and make you more positive. You’ll become an understanding and an easy going person, and be more kind and loving.

The first step to any self-development process is to believe – have the belief that compassion will cure your sufferings and make you happy.

Be compassionate for yourself –

Learning and practicing to be compassionate starts with you. If you are kind to yourself, you will be kind to others. If you love yourself, you’ll be able to love others.

Love and feel good about yourself. Forget the painful past and let it go. Forgive and accept yourself, and be grateful to your life.

With every breadth, open your heart and feel the love flowing through your heart and body. Think that you are the kindest person on the planet – and gradually you become what you think.

During this process of developing self-compassion, you may experience some barriers like frustration, resentment, sorrow, etc.

You need to let go of them and understand that this is detoxification of your heart, so good for you in a way.

Keep your focus on being kind and loving. You’ll feel good and forgive yourself as well as embrace yourself.

Next, you spread your compassion universally to your near and dear ones, and to strangers or even to those who do not wish well for you.

Practice compassion meditation for others –

When you feel the kindness and love within yourself, it is time to develop compassion for others by practicing compassion meditation.

It is just like normal meditation, but here you focus on the person for whom you have empathy and care about sincerely.

You open the floodgates of your heart and let the love flow because you wish well for the being of your focus.

Initially, you can use words and phrases like “May you be free from suffering and be healthy”, “Wish your life be filled with love and happiness”.

In fact, any good and positive thought that comes to your mind will help. It has to be intentional, coming straight from the bottom of your heart.

Feel and mean what you say in your mind, being focused and relaxed. Visualize the person or the being getting well and feel happy about it.

Eventually, you’ll learn to be compassionate by just expressing your kind and loving feelings without the need of words.

Read this article to learn more about how to practice compassion meditation.

Realize the oneness –

When practicing compassion for others, understand that all human beings are more or less similar.

Feel the oneness and as you do that, you’ll experience the sorrow and suffering of others. Send your feelings and wishes of love and care as you would do to your own self.

Feel for the person in suffering as if you were in the person’s place, and it happened to you.

Make no distinction and have no doubt – love others as you love yourself.

Don’t get confused between love and lust, as we are dealing with unattached and unconditional true love as a fellow being.

Make compassion a part of your life and daily habit. Practice gratitude and thankfulness.

Be thankful to everyone. Feel grateful for everything in life. Be giving.

Image of Deepak Chopra with his quote on spirituality


Being spiritual does not necessarily mean being religious. While as a religious person, you can also be spiritual.

Spirituality can exist independently and universally with no relation to any religion. However, every religion deals with spirituality in its own way.

Spiritualism is concerned about the personal and subjective experiences rather than being based on any religious text or teachings.

As a spiritual person, you are concerned with the spirit or soul, which is defined as the vital principle or animating force within living things.

In clearer and larger terms, spirituality involves a sense of connection to something bigger than us, a force that is powerful, universal, and eternal.

Spirituality is also the belief in transformation and progression of the state of your spirit or your Self, becoming better, free, and pure.

Spirituality helps us dig deeper within us and understand ourselves as well as understand others. It helps develop a feeling of oneness.

As a spiritual person, you are focused on self-development and expand yourself to embrace humanity as your religion. Spirituality is all about understanding life, self-discovery, and self-realization.

Many believe that spirituality helps develop inner peace and lays the foundation of happiness in life.

How to become spiritual

According to Wikipedia, spiritual practices may include meditation, mindfulness, prayer, the contemplation of sacred texts, and ethical development.

Love and compassion are often described as the mainstay of spiritual development.

Here are a few ways to become spiritual –

Find your life purpose –

Spirituality also deals with questions and thoughts about your existence. To become spiritual, you need to philosophize about life and try to understand why you exist.

As everything in nature has a purpose, you too have a purpose in life. That is, in fact, a secret code of life that can help you live a meaningful life.

Practice Spiritual Meditation –

To be spiritual, you need to control your mind and connect to your spirit. The mind can be a deterrent to your spiritual progress because it likes chaos, disorder, and definitely resists being reined-in.

Meditation is just the right practice to go to your inner depths and seek solutions to your problems.

Of course, there are various types of meditation like Transcendental Meditation (TM) and Mindful Meditation that are basically used to relieve stress and mindfulness. Meditation helps you stay aware and attentive.

Indulge in prayers and reminder acts –

Don’t ever underestimate the power of prayers. They are often regarded as the direct connection to the higher self or even to your powerful potential, hidden in your depths.

You also need to keep reminding yourself of your spiritual nature and qualities that set you apart from others.

For that, you should keep reading spiritual material and take part in spiritual discussions to enhance your knowledge.

Get curious about life –

You should use meditation and other activities to introspect and reflect on your life to sync yourself with your real self.

Always question about the events, processes, and things in life and try to seek their answers. Spirituality is a quest of life, and you need to get proactive in its development.

Become a helpful person –

Stripping down to the basics, we are all spirits in material bodies living in this world. We encourage spiritual development by helping other spiritual beings.

Yes, we are the yet-to-discover-ourselves spiritual beings. Other people and events indirectly help us reveal our true identity to us.

If you help others, others too will help you in reciprocation, and you will exchange love and kindness to brew peace in your lives.

Image showing a man changing his fortune after changing himself


No one is perfect. However, we can certainly improve ourselves.

The act and practice of improving yourself is called self-improvement.

The dictionary defines self-improvement as the improvement of one’s knowledge, status, or character by one’s own efforts.

Actually, self-improvement has a broad scope.

It can include improvement in terms of personal development like habits and lifestyle, or in terms of professional terms like leadership skills and time management.

Self-improvement can be applied to achieve better health, relationships, skills, career, personal growth, and life.

Overall, self-improvement is the process of making positive changes in yourself related to various aspects of your life.

To make yourself better than what you are, you need to adopt change. You need to be willing to change, for the better.

If you learn positive and productive habits, behaviors, and thoughts, you are more likely to succeed in your personal, social, and professional aspects of life.

As an improved person, you might excel in your work and remove obstacles in the path of prosperity, to achieve financial and professional wellness.

How to improve yourself

There is no secret to improving oneself, and it is no rocket science either.

If you really feel that you should better yourself and have a strong desire to do so coupled with equally strong belief and determination, you will find your way.

However, the below-mentioned steps will help you take the right directions and approach.

Make a Mission Statement –

First, find out what you want to be or do in life. Imagine yourself ten years from now and visualize how, what, and where you want yourself to be.

Based on your perceptions and desires aka your vision, create your mission statement and promise yourself to make it true.

Make a plan –

Be honest with yourself and evaluate your present standing. This fair assessment will reveal the gap between your present and future life.

You need to make S.M.A.R.T. (specific, measurable, attainable, relevant, and timely) goals to make your vision a mission possible.

Be Positive and embrace change –

Adopt optimism and expect a positive change in your life. Keep faith in yourself and gear yourself to embrace the change that is required for your success, and be focused.

If need be, change your habits, routine, and attitude.

Be disciplined –

You achieve success through hard work. For that, you need to discipline yourself and be determined. Make your own rules, but don’t fake them.

Make it a habit to complete your objectives, achieve your targets, and accomplish your goals.

Learn to manage –

If you want to have a successful life, you need to manage your life properly. This includes managing your time, family, tasks, health, and other affairs.

Take tips from the masters, learn from the coaches, or join related courses to help you manage your life better. Always keep learning.

Don’t Procrastinate –

The last thing you can do is to go soft on your mission and stall it to make it impossible. Do not delay or postpone, or get lethargic and hopeless in the middle of your mission.

Be action oriented and always believe in yourself. Don’t ditch your dreams; don’t compromise for donuts when you deserve diamonds!

“We are not human beings having a spiritual experience. We are spiritual beings having a human experience.” ~ Pierre Teilhard de Chardin

Grammarly Writing Support

Wrapping Up

The secret to achieving peace, happiness and prosperity (PHP) in life is finally achieved!

Okay, probably this wasn’t a secret, but you now know the complete code to make your life better. Cracking the happiness code is now easy.

Developing compassion will help you achieve happiness, cultivating spirituality will give you inner peace, and practicing self-improvement will bring you prosperity.

Life will no longer be a mystery if you apply the CSS code in your life. You will program yourself in such a way that winning will become a hard-to-break habit.

It’s no magic but besides happiness and peace, you will also receive all those things as sweet byproducts of your hard labor that you desired – such as money, material things, and what not!

It’s wise to seed compassion, spirituality, and self-improvement early in your life to reap the PHP rewards later.

Over To You –

What do you want in life and what do you do for that? Do you think compassion and spirituality help in life? What other tips would you add to these self-improvement steps? Do you have any special rules or codes in life that you follow to achieve PHP? What’s your happiness code? Share in the comments.

Photo Credit:


Show Comments

58 Comments - Read and share thoughts

  1. Abhilash PS

    2017-05-25 at 7:05 pm

    Very Much Inspirational, Happiness is a natural thing we can only get from spiritual circumstances. I was practiced yoga once, experience was so nice & relaxing. Thank You for sharing.

  2. Leonie Burmeister

    2016-04-07 at 12:25 am

    I loved this post
    I have some deep experience from books by Deepak Chopra
    I did not plan my path to be influenced by him
    It just so happened
    And I have my story to tell some time when the time is right
    It is a pity that children are not taught some of these wonderful lessons in school while they are still young and open to influence of this kind
    Anyway we all have an individual responsibility to share what we believe to be shareable with people so dearly in need of knowledge about the purpose of their lives . Thanks for the wonderful post

  3. Marie Trout

    2015-10-05 at 6:18 am

    Hi Vinay,
    what a great post. I very much appreciate the way you tie together the material, practical,spiritual, and ethereal realms as they are “coded together,” as you say, in making our life experience full and rich in the best meaning of the word.

  4. Amir Hamjah

    2015-09-20 at 3:08 am

    I am very worried about my life. I will always think of how to achieve success. I can not understand. So I think all of the Internet. Today I saw a text of this kind began to fall. The writing is a little light reading my mind. Thank you very much for posting this.

  5. Nitin Pahwa

    2015-08-21 at 5:47 pm

    Great post! i just like this post as it motivates us towards happy life.
    Thanks for sharing. Have a happy life ahead. 🙂

  6. Satya P. Joshi

    2015-08-16 at 6:08 pm

    great post indeed, i liked the title of the post which is stared with crack code….
    and inside the post every word is placed amazingly…
    Another thing i loved is abbreviation of PHP and CSS

    Thank you so much

  7. Neha Singh, Ticket to Life International

    2015-08-11 at 1:46 am

    I really like the way use used tech words to decode the key to happiness. It was quite innovative to use PHP and CSS 🙂 I especially loved reading the part of blog where you mentioned about how to improve yourself – Making a plan, embracing the uncertainty and be disciplined! I am definitely going to follow your blog regularly!

  8. Moumita Ghosh

    2015-08-10 at 1:23 am

    Hello Vinay Sir,

    You have truly advised how to crack the code of life to find happiness. I never see PHP and CSS like this. In one word the article is awesome. I am spellbound after reading this article.

    Best regards,

    Moumita Ghosh

  9. Quinn Eurich

    2015-06-30 at 7:16 pm

    Hi Vinay,

    It is said of the historical Buddha that he spoke to people in ways that were right for each person or group of people.

    I think you did the same with how you used PHP and CSS!

    Wonderful post!


  10. TomPiyani

    2015-06-29 at 3:56 pm

    In my life, the experience of great sadness, and the understanding resulting from what I learn in overcoming it has led directly to being a more compassionate person. If you have known hurt, you recognize it in others and are able to more effectively act to alleviate needless suffering. If you can’t be sad about your own ignorance and failures, you won’t rededicate to improving your focus. If you want to learn the art of succeeding in a challenging environment then subscribe to my free e-book. Thanks

  11. Piyush Mathur

    2015-06-11 at 10:43 am

    Hi Harleena Ji,

    PHPCSS – Interesting code of life indeed, the right mix that we need to stay centered & do everything right in our lives. Thanks for sharing this! Made my day :)


  12. Ikechi Awazie

    2015-06-07 at 7:38 am

    Hi Vinay

    Kudos to you and what an awesome post.

    You know I was fascinated by the way you used programming terms to tie to life principles like PHP and CSS

    There is one level where we practice compassion and Happiness to others so that we can receive such as well but there is another level where we understand why humanity needs to be given compassion and Happiness without really think about receiving.

    This level really to me is Spiritual apart from praying and meditation. It is a point where one’s spirit becomes tuned to the World Cosmos.

    Self development is necessary and should never be taken for granted. If one’s cup is full, then there will be no way to learn and this is as good as death.

    Thanks for sharing. Thumbs up to an awesome post. Take Care

  13. Rachel Wolany

    2015-06-06 at 2:02 pm

    Hello Vinay,

    Haven’t I been missing out? I saw this title over and over. But I am having a few coding problems and when I saw the title I avoided it. Thinking you were giving advice on coding tips that are easy and will make you happy.

    What a great post. But firstly I want to congratulate you on your honesty. When you talk about compassion you talk about and I quote you ‘During this process of developing self-compassion, you may experience some barriers like frustration, resentment, sorrow, etc.’ Generally when I read posts, they talk about how to obtain this but leave out, how hard it can be at times.

    Secondly I enjoyed the forumla.

    Now for your questions. I have just started doing what I see me doing for the rest of time I breath. This thing called blogging and You tubing. I want to be at the top of my field. But I understand that I am doing nothing but being a student at this present time. Learning and feeling my way. And yes I am a meditator – so I know this will balance out the times of doubt. The reason I want to do this blogging seriously is due to compassion. What I have been through I would like to share. I want to embrace my history and show it off – because I celebrate getting over the barriers. For my self improvement, my key is reflection. And I have done this for years now that it happens automatically. I dont even set times anymore to reflect, I trust that it will happen. Mind you some times when reflection comes up – I am in situations where I cant give it my full attention. Sometimes I even think my mind teases and tests me but sure enough I go back to it. Because reflection has given such a clear direction as to how I want to respond to the world.

    I have never thought about a happiness code – however I do consider myself happy go lucky generally. However I have had to be a little militant as I was letting everyone in – interpreting it as my duty to serve. Because that is what I believe I am here for; to serve others. But my energy was being zapped and people started taking advantage, so I had to get a little tough, but it has balanced out now. I know when, where and who to focus in on and allow my energy to envelope them. The gift is presenting itself more and more since I have been blogging, so I know I have nailed the path. Thanks for the post and thought provoking questions. Rachel.

  14. Linda S schrier

    2015-06-06 at 2:28 am

    Hi Vinay,

    What a beautiful post. I want everything you posted about to become a part of my life.

    20 years ago I did much of what you posted about, somehow I took the wrong turn in the road and now that you’ve got my attention I’m going to turn my life around and take your path. I was so much happier in those days using meditation and spirituality as the course I followed then. I also prayed a lot and I still do. I used a lot of self help books too.

    Thank you for a beautiful post!


  15. Joy Healey

    2015-06-04 at 5:40 am

    Hi Vinay

    Great post, and lots to think about.

    When I was a little girl the “Do unto others…” quote was drummed into me, and I think it was a good rule to live by.

    One of the changes I am trying to make is to be kinder to myself because I’m my own worst critic. I remember I upset a friend once and she was giving me a bit of a telling off – but she wasn’t beating me up anywhere near as badly as I was beating myself up!

    I loved the play on PHP and CSS – although I can’t help thinking that the search engines may give a surprise to someone searching for PHP and CSS. If they find your post, it will likely to more valuable to them!

    Enjoy the rest of your week, Joy

  16. Adrienne

    2015-06-02 at 11:15 pm

    Hi Vinay,

    What a wonderful topic and was reading through this the first thing that popped in my mind was happiness as well. I read a little more and there it was..

    I truly believe that if you’re happy then compassion and self-improvement usually go hand in hand with that but of course I would hope that everyone has some sense of spirituality as well. I do believe having all of these together can definitely make our lives so much better.

    I’ve tried to live by the motto to treat others as we would like others to treat us. I think if we can put others in our shoes then we have a much better understanding and of course along with that come compassion. You did mention reciprocity as well and of course I believe that is huge for all of us whether we’re talking about our lives and helping others or as bloggers.

    Most people know my story of course and how I lived with a Dad who had cancer 42 years of my life. That really can teach you a lot about life, compassion for others, helping others and that life isn’t to be wasted at all. We each have to make choices of how we want to live our lives and it definitely helped me to learn that I don’t need to take anything for granted and live my life to the best of my ability. With that to me starts with helping others.

    Really appreciate your message today Vinay and sorry I haven’t been by here in a while. Had a rough month last month but it’s a new one and I’m excited about what June will bring. Hope you and Harleena are doing well and I hope you have a great week.


  17. Corina Ramos

    2015-06-02 at 12:03 am

    Hi Vinay,

    This is such a great post. I think compassion and spirituality definitely plays a part in how our life is. If we focus on helping others and sharing our blessings with less fortunate ones, I believe we are blessed even more. If we’re only focused on ourselve, we won’t get anywhere in life.

    It’s sad when people think material things like money and looks is the key to happiness. Sure it these things can improve ones life but I personally think there is more to happiness than that.

    I enjoyed reading how to achieve PHP and the principles of CSS. I agree, the world would be a much better place if we all practiced this way of living.

    I remember being taught the golden rule as early as 5 years old.

    I really enoyed reading this post. I’m so glad you shared some advice how to become spiritual. Some people find it hard to do. And I enjoyed the quotes you shared as well. I don’t think I have anything to add since you’ve really provided all there is to know about cracking the code of happiness.

    Thanks for putting this together!

    Have a great week and month. Say hello to Harleena!


Leave a Reply

Your email address will not be published. Required fields are marked *

11 − two =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Send this to a friend