Posts

HTMLCoding day1

Hello everyone! Today we started learning HTML , the language used to build web pages. Here is everything from today's class in one place. 📽️ Class slides Click here to open today's slides 📝 Quiz Take the quiz after you have looked at the slides. You will see your score and the correct answers at the end. You can try it more than once. Click here to start the quiz 📌 What we learned today A website is made of files. The browser (Chrome) asks the server for a page and draws it. HTML means HyperText Markup Language. It is the structure (the "walls") of a web page. A tag is written inside angle brackets, like <p> . Most tags come in pairs: an opening tag <p> and a closing tag </p> . <head> holds information about the page. <body> holds what you can see. An HTML file must end in .html , for example index.html . 💻 Our first page Type this in Notepad, save it as index.html , and open it in Chrome: ...

Some imp concept

TCP vs UDP Protocol TCP: 1)relaiable:Ensure data is recieved correctly and in order 2)Conncection-oriented:Connection is established before communication 3)Error checking and acknowledgement:No data loss 4)slower 5)used in web services(http/https),email,file transer UDP: 1)faster 2)Connectionless 3)No error checking 4)used in gamming,live streaming,video calls,DNS Main Difference in One Line: TCP = Reliable, but slower. (Used when accuracy is important) UDP = Fast, but unreliable. (Used when speed matters more than accuracy What is DNS and how DNS works? In short,DNS is a phonebook for the internet.It maps website name to IP adress of web server. Working: 1)Entering website name 2)Browser check Local cache 3)OS system cache check 4)DNS resolver (also called DNS lookup):From the ISP of he internet.IF not fouund,it perform step by step lookup to four dns resolver 5)Name server:Direct it to correct TLD server.Total 13 nameserver worldwide managed by different organization 6)TLD server:...

PostgreSQL

 sudo -i -u postgres

dokcer

  sudo apt-get remove docker docker-engine docker.io sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ xenial \ stable" sudo apt-get update sudo apt-get install docker-ce sudo docker run hello-world https://stackoverflow.com/questions/41133455/docker-repository-does-not-have-a-release-file-on-running-apt-get-update-on-ubun : Enable BuildKit for a Single Build Command You can enable BuildKit for a single build by setting the DOCKER_BUILDKIT environment variable: bash DOCKER_BUILDKIT=1 docker build -t code1590/docker-quickstart:latest .

Redis

redis data type

typescript

 setup typescript

Virtual Box

 kali org with virtualbox to see bit :  uname -m  If the output is x86_64 , your system is 64-bit. If it’s i686 or i386 , your system is 32-bit. ASRock:  F2 or DEL ASUS:  F2 for all PCs, F2 or DEL for Motherboards Acer:  F2 or DEL Dell:  F2 or F12 ECS:  DEL Gigabyte / Aorus:  F2 or DEL HP:  F10 Lenovo (Consumer Laptops):  F2 or Fn + F2 Lenovo (Desktops):  F1 Lenovo (ThinkPads):  Enter then F1. MSI:  DEL for motherboards and PCs Microsoft Surface Tablets:  Press and hold volume up button. Origin PC:  F2 Samsung:  F2 Toshiba:  F2 Zotac:  DEL