Month: June 2019

Handy Docker commands

1. Remove all your containers and images, using following commands: docker kill $(docker ps -q) : Kill all running containers docker rm $(docker ps -a -q) : Delete all stopped containers after previous command docker rmi $(docker images -q) : Delete all images You may find following error: “Error response from daemon: conflict: unable to …


Xamarin Forms – check if phone is currently connected to Internet or not

Sometimes, you may need to check if your application has internet connection or not. In order to do so, you can use the plugin https://www.nuget.org/packages/Xam.Plugin.Connectivity/ and then using the following method: public async Task HasInternet() {     var canReach = await CrossConnectivity.Current.IsRemoteReachable(“google.com”);     return canReach; }