Understand how to use JWT and you will be able to implement it with PHP

To implement JWT certification with php, let's first understand what JWT is.What is JWTJWT(json web token) is an open JSON-based standard implemented to pass declarations between network applications.JWT's declarations are typically used to transfer authenticated user identity information between identity providers and service providers in orde ...

Posted by _rhod on Fri, 22 Nov 2019 21:45:57 -0800

GlusterFS hyperfusion deployment with 010.Kubernetes permanent storage

1. Pre-preparation 1.1 Basic Knowledge In Kubernetes, using the GlusterFS file system, the steps are usually: Create brick-->Create volume-->Create PV-->Create PVC-->Pod Mount PVC If you want to create multiple PV s, you need to repeat the execution manually, and glusterfs can be managed through Heketi. Heketi is used to manage ...

Posted by mirana on Fri, 22 Nov 2019 21:41:10 -0800

props, state and life cycle of react

this.setState is called asynchronously, so there is a callback function. After setSate finishes processing, it will go through the callback function The shouldComponentUpdate method is called when the props or state state changes Component will update: called when a component takes over a new props or state, but the render has n ...

Posted by agoe on Fri, 22 Nov 2019 12:51:18 -0800

Overflow error: String longer than 2147483647 bytes problem

problem Sketch When using python requests to upload files, theOverflow error: String longer than 2147483647 bytes error detail Problem code data = {} with open("bigfile", "rb") as f: r = requests.post(PUBLISH_URL, data=data, files={"xxx": f}) traceback Traceback (most recent call last): File "test.py", line 52, in <module&g ...

Posted by Rupo on Fri, 22 Nov 2019 12:20:09 -0800

bitcoin full node deployment

Server configuration: Operating system: ubuntu 16.04 CPU: 4U Memory: 16G ා generally speaking, 4G is enough, but if you want to check the history, you need to load the complete transaction index table tindex, which results in 8G + memory Hard disk: 500G bitcoin has been running since 2008, with a large amount of data accumulated, and ...

Posted by Rianna on Fri, 22 Nov 2019 11:35:07 -0800

Spring MVC custom parameter resolver

I. briefly Have you ever thought about how annotations like @ RequestParam and @ RequestBody work? Why can form forms and application/json parameters be directly encapsulated in Bean objects? This is about HandlerMethodArgumentResolver - Method Parameter resolver, which has two methods: public interface HandlerMethodArgumentResolver { bool ...

Posted by watts on Fri, 22 Nov 2019 09:09:46 -0800

Parameters for JSON.stringify and JSON.parse

JSON.stringify extra parameters First, create an object to be converted const book = { "title": "lalalala", "authors": [ "lily", "lmy" ], "edition": 3, "year": 2011 }; Second parameter Array time const jsonText = JSON.stringify(book, ['title', 'year']); // Print out // {"title":"lalalala","year":2011} When ...

Posted by TonyIOD on Fri, 22 Nov 2019 08:12:11 -0800

Native js handles the file stream returned in the background

Recently, there is a need to download a QR code when doing a project. When I understand it, I think it's the same as the normal download. As a result, the big brother in the background returns the file stream format. It's said that this is because the background is a distributed deployment and can't persist storage. There's no way but the front ...

Posted by Toboe on Thu, 21 Nov 2019 08:15:41 -0800

Record Ocelot + SignalR multi server test

Preface There are two projects, one gateway and one SignalR Paste code 1,Gatway 1. Reference to Ocelot 2. Add a little code Startup.cs 3. Simple configuration of ocelot ocelot.json { "ReRoutes": [ { "DownstreamPathTemplate": "/{catchAll}", //Downstream path "DownstreamScheme": "ws", //https / / downstream protocol " ...

Posted by Draicone on Thu, 21 Nov 2019 06:43:25 -0800

Kafka specifies the partition rule of the message

Note: the number of partitions num.partitions is specified in the configuration file server.properties. This refers to the sum of the number of partitions of multiple single topic s. If there are multiple brokers, the partition may be distributed on different nodes, then the total number of all partitions of multiple brokers is ...

Posted by rejoice on Wed, 20 Nov 2019 13:22:10 -0800