Handwritten digit recognition: obtain recognition probability according to 28 * 28 pictures on the trained data (based on Tensorflow,Python)

Pass: Handwritten digit recognition -- a detailed explanation of the official case of convolutional neural network model (based on Tensorflow,Python) Handwritten digit recognition -- a detailed explanation of the official case of Softmax regression model (based on Tensorflow,Python) After running the programFour documents, again by handImage ju ...

Added by Operandi on Tue, 10 Dec 2019 08:26:39 +0200

Elegant configuration of interceptors in Spring Boot

In fact, the configuration mode of spring boot interceptor is similar to that of spring MVC. Only a few small changes need to be noticed. Here are two kinds of commonly used interceptors: I. Interceptor Based on URL: public class LoginInterceptor extends HandlerInterceptorAdapter{ /** * Call before request processing (before Controll ...

Added by garry on Mon, 09 Dec 2019 01:59:42 +0200

Servlet Filter

Characteristic 1) Filter is dependent on Servlet container, which is a part of Servlet specification. Three interface classes are defined in Servlet API: Filter, filterchain and filterconfig. 2) the basic function is to intercept the process of calling Servlet, so as to realize some special functions before and after the response processing of ...

Added by chrispols on Sun, 08 Dec 2019 21:27:23 +0200

spring default boot location and contextConfigLocation settings for source resolution

Looking at the spring source these days, which covers where spring starts, let's see where spring actually started loading.This article uses spring3.0M3 The first spring load will go directly to the web.xml file with the help of a listener, ContextLoaderListener <listener> <listener-class>org.springframework.web.conte ...

Added by qazwsx on Sun, 08 Dec 2019 19:51:54 +0200

SSM integrates activeMQ/activeMQ configuration

I. introduce dependency <!-- xbean as<amq:connectionFactory /> -->     <dependency>         <groupId>org.apache.xbean</groupId>         <artifactId>xbean-spring</artifactId>         <version>3.16</version>     </dependency>     <dependency>         <groupId>org. ...

Added by bad76 on Fri, 06 Dec 2019 01:45:27 +0200

Tensorflow multithreaded input data processing framework -- queues and multithreading

Reference books TensorFlow: a practical Google deep learning framework (version 2) For queues, the operations to modify the queue status are Enqueue, EnqueueMany, and Dequeue. The following program shows how to use these functions to operate a queue. #!/usr/bin/env python # -*- coding: UTF-8 -*- # coding=utf-8 """ @author: Li Tian @contact ...

Added by john_nyc on Thu, 05 Dec 2019 07:04:18 +0200

Using spring security to deal with CSRF attacks

Status of CSRF vulnerabilities CSRF (Cross Site Request Forgery) cross site request forgery, also known as One Click Attack or Session Riding, usually abbreviated as CSRF or XSRF, is a malicious use of the website. Although it sounds like cross site scripting (XSS), it is very different from XSS. XSS utilizes trusted users within the site, whil ...

Added by nac20 on Thu, 05 Dec 2019 06:47:28 +0200

Java implementation login verification code

Login verification code Servlet /* Get the data from the request and change the value of the session to String type Destroy to prevent the verification code from not refreshing after returning. The re verification is successful Determine whether the verification code is the same (ignore case) Same: create user object to call the method of serv ...

Added by Angus on Thu, 05 Dec 2019 06:00:50 +0200

Add user operation in mongodb

mongodb add user This tutorial introduces some operations of adding users in mongodb What are the users in mongodb In mongodb, users are used to manage the permissions of each database. In order to control the permissions of the database, users need to be added, assigned permissions to the specified users, and specific users need to do specific ...

Added by PW on Wed, 04 Dec 2019 08:15:07 +0200

Elk -- grok regular filtering Linux system login log

Filter Linux system login log / var/log/secure Landing successfully Jan 6 17:11:47 localhost sshd[3324]: Received disconnect from 172.16.0.13: 11: disconnected by user Jan 6 17:11:47 localhost sshd[3324]: pam_unix(sshd:session): session closed for user root Jan 6 17:11:48 localhost sshd[3358]: Address 172.16.0.13 maps to localhost, but this ...

Added by sheephat on Sun, 01 Dec 2019 22:06:30 +0200