Can your employer be your friend?

I would have different answer if I didn’t work for Shane Merem. It’s been 3.5 years since I started working for him and I can hardly remember a moment where I felt like he was my boss. In fact, it was me who acted as if he was my friend by speaking my mind, saying “Shane, I dont want to work on that stupid project”. And I can’t remember a day that I asked for a day off and he didn’t accept. Shane actually encouraged me to take more days off to spend time with my family.

Few months ago when I let him know that I wouldn’t be working for him full time, because I wanted to concentrate a bit more on my own things (i.e. ), he made that transition smooth and easy, and I was able to freely do more work for myself.

I know what you are thinking now. I am a very lucky guy to have a friend like him.  Thank you Shane, I just thought you deserved a public admiration!

Posted in Friends, Job Experience | Tagged , | Leave a comment

Dynamic Height For Facebook Canvas Page

To dynamically increase and decrease Facebook’s canvas page, put the following simple JS(jQuery) code at the bottom of your page. Please make sure to select fixed height 800px in your app setting. Don’t select fluid, it will add scroll to your page.

<div id="fb-root"></div>
<script type="text/javascript" src=""></script>/* Normal height should be your page height at first load. In my case it's 350 */<script charset="utf-8" type="text/javascript">
    var bodyHeight   = $('body').height();
    var normalHeight = 350;
    if(bodyHeight > normalHeight) {
        bodyHeight = bodyHeight - 100;
        FB.Canvas.setSize({ width: 760, height: bodyHeight });
    }else {
        FB.Canvas.setSize({ width: 760, height: normalHeight });


A simpler way:

$(window).load( function() {
Posted in Facebook | 1 Comment

The Google Trusted Store Badge: Why And How To Implement It On Your E-commerce Website

The Google Trusted Store” – name says it all. As a buyer I will always prefer to purchase something that is trusted and secured. How do you know an e-commerce website is secured and trusted? Most of the trusted badge is generated from some JavaScript without any strong verification. A simple logo or trusted badge doesn’t guarantee that an online store is trusted. Why Google Trusted Store is special? Because to show up the badge on your site, you really have to work on the site and verify over along period of time. After a long period of time, Google will make sure you meet every criteria and only then it allows your to show the trusted badge on your site. You are not done there. Google continuously check quality of order delivery, shipment time etc. If you fail continue the quality of service, they will take off the badge from your site. So this is really a good way to know if you can get guaranteed service from an online store.

Google Trusted Store Verified Sign

Google Trusted Store Verified Sign

Now let’s see how we can implement Google Trusted Store on your website.

There are 4 steps to follow

  1. Account Setup – You can follow the instructions here.
  2. Create and Submit Your Feed – This one has 3 more steps. First step is to connect your Google Trusted Store account with your Google Merchant Centre account.

In order to submit feeds for Google Trusted Stores, you’ll first need to link a Google Merchant Center account to your Google Trusted Stores account. You can do this by selecting an account from the Choose an account dropdown in your Trusted Stores account, linking the accounts directly from Google Merchant Center, or creating a new Merchant Center account.

Next is to output shipment feed and cancelled order feed. I have created an example. Please check this out from here. Get the “shipment_feed.php” and “cancellation_feed.php” – Each file explains where to place them.

 After creating your feeds, you’ll submit them through the Google Merchant Center account linked to your Google Trusted Stores account. If you have not yet linked your Google Trusted Stores account to your Google Merchant Center account, please visit your Google Trusted Stores account to complete this process. 

You can see the Google Merchant Center account feeds linked to your Google Trusted Stores account by visiting

  1. Add JavaScript to Your Site – Please get the “google_trusted_store_badge.php” and “order_confirmation.php” and place them in your pages as I mentioned at the top of each page. Update: Domain name must be with www. http won’t work.
  2. Monitoring Period – After all the above steps, you have to wait 28 days or 250 trackable orders. But before that you can make sure your integration is correct from here trag to bottom, select your trusted store and click on “Test Now”. If you see the preview of trusted store then your are good. Make sure you complete an order to finish the full testing.
Preview of successful implementation

Preview of successful implementation

If you face any problem to integrate Google Trusted Store in your website, contact me. I can help you to set it up properly.

Posted in API, Google, JavaScript, Web | Tagged , | 2 Comments