iTunes could not connect to the device error

When attempting to connect to an iPhone 4s running iOS 7, we kept getting the error message "Could not connect to the device" or "iTunes could not connect to this iPhone. The device does not recognize this host." This post has a solution which worked for us.

301 all URLs but one with Nginx

There may be times you need to redirect all requests away from a domain except for a single URL, for example when redirecting all requests from http to https but leaving one file accessible under http for validation purposes. This post shows how to do this with the Nginx web server.

How to shrink a VMWare Fusion Linux virtual disk

VMWare Fusion on Mac OSX allows you to shrink virtual disks easily for Windows virtual machines right from the graphical interface (Virtual Machine -> Settings -> General -> Clean Up Virtual Machine) but there isn’t the same option to do this with Linux, so you need to do it from the command line.

Getting back onto Facebook emails

Occasionally I get "Getting back onto Facebook" emails, which I thought was some weird attempt by FB to get me to engage more, but it appears that these emails are sent when login attempts using your email address fail.

List directories only with ls

The ls command is used to list directory contents when using the bash shell (and other shells), and has a variety of flags to choose what to display and how to format. This post shows how to list just the directories using ls.