How to add SSH key to github Account in ubuntu

Step 1 – Generate SSH key first ssh-keygen -t ed25519 -C “[email protected]” Just press enter  again press enter , now your key will generate  Step 2 – Copy the new SSH key   cat /home/kahnucharanswain/.ssh/id_ed25519.pub please use your path eg.  Step 3 – Copy the whole key  Step -4 Open github account -> settings ->SSH and …

How to add SSH key to github Account in ubuntu Read More »

Deploy React App on Shared Hosting(Cpanel)

In order to deploy the React app on Shared hosting we need to replace this local address with your domain name. Replacing localhost with domain name. Adding Domain in package.json In package.json file of your react app add a new property “homepage”:”http://yourdomainname.com” In order to deploy react App on Shared hosting we need to build the app. 2.Building the app using npm run …

Deploy React App on Shared Hosting(Cpanel) Read More »

Local Blockchain Configuration

 let Web3 = require(‘web3’); // console.log(‘first, ‘, Web3) //connection with local blockchanin server let Ganache = new Web3(new Web3.providers.HttpProvider(“HTTP://127.0.0.1:7545”)); // console.log(‘Ganache’, Ganache) //frtch balance from a block // let Balance = Ganache.eth.getBalance(“0x8E7ab97a7caBaFC57c2E528c3F55f670Dc4c8F09”).then(console.log); let Balance = Ganache.eth.getBalance(“0x8E7ab97a7caBaFC57c2E528c3F55f670Dc4c8F09”).then((result)=>{console.log(Ganache.utils.fromWei(result,‘ether’))}); console.log(‘balance’ , Balance); //output is 100 //trnasfer some ether one account to lanother let result = Ganache.eth.sendTransaction({from:“0x3D5169af2C5E753724d2590a02de07F882917808” , to …

Local Blockchain Configuration Read More »

Get Unique Object Data From two array of objects in Javascript

var olddata= [     { name:“string 1”, value:“this”, other: “that” }, { name:“string 2”, value:“this”, other: “that” } ]; var newdata = [ { name:“string 1”, value:“this”, other: “that” }, { name:“string 5”, value:“this”, other: “that” }, { name:“string 4”, value:“this”, other: “that” } ]; newdata.forEach((items, index)=>{ if( olddata.findIndex(item => item.name === items.name) == –1){ …

Get Unique Object Data From two array of objects in Javascript Read More »

Create Next App With Tailwind CSS and TypeScript

  1. Craete nextapp      npx create-next-app your-project-name 2. Craete nextapp with tailwind css and typescript     npx create-next-app your-project-name –typescript -e with-tailwindcss 3. Craete nextapp with tailwind css only     npx create-next-app your-project-name -e with-tailwindcss 4. Craete nextapp with typescript only     npx create-next-app your-project-name –typescript