Posts

AI

1- What is Prolog? Prolog (Programming in Logic) is a high-level programming language primarily used for artificial intelligence (AI) and computational linguistics . Unlike procedural programming languages such as C or Python, Prolog is based on logic programming , which is a form of declarative programming. In Prolog, you define facts , rules , and queries to represent knowledge, and the system derives solutions based on logical reasoning. Prolog is unique because it focuses on what is to be done, not how it is to be done. You express knowledge using logical statements, and the Prolog interpreter uses these to infer answers through its built-in reasoning engine (using backtracking and unification ). What is Artificial Intelligence (AI)? Artificial Intelligence (AI) refers to the simulation of human intelligence processes by machines, especially computer systems. It involves creating algorithms and models that enable computers to perform tasks typically requiring human-like i...

CNS

 1- from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad from Crypto.Random import get_random_bytes # Key and data key = get_random_bytes( 16 ) # 16-byte key for AES-128 data = b "Hello AES!" # Data to encrypt # Encrypt cipher = AES.new(key, AES.MODE_CBC) ct = cipher.encrypt(pad(data, 16 )) # Decrypt cipher2 = AES.new(key, AES.MODE_CBC, cipher.iv) pt = unpad(cipher2.decrypt(ct), 16 ) print ( "Original:" , data) print ( "Encrypted:" , ct) print ( "Decrypted:" , pt) 2- from Crypto.Cipher import DES from Crypto.Util.Padding import pad, unpad from Crypto.Random import get_random_bytes # Step 1: Key (8 bytes for DES) key = get_random_bytes( 8 ) # Step 2: Data to encrypt (must be padded to block size) data = b "SecretMsg" # Step 3: Encrypt cipher = DES.new(key, DES.MODE_CBC) ct = cipher.encrypt(pad(data, DES.block_size)) # Step 4: Decrypt cipher2 = DES.new(key, DES.MODE_CBC, cipher.iv) pt = ...

Automatic Exhaust System for Gas Leakage Detection and Mitigation

Image
  Automatic Exhaust System for Gas Leakage Detection and Mitigation

Cd prac

https://drive.google.com/file/d/1SR7sqoEjbNJTQ4pfUWxzMxK5kCMasSIK/view?usp=drivesdk Prac 2 text https://docs.google.com/document/d/1SRtOOCagixyGHeNuPMlVhnnxt6bTsDPB/edit?usp=drivesdk&ouid=113308361021918522270&rtpof=true&sd=true Prac 3 code https://drive.google.com/file/d/1SOa8eXp482tFrCuDZQghMiOBVwpnEmob/view?usp=drivesdk Prac 3 text  https://docs.google.com/document/d/1SKSyspYvSNx2-zfU85AbyYM4Nv-tSybc/edit?usp=drivesdk&ouid=113308361021918522270&rtpof=true&sd=true Prac 4 text https://docs.google.com/document/d/1v8e_8gFYPe1J7b22Or72b6nmOwTEG7hAuE7R1ut6gnk/edit?usp=drivesdk Prax 4 file https://docs.google.com/document/d/1LAneIhqIjNP2TDSsjINwH5PzaAnkzxII6t-MUFQ0ogA/edit?usp=drivesdk Prac 5 file  https://docs.google.com/document/d/1qHhzIEzrJ0FGrwPZKDWsmaIQlxi-bn2MtdFOsREpiMI/edit?usp=drivesdk Prac 6a text https://docs.google.com/document/d/1ef_xz5vGG0P-Zi1uqTFm4Rw2Ig6xITyAvV4TFq_jrcg/edit?usp=drivesdk Prac 6afile https://docs.google.com/document/d/1TbfqWm...

Peoples At Work | WHAT SHOULD PILOT DO BEFORE TAKE OFF? | IN WHAT WAY FARMER PREPARE SOIL FOR CROPS? | WHICH TYPE OF FISHES ARE CAUGHT BY FISHERMAN DEEP INTO THE SEA? | By tech sparking

Image
Peoples At Their Works ------------------------------------------------------------------- WHAT SHOULD PILOT DO BEFORE TAKE OFF? Pilot in command is responsible to essay written that the aircraft is an airworthy condition. The Pilot has to check both inside and outside the plane before he takes off. He also check that there is enough fuel for the flight. In winter season he has to remove even small amount of accumulation of frost, ice or  snow from the wings, control surface and tails. There are number of items that need to be checked on the exterior of the aircraft before the take off. ------------------------------------------------------------------- IN WHAT WAY FARMER PREPARE SOIL FOR CROPS? First of all, the farmer remove oil plants roots which are unnecessarily grow on soil. For that he use the sharp ploughshares dig into the soil and turn it over. This process is called cultivation. He pulls a sort of rake called a harrow, either with discs or wit...

Information about moon | WHAT IS INSIDE THE MOON ? | HOW BIG IS THE MOON? | WHEN DID MAN FIRST STEP FOOT ON THE MOON? | WHY IS THE FORCE OF GRAVITY LESS ON THE MOON? | WHAT IS APOLLO SPACECRAFT? | HOW THE APOLLO SPACECRAFT WORKED? | WHY DOES THE MOON SEEM TO CHANGE SHAPE? | By tech sparking

Image
https://drive.google.com/file/d/1oiV_5V_BCZulgImIpivp8C-BpInSTH35/view?usp=drivesdk Information about Moon WHAT IS INSIDE THE MOON ? Like the earth, the moon boasts are crust,  Mantle and core. Deep inside of its interior, the moon a solid iron core surrounded by a softer, somewhat molten liquid iron outer core. The o uter core may extend extend as per out as 310 miles (500 km). ------------------------------------------------------------------- HOW BIG IS THE MOON? Earth's moon is the brightest object in our night sky. It appears quite large, but that is only because it is the closest celestial body. The moon is a bit more than one-fourth (27 percent) the size of earth, a much smaller ratio (1:4) than any other planets and their moons. Earth's moon is the fifth largest moon in the solar system. ------------------------------------------------------------------- WHEN DID MAN FIRST STEP FOOT ON THE MOON? Apollo 11 was the space flight that lande...

Space information | HOW HUBBLE TELESCOPE ARE LIFTED INTO ORBIT? | HOW BIG IS A SPACE STATION? | HOW DOES A SPACECRAFT GET WHERE ITS GOING? | WHAT IS AN ORBIT IN SPACE ? | WHY SPACE SUIT IS REQUIRED IN SPACE? | By tech sparking

Image
Space i nformation HOW HUBBLE TELESCOPE ARE LIFTED INTO ORBIT ? Spacecraft like the Hubble Telescope are fitted into orbit by by the space shuttle. In that case the space shuttle itself is lifted by Rockets into Orbit. The spacecraft to be deployed be deployed is Riding snugly in the cargo Bay. At a certain height, the spacecraft is rejected and small Rockets On It Move It to the proper Orbit altitude. The telescope measures 13.1 m (43.5 ft) in length, 4.27 m (14.0 ft) in diameter, and weighs 11,000 kg (25,500 lb). Note the size of the work of standing near the base of the telescope. ------------------------------------------------------------------- HOW BIG IS A SPACE STATION? Once completed, the dimensions of the the the International Space Station (ISS) will be approximately 108.5 meters by 72.8  meters. This is slightly larger than full sized soccer field. The completed ISS will Weigh around 450 tons. A small passenger car weighs approximately 1 ton. So,...