When to Restart Services or Reboot after Update on Debian or Ubuntu
After update Debian (or Ubuntu) using apt-get update && apt-get -V upgrade you need to know which services need restart and if system reboot is required (kernel upgrade). A common…
After update Debian (or Ubuntu) using apt-get update && apt-get -V upgrade you need to know which services need restart and if system reboot is required (kernel upgrade). A common…
If you want to start a Youtube playlist from random video, just add: &index=random_number to the src attribute of the embed code. The code To produce a random number, I…
Getting file extension and basename is a common development task. PHP internal function pathinfo is very useful. But, Windows paths will not work correctly on Linux servers and vice versa.…
Virtual disks (Virtualbox in our case) are very large files, that may change frequently. This is a big problem for backup. A little change (even a simple boot of virtual…
It is useful to prevent direct access of AJAX calls (from browser address bar). A solution could be the following simple function check_is_ajax(): /** * Check if request is an…