How to create a redirect in PHP

Say you had domain.com/folder, and you’d like it to automatically redirect to domain.com/otherfolder, do the following: Add the above to a file called index.php in domain.com/folder. As soon as someone visits your location, the browser redirects to the new URL. Courtesy of the Stackoverflow community: http://stackoverflow.com/questions/768431/how-to-make-a-redirect-in-php

How to secure SMTP, POP and IMAP connections in Plesk

You’ve installed an SSL Certificate to secure your Plesk Panel, you’ve tested it with an SSL checker and sure enough: the ugly warning window doesn’t bother you or your customers anymore. But your email client still says that the server doesn’t have a valid certificate. What gives? The secret is this: SMTP, IMAP and POP3 … Read more

How to force Safari to never open ZIP files again

I love Safari – but it has an ultra annoying habit on new installations: it’s trying to be helpful by automatically unzipping ZIP files. It’s the most unuseful feature ever for a techie ever. Thankfully we can switch it off – something you only need to do once every 5 years, and hence it’s easily forgotten … Read more

How to start CentOS in Recovery Mode from Parallels Desktop

To start your Linux distribution into EFI Recovery Mode you need an installation disk. Even the smallest “minimal” image will do. Shutdown the VM if it’s running. Then mount the ISO image onto your VM (under Configuration – Hardware – CD/DVD1). Make sure the “Connected” box is ticked. Next you need to tell Parallels Desktop that … Read more

How to launch Mac Apps on your External Display by default

Screen Shot 2014-11-25 at 13.53.03

Even on the best computers there are some things you only do every once in a blue moon – at which point you’ve forgotten what you did last time to make it work. Setting up a second display with your MacBook is such a case. Here’s what worked for me when I installed my Thunderbolt Display last year. We’ve just added another one in our office – here’s to doing it again in the future.

When you plug that beautiful 27″ puppy into your MacBook Pro or Air it works without any trouble: the dock is at the bottom of both displays, and even the menu bar seems to follow you onto whichever monitor you click. Magic!

Apps however remember which monitor they were launched on last, and if you’ve never had a second display attached to your system then most of them will default to that little laptop screen instead of your new desktop centre piece. This is not an issue if you simply close the lid on your laptop because your graphics card only sees a single display.

If you do use both displays though, there is a way to tell your Mac which one to launch an app on by default. And here’s how to do that:

Read more

How to restart Windows via RDP

When you’re connected via RDP to a remote Windows machine, the Restart and Shutdown options are not there. Instead they’ve been replaced with only a lonely disconnect option to end your session. To restart or shutdown your remote machine we’ll have to use the command line’s shutdown command. Here’s how.   At the Command Prompt … Read more