Posts

See SSH public key from terminal

cat ~/.ssh/id_rsa.pub

Eclipse keyboard shortcut

Following are the list of shortcuts provided by Eclipse: 1) Public static void main(String[] args)       :- type main and press Ctrl + space 2) System.out.println()       :- type sysout and press ctrl + space 3) Run Java Program F11 ( Fn +F11) or (Ctrl +F11)

Design a form containing text box for username, password field for password, radio button for gender and checkbox for hobbies. Write a program for client-side validation of the form for the username and password field as required fields, length of username should be 5, the radio button and checkbox should be checked.

<! DOCTYPE html > < html > < head > < meta charset = " UTF-8 " > < meta name = " viewport " content = " width=device-width, initial-scale=1.0 " > < title > Form Validation || WebTech </ title > < script > function validateForm () { var username = document. getElementById ( " username " ).value; var password = document. getElementById ( " password " ).value; var gender = document. getElementsByName ( " gender " ); var hobbies = document. getElementsByName ( " hobbies " ); if (username == "" ) { alert ( ' username is required ' ); return false ; } else if (username. length !== 5 ) { alert ( ' username must be 5 characters long ' ); ...

sequelize.js deep save/update model instance

You need to call update on the instance of the db model: for eg:  const address= { "addressInfo" : {          "permanent" : {              "district" :  "Morang" ,              "city" :  "Biratnagar" ,              "wardNo" :  "03" ,              "toleName" :  "Gaurigunj"         },          "current" : {              "district" :  "Kathmandu" ,              "city" :  "Lazimpat" ,         ...

SOAP Request using node

Link: stack overflow thread.

How can I fix apt error “W: Target Packages … is configured multiple times”?

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/vscode.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.li...

Helpful resources for Compiler Design and Construction

1) Lexical Analyzer Generator