How to Measure 4L Water with 3L and 5L Jugs

In this post, let’s discuss a interesting puzzle how to measure 4l water with 3l and 4l jugs.

Problem statement : You have two jugs of capacity 3L and 5L. There is no measurement lines on jug. You need to measure 4L water using 3L and 5L jug. You can use extra water as much as you need. This is one of the favourite puzzle question asked by an interviewer to check your thinking ability.

How to Increase File Size Import Limit in phpMyAdmin

How to increase file size import limit in phpMyAdmin. This is the common question asked by most of the people that, I get an error message when I am importing a file more than 2MB using phpMyAdmin.

I assume you have LAMP and phpMyAdmin installed on your system and your importing MySql database.

In your default setting, you’ll get following error message when you try to upload  a file more than 2MB.

Error : No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration…

How to Remove WWW From URL through htaccess

How to remove www from url through htaccess. Suppose, if a user type http://www.example.com (example is the name of your domain) in their browser, you can automatically redirect them to http://example.com.

For website SEO (Search Engine Optimization) purpose, it is necessary that your blog or website either respond to http://www.example.com or http://example.com, but not both. Otherwise, search engines see duplicate content on the www and non-www domains, and may downgrade the site ranking.

In my previous posts, I have explained htaccess file and their importance. In this post, We will learn how to remove www from url through htaccess.