Why are people attracted to the courses in Coursera and edX?

Bandwagon effect: Big university names like Harvard, Stanford, Yale etc. are enough to attract the crowd.

Learning from the best: You get to learn from some of the best in the industry. Example: “A Beginner’s Guide To Irrational Behavior – By Dan Ariely” is one of Coursera’s highest-enrolled courses, with the number of registered students exceeding 140,000. Week One: “A Beginner’s Guide To Irrational Behavior”

Dan Ariely is an author of best seller books like Predictably Irrational: The Hidden Forces That Shape Our Decisions, The Upside of Irrationality: The Unexpected Benefits of Defying Logic at Work and at Home and The Honest Truth About Dishonesty: How We Lie to Everyone – Especially Ourselves.

Course Contents: Most of the courses are designed for absolute beginners and the length of video lectures are maintained at an optimum level to keep you engaging. There are multiple interactive quizzes embedded in the video which are related to the topic you are learning and are fun to answer.

Recognition: Certification from renowned universities can be a big plus for job seekers.


Community: MOOC’s normally have a huge community of learners from different parts of the world which enhances your learning experience.


*** This was originally posted by me on Quora, here is the link to the original answer: https://www.quora.com/Why-are-people-attracted-to-the-courses-in-Coursera-and-edX/answer/Prashant-Gonga ***

Some of the most insane laws in the world

Here is my top ten list of some of the most insane laws in the world



In Singapore, selling non-medical chewing gum or chewing normal gum is a fine of $1000. A second offence costs $2000 and being forced to clean a public area of the city for a day. Chewing gum ban in Singapore

Philippines and Vatican City


Divorce is illegal in Philippines and in Vatican City The fight to make divorce legal in the Philippines – CNN.com Divorce law by country



In Thailand, stepping on money is illegal. Thailand: Banks & Money Laws in Thailand: The ones you as a traveller need to know about

Saudi Arabia


In Saudi Arabia, there is no minimum age of marriage for girls No minimum age for marriage of girls – Grand Mufti Child marriage



In Finland Traffic Fines are Calculated as a Percentage of the Offenders Income

In January 2002, Anssi Vanjoki, 44, a director of the Finnish telecommunications giant, Nokia, received what is believed to be the most expensive speeding ticket ever— $12.5 million — for driving his Harley at 75 km/h (47 mph) in a 50km/h (31 mph) zone. Mr Vanjoki appealed the fine because his reported income dropped significantly about five days after the incident; because of the new data, the fine was dropped to $103,600, still the most expensive speeding fine in history. Finland, Home of the $103,000 Speeding Ticket A millionaire in Finland got a $60,000 speeding ticket



Drivers in Denmark are supposed to drive vehicles with their headlights on. You’d think this law would apply to night driving but it doesn’t. It is considered essential during the day as well or they may face a fine of up to $100. Studies have shown that this has helped a lot to avoid road accidents in Denmark. Driving in Denmark Driving in Denmark |



Kissing in public can land you in jail in Dubai Jailed Dubai kissing pair lose appeal over conviction Kissing in Dubai



It is illegal to make funny faces at a dog in Oklahoma Crazy and outdated Oklahoma laws Can you make ugly faces at dogs in Oklahoma Make Ugly Faces at Dogs, Go Straight to Jail!



In India, if you get caught for hooking up with a married woman, you can get prosecuted for adultery, but the woman can’t. Section 497 Adultery



In India, you can be imprisoned for 5 years for possession of beef but only 2 years for sexual harassment Eve teasing Eve Teasing under Criminal Law » Aam Janata Face 5-year jail, stiff fine if you eat or possess beef – The Times of India

Image Source: Internet


*** This was originally posted by me on Quora, here is the link to the original answer: https://www.quora.com/What-are-the-most-insane-laws-in-the-world/answer/Prashant-Gonga ***

Outrageous comments made by Indian politicians

Outrageous comments made by Indian politicians

There are too many outrageous comments made by Indian politicians, here are some recent comments, which made my blood boil.

“Poverty is just a state of mind” Rahul Gandhi

“Women who are participating in candle-light vigils and those who are protesting have no connection with ground reality. These pretty ladies coming out to protest are ‘highly dented and painted’,” Abhijit Mukherjee

“If there is no water in the dam…Should we urinate into it?,” Ajit Pawar

“To my understanding, consumption of fast food contributes to such incidents. Chowmein leads to hormonal imbalance evoking an urge to indulge in such acts,”Jitender Chhatar

“Rapes happening because men and women are interacting more freely”  West Bengal Chief Minister Mamata Banerjee

“Even today in Mumbai city, I can have a full meal at Rs.12. No no, not vada paav. So much of rice, daal sambhar and with that some vegetables are also mixed.” Congress leader Raj Babbar

“In Rs. 600, he would get dal, rice and wheat…A family of five can easily complete their needs,” Sheila Dikshit


*** This was originally posted by me on Quora, here is the link to the original answer: https://www.quora.com/What-are-some-of-the-most-outrageous-things-that-have-been-said-by-an-Indian-politician/answer/Prashant-Gonga ***


Why does cracking your knuckles feel good?

Ever wondered why cracking your knuckles feels good?


Cracking your knuckles feels good because it stretches the joint and stimulates the nerve endings found there. Synovial fluid present in our joints acts as a lubricant which contains the gases oxygen, nitrogen, and carbon dioxide. When you crack knuckles, you stretch the joint capsule which releases the gas and the gas forms a bubble and it collapses and pops.

Here is a short video for better explanation

***This was originally posted by me on Quora, here is the link to the original answer: https://www.quora.com/Why-does-cracking-your-knuckles-feel-good/answer/Prashant-Gonga ***

Simple Location Tracker Script

Simple location tracker script using PHP and API

We are going to track user information such as IP Address, City, State, Country, Capital City, Timezone and much more information using our simple Location tracker script. I will try to keep things as simple as possible for beginners to understand. By the end of the post you will realize how easy it is to make this location tracker script work.

In case if you need more explanation please do leave your questions in the comment section and I will try to answer you at the earliest. This post is for beginners with a little bit understanding of programming. If you are already an expert programmer then, you may skip this post or leave your valuable feedback, which will be highly appreciated.

Now as you are ready, let’s get our hands dirty!

Step 1 : Building our index.php page 

This is how it should look like on your browser.

location tracker script - index

 Lets see what is actually happening in the above code…  

At the very beginning we have included functions.php page where we have written the code for the API, we will get to it shortly.

Next we are using a built in PHP function $_SERVER[‘REMOTE_ADDR’]; which is used to detect the IP address of the user system accessing this page.

To keep this simple I have added only one input box where the user will fill his name, I have also added a simple Javascript validation to check if the field is empty.

Next we are sending the IP address of the user that we received from the above step to the next page using the below code.

STEP 2: Building our functions.php page

functions.php page is exactly where the magic is happening. It’s a very simple API code that we are going to use in our location tracker script. All we are doing here is adding the user’s IP address that we had captured from the index.php page to the link presented below.


This is how it will look like once the IP address is added


Try inserting your own IP address at the end of the URL by replacing the dummy IP. You can check your IP address here.

Once you hit the above URL in your browser along with your IP address, you will see some unformatted text which is nothing but JSON (JavaScript Object Notation) format, which we will be inserting into our PHP variable and nicely format it in the next section.

 STEP 3 : Building our action.php page

To fetch the JSON values from our API we need to include functions.php in our code. All we need to do is store all the values we need in an array and then echo (print) it in our HTML code. This is how your output would look like.

location tracker script - output

That’s it! 

P.S : This code will not work correctly in case if the user is using a Proxy Server to access your page.

Hope you liked this post, Cheers!