Month: November 2021

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 {…

Linux batch renaming files

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,…

Provisioning vagrant

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…

Installing nginx on Ubuntu

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…

nginx webroot

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…