The difference between 127.0.0.1 and 0.0.0.0

127.0.0.1 typically refers to loopback local-only terminal 0.0.0.0 depending on the context, this typically instructs an application to listen on every available interface. Example: With following MongoDB configuration

Mongo… Read more »

Allocating arrays of function pointers in C

Dynamically allocate array of 2 pointers to functions returning int and taking no argument.

Statically allocate array of 2 pointers to functions returning int and taking no argument.

Read more »

How to include one bash script in another

The problem Let’s say we have two scripts, /foo/bar/utils.sh

and script /foo/bar/main.sh, in which you want to use function do_something_useful from utils.sh. The common incorrect answer You can easily… Read more »