Summary of ffmpeg usage
Download and install
Download address
Executable files and dynamic libraries are provided, and Architecture version is used for pure command line.
View the currently available video and recording devices
Use the following command to view the device list
ffmpeg -list_devices true -f dshow -i dummy
The device name can be extracted from the outp ...
Posted by mrMarcus on Sun, 19 May 2019 18:42:48 -0700
java advanced development must learn! Asynchronous non-blocking in java high concurrent systems
Several invocation methods: Synchronized blocking call It is called serially, and the response time is the sum of the response time of all services.
public class Test {
public static void main(String[] args) throws Exception {
RpcService rpcService = new RpcService();
HttpService httpService = new HttpService();
//T ...
Posted by Dirtbagz89 on Sun, 19 May 2019 00:09:33 -0700
Kotlin Entry (6) Function
Function declarations use the fun keyword parameter in the form of name: type to indicate that the name on the left is the type of the parameter on the right, and the type of the return value after the last colon. If the function has no return value, it can be omitted or replaced by Unit.
fun double(x: Int): Int {
...
Posted by ibo on Sat, 18 May 2019 17:13:32 -0700
Java Written Test Common Class: Comparator Class Implements Array Sorting of Custom Objects
When writing programs or writing test papers, we always encounter classes or data structures defined by ourselves. If we put classes defined by ourselves into arrays such as List, sorting is very troublesome, such as:
A Person class is defined below.
class Person{
String name;
int age;
public Person(String name,int age) {
t ...
Posted by Octave91 on Fri, 17 May 2019 10:43:29 -0700
Advanced usage of sorting from zero-row single-row Java 8-List in conjunction with Lambdas
brief introduction
In this tutorial, we will first learn about Lambda support in Java 8, especially how to use it to write Comparator s and sort Collection s.
First, let's define a simple entity class:
public class Human {
private String name;
private int age;
}
Simple sorting of lists
Prior to Java 8, sorting collections would involve ...
Posted by nutshell on Thu, 16 May 2019 21:34:42 -0700
day13 [Stream stream, method reference]
day13 [Stream stream, method reference]
primary coverage
Stream flow
Method reference
Teaching objectives
Understanding the advantages of flow versus set
Understanding the Delayed Execution Characteristics of Flows
Streams can be captured through collections, maps, or arrays
Ability to master common flow operati ...
Posted by danwguy on Thu, 16 May 2019 03:20:36 -0700
python exception handling and function introduction
One anomaly
1 Concept: An exception is an event that occurs during the execution of a program, affecting the normal execution of the program. Typically, an exception occurs when Python cannot properly handle the program.
An exception is a Python object that represents an error. When an exception occurs to a Python script, we ...
Posted by bladecatcher on Wed, 15 May 2019 05:48:30 -0700
9-Roll Data Structure-Line Segment Tree
In the previous chapter, we introduced heap. In this chapter, we introduced a new tree structure, Segment Tree.
Why use segment trees?
For a class of problems, we are concerned with line segments (or intervals).
The most classic line segment tree problem, interval dyeing: there is a wall, the length is n, each time select a section ...
Posted by johnh on Tue, 14 May 2019 22:58:24 -0700
Machine Learning-An Improved Matching Algorithms for Dating Websites Based on KNN Classification
1 Project Introduction
An APP user has been using online dating software to find a suitable date. Although dating websites recommend different people, she doesn't like everyone. After summing up, she found that she had met three types of people:
People who don't like it (3)
Charming People (2)
Charming People (1)
An APP user hopes that the cl ...
Posted by marcs910 on Tue, 14 May 2019 17:43:10 -0700
Principle and Python Implementation of Collaborative Filtering (ALS)
Referring to ALS, we believe that everyone should not feel strange (not unfamiliar why you click in [cover your face]), it is a kind of collaborative filtering, and is integrated into Spark's MLIB library. This article explains the basic principles of ALS, and hand-in-hand, shoulder-to-shoulder with you to implement this algorithm.
Principle ch ...
Posted by Shaudh on Sun, 12 May 2019 01:57:02 -0700