VSCode configures C + + development environment

Catalog Install VSCode application Install related plug-ins Chinese plug-in C + + editor plug in Write profile tasks.json launch.json c_cpp_properties.json Step 1: install VSCode application Open up VSCode official website , download the corresponding installation package and install by default (note here: the installation path can ...

Posted by apw on Wed, 25 Mar 2020 10:52:38 -0700

Use of extreme validation (nodejs deployment)

Add some verification codes to the page to avoid malicious external damage.The following is a summary of my work validating deployments with nodejs pairs. 1. Verify ideas with nodejs deployment poles: Installation dependencies: request, express, body-parser, supervisor, express-session. Install the SDK using npm install gt3 ...

Posted by djdog.us on Tue, 24 Mar 2020 09:35:48 -0700

Python switch version artifact pyenv

Because some syntax uses of Python 2.x and 3.x are different, you will encounter the need to switch versions when writing and using Python programs. The following describes pyenv, a tool for switching Python versions. Install pyenv Take mac as an example. You need to install brew first. If you don't, you need to install brew and pyenv first. No ...

Posted by DarkJamie on Tue, 24 Mar 2020 00:08:07 -0700

How should JWT be used?

I. overview JWT, which is called JSON Web Token in full, is an open-source standard protocol. It defines a JSON based, lightweight and secure data transmission method. Two, details Each JWT is composed of three parts: Header, Payload and signature. At the same time, the JWT is spliced with dots in the form of: Header.Payload.Signature Header Th ...

Posted by Dale_G on Mon, 23 Mar 2020 20:35:25 -0700

[NLP] Text Classification and Generalization (rnn, cnn, word2vec, TfidfVectorizer)

1. Emotional Analysis of Chinese Comments (keras+rnn) 1.1 Required Libraries 1.2 Pre-training Word Vector 1.3 Word Vector Model 1.4 Training corpus (dataset) 1.5 participle and tokenize 1.6 Index Length Standardization 1.7 Reverse tokenize 1.8 Building an embedding matrix 1.9 padding and truncatin ...

Posted by d3vilr3d on Sun, 22 Mar 2020 19:07:16 -0700

Interceptors for Spring MVC

Original link: http://www.yiidian.com/springmvc/interceptor.html Interceptors in Spring MVC are similar to filters in Servlet s, which are used to intercept user requests and process them accordingly.For example, the Interceptor can verify permissions, log requests, determine whether users are logged in, and so on. To use interceptors in Spring ...

Posted by cordex on Sat, 21 Mar 2020 17:44:14 -0700

Tensorflow flag design a digital recognition SPA

Effect   The web end loads the trained model, the simple model used this time, and then predicts the number and returns the result according to the image data transmitted from the front end The saved png image is converted to base64 encoding and returned. In this way, the src with img tag can display the image directly in the front end, re ...

Posted by cheeks2k on Fri, 20 Mar 2020 10:36:12 -0700

Regular exercises

Regular common syntax Single character matching Boundary matching Grouping Exercises 1 Exercise two Regular common syntax Single character matching . matches any character except the newline character. [... ]For matching a character set, such as [A-Za-z0-9] for matching all letters and numbers. [^... ]Indicat ...

Posted by 9902468 on Fri, 20 Mar 2020 10:07:55 -0700

Design Mode - Creative Mode Details

In software engineering, Creative mode is a design mode that deals with object creation, trying to create objects in an appropriate way according to the actual situation.Basic object creation can lead to design problems or increase design complexity.Creative mode solves problems by controlling the creation of objects in some way. Common creati ...

Posted by harnacks on Thu, 19 Mar 2020 23:59:05 -0700

[Spring Security + OAuth2 + JWT introduction to actual combat] 22. Transformation of social login

brief introduction SDK is generally provided for APP social login. There are two situations for SDK First kind SDK provider returns openId and logs in to our interface system with openId to apply for token Create the OpenIdAuthenticationToken class: /** * */ package com.spring.security.social.openid; import java.util.Collection ...

Posted by pinhead on Thu, 19 Mar 2020 11:07:48 -0700