Using simple techniques to improve your debug messages.
How to use the ruby-progressbar gem to display progress bars on the command line.
Using the built in IPAddr library to test if an IP Address belongs to a certain subnetwork.
Mutexes are a way to prevent more than one thread from accessing the same resource (variable, file, socket, etc) at the same time.
Thread pools are a common pattern in many programs: the need to run M tasks, but only wish to run N of them in parallel at a time.
Threads are the primary method of concurrency and parallelism in Ruby.
Threading in Ruby gets a bit of a bad rap. While MRI doesn't support full threads, only one Ruby thread can be actively running at the same time, other Ruby
Since we're talking about threads, we have to talk about mutexes. A Mutex is the only practical way to prevent race conditions (where more than one thread
A common pattern in programs that must complete a large number of jobs is to use a thread pool, a type of producer/consumer model. Say, for example, you have
Ruby does have threads, however the threading support in MRI (the most widely used Ruby interpreter) is not complete. It supports concurrency for IO-bound