Design pattern [3.2] - how fragrant is JDK dynamic agent source code analysis?
The previous article mentioned the agent mode: http://aphysia.cn/archives/dy...So in retrospect, how did the agent model come from? Suppose you have a requirement:Print the log before and after all controller classes in the system call methods.Suppose the original code:public class Person{
public void method(){
// Represent your bus ...
Posted by shadysaiyan on Sat, 06 Nov 2021 11:29:09 -0700
GitOps Delivery Based on KubeVela
Author Dong Tianxin (Fog)
Review & proofreading: streams, beads
Edit & Typography: Wen Yan
KubeVela is a simple, easy-to-use, highly scalable cloud native application management and delivery platform that allows developers to quickly and easily define and deliver modern micro-service applications on Kubernetes without having to know any ...
Posted by WolfRage on Sat, 06 Nov 2021 11:27:21 -0700
Tiimmi's learning log 2 11.3-4
Tiimmi's learning log 2
Two days of deduction, one question a day
2021.11.3 punch in
Today, I spent most of my time studying QQ robot. I don't have time to see many things. I don't do much today.
Li Kou daily question 2021.11.3
Connected to rainwater II [difficult]
Give you a matrix of m x n, where the values are non negative integers ...
Posted by adeenutza on Sat, 06 Nov 2021 11:24:50 -0700
2021-11-06 hadoop security mode
1 what is safe mode
Security mode is a special state of HDFS. In this state, the file system only accepts data read requests, but does not accept change requests such as deletion and modification.
When the namenode master node is started, HDFS first enters the safe mode. When the datanode is started, it will report the available block and oth ...
Posted by Thumper on Sat, 06 Nov 2021 11:06:32 -0700
[PostgreSQL] the idea and scheme to solve the problem that setting fetchsize in PostgreSQL can not flow query
preface
Recently, a customer of the company used PostgreSql to store data. In the export function, it was found that in the case of big data, the memory will grow until it overflows. Because the fetchSize is set for stream query in the export function, there will be no memory overflow. Then the investigation found that all the data were obtain ...
Posted by kamurj on Sat, 06 Nov 2021 10:57:09 -0700
Manually tear the minimum heap (rebuild heap + insert data + delete data code explanation + example)
Recommended blog and video explanation
Heap sort (heap rebuild + insert + delete detailed explanation) UP Master: bald girl Wang pushed
Forward citation
I didn't get up until 10 o'clock today. I really don't know why I got up late. Of course, it's also the weekend, but I still have to do things when I got up so late. In the da ...
Posted by pagie on Sat, 06 Nov 2021 10:44:39 -0700
Compilation and debugging of assembly source program for more than two logic segments of assembly course experiment 2
1, Experimental purpose
Understand and master the assembly source program of more than 8086 logic segments
Understand and skillfully apply flexible addressing methods
Through the use of assembly instruction loop, understand the essence of loop in programming language and master its correct use in nested loop
Master the method of debugging 8086 ...
Posted by lilywong on Sat, 06 Nov 2021 10:39:53 -0700
The decision tree picks the watermelon
1, ID3 algorithm
1. Ladle
import numpy as np
import pandas as pd
import sklearn.tree as st
import math
import matplotlib
import os
import matplotlib.pyplot as plt
2. Read data
data = pd.read_csv('C:/Watermelon dataset.csv',header=None)
data
3. Coding
entropy
def calcEntropy(dataSet):
mD = len(dataSet)
dataLabelList = [x[-1] f ...
Posted by CWebguy on Sat, 06 Nov 2021 10:26:57 -0700
C# 8.0 and. NET Core 3.0 advanced programming sharing Note 6: Part III unit test
Fixing bug s in your code is expensive. The earlier errors are found in the development process, the lower the repair cost.
Unit testing is a good way to find bugs early in development. Some developers even follow the principle that programmers should create unit tests before writing code, which becomes text driven development (TDD).
Microsoft ...
Posted by Sayian on Sat, 06 Nov 2021 10:24:32 -0700
Etcd v3 backup and recovery
ETCD introduction
ETCD It is a distributed and consistent KV storage system for shared configuration and service discovery. Etcd is an open source project initiated by CoreOS, and the license agreement is Apache.
ETCD usage scenario
ETCD has many usage scenarios, including but not limited to:
configuration managementService registere ...
Posted by crosbystillsnas on Sat, 06 Nov 2021 10:12:25 -0700