In Python 3 we cannot increment a variable directly with "++" before or after this variable.
We have to add + 1 on the variable to increment it.
That's a bit annoying but life is life.
In this tutorial we are going to see examples of the Python 3 statements.
After installing the OpenGL libraries on your system, you would definitely want to display something on the screen.
You are right!
So let's see this with an Hello World! OpenGL 2.1 tutorial.
For this first OpenGL tutorial, we are going to see how to install OpenGL on GNU/Linux and Windows operating system.
The wait() syscall is often used with the fork() syscall.
Indeed, with the wait() syscall we can be sure that the child will be executed before the parent process.
In a trivial vision, this is like mutexes for threads.
The fork() and vfork() syscalls are different.
The fork() syscall generates two identical processes with separate memory.
The vfork() syscall generates two processes that share the same memory.
Maybe you wonder if your credit card has a correct number?
How to know that?
With the Luhn formula!
This is what we are going to see in this Luhn tutorial.
This algorithm can say if it is a good or a bad credit card number.
If you have a good computer, you can maybe try to find the last prime number that nobody found yet.
Indeed, you can even win a prize for that!
But you have to find a number with more than millions of digits.
I'm sure you can do it.
Today, I inaugurate a new C section: mathematics.
The first tutorial is a way to simplify a fraction.
This tutorial will help us to understand how to write and read on a client side and display the result on the server side.
So, for that, we have to create a server and a client.
The client will be the nc tool (or telnet if you prefer, this is the same for this example).
The inet_ntoa() function C returns the address of a client side, for example.
We give to the unique inet_ntoa() parameter, a struct in_addr.
We can then retrieve the address of this parameter.
Let's look it in this tutorial with an example of code.
© Badprog - I want to change the world. And I will.