How to close TCP socket in Node.js
The reason behind "connect, disconnect and then connect again" behavior might be that the old socket was still listening because it was half…
Read more...SSL/TLS client socket with OpenSSL
When does verification happen? From this wiki it seems like the get function does it. What security level to use? https://www.openssl.org…
Read more...Elegant C code
What the result of this code will be? Answer The output of this program will be a rectangular grid of ASCII characters, where each character…
Read more...Finding bias in PRNG
Biased scaling First things first. How to find a bias in random number generator? But not that bias that all statistical tests search for in…
Read more...Generators in Python
Simple generators A quick tutorial on how to make generators. We want to achieve this simple behavior and the same output: Define a function…
Read more...