QA Official

Introduction to Elastic Search

https://qaofficial.com/post/2019/05/05/71340-introduction-to-elastic-search.html 2019-05-05
1. Entities @Document(type = "conversation_content", indexName = "conversation_a",createIndex = false) public class ConversationContent { @Id @Field(type = FieldType.keyword) private Long id; @Field(analyzer = "ik_max_word", searchAnalyzer = "ik_max_word", store = true, type = FieldType.text) private String title; @Field(analyzer = "ik_max_word", searchAnalyzer = "ik_max_word", store = true, type = FieldType.text) private String initiator; @Field(type = FieldType.Nested)

Introduction to Elastic Search (1)

https://qaofficial.com/post/2019/05/05/71341-introduction-to-elastic-search-1.html 2019-05-05
1. Basic concepts 1.1 Common Full Text Search Framework 1、LuceneAn open source project under Apache, a high-performance, extensible tool library, provides the basic framework for searching.If developers need to use it, they need to develop it by themselves. The cost is relatively high, but the performance is high. 2、solrSolr's Lucene-based full-text search framework provides richer functions than Lucene.At the same time, it can be configured and expanded and the query performance is optimized.

Mediator Pattern Summary of Dahua Design Pattern -java Implementation

https://qaofficial.com/post/2019/05/05/71181-mediator-pattern-summary-of-dahua-design-pattern-java-implementation.html 2019-05-05
Note: Example from Dahua Design Pattern Although dividing a system into many objects can usually increase its reusability, the proliferation of inter-object connections will reduce its reusability. Because a large number of connections make it impossible for an object to work as an indivisible whole without the support of other objects, it is very difficult to make any major changes to the behavior of the system. To solve such problems,

Some Thoughts on OGR Open Source Library

https://qaofficial.com/post/2019/05/05/71315-some-thoughts-on-ogr-open-source-library.html 2019-05-05
I haven't written a blog for a long time. Today, taking advantage of the weekend time, I will summarize my experience in using OGR. I think if you are reading this article, you should know what OGR is for.To put it bluntly, OGR is an open source abstract library for reading various vector data. In fact, OGR itself does not read data, and the final reading is basically implemented by using native API of various data formats.

Tree Selection Sort of Sorting Algorithm

https://qaofficial.com/post/2019/05/05/110564-tree-selection-sort-of-sorting-algorithm.html 2019-05-05
Tree Selection Sort is also known as tournament ranking. The algorithm is similar to that of sports competitions. First, N data elements are divided into two groups and compared according to keywords to obtain the winners of N/2 comparisons (the ones with the smaller keywords), which are retained as the results of the first comparison. Then, these N/2 data elements are divided into two groups and compared according to keywords

[Algorithm] The Locksmith Sorting and straight insertion sort

https://qaofficial.com/post/2019/05/05/110577-algorithm-the-locksmith-sorting-and-straight-insertion-sort.html 2019-05-05
The Locksmith sorting and straight insertion sort are the two simplest sorting algorithms in inside. It is easier to understand if you make a comparison. The Locksmith sorting The Locksmith sorting is to select the smallest or largest number to exchange with the number of the first position in the array to be sorted, and then find the smallest or largest number to exchange with the number of the second

[Multithreading] Three Schemes Achieve Mutual Cooperative Communication among Multithreads

https://qaofficial.com/post/2019/05/05/71248-multithreading-three-schemes-achieve-mutual-cooperative-communication-among-multithreads.html 2019-05-05
在并发编程中,经常会遇到多个线程之间需要相互协作的情况,即并不是多个线程同时执行,而是按照一定的顺序循环执行的情况。 那么怎样去实现这种效果呢

[to] 25 Suggestions and Skills for Performance Tuning of ]iOS Applications

https://qaofficial.com/post/2019/05/05/71191-to-25-suggestions-and-skills-for-performance-tuning-of-ios-applications.html 2019-05-05
[to] 25 Suggestions and Skills for Performance Tuning of ]iOS Applicationshttp://www.cnblogs.com/klaus/p/4182826.html Original English Address: http://www.cnblogs.com/klaus/p/4182826.html

facedetection Source Code Face Detection

https://qaofficial.com/post/2019/05/05/71306-facedetection-source-code-face-detection.html 2019-05-05
Face Detection Source Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using AForge; using AForge.Controls; using AForge.Imaging; using AForge.Video; using AForge.Video.DirectShow; using face; namespace Camtest { public partial class facedetection : Form { /// <summary> /// 人脸检测 /// </summary> public facedetection() { InitializeComponent(); //启动默认在屏幕中间

10 very useful Javascript techniques.Must see!

https://qaofficial.com/post/2019/05/04/24883-10-very-useful-javascript-techniques.must-see.html 2019-05-04
1. Use!!Converts a variable to a Boolean typeSometimes we need to check whether some variables exist, or whether they have valid values, so as to regard their values as true.For doing such a check, you can use it!!(double negative operator), he can automatically convert any type of data to boolean values, only in this way variables will return false: 0, null, "",undefined or NaN, and other values will return true.