Concurrent programming -- 7. Singleton mode

The pattern is separated from the language, and the singleton pattern in the design pattern is very important in the concurrency. We should not indulge in the language and architecture, but think about the problem from the design point of view. Technology is the easiest to be replaced. Only by formin ...

Posted by justinjkiss on Thu, 25 Jun 2020 04:15:57 -0700

With keyword matching, you are a qualified algorithm engineer

During the construction of the medical Q & a system these two days, I met with interesting algorithms, and I felt that the skeleton was quite surprised, so I recorded it. The purpose of this paper is to build an actree in the medical field, and to query the pre-processing of some characters in the n ...

Posted by Arsench on Tue, 23 Jun 2020 22:37:37 -0700

mycat configuration fragment

Machine information Machine IP Installation services Exposed port 192.168.177.128 mycat service External exposure port 8066 192.168.177.131 mysql1 External exposure port 3306 192.168.177.132 mysql2 External exposure port 3306 1. Install mycat 1.1 download the installation package (it is r ...

Posted by ganesh129 on Tue, 23 Jun 2020 22:20:45 -0700

Efficient image loading

Article catalog 1 installation 2 how to load images 2.1 Structure 2.2 OpenCV 2.3 Pillow 2.4 Pillow-SIMD 2.5 TurboJpeg 2.6 LMDB 2.7 TFRecords 3 load time comparison 4 Summary Image loading plays an important role in computer vision when writing optimized code. This process can be a bottleneck for ...

Posted by like_duh44 on Tue, 23 Jun 2020 20:18:57 -0700

Using reactive relational database connection specification R2DBC to operate MySQL database

1. Introduction It was introduced in March R2DBC , which is an asynchronous, non blocking relational database connection specification. Although some NoSQL database vendors provide reactive database clients for their databases, migration to NoSQL is not an ideal choice for most projects. This promotes the birth of a general responsive relation ...

Posted by jabapyth on Tue, 23 Jun 2020 18:58:16 -0700

python_Interface Automated Test Framework

This article summarizes and introduces the development of interface test framework. The environment uses python3+selenium3+unittest+ddt+requests test framework and DDT data-driven, integrates test data functions such as Excel management test cases, and generates test reports using HTMLTestRunner. There are open source interface test tools such ...

Posted by newdles on Tue, 23 Jun 2020 16:54:17 -0700

Operational commands for elasticsearch indexes (core concepts, operational statements, and paging)

Article Directory 1. Description of put, post, delete, get methods 2. Data Models and Core Concepts 3. Basic operation of index 1. Create an index 2. View all current indexes 3. Modify (update) the document 4. Delete 5. Add data 6. Bulk operation data bulk 8. Bulk Read Documents 9. Search for data ...

Posted by Nukeum66 on Tue, 23 Jun 2020 09:06:32 -0700

Source code analysis of DAO execution process in Mybatis

Article catalog 1. Query source code analysis of all methods 2. Source code analysis of insertion, update and deletion methods 3. Source code analysis of aggregate function getCount 1. Query source code analysis of all methods The implementation class of DAO interface calls SqlSession.selectLis ...

Posted by PerfecTiion on Tue, 23 Jun 2020 00:59:04 -0700

[design mode] simple factory mode

Factory mode Factory pattern: one of the most common design patterns in Java. This type of design pattern is a creation pattern, which provides the best way to create objects. In factory mode, we do not expose the creation logic to the client when we create the object, and we point to the newly create ...

Posted by ek5932 on Tue, 23 Jun 2020 00:50:38 -0700

DNS service of domain name system

)] What is DNS? Domain Name System is the phone book of the whole Internet. It can translate the domain name that can be understood into the IP address that can be understood by the machine, so that Internet users no longer need to directly contact the IP address that is difficult to read and understand. The domain name system is very imp ...

Posted by gskaruz on Mon, 22 Jun 2020 23:16:42 -0700