If you would like to use same PHP code to handle both AJAX and non-AJAX requests, here is a quick and simple trick that you can use to check if the incoming request is AJAX. For our trick we will use a HTTP header called HTTP_X_REQUESTED_WITH. It is supported by all modern browsers that support AJAX. Therefore, it should work in 99% of cases.Continue reading
Posts Tagged with "how-tos"
First time I heard about Docker was beginning of 2016. Finally, I got a chance to try Docker in "wild nature".
One of the most common things you might need from time to time is to stop or remove all your Docker images in one shot. Here are some simple and useful commands to stop or remove all of Docker containers.
Before deleting Docker containers we need stop them:
$ docker stop $(docker ps -a -q)
Now, when our Docker containers are not running, we can delete them:
$ docker rm $(docker ps -a -q)
Also there is a nice untility to clean your Docker images, volumes and networks. It's called Docker Clean.
I realized that my article about "How to interview a programmer" is pretty popular, so I decided to extend this topic and share my thoughts about recognizing a good programmer.
Nowadays, it is known that IT guys can make relatively good money in software or web development industry. This makes a lot of people to start learning basics of programming from the school, or sometimes even change their current careers to become programmers. Unfortunately, having a desire is not enough to become a good programmer. Even a number of certificates or diploma from university is not a sufficient sign of a good programmer.
If you are looking for a really good professional you must pay your attention to a certain important indicators.Continue reading