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

Brackets /bin/sh: node: command not found

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

Mac terminal shows wrong host name

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…

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…