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…
Setting up multiple displays on Mac OS
It is now common for users to work with multiple monitors. Laptop users, especially, prefer to work on their laptop screen and an external monitor when at they at work…
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…
Should I choose Apache with or without SSL?
When downloading Apache from apache.org for Microsoft Windows Operating System, you are given two options: Win32 Binary without crypto (no mod_ssl) (MSI Installer) Win32 Binary including OpenSSL 0.x (MSI Installer)…
Vagrant error occurred while downloading the remote file
Problem An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. Cause You are running vagrant init…
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…