Array.push()

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.

Array.indexOf()

Using the indexOf() call in javascript allows you to… Get the index of the Array item you pass across Check to see if an item exists within an Array If we have the following Array we can then pass that array into the indexOf() function to find the index values. I can check to see… Continue reading Array.indexOf()

Restoring mySQL database from the file system MT

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… Continue reading Restoring mySQL database from the file system MT

Warning remote host identification has changed ssh

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… Continue reading Warning remote host identification has changed ssh