sudo apt-get update
sudo apt-get install docker.io
Внимание, пакет с именем docker - это левый пакет для KDE/GNOME и к контейнерам не относится
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2
<?php | |
$urlUploadImages = '../uploads/img/'; | |
$nameImage = $_POST['nameImage']; | |
$data = base64_decode($_POST['strBase64']); | |
$img = imagecreatefromstring($data); | |
$width = imagesx($img); | |
$height = imagesy($img); | |
$image = imagecreatetruecolor($width, $height); | |
imagealphablending($image, true); | |
$alpha_image = imagecolorallocatealpha($image, 0, 0, 0, 127); |
// phantomjs code to log in to Amazon | |
// based on the code from this Stackoverflow answer: http://stackoverflow.com/questions/9246438/how-to-submit-a-form-using-phantomjs | |
// I'm injecting jQuery so this assumes you have jquery in your project directory | |
var page = new WebPage(), testindex = 0, loadInProgress = false; | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); | |
}; |
**** Transparent child element ****
.child{ pointer-events: none; }
**** Installation ****
**** AngularJS Foreach ****
angular.forEach(values, function(value, key){
this.push(key + ': ' + value);
}, log);
**** AngularJS Ng-cloak usage ****
<div id="template1" ng-cloak>{{ 'hello' }}</div>
location /admin/ {
auth_basic "Admin Zone";
auth_basic_user_file /var/www/example.com/admin/.htpasswd;
}