In this post, I will be sharing my thoughts on how to implement task scheduling utilities like the ubiquitous cron or the popular Quartz library. Approach 1: We can have a main thread which will monitor the crontab file for any job additions.As soon as there is a new job added, we can fire a … Continue reading Writing your own cron service
If you have ever programmed in C or C++, you might have encountered some complex variable declarations like: char *(*(**foo)()); or int (*(*foo)(void )) Wouldn't it be great if we could just enter such complex declarations into some program and it could output its meaning in 'plain English' ? For example: Input: char ** const … Continue reading Deciphering C Gibberish
If you develop C++ programs on Windows, you might have felt the need to invoke the compiler from the command prompt itself. Its pretty easy to do so; just append the path of the compiler to the PATH environment variable. However, if you decide to invoke it with some compiler/linker options, you'll need to do … Continue reading Permanent alias on Windows
A set of functions written for pretty-printing C++ STL container types using template metaprogramming.