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…