The number pi, which always reminds of pie, happens to be one of the most widely used symbol in mathematics, both in high school and university. As you know, it is nothing more than an irrational number (it can't be written as a fraction) which starts with 3.14159 and it is the heart of all geometry and trigonometry. Many have calculated billions of digits of pi, the record (last I checked) is at…
Computers are awesome! But have you ever tried to use them for scientific math? Have you ever made a computer software that performs a long list of mathematical operations and later returns a result which must be precise? If you have tried any of the endeavors above then you must be frustrated with the fact that computers are not reliable when you need high precision, or when you need to perform…
It is possible, but not with the magnets you have at home, and here is why: you would need a super strong magnet for that because it turns out HDDs are built to resist the influence of magnetic fields. Do you want proof? Here it is: I've tested it myself with an electric motor full of magnets inside, they are very strong magnets. I rubbed the HDDs on it for minutes, then I tested them and they…
Cryptography, an interesting word most people do not understand. It is nothing more than the art of sending messages which are protected from spies, you convert them into a secret code with the use of an algorithm called "cipher". It has altered the course of history because it has been decisive during war times. There are many ciphers out there, some of which have been used for centuries, some…
Are you a mathematician? A computer scientist? A programmer? An engineer? Or maybe just someone who really likes exact sciences? In this case you are reading the right article, here you will discover the hidden artist who lives inside you. If you are a member of any category mentioned above, then chances are you haven't been fond of art during your life and probably doesn't have talent for it.…
Here is a list with some of the most basic forms of graphs and how to implement them. Graphs are useful when implementing search algorithms. Definitions Vertex: each element of the graph. Edge: each connection between vertices, represented as (s, e), meaning the start and the end vertex. In-degree: how many edges enter the vertex. Out-degree: how many edges leave the vertex. Directed graph: when…
Today we will be learning about how your computer can make all of those beautiful and stunning images appear before your eyes every time you play a game or watch a video. First of all, how does the human eye work? The back of the human eye is called the retina, it contains thousands of cells to receive light, there is a nerve that passes through this wall, therefore one spot of your retina doesn't…
Here goes a list of useful and common algorithms explained in a way that is easy to understand and beside their names I have written their average case runtimes. To read this article should give you insights about which algorithm to use and how to implement it. If a programmer could be a wizard then the algorithms would be the spells, the more you know, the more tricks you can do. Binary search…
Here is a list with many keyboard keys and their respective number code (the integer number which corresponds to the key), the codes start at 0 and have the corresponding key in front of them. This may vary across different machines. 0 - 9: unknown 10: 1 11: 2 12: 3 13: 4 14: 5 15: 6 16: 7 17: 8 18: 9 19: 0 20: - 21: = 22: Backspace 23: Tab 24: q 25: w 26: e 27: r 28: t 29: y 30: u 31: i 32: o 33:…
Here is a list of cheatsheets for programming languages that I've made for myself over the years. I keep them open whenever I'm programming and I quickly look up stuff by using "Ctrl + f". It really helps me. C: https://drive.google.com/file/d/1gEFEycJnERUKIyd8l0X3MnRZ6U3EG854/view?usp=sharing C++: https://drive.google.com/file/d/1V2expGujPon3m4qWKMx2dhzK7YKatBw-/view?usp=sharing D:…
This is the only repository with real images that exists on the internet and I made it myself manually. For those that are impatient, just scroll down to the bottom of the text and you'll find the link to download it. For those that want to know the interesting story behind it, please keep reading (it's a short text). Are you a student of AI, ML, DL, etc? If you are, then you've come to the right…
If you have finished the multimedia tutorial then now I will walk you through a space invaders game. If you were born after 2001 then you probably have no idea what that is but it was one of the most popular types of game ever, I loved it. This code sure works on Windows, but it may not work on all Linux distros. First you need to download the multimedia library along with the necessary image and…
In this tutorial I will do my best to teach you how to create multimedia software the easiest and fastest way possible. In this tutorial I will show you how to create a window, display images and set the window to receive input from the mouse and keyboard. Keep in mind that I will write starting from the premise that you already know a good amount of programming and also that you know well the…
Hello my dear reader, I have written this text because I have seen many people struggling to learn programming simply because they did not know how to study it and also because I often see teachers teaching it in a way I consider very wrong and difficult to understand. If you want to be a programmer then first you need to understand some things: 1- It takes years of dedication to become a…