WeChat public number development menu processing

I. Preface WeChat public number development (1) WeChat access certification as developer WeChat public number development (2) message processing This article will implement Get access_token according to AppID and AppSecret Custom menu (create menu, query menu, delete menu) Some tips in wechat documents: access_token must be stored with at ...

Posted by big_c147 on Fri, 17 Jan 2020 05:22:26 -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

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

Advanced properties of thread control -- Realization of functions such as mutex and lock

Content: 1. What is one-time initialization? Example 1: one time initialization verification of pthread ﹣ once function: #include"stdio.h" #include"unistd.h" #include"sys/types.h" #include"pthread.h" #include"stdlib.h" #include"string.h" pthread_once_t once = PTHREAD_ONCE_INIT;//Declare global var ...

Posted by srdva59 on Fri, 17 Jan 2020 05:01:52 -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