How to automatically restart MySQL service

Here is instruction how to launch MySQL server after close unexpectedly. 1. Create /root/mysqlfix.sh file with next content:

2. Make it executable chmod +x /root/mysqlfix.sh 3. sudo crontab -e 4. Add crontab job. For 3 min period job will Read more…

How to automatically restart Nginx

Here is instruction how to launch Nginx server after close unexpectedly. 1. Create /root/nginxfix.sh file with next content:

2. Make it executable chmod +x /root/nginxfix.sh 3. sudo crontab -e 4. Add crontab job. For 3 min period job will Read more…

How to fix Attempting to renew cert from /etc/letsencrypt/renewal/example.com.conf produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.

Issue: Attempting to renew cert from /etc/letsencrypt/renewal/example.com.conf produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping. How to fix: Just stop webserver before renew letsencrypt.

How to get size of the app data in Android

Here is few lines how to get size of directory in Android. To get size of directory you need sum sizes of all files in this directory and subdirectories. So, we need recursion.

Where :

Short sample project Read more…

ProgressArcView implementation for Android

Would you like the same progress View? Here is source code for simple viewsion without customisation from XML.

And here is ProgressArcView usage. I’ve implemented delay for click action using this view. Case: Click action will activated it user Read more…

How to Dynamically or Programmatically Add Menu Items for an Android Activity

Sometimes you don’t need huge menu. And int is’t super important create XML file for it. You can just create your menu from code. It is very simple. You need override

method. Let’s see the example below:

Here Read more…