. net core webapi jwt more refreshing authentication
Original text: . net core webapi jwt more refreshing authentication
My way is not mainstream, but I can control it more flexibly. My favorite friend may as well take a moment to learn
jwt authentication is divided into two parts. The first part is encryption and decryption. The second part is flexible application to middleware. My processing m ...
Posted by syn1234 on Mon, 04 Nov 2019 13:41:55 -0800
Connect Alibaba cloud Internet of things platform based on open source Net MQTT Client
Summary
The example of connecting to Alibaba cloud Internet of things platform based on open-source MQTT Client Java and Python language is introduced in the previous section. Here, M2Mqtt Client C is used for testing, combining with the up and down of custom Topic demonstration message.
Operation steps
1, installation M2Mqtt
2,Code s ...
Posted by quiphics on Mon, 04 Nov 2019 07:51:50 -0800
Basic operation of SQL database: write excel data to or read from the database by using python
First, introduce some basic operations of SQL database:
1 create 2 delete 3 write 4 update (modify) 5 condition selection
With the above basic operations, you can establish and store a simple database.
Release the code called by python: here is calling dos to operate the database, which is not as simple as the following
# -*- coding: u ...
Posted by mwgi2005 on Sun, 03 Nov 2019 09:47:29 -0800
MapReduce in Python and running in Hadoop environment
Catalog
Zero, code Xian inspirational
I. running in Linux
II. Running in Hadoop environment
Zero, code Xian inspirational
I. running in Linux
First, create the following directory in Linux, do not put anything in it, and then enter the directory
/home/hadoopuser/mydoc/py
Then create a ddd.txt file in it
Write the foll ...
Posted by Robban on Sun, 03 Nov 2019 06:46:55 -0800
Crawling information of graduate tutors of China University of Metrology
I learned a lot when I climbed this website and got a better understanding of the basic knowledge of python.
First, the usage of. join. It's better to handle the crawled text.
Then, the following:: usage of xpath is used. It takes all peers behind the node, which is very easy to use.
Then there's a puzz ...
Posted by Obsession on Sat, 02 Nov 2019 19:00:52 -0700
Dex file resolution
Dex file structure
File header
typedef struct {
u1 magic[MAGIC_LENGTH]; /* includes version number */
u4 checksum; /* adler32 Verify remaining length files */
u1 signature[kSHA1DigestLen]; /* SHA-1 Document signature */
u4 fileSize; /* length of entire file */
u4 headerSize; /* offs ...
Posted by russellbcv on Sat, 02 Nov 2019 11:37:07 -0700
Three ways to read the properties file in the resources directory
In the development process, it is often necessary to read the configuration files under the resources directory. Most of them are automatically read by the framework. If we read them manually, how can we read them?
Here are three ways to read the properties file that I summarized:
Read configuration file based on InputStreamGet it through the P ...
Posted by nariman on Fri, 01 Nov 2019 14:46:15 -0700
js password generator
Password Generato
Recently, referring to some password generators on the Internet, a similar password generator has been imitated. The password is mainly composed of "uppercase", "lowercase", "number" and "symbol". The specific style is as follows:
development process
This paper mainly records the js de ...
Posted by itisme on Fri, 01 Nov 2019 08:36:17 -0700
Scrapy reptile battle - crawling body color permutation 5 historical data
Website address: http://www.17500.cn/p5/all.php
1. Create a new crawler project
scrapy startproject pfive
2. Create a new crawler in spiders directory
scrapy genspider pfive_spider www.17500.cn
3. Modify the entry url in the crawler file
start_urls = ['http://www.17500.cn/p5/all.php']
4. Add crawling entry
class PfiveItem ...
Posted by gid on Fri, 01 Nov 2019 04:32:47 -0700
mybatis starter 2
Query users by id
sql used:
SELECT * FROM `user` WHERE id = 1
Add the select tag in user.xml and write sql:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- namespace: Namespace, for isolation sql, ...
Posted by chanw1 on Fri, 01 Nov 2019 03:04:52 -0700