Web service deployment deep learning model - Zhihu

The purpose of this article is to introduce how to use Web services to deploy deep learning model quickly. Although TF has TFserving to deploy the model, it can't do anything for python (if you want to use it, you need to transform the torch model, which is a bit troublesome); therefore, this article introduces a method of using Web services ...

Posted by urb on Wed, 27 May 2020 07:12:58 +0200

How do I use Lock? What is the difference between Lock and synchronized?

  Lock   It's like a synchronization block, java.util.concurrent.locks.Lock Is the thread synchronization mechanism. However, locks are more flexible and complex than synchronous blocks. Because lock is an interface, you need to use one of its implementations to use lock in your application. ReentrantLock is one such implementation of ...

Posted by greedyisg00d on Wed, 27 May 2020 07:09:42 +0200

zabbix alarm information pushed to kafka

Application scenario Due to the high security requirements of the company where the friend is located, zabbix's network environment cannot be connected to the Internet, so it is not possible to send the alarm directly to some instant messaging tools through zabbix, which requires sending the alarm message to some middleware and forwarding it t ...

Posted by lanas on Tue, 26 May 2020 19:11:42 +0200

BeanMap transforms objects to maps

There are many ways to convert JavaBeans and map s, such as: Through ObjectMapper, bean s are first converted to json, and then json is converted to map. However, this method is relatively cumbersome and inefficient test , it takes 12 seconds to cycle through 10000 bean s!!! Not recommended adopt Java Reflection, get the properties and ...

Posted by sysgenmedia on Sat, 23 May 2020 16:34:30 +0200

SpringCloud exception handling unified encapsulation for me to do-use

brief introduction Repeat function for me to write.There are global exception handling and return wrapping in the SpringBoot project, and the return front end is with fields such as succ, code, msg, data, and so on.Single project scenario is a good solution, when there are many micro-service modules, many cases of development are to copy the or ...

Posted by iijb on Sat, 23 May 2020 05:57:28 +0200

Smart Serverless, Easy to set up WeChat Public Number intelligent background service

Generally speaking, to add more functions to the WeChat public number, you need a server to set up the public number background service.So is there a simpler way to implement such a public number background under the Serverless architecture?Let's try it? Preliminary Setup Serverless native development First of all, of course, we must have a WeC ...

Posted by uwannadonkey on Fri, 22 May 2020 05:11:37 +0200

Flash implements HTTP token authentication HTTP token auth

Token authentication In restful design, user authentication mode usually uses json web token instead of traditional HTTP Basic authentication (incoming account password) The token authentication mode is as follows: add token to the request header Implementation in Flask Flask extension flask httpauth provides the authentication ...

Posted by hchsk on Thu, 21 May 2020 16:58:01 +0200

docker installation and use under CentOS 7

docker start stop sudo systemctl start docker.service sudo systemctl stop docker.service sudo systemctl restart docker.service sudo systemctl status docker.service sudo systemctl enable docker sudo docker ps -a ## <-- List existing images ## sudo docker stop 17dd4ab4cda2 ##<-- 17dd4ab4cda2 by container id ## sudo docker rm 17dd4ab4cda ...

Posted by Scorptique on Thu, 21 May 2020 16:38:11 +0200

1. Basic use of reflection in Golang

Golang also provides reflection mechanism, like Java, which obtains information about objects at run time and updates their internal state; Golang obtains object types, field types and values, calls struct instance methods, updates instance values, and so on. _Go Gos The two most important objects and functions related to reflection in the refl ...

Posted by mistercoffee on Tue, 19 May 2020 19:19:09 +0200

Web development, only JS can complete the development of Express query API interface

Some netizens left a message saying that they want to call the express bird API interface to realize Express query, but they don't understand the back-end development, JAVA, PHP, C and python. They asked me if I could realize express interface query, and I said what would you do, he said, I only know a little JS, I replied that it's enough. No ...

Posted by itbegary on Tue, 19 May 2020 16:19:13 +0200