PHP: How to fix Image rotation issue in img tag because of EXIF

Photos captured by some smartphones especially iPhones are automatically rotated when we use it in <img> tag which is mostly not acceptable as we don’t need such unwanted rotation. This happens because of EXIF Data stored in that image. But we can easily fix it using PHP by following these steps: function autorotate($src) { // […]

PHP: Array Version of htmlspecialchars() function

htmlspecialchars() function should be used for security reason to echo values from any variable. But htmlspecialchars() doe’s not work for arrays so following function would help to escape html characters from array values:

Understanding prototypes in javascript

http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/ https://www.pluralsight.com/blog/software-development/understanding-javascript-prototypes https://javascriptweblog.wordpress.com/2010/06/07/understanding-javascript-prototypes/

Angular.js How to remove hash from url?

Configuration: $locationProvider .html5Mode(true); .htaccess file in root directory: RewriteEngine On # If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^ – [L] # If the requested resource doesn’t exist, use index.html RewriteRule ^ /index.html In this mode you can use links […]

How to Change Bootstrap Carousel Slide Speed

The speed cannot be controlled by the API. Though you can modify CSS that is in charge of that. find in the bootstrap.css file: .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } and change 0.6s to the time […]