dubbo source code analysis Directory

First, let's take a look at the implementation classes of directory interface. There are two main implementation classes: StaticDirectory and RegistryDirectory. This paper mainly analyzes RegistryDirectory. StaticDirectoryFrom the Static keywords in the StaticDirectory, we can see that this will not change dynamically. From the figure below, hi ...

Added by kingsol on Sun, 08 Dec 2019 22:08:06 +0200

Lock of jdk source code parsing (juc) - lock ReetrentLock in java

Lock in jdk source code analysis (juc) - lock ReetrentLock in java Orange dead blog Please add this prompt for forwarding Lock of jdk source code parsing (juc) - lock ReetrentLock in java Lock interface Before the appearance of Lock interface, java realized the Lock function through synchronized keyword. After javase5, the Lock interface was ad ...

Added by beta0x64 on Sun, 08 Dec 2019 19:02:10 +0200

es6 basic 0x009: template string

0x000 overview After the template string comes out, which good argument of single quotation mark or double quotation mark can exit the stage of history? The template string is the best! 0x001 syntax Single line text `string text` Multiline text `string text line 1 string text line 2` Inline expression `string text ${expression} string te ...

Added by yorktown on Sun, 08 Dec 2019 13:54:27 +0200

Django foundation Form component module

form component properties Data validation function Generate HTML code Reference form component module from django import forms #Introducing forms module from django.forms import fields data validation Validation type Data validation type Data validation method String validation Fields.charfield (validation parameter ...

Added by Transwarp-Tim on Sun, 08 Dec 2019 03:46:48 +0200

Sorting algorithm in PHP

Premise: bubble sort, fast sort, select sort and insert sort are used to sort the values in the following array from small to large.   $arr(1,43,54,62,21,66,32,78,36,76,39); 1. Bubble sorting Train of thought analysis: in a group of numbers to be sorted, compare and adjust the two adjacent numbers from the front to the ...

Added by steveangelis on Sun, 08 Dec 2019 03:07:53 +0200

vue-cli Project Trench

mock data in vue-cli project Install http-server. Run with the project. The src path creates a mock folder that configures the required json data. Root path creates vue.config.js setting proxy condition. Enter mock.Start http-server. # yarn global add http-server # touch vue.config.js # mkdir src/mock # touch src/mock/list.json # cd mock # h ...

Added by jamesl on Sat, 07 Dec 2019 22:05:28 +0200

React writes the input component to share onChange

Before, there was less input on the written page, so no single component was proposed. Today, I studied the input component, but shared an onChange problem card for a while. After checking, I found several better ways to share: Method 1 Input component let Input = React.createClass({ getInitialState: function() { return { } ...

Added by sws on Sat, 07 Dec 2019 17:55:12 +0200

Java web learning journey 4-Cookie

Cookie understanding Each web application will send its own set of cookies to each browser. The backend can operate these sets of cookies. Cookies between applications are independent (set cookies, which can be shared between applications) Reading, writing and deleting cookies package com.my.test.web; import javax.servlet.S ...

Added by thyscorpion on Sat, 07 Dec 2019 07:14:34 +0200

Personal rank algorithm based on random walk

The personal rank algorithm based on random walk evolved from Google's pageRank algorithm, which uses less, so to speak, less. As for the pageRank algorithm, I post a blog that I think is well written here pageRank algorithm reference 1. Introduction to personal rank algorithm: The data set is randomly divided into training set ...

Added by elementaluk on Fri, 06 Dec 2019 05:00:51 +0200

Insertion sorting of data structure

Insertion sorting of data structure Insert some code for sorting Insert sort includes direct insert sort, half insert sort, 2-way insert sort and table sort. Insert some code for sorting Insert sort includes direct insert sort, half insert sort, 2-way insert sort and table sort. The idea of direct insertion sorting i ...

Added by fireant on Wed, 04 Dec 2019 09:12:15 +0200