JWT Overview and Code Implementation

First, what is JSON Web Token? JSON Web Token (JWT) is an open standard (RFC7519), which defines a compact and independent way to safely transmit information as JSON objects between parties. This information can be verified and trusted by digital signatures. JWT can sign using secret (using HMAC algorithm) or public/private key pai ...

Posted on Thu, 25 Apr 2019 13:15:34 -0700 by scheda

Face Recognition and Speech Synthesis Based on Baidu AI Open Platform

Face Recognition and Speech Synthesis Based on Baidu AI Topic needs (1) Face Recognition Upload people's photos on the Web interface, use Java technology to receive pictures in the background, then decode the pictures, call the cloud platform interface to recognize face features, receive the information of age, gender, color returned by the pla ...

Posted on Wed, 24 Apr 2019 17:06:35 -0700 by angryjohnny

Summary of Axios Crawling Pit

1.  axios sends a post request and the back end does not receive the parameters axios will help us convert request and response data and automatically convert JSON data, that is, our Content-Type becomes application/json;charset=utf-8 then, because our parameters are JSON objects, axios helps us do a stringify process.   ...

Posted on Wed, 24 Apr 2019 13:42:34 -0700 by gat

How to crawl the web site with the same page turning url! ___________ Can't I climb without you changing?

I had planned to crawl a photo resource website, but when I turned the page, I found that its url had not changed, so I could not simply access other pages through request.get(). According to the search data, we know that these websites are implemented by ajax dynamic loading technology. That is, a part of the page can be updat ...

Posted on Tue, 23 Apr 2019 23:03:34 -0700 by crackfox

How does Ajax ensure that the request interface data meets expectations? How to weigh?

First, describe two scenarios: Quick click on Page Number 1.2.3.4.5.... Assuming that the network is not good or the interface speed is not good, there may be multiple pending requests. And we can't control the order of return. If the user finally clicks on Page 5, the last interface to return is Page 3. Now, although the page number is 5, the ...

Posted on Tue, 23 Apr 2019 10:06:34 -0700 by rockindano30

minipack source code parsing and extension

Pre knowledge First, maybe you need to know what packaging tools exist. Basic modularization evolution process Have some knowledge of modular bundle s Understanding some of babel's common sense Have some common sense about node Some common packaging tools The most common modular building tools today are webpack,rollup,fis,parcel, and so on. B ...

Posted on Mon, 22 Apr 2019 15:51:34 -0700 by jackiw

java calls wechat sharing

This article mainly introduces how to use java to develop the Wechat Sharing function, because the work has been developed and can be used. Below is the contact information, which can be exchanged. If you want to customize the sharing function of Wechat, first use AJAX in your own page. Let me give you a concrete example. First, write AJAX in ...

Posted on Sun, 14 Apr 2019 19:36:31 -0700 by mapunk

Summary of webpack front-end technology

install Install Webpack with npm: $ npm install webpack -g At this point, Webpack has been installed in the global environment, you can try it through the command line webpack -h. Before we use it, we can also use it. npm init Get the package.json file ready. Usually we install Webpack into project dependencies so that we can us ...

Posted on Sun, 14 Apr 2019 18:06:32 -0700 by shadow-x

Shallow and Deep Copies in JavaScript

In JavaScript, for reference type values such as Object and Array, when a reference type value is copied from one variable to another, the copy of the value is actually a pointer. Two variables point to the same heap object, changing one variable will also affect the other. There are two kinds of copies: copy quotation and copy instance, which ...

Posted on Sun, 14 Apr 2019 13:57:31 -0700 by reinmedia

Using PostSharp in. NET project and Cache Manager to implement the processing of various caching frameworks

In the previous essays, the use of PostSharp and the integration of MemoryCache are introduced. Using PostSharp in. NET Project to Realize AOP Aspect-Oriented Programming Processing>,<Use PostSharp in. NET project and MemoryCache to implement caching > There are many mature cache frameworks in the world of cache frameworks, such as Mem ...

Posted on Sat, 13 Apr 2019 20:42:32 -0700 by Lahloob