Splitting strings in Java
Java’s split function packs a powerful punch. You can use it to split string on characters, symbols, substrings, a collection of symbols, or even regular expressions. public class SplitString {…
Simply Explaining Technology
Java’s split function packs a powerful punch. You can use it to split string on characters, symbols, substrings, a collection of symbols, or even regular expressions. public class SplitString {…
Problem JavaScript code not running on Brackets. Error Message Root Cause Brackets cannot find node binary file. Solution Open terminal and type the following commands and note the addressed returned:…
Problem Mac terminal shows the wrong hostname on prompt. Solution Find out if a hostname is already specified. To set your Hostname Exit out of your terminal and start a…
Batch renaming files in Linux requires writing or using a shell script. If you don’t have the time to write or find a shell script to batch rename your files,…
mysqldump command is used to backup up MySQL databases. mysqldump has the following format: where [backup.sql] is the file to which the backup should be written. Backing up specific tables By…
To count files in a directory To count all files in the directory and its subdirectories
This article shows you how to provision your vagrant. We will start with a very simple dumb box and add features incrementally. Prerequisites You need to have virtualbox and vagrant…
Nginx is a powerful web server which is rapidly taking market share from Apache. Here you will see how easy it is to install and use Nginx. Installation complete! Type…
Following are default locations of nginx webroot with standard installations: Ubuntu 12.04: /usr/share/nginx/www Ubuntu 14.04: /usr/share/nginx/html Mac OS (brew): /usr/local/var/www On Ubuntu 14.04, the webroot is defined in You should…
Nginx webroot is defined in the following file: The following code specifies the webroot in this file I change this webroot using a script. Following script will do this: -e…