The tool bwm-ng is the bandwidth monitoring tool that I frequently used. From time to time, I wondered how the bandwidth is measured. I digged up the code to find it out today. It is based on a periodic pooling of network resources for the byte count. The following is... [more]

Python generators

Summary from reading: “Generator Tricks for Systems Programmers” and “A Curious Course on Coroutines and Concurrency” by David Beazley [more]