authentication

📌 Express Authentication Notes (Clear + Example Syntax + Expected Output)

1. Basic Authentication (Stateless)

What it is:
A very simple authentication where a username and password are sent in the Authorization header (Base64 encoded). Not safe unless over HTTPS.

📌 Example (express‑basic‑auth)

const express = require("express"); const basicAuth = require("express-basic-auth"); const app = express(); app.use( basicAuth({ users: { admin: "pass123" }, challenge: true, unauthorizedResponse:
...

See on Student Notes »

дискурс шп

ART

1. What is art?

2. The role of art in society and its impact on culture, expression, and communication ("Art is long, life is short").

3. How does art reflect different historical periods, social issues, and individual perspectives?

4. Styles of painting. How do different art movements challenge traditional notions of beauty, meaning, and representation?

5. "A thing of beauty is a joy forever". My favourite painting. Comment on the technical side of your favourite painting: its genre, subject,

...

See on Student Notes »

Management concept

14 Principle of management.

Page 1: Introduction (परिचय)

प्रबंधन (Management) के क्षेत्र में '14 Principles of Management' का बहुत बड़ा महत्व है। इन सिद्धांतों का प्रतिपादन हेनरी फेयोल (Henri Fayol) ने किया था। फेयोल एक फ्रांसीसी इंजीनियर और सफल प्रबंधक थे।...

See on Student Notes »

POC-I 2MARK S

Isomerism.The organic compounds having same molecular formula but having different structural formula or having different physical and chemical properties are called Isomers and the phenomenon is known as Isomerism. Ex.1.Chain Isomerism 2.Position Isomerism

E1 REACTIONS. It is a unimolecular elimination.It follows 1st order kinetics. It is a two step process. It requires weak base. Formation of carbocation takes place.

E2 REACTIONS. It is a bimolecular elimination. If follows 2nd order kinetics.

...

See on Student Notes »

wdwdw

The Adventure by Jayant Narlikar is a science-fiction story that combines history, philosophy, and the idea of time travel. The story revolves around Professor Gangadhar Gaitonde, a well-known historian who is deeply interested in Indian history, especially the Third Battle of Panipat. While travelling by train to Bombay, Gaitonde is thinking about how history might have changed if the Marathas had won the battle against Ahmed Shah Abdali instead of losing it as recorded in real history. Suddenly,...

See on Student Notes »

maths 1

Q1.  Cayley-Hamilton Theorem - Verify and Find Inverse Problem: Verify Cayley-Hamilton theorem for A and find A-1:
A = [[2,1,1], [0,1,0], [1,1,2]] 

Step 1: Find Characteristic Equation |A - λI| = 0

A - λI = [[2-λ, 1, 1], [0, 1-λ, 0], [1, 1, 2-λ]]

Expand along 2nd row (has two zeros - easier!):

|A - λI| = (1-λ) × |[2-λ, 1], [1, 2-λ]|
= (1-λ) × [(2-λ)(2-λ) - 1×1]
= (1-λ) × [(2-λ)2 - 1]
= (1-λ) × [4 - 4λ + λ2 - 1]
= (1-λ)(λ2 - 4λ + 3)
= (1-λ)(λ-1)(λ-3)
= -(λ-1)2(λ-
...

See on Student Notes »

hgfjhg

ISHOD 1 – Upravljanje poslovnim učinkom

1. Područja / metode / tehnike poslovne inteligencije (5) Izvještavanje (Reporting) – služi za prikaz povijesnih podataka kroz standardne i ad-hoc izvještaje te omogućuje praćenje osnovnih poslovnih pokazatelja. OLAP analiza – omogućuje višedimenzionalnu analizu podataka i dublje razumijevanje poslovnih rezultata kroz drill-down i roll-up operacije. Dashboardi i vizualizacija – pružaju vizualni prikaz ključnih pokazatelja performansi (KPI)

...

See on Wikiteka »

POC-I

1.ISOMERISM:-The organic compounds having the same molecular formula but having different structural formula or we can say having different physical and chemical properties are called Isomers and the phenomenon is known as Isomerism. Classification of Isomerism:-Isomerism are classified into two categories:-1.Structural 2.Isomerism Stereoisomerism (ISOMERISM)-(Structural Isomerism)-Chain Isomerism, Position Isomerism, Functional Isomerism, Ring- Chain Isomerism,Metamerism, Tautomerism.(Stereoisomerism)

...

See on Student Notes »

POC-Ii

BENZENE is an organic, colourless chemical compound.It is a highly flammable liquid with a sweet smell e high melting point.The chemical formula of benzene is CGHE, so it contains 6 carbon 6 hydrogens, also known as Hydrocarbon.It has a boiling point of 80°c e is lighter than water.Natural sources of benzene includes volcanoes forest fires.It is also a natural part of crude oils.Benzene and all those compounds which resembles benzene in their chemical behaviour are known as Aromatic Compounds.Benzene

...

See on Student Notes »