Using AForge control in WPF
AForge.NET is a framework about computer vision and artificial intelligence written by C, which includes image processing, neural network, genetic algorithm and machine learning.
To implement video functionality, you need to use the VideoSourcePlayer control in the AForge.Controls namespace. This is a WinForm control. To use it in WPF program, ...
Added by m7_b5 on Thu, 31 Oct 2019 19:42:57 +0200
Design pattern responsibility chain pattern
The responsibility chain pattern creates a chain of receiver objects for the request. This pattern gives the type of request and decouples the sender and receiver of the request. This type of design pattern belongs to behavioral pattern.
In this pattern, each recipient usually contains a reference to another recipient. If an object cannot proc ...
Added by ssmK on Thu, 31 Oct 2019 16:30:42 +0200
Search (DFS) - reachable Pacific and Atlantic Regions
Accessible Pacific and Atlantic Regions
417. Pacific Atlantic Water Flow (Medium)
Given the following 5x5 matrix:
Pacific ~ ~ ~ ~ ~
~ 1 2 2 3 (5) *
~ 3 2 3 (4) (4) *
~ 2 4 (5) 3 1 *
~ (6) (7) 1 4 5 *
~ (5) 1 1 2 4 *
* * * * * Atlantic
Return:
[[ ...
Added by gazever on Thu, 31 Oct 2019 15:53:28 +0200
User creation process
How is a user created?
/etc/passwd user account information
/etc/shadow security user account information
/etc/group group account information
/etc/gshadow security group account information
/The default value when the etc/default/useradd account is created. (the default value in this file will be used when no parameter is specified)
[r ...
Added by phpdeveloper82 on Thu, 31 Oct 2019 13:31:03 +0200
Python playing wechat
A lot of people are using wechat. Do you want to use Python to control our wechat? Well, let's go straight to the dry goods. We can directly encapsulate it on itchathttp://itchat.readthedocs.io/zh/latest/
Installation module
1 pip install wxpy
2
3
4 pip install wxpy -i "https://pypi.doubanio.com/simple " #Source of watercress
1. Gen ...
Added by staples27 on Thu, 31 Oct 2019 08:54:04 +0200
Problems of [JZOJ3347] [NOI2013 simulation] tree
subject
The main idea of the topic
Give you a tree, each node has three kinds of black, white and gray colors.
You have to cut off some edges (each edge needs to pay a certain price) so that every tree in the forest can meet the following requirements:No black dots or at most one white dot.
Thinking process
This problem is a tree DP...
For eac ...
Added by nbalog on Thu, 31 Oct 2019 06:56:04 +0200
golang: basic data types and operators
1). File name & keyword & identifier
1. All go source codes end with. Go
2. Identifier begins with a letter or underscore, case sensitive
3. It is a special identifier to ignore the result.
4. Keep keywords
The golang keyword is as follows:
Calls to functions in the package:
a. functions in the same package can be called ...
Added by The_PHP_Newb on Wed, 30 Oct 2019 18:02:12 +0200
Parallel search + multiset + double pointer cf982D
I feel that my solution is very complex and I have written a lot of code.
But the core is to enumerate the values of each element from small to large, and then merge the values of < = current element. Because this process is monotonous, you can directly merge the new elements into the old and query the set.
Maintain and query the set, main ...
Added by rdoylelmt on Tue, 29 Oct 2019 21:59:28 +0200
How do I add disks to a Linux virtual machine?
I. VMware workstation menu bar virtual machine settings add hard disk next
ย
II. SCSI next step:
Create a new virtual disk
IV. select the size of the hard disk you need ๐ immediately allocate the disk ๐ uncheck ๐ store the virtual disk as a single file ๐ next step
ย
Five. Finish
Vi. after restarting the virtual machine, u ...
Added by dank on Tue, 29 Oct 2019 19:02:32 +0200
python operates MongoDB database
MongoDB is a database composed of multiple collections, and each collection is composed of multiple documents.
File:
#Be similar to
{
"_id" : ObjectId("5d2944d421b631f231d08056"),
"username" : "Li Yang",
"password" : "123456",
"age" : 25,
"gender" : "male",
"dept" : [
{
"title" : "Produc ...
Added by jinwu on Mon, 28 Oct 2019 21:39:16 +0200