SIGTERM means SIGnal and TERMinate ,In UNIX-like systems the SIGTERM signal is used for terminating a program.
The SIGTERM can also be referred as soft kill because the process that receives the SIGTERM signal may choose to ignore it.
In other words, it’s the polite and safe way of killing a process.
By default, kill command sends the SIGTERM signal. You may explicitly mention it with -15 .
How to use SIGTERM command
kill -15 <process_id>
kill -SIGTERM <process_id>
The SIGKILL is used for immediate termination of a process. This signal cannot be ignored /blocked. …
One of the slightly tricky concepts to understand is hashing in the context of load balancing.
In order to understand this, please check out how hashing works at a conceptual level. The TL;DR is that hashing converts an input into a fixed-size value, often an integer value (the hash).
One of the key principles for a good hashing algorithm is that the function must be deterministic, which is a fancy way for saying that identical inputs will generate identical outputs when passed into the function. So, deterministic means — if I pass in the string “Hello” (case sensitive) and the…
before we check on Custom Lookups, let’s see the basics and understand what is a Lookup
As per the Django docs
not very clear but an example would make it so much more easy
Entry.objects.filter(id__in=[1, 3, 4])
in the above example ‘in’ is what is called a Lookup and what the above query does is filters all the Entry data where their id’s belong to any of the values in the list [1, 3…
COALESCE(), Stored Procedure, SELECT INTO, CASE
COALESCE takes any number of arguments and returns the first value that is not null.
COALESCE(x,y,z) = x if x is not NULL
COALESCE(x,y,z) = y if x is NULL and y is not NULL
COALESCE(x,y,z) = z if x and y are NULL but z is not NULL
COALESCE(x,y,z) = NULL if x and y and z are all NULL
COALESCE can be useful when you want to replace a NULL value with some other value. In this example you show the name of the party for each MSP that has a party…
yes you read it correct its 2 M’s
The extra M stands for ‘Memory’. Memory mapping is a process through which machine level constructs are used to map a file directly for use in a program from disk. It maps the entire file in the disk to a range of addresses within the computer program’s address space. The program can access the files on the disk in the same way it accesses data from random access memory.
The mmap function uses the concept of virtual memory to make it appear to the program that a large file has been loaded…
A link in Linux is pointers pointing to a file or a directory.
well there are a lot more examples which we will discuss further in this article but for now a few uses are to create a convenient path to a directory buried deep within the file hierarchy; other uses for links include:
In a way, yes…but as Gandalf says
Let me explain. Say, for instance, you have an external drive, attached to your…
Avg Software Engineer , can’t write any post that takes more than 5 mins