In our review of Array.indexOf() we looked at using the check for -1 assigned to the indexOf() as an indication that that item was not part of the array. With Array.push() we can add items to the array.
When trying to run Sitespeed.io in two different terminals on the same server I received the error that Xvfb could not run. By adding -a as an argument it will automatically pick up another thread to run with instead of the default. do xvfb-run -a sitespeed.io
du -sh * I wanted to be able to list ls the files and folders on the server to find out which ones were taking up the most disk space (as part of the sitespeed.io project i’ve been working on). This worked a treat.
When you get a flat backup of your server the SQL is useless to you. Unless you’ve run SQL exports and backups your self you’re going to have to recover the databases from these flat unusable files. Fortunately there’s a tool in the Media Temple back end that allows for this. Simple connect to the […]
This was another fun error message that I received while putting back together my hacked server. This appears when trying to SSH into the Media Temple server through the Terminal Application on Mac OSX. The solution. You need to clear the key that already exists in your known host…. perl -p -i -e ‘s/^example.com.*n//;’ ~/.ssh/known_hosts […]