How SSH works

If you work in the IT industry, you’ve undoubtedly heard of ssh. But how does it work? SSH (secure shell) is a network protocol that allows two computers to connect securely over the internet. SSH uses encryption to prevent hackers from reading data sent between two connected devices. SSH is divided into three layers: The transport layer The connection layer The authentication layer During and after authentication, the transport layer establishes safe and secure communication between a client and a server....

February 25, 2023 889 words 5 min

Automating your web browser with selenium

Selenium is a very good skill to have as you can automate almost everything that you can do with a web browser. In this tutorial, we’ll learn how to use Python and Selenium to automate a web browser. This is an updated version of my previous article which unfortunately doesn’t work anymore. If you’re a complete beginner, read my python article to understand the basics. (https://4rkal.com/posts/python/) What is selenium? Selenium is an open source umbrella project for a range of tools and libraries aimed at supporting browser automation....

Why computers can’t represent 0.3 accurately

Most people know that adding up 0.1 + 0.2 equals 0.3. However computers represent it as 0.30000000000000004 . Here is a screenshot of it in python3 Your first thought might be that this is just some kind of error. Well its not Why does this happen? Fractions can be represented precisely in the base 10 system (used by humans) if a prime factor of the base is used (10). 2 and 5 are the prime factors of 10....

February 21, 2023 224 words 2 min