Gorang learning series - 20. Package

Catalog   1, Standard library 1. regexp package: regular expression 2. sync package: lock and sync 2.1 sync.Mutex mutex 2.2 sync.RWMutex read / write lock 2.3 once.Do(call) 2, Use of packages 1. Custom package 2. reference package 3. Initialization of package 1, Standard library Built i ...

Posted by unbreakable9 on Fri, 17 Jan 2020 04:15:47 -0800

Answer assistant software

android makes a question answering assistant software At present, there will be question answering entertainment on all major platforms or in the game. However, if you manually type questions, the time for answering questions will be over before you finish typing, which is slow. So do a simple acad ...

Posted by Xander756 on Fri, 17 Jan 2020 03:58:33 -0800

Own data: Tensorflow 2.0 preprocessing data, Keras as as model, Tensorflow multi GPU running

From tensorflow 2.0, I started to cooperate with keras in all aspects, including model building and model training, but tf.keras, including model building, is more encouraged. With your company's project, I will use tensorflow for data preprocessing. There is no image generator of keras here, because on ...

Posted by Jaguar on Fri, 17 Jan 2020 03:39:10 -0800

Log4j2 configuration and customization

The new requirements need to make some customized things on log4j, so the log4j2 is supplemented To configure Let's look at the traditional configuration of log4j2 <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <properties> <property name="log_path"&gt ...

Posted by fluteflute on Fri, 17 Jan 2020 03:18:16 -0800

Redis 5 - new cluster installation mode - redis cli - Cluster Create

outline For the principle of cluster, please refer to Redis design and Implementation - working principle of cluster , I won't go into details here. I introduced how to use redis trib toolset to install cluster a long time ago How to build and use Redis cluster In the past two days, I read the official documents and found a new way of installa ...

Posted by Dillinger on Fri, 17 Jan 2020 03:15:30 -0800

Record a detailed installation of kubernetes and istio

Written in front First, let's talk about my machine configuration, the hot naked machine. There are three configurations as follows 10.20.1.103 4C 8G disk 50G node4 master centos7 10.20.1.104 4C 8G disk 50G node5 node centos7 10.20.1.105 4C 8G disk 50G node6 node centos7 My installation method is ba ...

Posted by blaster_master on Fri, 17 Jan 2020 02:09:07 -0800

Flink of big data learning

Catalog   1: Introduction 2: Why Flink 3: What industries need 4: Features of Flink 5: The difference with sparkStreaming 6: Preliminary development 7: Flink configuration description Eight: Environment 9: Running components 1: Introduction Flink is a framework and distributed com ...

Posted by stodge on Fri, 17 Jan 2020 01:18:24 -0800

On the soul of Docker

1. Operation of docker common commands docker pull image docker run creates a container based on a certain image -d. background operation --Name specifies the name of the container to create -p map the port of the container to the port of the host docker exec -it enters a container docker rmi de ...

Posted by rklapwijk on Fri, 17 Jan 2020 01:01:40 -0800

C + + design pattern observer pattern

Observer mode In GOF's "design pattern: the foundation of reusable object-oriented software", the observer pattern is said as follows: define a one to many dependency between objects. When the state of an object changes, all objects that depend on it are notified and automatically updated. ...

Posted by mrMarcus on Fri, 17 Jan 2020 01:00:43 -0800

spring data jpa many to many relationship reports a missed entity passed to persist error

Recently, when spring data jpa is used to maintain many to many relationships between tables, a strange problem arises. When a new object is put into the entity class to maintain many to many relationship set, and then saved with jpa, the following exception will appear. org.springframework.dao.InvalidDataAccessApiUsageException: detached enti ...

Posted by Shadow Wolf on Fri, 17 Jan 2020 00:58:31 -0800