Posts

Ionic React

 Step 1.  Step 2.  Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

dot net core on linux

  wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update ; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-3.1 dotnet --version
Node Js testing https://dev.to/mhmdlotfy96/testing-nodejs-express-api-with-jest-and-supertest-1bk0 react js testing https://www.robinwieruch.de/react-testing-library/

HR Questions

  https://www.youtube.com/watch?v=ZOktx_c0vRY https://www.youtube.com/watch?v=gg0Vwfg_MBc Micro Front end= https://dzone.com/articles/micro-frontends-by-example-8 https://career.guru99.com/how-to-answer-50-most-common-interview-questions/ Q.1 What are your strength? Creativi ty Honesty Dedication Self-motivation Continuous Learning  Self-control Adaptive Analytical skills  Positive thinking I believe that my greatest strength is the ability to solve problems quickly and efficiently. I am very comfortable working with different groups of people. My strength is my analytical and planning skills, Q.1 What are your weakness? As far as my weakness is concerned, I get impatient sometimes in order to get everything done very quickly. To tackle the problem, I am trying to re-consider the to-do list and prioritize the tasks. some time i takes things personally and help the people and  they got benefit from me. 

Agile Methodology & Scrum

https://micro-frontends.org/ It extends the concepts of microservices to the frontend world. https://www.atlassian.com/agile/project-management Agile project management is an iterative approach to managing software development projects that focuses on continuous releases and incorporating customer feedback with every iteration.  It’s flexible, fast, and aims for continuous improvements in quality, using tools like  Scrum  and  eXtreme Programming . https://stackify.com/agile-methodology/ Agile Methodology is a people-focused, results-focused approach to software development that respects our rapidly changing world. It’s centered around adaptive planning, self-organization, and short delivery times.  It’s flexible, fast, and aims for continuous improvements in quality, using tools like  Scrum  and  eXtreme Programming . https://www.atlassian.com/agile Agile is an iterative approach to project management and software development that helps team...

Technical Java script programs

https://www.fullstacktutorials.com/interviews/javascript-coding-questions-answers-6.html  console.log(typeof undefined); undefined console.log(typeof null); Object console.log(typeof NULL); undefined console.log(typeof typeof 1); String  Find Factorial let n=5; let fact=1; for(let i=1;i<=n;i++) {   fact*=i;   } console.log("Factorial of",n,"is",fact); Sum of given number let n=5; let sum=1; for(let i=1;i<=n;i++) {   sum+=i;   } console.log("Sum of",n,"digit is",sum); Reverse of given number let n= 123; let rev=0; console.log("reverse of",n); while(n!=0) {      rev=rev*10+n%10;   n=parseInt(n/10);   } console.log("is",rev); Fibonacci Series of given number let n1=0;n2=1;n3=0; let num=10; console.log("Fibonacci Series is :\n",n1,"\n",n2); for(i=1;i<=num;i++) {      n3=n1+n2;   n1=n2;   n2=n3;   console.log(n3);    } Check given number is prime number or not ...

Docker

Image
 https://docs.docker.com/get-started/overview/#the-docker-platform create sample app node js with docker https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ add user in docker group https://avidosguy.wordpress.com/2019/10/10/solved-you-are-not-allowed-to-use-docker-you-must-be-in-the-docker-users-group/ Step 1. Install docker https://docs.docker.com/engine/install/ step 2. add user in Docker Group Step 3. ( Windows Subsystem for Linux ) wsl_update_x64.msi  run and install . Step 4 . Open Docker Desktop and strat

Interview Question Node /React

  1. Local storage vs Session storage vs cookie 2.  spread  operator- three dots (…) 3. Rest Parameter/Operator 4. object.create vs object.assign 5. react life cycle 6. hook vs class componenet 7. var vs let vs const 8. esca6 9. arrow function vs normal function 10. 

ReactJS Html To pdf & HTML table to pdf

 https://github.com/MrRio/jsPDF/issues/762  //-------- import   html2canvas   from   'html2canvas' ; import   jsPDF   from   "jspdf" ; downloadFile() { let pdfName = "licencia"; var doc = new jsPDF({ format: "a4" }); html2canvas(document.getElementById("pdf-doc"), { scale: "5" }).then(canvas => { console.log("Capturando"); this.imgFile = canvas; doc.addImage(this.imgFile, "JPEG", 5, 5, 200, 285); doc.save(pdfName + ".pdf"); }); } =============================================== //add footer      addFooters  =  doc   =>  {          const   pageCount  =  doc . internal . getNumberOfPages ();          doc . setTextColor ( "black" );          doc . setFont ( 'helvetica' ,  'italic' )          doc . s...

Ubantu Linux command

New Ubantu system setup 1. Install NPM in Ubuntu 20.04 LTS through repository Since the package is already available in standard Ubuntu repository. Therefore, first we need to update the repository to make the latest version of the package available. Hence, open a terminal and issue the following – sudo apt update Next, to install NPM – sudo apt install npm To verify the version of NPM we have installed – npm -v It would return – 6.14.4   Reference : https://techpiezo.com/nodejs/install-npm-in-ubuntu-20-04-lts/ 2. Install  Node Js sudo apt install nodejs 3. Install  Visual Studio code https://code.visualstudio.com/Download .deb 64 bit download and install   Access Ubuntu server using Putty: sudo su   ->enter vim filenamd.extension :w -save :qa exit i for insert mv old file  new file rm -remove file rmdir -remove directory rm -r mydir -non empty directory cp -r source /destination path assign permission chown -R www-data folder Data...

ANTD design

 Antd deign- Date initialization issue as the time of edit mode. we have set  obj . date1 = moment ( obj . Date1 ,  'YYYY-MM-DD' ); 

Post Gre SQL dataabase

  # Setup the repository # /* # Install the public key for the repository (if not done previously): sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add # Create the repository configuration file: sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update' # # Install pgAdmin # # Install for both desktop and web modes: sudo apt install pgadmin4 # Install for desktop mode only: sudo apt install pgadmin4-desktop # Install for web mode only:  sudo apt install pgadmin4-web  # Configure the webserver, if you installed pgadmin4-web: sudo /usr/pgadmin4/bin/setup-web.sh */ Hierarchy tree - get all child of same table using parentid WITH RECURSIVE parent("childId","childCode","childParentId" ) AS (    Select "childId","childCode","childParentId"  FROM table Where "child...