This are my experiences in a fresh VPS @ digitalocean.
So, I’m trying to run kurento following their tutorials.
The program ‘git’ is currently not installed.
root@kurento:/home# git clone https://github.com/Kurento/kurento-tutorial-java.git
The program 'git' is currently not installed. You can install it by typing:
apt-get install git
The program ‘mvn’ can be found in (not installed)
root@kurento:/home/kurento-tutorial-java/kurento-one2many-call# mvn compile exec:java
The program 'mvn' can be found in the following packages:
Try: apt-get install <selected package>
Lets install it with apt-get install maven.
RSA host key for 188.166.XXX.XXX has changed and you have requested strict checking.
Host key verification failed.
So, I’v rebuild a droplet on DigitalOcean, and logically, when I tried to ssh it, SSH Keys were different…. Easy so solve it…
On a Mac OSX, on console, lets change to root
Lets edit known_hosts
Remove the entry of the respective host/ip.
Save and exit nano, exit root.. and ssh it!
Cannot run program “bower”
Lest install nodejs
sudo apt-get install nodejs
Then lets install bower
sudo npm install bower -g
$birthDate = "1984-05-21";
$birthDate = explode("-", $birthDate);
$age = (date("md", date("U", mktime(0, 0, 0, $birthDate, $birthDate, $birthDate))) > date("md") ? ((date("Y")-$birthDate)-1):(date("Y")-$birthDate));
echo "Age is: ".$age;
As seen on http://stackoverflow.com/questions/15341767/calculate-age-with-php-in-yyyy-mm-dd-format
This is how!
$video_hours_exploded = explode(':', $stats['videosDuration']);
$video_hours = $video_hours_exploded.'h '.$video_hours_exploded.'m ';
This is how I compare two folders on Mac and Linux.
diff -rq folder1 folder2