Quantcast
Channel: Ayyaz Zafar | Freelance Web Developer
Browsing index pages (28 articles)
↧

Angular.js How to remove hash from url?

Configuration:$routeProvider .when('/path', { templateUrl: 'path.html', }); $locationProvider .html5Mode(true);You should set the base in HTML-file<html> <head> <base href="/">...

View Article


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;...

View Article


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...

View Article

SSH: How to stop a script running in the background?

Open/Login SSH into the server Type in ps x See the list of processes currently on your server Get the PID(process id) from that list and type kill xxxxx That should do it. Source: StackOverflow...

View Article

PHP: How to run / execute a script in the background forever through SSH ?

You can execute a php script in the background forever by using SSH through PHP but for that you have to make sure first that SSH2 extension is available. PHP DOCS:...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article

CentOS: how to execute a php file with different php version than the php...

To execute a php file with different php version than the version installed on the main php of your Server follow this: You should know that where is that php version located so that you can add the...

View Article

How to install Plesk on Linux CentOS?

Download the autoinstaller from our website:wget http://autoinstall.plesk.com/plesk-installerAdd execute permissions to the autoinstaller:chmod +x plesk-installerLaunch the...

View Article


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...

View Article


How to download full source of old commit in BitBucket?

It’s very easy to download complete source of your project from an old commit by just following these steps: Click on Commits from the dashboard of your project in BitBucket. Get the commit id of the...

View Article

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....

View Article

Cordova: How to download file and get dowload progress?

var assetURL = 'http://www.anywebsite.com/test.mp3'; var store = cordova.file.externalRootDirectory; // output in android: file:///storage/emulated/0/ // or // var store =...

View Article

Cordova: How to check if a file exists or not?

document.addEventListener("deviceready", init, false); //The directory to store data var store; //File name of our important data file we didn't ship with the app var fileName = "testfile.txt";...

View Article


Cordova: How to get list of all Files/Directories in a directory?

function success(entries) { var i; for (i=0; i<entries.length; i++) { console.log('En - ', entries[i]); } } function fail(error) { console.log("Failed to list directory contents: ", error); } //...

View Article

Cordova: How to create directory?

/* ############ # Method 1 # ############ */ // output in android: file:///storage/emulated/0/ var base_url = cordova.file.externalRootDirectory; // or // var base_url =...

View Article


How to get Base64Image from input type file?

<input type="file" id="user_img_input" onchange="upload_user_img(this);" /> <img src="" id="img" /> <script> function setBase64Image(object, img_id) { if ( object.files &&...

View Article

How to access Query String Values using Javascript?

Following function is very useful to easily access url paramters ( query string values).function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g,...

View Article


Definition of the term “resource” in programming

Any object that you want users to be able to access via URI and perform CRUD (or some subset thereof) operations on can be thought of as a resource. Source Link The post Definition of the term...

View Article

Exclude one folder in htaccess protected directory

Just create an .htaccess file in the subdirectory with the content:Satisfy any  The post Exclude one folder in htaccess protected directory appeared first on Ayyaz Zafar | Freelance Web Developer.

View Article

jQuery: How to open specific links in new tab having specific url?

Just put following code in your javascript file and It will pick all links globally from your website and will open them in a new tab. Don’t forget to replace url with your own website’s...

View Article
Browsing index pages (28 articles)


Latest Images