Friday, September 27, 2013

How to Add Pinterest button to Blogger Dynamic Views Posts

I probably just became the first man on earth to get the Pinterest's "Pin It" button on every post in the Blogger's Dynamic Views. You guys can check it out in action on my photoblog: Visioplanet Photography. Please do note that this is for Pinning individual posts and not just the blog. A similar tutorial was posted by Yoga on Southern Speakers, which was about how add Pin It button to Pin the entire blog (if you're interested).

This will be a short and concise tutorial on how I did it, and more importantly, about how you can do it. Do make a note that this tutorial is specifically for Blogger's Dynamic Views. For regular templates, there's a plethora of articles online elucidating the same.

How This works:

1. This method will look for an image on your post that is at least 400 pixels wide or high. As in the picture you're gonna pin your post with has a width or height of at least 400 pixels.

2. I can make modifications to this size thing and give one the ability to decide on a photograph chosen by the post author (lemme know in the comments if that's what you want).

Addition info about this:

Before we begin, what my "work around" (if you will) does, is that it shows the "Pin It" button beside the Google's +1 button at the top of every post. Do note, that the +1 button at the top of every post isn't shown in the "Classic", "Mosaic" and "Sidebar" views. But if you guys ask for it in the comments below, I can write a tutorial on how to get the Pin It button beside the facebook like button at the bottom of each post.

This is now available in two formats:
1. Like the +1 butto - both the top bar as well as the share section at the bottom of the post.
2. Just at the bottom of the post (like the facebook button).



The Procedure:

In the previous version of this, there were three steps. Now, only one step is required, which was earlier the Step 3.

Step 1:

In every post that you want to have the Pin It button on it, add the following line at the beginning in the HTML box of Edit Post.

<script src="https://raw.github.com/sudiptosarkar/PinterestForBloggerDynamicViews/master/VisioplanetPinItByImgSize.js"></script>

This will add the button both at the top bar (applicable only for certain dynamic templates) as well as at the bottom of the post.

EDIT: If you want the button only at the bottom of the post, beside the facebook share button, add this line at the beginning in the HTML box of Edit Post instead of the above:

<script src="https://raw.github.com/sudiptosarkar/PinterestForBloggerDynamicViews/master/VisioplanetPinItByImgSizeInShareSection.js"></script>


EDIT: As of 13th October 2013, this also shows the pin count beside the button.

I have no idea how to do this from the Templates -> Edit HTML (that will only need to be done once and not on a per post basis). If you know, lemme know in the comments below.

Sunday, January 20, 2013

She dumped me on valentine's day five years ago

She dumped me on valentine's day five years ago. A few months after that, I find out that it was for another guy. A year later, I'm going to NIT Suratkal to present a paper on an encryption algorithm I and Abhishek (Buddha) came up with. Of course, we didn't actually go, 'cause I said "about turn" for not having enough money and not letting myself be a drag on my sponsor for the trip on the next station. We got off the train on the station after Nagpur (We didn't have confirmed tickets).

She called me that night. When we were in Nagpur, after dinner at a dhaba near the station, she called me up, and I was surprised shitless, 'cause she didn't return my phone calls for the past year. I was calm. I had accepted the fact that we wanted different things from our lives, although I had no idea what she wanted. I asked her the one question I had meant to ask her for all that time - Why? Why not just tell me? I thought we were best friends (at least you were my best friend). She said that she'd tell me the next morning... We (me and Abhishek) reached back Raipur the next morning. She called and she told me the truth, and I swear to fucking god, I respect her for coming through because if she hadn't, it would have killed me for the rest of my life. I wasn't really furious at her. It was a long distance thing and I believe we both knew the repercussions. We haven't really been in contact since then, but she was the turning point in my life.

When she left me, is when I started seeing things differently. I started Nurvs of Steel, I started singing like there was no tomorrow. I started living like I might as well be dead tomorrow. To tell you the truth, I'm doing that right now.

The paper did get published in ICACE 2009 half an year after that Suratkal ordeal (Thanks again, to my sponsor, although I'm sorry I lost the proceedings and he never got to see what he spent all that money for).

I waited five years to muster up the courage to start looking for "The one" again. And when I finally did, all I faced was rejection, after waiting months to tell her about it. Of course, I understand that I'm a different guy, and I respect her for being upfront about it, but I'm not sure what I'm gonna do next. I'm still doing what is expected of me instead of what I really want to do...

Worst of all, I'm writing about shit I'm not supposed to disclose (supposedly), but if you really listen to what I write (in my blog or in my songs), you'd know that I ain't a storyteller. I'm not good at telling stories. I'm a truth-teller. I stand for truth, and that's the identity I have given myself in the past five years, and I believe that's what I'm gonna die preaching!

Wednesday, January 16, 2013

Life - A rather inexplicable thing

How much does your life weigh? Imagine for a second that you're carrying a backpack. I want you to pack it with all the stuff that you have in your life... you start with the little things. The shelves, the drawers, the knickknacks, then you start adding larger stuff. Clothes, tabletop appliances, lamps, your TV... the backpack should be getting pretty heavy now. You go bigger. Your couch, your car, your home... I want you to stuff it all into that backpack. Now I want you to fill it with people. Start with casual acquaintances, friends of friends, folks around the office... and then you move into the people you trust with your most intimate secrets. Your brothers, your sisters, your children, your parents and finally your husband, your wife, your boyfriend, your girlfriend. You get them into that backpack, feel the weight of that bag. Make no mistake your relationships are the heaviest components in your life. All those negotiations and arguments and secrets, the compromises. The slower we move the faster we die. Make no mistake, moving is living. Some animals were meant to carry each other to live symbiotically over a lifetime. Star crossed lovers, monogamous swans. We are not swans. We are sharks.
Ryan Bingham


Lonely by Sudipto Sarkar on Visioplanet Photography
Lonely by Sudipto Sarkar on Visioplanet photography



Sometimes I feel like disappearing. Going somewhere, leaving everything and everyone behind and starting a new "life". A life where I don't settle down, where I keep travelling from city to city, country to country. Work small part-time short-term jobs to make enough money for a motel room and dinner, and to hitchhike my way through the roads. Maybe call mom and dad sometimes, just to tell them that I'm still alive. And then, maybe go to an icy place, or a desert, or an uninhabited island and make a house out of wooden twigs and leaves, hunt for dinner maybe. And then stay there for a few months and figure out what to do next.

All that, or I could just stay where I am, with my backpack filled with stuff I don't need but love enough not to be able to empty them, with people who aren't really all that close... and then with those people who have betrayed my trust, time and again, but society has its "dos and don'ts". I could just as well stay right here, working nine hours everyday, living what I'm told, is a "normal" life, although I don't see how not doing what you'd want to do with your life by minding your moral and social obligations towards society could be "normal". Well, maybe I just speak a different language. In other words, I'm not in terms with the ways of what they call society.

But, let's not go there. I'd rather write songs to express all the society and their idea of (false) freedom.

In the end, it all boils down to what you want. I don't want my backpack to be empty. Never did. In fact, I wanted there to be a "back home". When you are growing up, you have this idea in your head, and make no mistake, the ideas always, invariably come with deadlines. For example, you'd think that by the time you're 23, you'd have someone you'd want to spend the rest of your life with, that by the time you're 29, you'd get married and settle down, maybe have a kid.

What you actually get is a lonely life, your friends settling down, and you, afraid of getting in relationships because of your last break up almost destroying your whole idea of a traditional "life", thereby sparking off another version of you, which you let define who you are in about half a decade of its existence. And you become an alcoholic. You drink to cope with pain... to forget the fact that you're a dead man and to sit back and think about what you're doing with what's left of it (life, that is).

And then, your most dreaded nightmare comes true. You fall in love again...