Monthly Archive: March 2019

Three ways to add dropdown options via Javascripts 0

Three ways to add dropdown options via Javascripts

Method #1 - Via jQuery + html tag var self = this; var sel = (self.selected === -1)?true:false; var option = null; option = $(""); option.val(-1).prop("selected", sel).text("(None)"); this.$el.append(option); this.collection.forEach(function(model) { sel = (self.selected ==...

[work in progress] Compile and install php 7.X on Debian 0

[work in progress] Compile and install php 7.X on Debian

Error update-alternatives: error: alternative /usr/local/php-7.1.26/bin/php for php not registered; not setting echo "Will set php version to $PHP_VERSION" sudo update-alternatives --set php /usr/local/php-$PHP_VERSION/bin/php update-alternatives: error: alternative /usr/local/php-7.1.26/bin/php for php not registered; not setting Solution...

Remove ssh key for new host with same IP 0

Remove ssh key for new host with same IP

Problem [dev@shrub kraken-ui]$ ssh root@10.65.11.212 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)!...