Technology dry goods sharing | spring cloud gateway full link implementation analysis

1. background With the popularity of microservice architecture, services are divided according to different dimensions. A request often involves multiple services. And many services may be distributed in thousands of servers, across multiple different data centers. In order to locate and solve the fault quickly and analyze the application perf ...

Posted by MentalMonkey on Mon, 02 Mar 2020 10:40:46 +0100

How CountDownLatch works and use cases

Definition: a multi-functional synchronization tool that allows one or more threads to wait until a set of operations performed in other threads are completed. Literally translates to "countdown latch.". Function: initialize CountDownLatch with the given count. Because of the call to the c ...

Posted by ruttiger on Fri, 28 Feb 2020 12:55:26 +0100

Python crawler framework scratch getting started the first crawler: using xpath to crawl the start Chinese Web

1, Demand analysis To climb the 24-hour hot list of novels on the start of Chinanet: https://www.qidian.com/rank/hotsales?style=1 As the first crawler, we only crawl the first page of each novel's name, author, type, and whether it is serialized. 2, Create project Open the command line, switch to th ...

Posted by msing on Thu, 20 Feb 2020 07:20:41 +0100

[Camera]Android:Camera2/HAL3 Framework Analysis

This article was reproduced from the sheldon_blogs blog at https://www.cnblogs.com/blogs-of-lxl/p/10651611.html This article is for study and research purposes only. Please attach the original author's name and web address if you want to reproduce it 1. Treble mechanism on Android O In Android O, w ...

Posted by ixos on Sun, 16 Feb 2020 03:06:59 +0100

Flatten the surface in Python [Repeat]

This question is already answered here: How do I make a flat list from a list? 45 answers Is there an easy way to understand lists to flatten lists of iterative objects, otherwise, if you don't think it's the best way to flatten such shallows, balance performance and readability? I tried to flatten such lists by understanding ...

Posted by johnny44 on Sun, 16 Feb 2020 02:51:22 +0100

Glide source code analysis

Article directory .into(*) 1,Target 2,Request 3,track() 3.1 life cycle 3.2 requestTracker.runRequest(Request) 4,DecodeJob.run() 5,ModelLoader 6,HttpUrlFetcher 7, cache 8. Load picture summary Final personal summary .into(*) This method is very complex, you have to look at the source code sev ...

Posted by brenda on Tue, 04 Feb 2020 11:04:54 +0100

android zxing parsing QR code pictures and generating QR code pictures

About generating QR code pictures: Using zxing package to generate QR code under Android The QRCodeUtil provided in is everything. Very convenient. About parsing the QR code picture, get the content: public Result parseInfoFromBitmap(Bitmap bitmap) { int[] pixels = new int[bitmap.getWidth() * bitmap.getHeight()]; bitm ...

Posted by zackat on Fri, 31 Jan 2020 14:44:30 +0100

[java] RPC and RMI framework

Catalog Summary RMI Framework register MethodFactory MethodDefinition ProxyAnntotation Server RPCServer ServerExecutor ArgumentMaker configuration file Client ClientProxy ClientDialog RPCClient Load Balancing Interface summary Summary RPC (Remote Procedure Call Protocol) A remote proced ...

Posted by xyzleft on Tue, 28 Jan 2020 07:32:42 +0100

The use of boost log Library

There is a log library for developers to use in boost, but the efficiency is not the highest: Add the header file "include < boost / log / trial. HPP > to import the log Library The log Library in boost has the following six levels: BOOST_LOG_TRIVIAL(trace) << "A trace severity message" ...

Posted by phpyoungdeveloper on Mon, 27 Jan 2020 15:23:30 +0100

2019 interesting program design competition for freshmen of Xiangtan University (recurrence competition) (review and supplement)

A 15 and 20 Portal Simulation direct up #include<bits/stdc++.h> using namespace std; int main() { int t; scanf("%d",&t); while(t--) { int a1,b1,c1; scanf("%d%d%d",&a1,&b1,&c1); int a2,b2,c2; scanf("%d%d%d",&a2,&b2,&c2); ...

Posted by Spartan 117 on Tue, 21 Jan 2020 14:24:27 +0100