LocalMQ: Building RocketMQ-like high-performance message queues from scratch
This paper records the design and implementation process of message queue with persistence function which I participated in Aliyun middleware competition a month ago. It should be noted that LocalMQ draws on the core design idea of RocketMQ in Broker. The earliest source code is also based on RocketMQ source code modification. This article cove ...
Posted by Buddha443556 on Mon, 17 Jun 2019 02:06:45 +0200
hellochart's Detailed Explanation (2) Pie Charts
hellochart's Detailed Explanation (2) Pie Charts
The use of HelloChart graphics frameworks and various rendering effects were introduced before. http://blog.csdn.net/wenzhi20102321/article/details/73133718
No detailed description of various graphic designs has been given before.
This paper focuses on the design of hellochart pie chart.
E ...
Posted by idire on Mon, 17 Jun 2019 00:48:37 +0200
js Learning Summary - Getting the Specific Style Information of Elements getcss
If you want to get a specific style attribute value of an element
1. Element. style. Attribute name
We need to write the style of the element on the in-line style (it doesn't work in the style sheet)
console.log(box.style.height) ->null
In real projects, this approach is not often used because all styles cannot be written in order to get va ...
Posted by Stopofeger on Sun, 16 Jun 2019 22:34:00 +0200
[Nacos] Data Consistency
From: https://blog.csdn.net/liyanan21/article/details/89320872
Catalog
I. Raft algorithm
Part of Raft Source Code in Nacos
init()
1. Get Raft cluster nodes
NamingProxy.getServers() Gets the cluster nodes
NamingProxy.refreshSrvIfNeed() Gets node information
NamingProxy.refreshServerListFromDisk() Gets cluster node information
2. Raft ...
Posted by killerofet on Sun, 16 Jun 2019 20:35:19 +0200
Bootstrap modal pop-up box
Previous remarks
Modal pop-up box is called Modal in Bootstrap framework. This pop-up effect is visible in most Web site interactions. For example, if you click a button to pop up a box, the pop-up box may be a description of a document, or it may have button operation, or it may pop up a picture. In this paper, Bootstrap modal pop-up box is i ...
Posted by cloudy243 on Sun, 16 Jun 2019 02:58:05 +0200
Flask Series (9) - Flask-WTF
Flask-WTF
Flask-WTF is a third-party library that simplifies WTForms operations. The two main functions of the WTForms form are to verify the validity of the data submitted by the user and to render the template. Of course, there are also some other functions: CSRF protection, file upload and so on. Installing Flask-WTF also installs WTForms ...
Posted by brownka on Sun, 16 Jun 2019 01:25:21 +0200
Implementation of Android drop-down refresh framework
1. About drop-down refresh
Drop-down refresh was first invented by Loren Brichter, the founder of twitter. There is a theory that pull-down refresh is an application that can be used to arrange feeds in a chronological order from new to old. In this application scenario, users will naturally pull down to find the updated content, so pull-down ...
Posted by tony_l on Sun, 16 Jun 2019 01:15:57 +0200
On encapsulation of three main characteristics of python object
We all have TV sets in our house, from power on, browsing programs, changing stations to power off. We don't need to know the details inside the TV. We just need to press the remote control to complete the operation when we are using it. This is the encapsulation of functions.
When using Alipay to make payment, you only need to give the two-way ...
Posted by Sj0wKOoMel on Sun, 16 Jun 2019 00:06:34 +0200
What you don't know about fresco using highlights
In a recent project development, I used fresco as the image loading engine framework. Fresco is very powerful, but I encountered many pits in the development process, so I wrote an article to record the problems I encountered in order to facilitate your future use.The corresponding code in this article is github On the other hand, the code is w ...
Posted by b-real on Sat, 15 Jun 2019 20:52:52 +0200
Illumination in OpenGL
Illumination in Android OpenGLES 2.0
Translated from Android Course II: Ambient Light and Diffuse Reflective Light
1. What is light?
The world will see nothing without light, and we will not be able to perceive the world's living objects.
In the real world, light is formed by the aggregation of countless photons. It starts from a light s ...
Posted by rokkstar on Sat, 15 Jun 2019 06:34:06 +0200