What do I think about Spirituality?

If you get hit by a car, not your spirituality or GOD but PEOPLE will help you whether they share your beliefs or not.

Spirituality is a topic often discussed very passionately. If one goes to a place like Dharamshala in India, this is the topic that is discussed the most. The person who suggested me to travel there is also a very spiritual person and someone who spends a great deal of her time protecting and taking care of animals.

Hundreds of Indians and non-Indians come to Dharamshala to experience or find something. However, my reason to travel there was not a spiritual one. It was not to find “the true me” or find peace. It was to get a break from my routine and get back in the world. In all honesty, after years of struggling, I finally have the means to take care of the people I care about as well as spend on myself.

As someone born in a lower middle-class family, spirituality has always been a luxury for me. I still think of it as a hobby for someone who has had & still has the luxury of spending time & money on themselves before anyone else. Random things keep happening in life, loved ones die. Some people then try to process what’s happening around them in creative ways and form opinions or belief systems. They then start to feel they know the meaning of life better than others. This feels very similar to the thought process of religious people. They too think they know the right or better way to live.

I’m just a web designer and not very great at it either. I have not travelled much, so what do I know about life? Not Much. But it’s not difficult for one to see that the kind of spiritual or religious beliefs & practices people follow are mostly those that allow them to live comfortably, hell even luxuriously. Siddhartha left his kingdom to be enlightened or something like that. The last hundreds of years people practicing Buddhism have built grand temples & monasteries all over the world. Most people just practise or follow those things which do not take them out of their comfort level.

So many people travel to India to find spirituality. Do they truly discover the meaning of life or set them on the right path? Maybe or maybe not. Maybe just understanding a different culture is enough for them to realize their problems are not as huge as they think, which eventually allows them to worry less.

We don’t have much control over most of the things in our life and no one knows anything for certain except that we are going to die. Even our own death is something we can’t control unless one decides to commit suicide and then has the balls to go through with it. If having a belief system whether it’s spiritual or religious helps you get through the day, then it’s great. But feeling spiritually superior over others is not very different from the ISIS guys thinking their way is the only way to life and rest are infidels.

At the end, after attending to the needs of people I love & care about and myself, if I have extra time, I’d prefer to spend it to help those around me in whatever capacity I can and not spend that time on being spiritual or religious. I may not know a lot of things, but I do know that spirituality or a religion won’t help cure cancer but humans can. If you get hit by a car, not your spirituality or GOD but PEOPLE will help you whether they share your beliefs or not.

So I’ll end this by saying that for me spirituality or religion is similar to a language. There are too many ways to live a life. As long as your belief system does not make you feel superior or motivate you to hurt others, then you are doing a great job.

Visit AhimsaMumbai.org if you wish to help street animals in any way you can. This is an organization managed by my friend who had suggested me to take a trip to Dharamshala.

What’s wrong with this advertisement?

Advertisement like these come and go without ever getting etched into our memory. There are very few advertisements remembered for their uniqueness and some just for the controversy they generate.

What is this advertisement about?

A kid remembers t0o late about his next day’s school project and so his parent’s work on his project which results in him getting an “A” grade.

Why I feel so strongly about this advertisement to write about it?

State of India

In a country like India with many religions and caste system, the backward classes never had any chance until India achieved independence in 1947. To tackle these issues, quota (reservations) were set up wherein seats were reserved for backward castes in colleges and government jobs. But like everything else, this too is often misused and holds no sense in today’s India.

Everything should be based purely on merit. I don’t believe in setting up any reservation but I do believe that even today these reservations do help some deserving students. And this oftens gets me into arguments with my friends and colleagues who hate reservations and feel it’s not fair.

A perfect system would be a system where reservation is based on a person’s merit and exceptions should be made only after considering a person’s talent and their financial situation. But there is no perfect system. And when I see people complaining about the reservations in colleges, this particular advertisement comes to my mind.

Is there actually a level playing field?

We don’t live in a fair world. While growing up, I have seen educated parents helping their kids with their school projects. Most parents now a days send their kids for coaching classes for every single school subject from as early as they are 4 years old. And I find it really irritating when a person who had the most resources complains about reservation system and merit.

I like learning new things but I have never been someone who worked hard to get good grades. I just learned enough to get a passing grade. I am writing this because even though I did not struggle, I have seen the struggle of people like my brother and few friends who worked hard and succeeded on their own despite facing so many challenges.

So when I find someone complaining about reservation system in India and about level playing field, my question to them would be — “who deserves an “A” grade? the student who worked hard and managed to make something on their own or the one whose parents did it for him?

Get Plugin Download Count from WordPress.org API

Since last 3 days, I have been looking out for a way to get the total download count of my plugin.

But there is almost no information about API for WordPress.org except on http://codex.wordpress.org/WordPress.org_API which is just links and some more information on http://dd32.id.au/projects/wordpressorg-plugin-information-api-docs/ which provides details on WordPress Plugin Information API. So after some tweaking and testing here is the final code to get the download count.

	$payload = array(
		'action' => 'plugin_information',
		'request' => serialize(
				'slug' => 'i-recommend-this',
				'fields' => array(
					'downloaded' => true,
					'description' => false

	$body = wp_remote_post( 'http://api.wordpress.org/plugins/info/1.0/', array( 'body' => $payload) );

	$body = unserialize($body['body']);
	echo '<p>Downloaded: ' . print_r( $body->downloaded, true ) . '</p>';


Now to avoid requesting information from WordPress.org on every page load, the required information can be saved in a transient and refreshed once a day.  This is in no way a final code. I have not placed any additional logic to display arrays, etc. So just use this as a starting point.

I will write a plugin to do this but until then if you know a better way, please share your ideas in comments.


Well it seems there is plugin_api using which most of the things I did above was unnecessary. If we use plugins_api we can get the total download count using few lines of code below:

/** If plugins_api isn't available, load the file that holds the function */
if ( ! function_exists( 'plugins_api' ) )
	require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );

/** Prepare our query */
$call_api = plugins_api( 'plugin_information',
		'slug' => 'i-recommend-this'

/** Display the results */
if ( is_wp_error( $call_api ) )
	echo '<pre>' . print_r( $call_api->get_error_message(), true ) . '</pre>';
	//echo '<pre>' . print_r( $call_api, true ) . '</pre>';
	echo '<p>' . print_r( $call_api->downloaded, true ) . '</p>';

Sublime Text 2 Shortcuts

After using Dreamweaver for years I have finally started using and loving Sublime Text for its simplicity and speed. In this post I plan to post every shortcut for my own reference and anyone else who needs it. If I miss any shortcuts, do share those in the comments.

(NOTE: I am only sharing Windows Shortcuts)

  • Move Lines Up or Down

    Shortcut for moving line up:  Ctrl + Shit + ↑
    Shortcut for moving line down: Ctrl + Shift + ↓

    The above are used to quickly move any line up or down without having to cut & paste.

  • Open Command Prompt

    Ctrl + Shift + P

  • Toogle Sidebar

    Ctrl + KB

  • Quick File Switching

    Ctrl + PPress above and start typing the name of the file. Based on the matches, the file will be opened instantly and if there are multiple options, you can press Up/Down arrow to select a file from the list. The search is done for the project or among the currently opened files.

  • Go to Symbol (Function / Classes)Ctrl + R
    (or Ctrl + P and then enter @)
    Similar to Ctrl + P, this is used to quickly go to a function or class. In HTML document, you can also go to a ID.

Flat Colors in UI & Web Design

As more and more designers tend to use flat ui colors in their web design projects and mobile apps, there seem to be far less resource on this topic. There are few good articles such as  http://designmodo.com/flat-design-colors/ & a great site with a list of the colors mostly used in flat ui.

I am currently trying to put a collection of websites using flat ui colors as a source for inspiration. Anyone interested in this project and want to help do let me know by sending me a tweet at @harishchouhan

Check out Flat UI Design Gallery

Dot Social Icons Font

Dot Social is a simple Icon based font consisting of Social Media Icons. This set contains 15 of the most popular social network site icons.

Icons of:  Twitter, Facebook, Google +, LinkedIn, Behance, Dribbble, Vimeo, YouTube, Pinterest, Deviantart, Email, Link, Forrst, RSS & Flickr

Free Social icons


Want this freebie? Enter your email and get it now!

Simply enter your email address and the download link will be sent right to your inbox.