Python :F-Strings

In Python, to format output statements you can do in several ways as below. 1. Regular print() using parameter data types 2. Using .format() 3. Using F-string I will write small examples using all 3 types. 1. Regular print() using parameter data types In the below example I will...

How to fix checkPermissions Missing write access to /usr/local/lib/node_modules error ?

If you are working in a Node JS environment and without root access or sudo access, you might get an error as checkPermissions Missing write access to /usr/local/lib/node_modules like below npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR!...

How to install nodejs in CentOS ?

If you choose default yum install of nodejs you will get 6.x release which is very old. To install latest version of nodejs in centos you can execute below command Command 1 curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - You will get output as below [vagrant@localhost...

How to launch Sublime text editor from terminal in Macbook ?

As you all know, Sublime is one of the famous and lite weight text editor and can be used for application development for almost every programming language available today. For VS Code to launch editor from terminal, you can use code from terminal. But for Sublime there is no direct method. To achieve this in sublime we can achieve it in 2 methods I believe. Lets see one by one Using Soft Link After...