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/

Best Websites to Learn Programming in Free

https://frontendmasters.com/ https://www.class-central.com http://www.udacity.com http://www.freecodeamp.com https://codecademy.com https://mva.microsoft.com/ https://github.com/open-source-society/computer-science https://www.khanacademy.org https://www.safaribooksonline.com/ ( One Month Free Trial ) http://edx.org http://coursera.org http://udemy.com https://www.skillshare.com/ https://thenewboston.com/videos.php https://angularfirebase.com/ http://w3schools.com https://www.airpair.com/ https://egghead.io http://tutsplus.com https://www.pluralsight.com/browse/software-development ( 10 Days Free Trial ) https://hackr.io https://academy.fossbytes.com/ https://www.codeschool.com http://www.learnvern.com/ http://www.lynda.com (10 Days Free Trial) https://www.datacamp.com https://alison.com/ http://programming-motherfucker.com/become.html https://itpro.tv/PAID https://www.cbtnuggets.com https://linuxacademy.comAWS (Amazon Web Services) https://www.youtube.com/watch?v=BDBvHOaaKHo&list=PLv2a_5pNAko0Mijc6mnv04xeOut443Wnk https://linuxacademy.com/ (AWS and other cloud […]

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 […]

How to lock screen orientation to portrait or landscape?

This article will show you how to lock screen orientation to one direction. Environment Details: – Phonegap Build – cli-5.2.0 – Device: iPhone S5 9.3.2 For locking orientation to portrait add following code into your config.xml: <gap:config-file platform=”ios” parent=”UISupportedInterfaceOrientations” overwrite=”true”> <array> <string>UIInterfaceOrientationPortraitOmg</string> </array> </gap:config-file> For Landscape: <gap:config-file platform=”ios” parent=”UISupportedInterfaceOrientations” overwrite=”true”> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </gap:config-file> Source: https://github.com/phonegap/build/issues/263

SSH: how to run a PHP script in background forever in Linux (CentOS) ?

If you want to run a PHP script in the background forever through SSH then follow these steps: If you are using a SSH terminal (PuTTY) then directly run following command: // Notice ‘&’; that operator will help to run this script forever. php server.php & // make sure that you are in the root directory […]

How to install Node.js on Linux CentOS from the EPEL Repository?

An alternative installation method uses the EPEL (Extra Packages for Enterprise Linux) repository that is available for CentOS and related distributions. To gain access to the EPEL repo, you must modify the repo-list of your installation. Fortunately, we can reconfigure access to this repository by installing a package available in our current repos called epel-release. […]

Android: How to generate key hash for Android Facebook?

In order to generate key hash you need to follow some easy steps. 1) Download Openssl from: here. 2) Make a openssl folder in C drive 3) Extract Zip files into this openssl folder created in C Drive. 4) Copy the File debug.keystore from .android folder in my case (C:\Users\SYSTEM.android) and paste into JDK bin […]