How to test if a Shell Command can be executed in PHP

Before we execute a shell command from PHP it’s a good idea to test if the server will respond to it. We can do this by making use of the empty() function. The following example consists of a helper function you can call before executing the command in question. Then we call it with the … Read more

How to share your posts on Google Plus publicly via JetPack

I’ve decided to start using Google Plus more in 2014. Thanks to JetPack 2.7 it’s a breeze to publish my posts on Google Plus without having to share them manually. What I’ve noticed though was that by default all my posts were appearing as “privately shared” only. As I’d like the widest audience possible I … Read more

How to dismiss the iOS Keyboard when the done button is pressed

It has puzzled many generations how to get rid of the keyboard when the user is done entering text into an iOS text field. There doesn’t seem to be an obvious action we can attach to make this happen. That’s because rather than looking at the keyboard itself, we need to look at what actually […]