Download Open CV Souce
- https://codeload.github.com/opencv/opencv/tar.gz/4.2.0
- https://codeload.github.com/opencv/opencv_contrib/tar.gz/4.2.0
Install Dependencies
Download Open CV Souce
Install Dependencies
#include <iostream> | |
#include "opencv2/highgui/highgui.hpp" | |
using namespace std; | |
using namespace cv; | |
int main() { | |
VideoCapture cap ("/home/umanda/opencv/projects/test.mp4"); | |
//CvCapture *input_video = cvCreateFileCapture("guitarplaying.avi"); |
/* | |
author : Umanda Jayobandara | |
*/ | |
#include <iostream> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
using namespace std; | |
using namespace cv; |
*setGlobalVariable | |
*getGlobalVariable | |
*consoleLog | |
*consoleLog2 | |
*consoleCleanLog | |
*running | |
*console_log | |
*console_log2 | |
*console_clean_log |
""" | |
fbfeed2csv: a tool to download all posts from a user/group/page's facebook feed to a csv file | |
yuzawa-san | |
https://github.com/yuzawa-san | |
""" | |
import json | |
import urllib2 | |
import time | |
import csv |
------------------------------------- | |
Build Ejabberd | |
------------------------------------- | |
1) sudo su | |
2) apt-get update |
PHP handling on apache is done via modules of one sort or another, and running multiple version is problematic on a single instance. The solution is to run two instances of apache on the same machine. This allows one instance to run PHP 7 (the default on 16.04), and another can run PHP 5. Since normal http/https is on ports 80 and 443, the second instance will run on ports 81 and 444. Since it is running on the same machine, all file system and database access is the exact same.
All the commands herein have to be run as root, or with sudo
prefixed to the command.
Read /usr/share/doc/apache2/README.multiple-instances
Run sh ./setup-instance php5
from /usr/share/doc/apache2/examples
, where php5
is the suffix for the second site; all commands for the second site will have that suffix. This will keep all of the same configuration for all sites on the new instance, including SSL certif
$controllers = []; | |
$i=0; | |
foreach (Route::getRoutes()->getRoutes() as $route) | |
{ | |
$action = $route->getAction(); | |
if (array_key_exists('controller', $action)) | |
{ | |
// You can also use explode('@', $action['controller']); here | |
// to separate the class name from the method |
HTTP redirection, or URL redirection, is a technique of pointing one domain or address to another. There are many uses for redirection, and a few different kinds of redirection to consider.
As you create content and administrate servers, you will often find the need to redirect traffic from one place to another. This guide will discuss the different use-cases for these techniques, and how to accomplish them in Apache and Nginx.