PostgreSQL – C/C++ Interface

Amarjeet wants to use PostgreSQL database for his project SIM. PostgreSQL is an Object Relational Database Management System with an emphasis on extensibility and standards-compliance. libpqxx library is used for its connection to C++. It is the official C++ client API for PostgreSQL database. It is available under BSD licence, so free to use. One can download the latest version from here and then follow the given steps:

tar xvfz libpqxx-4.0.tar.gz
cd libpqxx-4.0
make install

Now, find pg_hba.conf file in your PostgreSQL installation directory and add the following line:

# IPv4 local connections:
host    all         all          md5

We can start/restart postgres server in case it is not running using the following command:

[root@host]# service postgresql restart
Stopping postgresql service:                [  OK  ]
Starting postgresql service:                [  OK  ]

Journey from Unsopken to Spoken

When a new tree born under the big one then it is the most beautiful thing ever that just happened. Big tree nourishes the small one for all of its life. You can imagine, how aesthetic it could be. You can see the holly love there. A true love.


But there is also an another fact that you must understand.

Big questions:

What will happen when a baby tree will demand more space? A space to grow big? A space to touch the sky where it really doesn’t matter whether it will be able to touch or not? When the desire of becoming big is very strong, can you imagine the struggle of a small tree (a baby tree) here?

I think you already got my point. A baby tree can never grow much under the shadow of its parent tree. Because baby tree needs its own space and sunlight. This is true and we should accept this.



Both can grow together with love if there is a small distance between two. Distance is always graceful, artistic and divine.

Same you can imagine in the parents-children relationship. Caring is good, it is really nice when someone cares for you, loves you, when someone makes you feel special and parent-children love is always alluring. There is no other example more beautiful than this love but what that love means to you when it becomes barriers, a prison or a guardhouse?

I’ve shared my opinion on one side only. I must wait before drawing any conclusion. So, I’m waiting.


Recipe of Happy Life

Do you wanna live happily? Oh! really? Hehe! Who the heck don’t want to be happy? We all seek for happiness, a good life, love, family and a good career. We work hard to get everything we want and sometimes find ourself lost in the middle of our journey. It happens with the majority.

If the same is in your case, then let’s learn how to create the life the way you want rather than expecting it to be gifted by someone else. Here is the recipe! Make your own and also distribute among the people who need it the most. Sharing is good for health. Have faith, you’ll rock 😉


1. Learning – On daily bases

2. Sharing – As much as you can

3. Earning – Earn for your family, for your own need, dreams and everything

4. Yearning – Always keep desire to learn more, help more, contribute more.

5. Use affection and attention for garnishing and smile+love while serving


First off, add some common sense with your power of reading and observe everything. Make your own opinions, your own rules to live your life. Learn from the environment, mistakes of others and obviously from the books. Never ever stop reading. Reading is the best way to be updated. Interact with people, try to understand their problem and help them if you can. You will learn from their experiences and this will make you happy.

At the second stage, share with people whatever you’ve learned. Make a community of people having same taste as you have.People who resembles with your profile. Spend time with them, share your knowledge and encourage them to do the same. You will see the difference in you. You will feel satisfied after sharing.

Money is the basic need. Find your interest and work on that. Make it a source of income. Earning will help you to fulfill all your needs. If you can earn more then must do this. If you’ll have more money, you can spend it for a good cause or even for your own dreams like traveling, real-estates etc. Understand the difference between the Rich and wealthy life. Money could not be the reason for happiness but wealth is.

Last one is yearning. Be limitless. Always keep a desire to learn more, share more, help more. The more you’ll do the things you like, the most happiest person you will become. This is the basic concept about life, it never stops, always keep on moving. “ਪਾਣੀ ਵਗਦੇ ਹੀ ਚੰਗੇ ਲੱਗਦੇ ਨੇ ਕਿ ਪਾਣੀ ਵੱਗਦੇ ਹੀ ਰਹਿਣ।”

So, this is the recipe of happy life. Now garnish this with affection and attention. And serve this with a pretty smile on your face and fall in love with your dreams.

How could I miss traveling. Travel the world and live your dream. 😀

Have a happy life 🙂

Divine Pills

Oh! I’m so stressed, I’m so depressed.
My manager from me is not so impressed.
I’m not good at job. This is the tension, that is the reason.
Things don’t change, whatever the season.

Are you suffering from the same. Majority of people are in depression these days. They are suffering from stress, anxiety, mental health issues, not happy with their life style, they think all bad stuff happens to them only. They consult the doctor, take counseling sessions which is good but become addicted to anti-depressant pills, which is not a good sign. Here, I’m suggesting you some divine pills, that will give 100% result if you’ll take these with full faith.

Here is the schedule/regular chart:

1. Those who struggle with their minds, are brave and distinguished heroes. (Before meal, thrice a day)

2. I can beat all odds with the power of prayer. Prayers can change anything and everything. (After breakfast)

3. Upload loving prayers and download everlasting eternal bliss. (After Lunch)

4. The moment is as it should have been. So, why worry? God is at your work. (After Dinner)

5. Encourage others, you will yourself be encouraged. (When you feel low self-esteem)

6. Praise frequently, criticize rarely, correct regularly. Remember, anger and danger goes hand in hand. (When you feel anxiety and anger)

7. Share your secrets with God, trust Him. He will keep them safe. (When you feel lonely)

8. God cares for even the tiniest bugs. Ofcourse, He cares for you too. (When you feel no one cares for you)

9. God can live anywhere. But He has chosen your heart. (When you feel no one loves you)

10. God always does good. Only we think otherwise. My sweet Lord has already chosen the best path for me. (When you feel, all bad stuff happens to you only)

11. Think of fearless God. You will also be without fear. (When you are frightened)

12. Call God. He comes instantly. (When you are in trouble)

13. Have faith! He is always near, very near and you gotta feel Him. (When you think, there is no God.)

So, take these pills regularly, you will be fine. Remember matter does matter but spirit matters the most. So, think positive, act positive and your positive attitude will create a chain of positive and spiritual thoughts.

Happy Living 🙂 😀