Note - C build compiler from scratch - 2

Video and PR: https://github.com/terrajobst/minsk/blob/master/docs/epiride-02.md The author is Immo Landwerth (https://twitter.com/terrajob), project manager of the Microsoft. NET team.   The main content of this episode: 1. Add Binder for semantic analysis. Binder is based on SyntaxTree. Generally speaking, syntaxkind.xxx ﹣ expression = ...

Posted by OOP on Sun, 17 Nov 2019 14:24:40 -0800

Extracting Chinese information from Chinese PDF file by python3 operation

https://github.com/pdfminer/pdfminer.six Extract files after downloading Due to the processing of Chinese files, precompiling is required To work with the CJK language, do the following before running setup.py install: mkdir pdfminer\cmap   python tools\conv_cmap.py -c B5=cp950 -c UniCNS-UTF8=utf-8 pdfminer\cmap Adobe- ...

Posted by smoked1 on Sun, 17 Nov 2019 12:57:28 -0800

4. Permission interception control \ AccessToken jwt - API nodejs + Express + MySQL in the back end of Blog

Authority control Business requirements: View user list interface (only available to administrators), update user information interface (only available to current corresponding users) At this time, middleware needs to be added to realize permission control: At this time, we need to learn the following: AccessToken jwt AccessToken jwt Learn bef ...

Posted by damianraine on Sun, 17 Nov 2019 11:42:03 -0800

K8S monitoring scheme

There are many combinations to monitor kubernetes cluster monitoring scheme, but after version 1.12, we usually choose Prometheus operator + grafana for monitoring. Let's deploy monitoring 1 download items git clone https://github.com/coreos/kube-prometheus.git Because this year, the Prometheus operator project moved to coreos / Kube Prome ...

Posted by faheemhameed on Sun, 17 Nov 2019 09:53:47 -0800

java version of spring cloud+spring boot social e-commerce platform -- Spring cloud gateway current limiting

Generally, there are two ways to realize current limiting, token bucket and leaky bucket. Gold bucket is the number of initialization tokens (containers), which can be passed by taking the token inside. No token can't report an error. You can set the speed and maximum number of tokens to be added to the container The leaky bucket is to put a re ...

Posted by cloudy243 on Fri, 15 Nov 2019 09:22:49 -0800

The use of golang rabbitmq

golang can use the library github.com/streadway/amqp to operate rabbitmq install go get github.com/streadway/amqp Connect conn, err := amqp.Dial(amqp://guest:guest@172.17.84.205:5672/) Establishing channels ch, err := conn.Channel() Statement Queue q, err := ch.QueueDeclare( "testqueue", //Queue name true, //dura ...

Posted by black.horizons on Fri, 15 Nov 2019 06:12:49 -0800

Using LiveData to implement EventBus

Introduction This article is a study note written after learning the article of the big guy and doing it yourself. The article of the big guy is well written. I can't describe it clearly by myself, so many parts of this article directly quote the article of the big guy. Source code: https://github.com/LinYaoTian... Design sketch: Tip: it's best ...

Posted by wgh on Fri, 15 Nov 2019 02:14:53 -0800

Design cache scheme based on Repository

Compared with using a middleware to "brutally" cache interface response and improve interface query speed, Repository cache can better control cache granularity and update time Lu Xun. Articles are updated in my Know about columns and Blog scene Tester-A: why is the getInfo interface so slow? 5+s? QPS is only 10!!!! RD-B: This is bec ...

Posted by snapbackz on Thu, 14 Nov 2019 22:10:25 -0800

Gin framework - custom error handling

SummaryMany readers ask me for the Demo source code of the Gin framework Practice Series in the background. Let me explain again here. I updated the source code to GitHub at https://github.com/xinliangnote/GoStarting today's article, why do you want to customize error handling? What is the default error handling method?Well, let's talk about de ...

Posted by my_mind on Thu, 14 Nov 2019 06:45:23 -0800

Spring Boot configuration - Consul configuration center

▶ Spring Boot dependency and configuration Maven dependence <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Greenwich.RE ...

Posted by bbmak on Wed, 13 Nov 2019 10:31:26 -0800