Java file I/O

Java provides a number of classes and methods that allow to read and write files. In Java all files are byte-oriented. Two of the most often-used stream classes are FileInputStream…

Setting up src dynamically

Suppose you need to call some JavaScript code on your page such as: However, the somecode.js is different based on other parameters on your page. So you would need to…

Print Screen on Mac OS

The Mac OS keyboard does not have a print screen button. So this is how to capture your screen on Mac: Hold down Apple key ? + Shift + 3…

Some quick APT commands

Advanced Packaging Tool (APT) is used by Debian system to manage package installations. Following are some quick commands: Some common commands that can be used with APT: Installing packages Removing…

Getting Started with HomeBrew

Homebrew is a package manager for Mac OS. Installation Download and install Xcode from Mac store if you don’t already have it installed In a terminal, type the following codexcode-select…

What is JavaScript Full Stack

Full-stack is a complete JavaScript solution which involves JavaScript on both client-side and server-side. There are many full-stack solutions but MEAN stack is the most widely used solution. There are…