How to fix issue if autocomplete or intellisense does not work in vscode for express.js

If the below line is used in the javascript code:const express = require(express); then autocomplete / intellisense will not work. It will not display the relevant methods as shown in the image below. This is the correct code to use:const express = require("express"); The quotation marks make the difference and the following image shows the … Continue reading How to fix issue if autocomplete or intellisense does not work in vscode for express.js

How to install node.js on Linux Mint or Ubuntu Linux

To install node.js for LinuxMint Vera (21.1) or Ubuntu, do followingVisit https://github.com/nodesource/distributions#deb Follow the instructions to install the .deb file on your system at https://github.com/nodesource/distributions#debinstall. Open a linux terminal window and enter the following: $ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\sudo apt-get install -y nodejs <enter> It will now install node.js on … Continue reading How to install node.js on Linux Mint or Ubuntu Linux

Moving from Atom to Visual Studio Code and it’s extensions on Linux

Application developers would rely on Atom code editor to create code for a while now. However, Atom code editor is now sunset per this https://github.blog/2022-06-08-sunsetting-atom/. The option left now is to migrate to another code editor. And one of the best out there is Visual Studio Code (vscode). Since most of the work I do … Continue reading Moving from Atom to Visual Studio Code and it’s extensions on Linux

How to query the GTK3 theme currently in use on Linux, enable dark mode and display missing icons in Gnucash

To view the current GTK3 theme in use on the XFCE desktop environment that is pre-installed in distributions like Linux Mint or Xubuntu, open a terminal window and enter the following comment: $ gtk-query-settings theme <enter> Upon enter, it displays the following: gtk-theme-name: "Mint-Y-Dark-Orange" gtk-icon-theme-name: "Mint-Y-Dark-Orange" ! gtk-fallback-icon-theme: NULL gtk-key-theme-name: NULL gtk-cursor-theme-name: "Bibata-Modern-Ice" gtk-cursor-theme-size: 24 … Continue reading How to query the GTK3 theme currently in use on Linux, enable dark mode and display missing icons in Gnucash

How to install python3 on Linux

Install python3 $ sudo apt-get install python3-pip python3-venv python3 <enter> Make an isolated environment$ mkdir environment <enter>$ cd environment <enter>$ python3 -m venv my_env <enter> where my_env is the isolated environment$ ls my_env <enter> to display the created folders Activate the isolated environment$ source ~/environment/my_env/bin/activate <enter> This will be the resulting prompt(my_env) patrick@rm01:~/environments$ Create a … Continue reading How to install python3 on Linux

How to remove duplicate files in Linux using rdfind

Duplicate files can be removed using the rdfind command in Linux. To do so open a terminal window and first install rdfind as below:$ sudo apt-get install rdfind <enter> Then, check for duplicate files on a medium:$ rdfind true . <enter> . is the current directory where I ran rdfind Make sure you have a … Continue reading How to remove duplicate files in Linux using rdfind

Most useful Android Apps list

App NameDescription@Voice Aloud ReaderPodcasts are great as they save us time while walking, exercising, or doing something else. This app is a great tool to read aloud PDF documents. Gives a podcast type experience and very useful. Found it to be most non-intrusive among the others.50 PushupsNo more on play store. Great motivator for doing … Continue reading Most useful Android Apps list

How to use deja-dup for data backups on Linux

Deja-dup is a Gnome application. It can be used for data backups of the computer to a USB drive, another hard disk, folder or even to the cloud. Data backups are encrypted using the Gnu Privacy Guard (GPG) shared key as they are done. The first backup takes time, depending on the data to be … Continue reading How to use deja-dup for data backups on Linux

Sort text file in Linux from a particular position

I have a text file, named all.txt, with the following content:f http://www.google.com/f http://www.abc.com/c http://www.google.com/c http://www.abc.com/ I want to sort it on the URL ignoring the first 2 characters i.e f or c . To do this, Linux provides a sort command. Using the keydef option, the file can be sorted. To do so, open a … Continue reading Sort text file in Linux from a particular position