[C + +] object oriented -- class and object
***
Class definitions and class members
Define a class:
class Box
{
private:
double length; // Length of a box
double breadth; // Breadth of a box
double height; // Height of a box
public:
double getArea();
};
The defined class has the following properties: class name, class members (including da ...
Posted by Joel.DNSVault on Sat, 19 Feb 2022 17:35:19 +0100
Go Web programming practice -- function
preface
This blog post mainly introduces the function definition of Go language and its usage.
Declaring and using functions
In Go language, the format of function declaration is as follows:
func function_name([parameter list])[return_types]{
//Function body
}
When you use the compiler for development, such as GoLand, you will find t ...
Posted by paxman356 on Sat, 19 Feb 2022 15:02:26 +0100
Django realizes paging function
In this section, we will introduce the advanced modules provided by Django. Through the study of advanced modules, you will feel that Django is so easy to use, but at the same time it is very complex. Therefore, when learning such a heavy framework as Django, we must remember to be impatient and dare to explore new knowledge, In addition to fol ...
Posted by Motionographer on Sat, 19 Feb 2022 14:21:08 +0100
Java Basics - other new features of Java 8
1, Lambda expression
1. Examples of Lambda expressions
@Test
public void test1(){
Runnable r1 = new Runnable() {
@Override
public void run() {
System.out.println("I Love Beijing Tiananmen ");
}
};
r1.run();
System.out.println("********************** ...
Posted by BenS on Sat, 19 Feb 2022 13:10:46 +0100
Exploration of JNDI vulnerability utilization
Recently, I have learned some JNDI vulnerability utilization chains that master is looking for, and I have benefited a lot. I also try to do some mining on JNDI vulnerability utilization. At present, I think of two questions in the process of JNDI utilization.
It is inconvenient to test that every JNDI Bypass chain needs to change the URL manu ...
Posted by eyaly on Sat, 19 Feb 2022 12:56:24 +0100
spring basic usage
applicationContext basic configuration
IOC configuration
1. Basic configuration
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/ ...
Posted by Pavel_Nedved on Sat, 19 Feb 2022 12:49:54 +0100
Netty source code analysis NioSocketChannel source code day reading
Opening words
I hope you can learn this article with questions. Here I put forward two questions for you. The first Netty is where a new connection is detected. How does the second new connection register with the nioeventloop thread.
netty new connection access processing logic:
To detect new connection access, poll the accept event thr ...
Posted by monkey72 on Fri, 18 Feb 2022 22:12:27 +0100
Java concurrency tool J.U.C1
Lock (Synchronized)
Before the emergence of Lock interface, the concurrent safe processing of multithreading in Java applications can only be solved based on the synchronized keyword. However, synchronized has some shortcomings in some scenarios, that is, it is not suitable for all concurrent scenarios. However, after Java 5, the emergence ...
Posted by clartsonly on Fri, 18 Feb 2022 21:40:31 +0100
Dry goods chapter | encountered a very practical Shell, use the script instance!
Like and watch again, form a habit!
The day before yesterday, I saw a reader sharing several Shell script example topics in the group. I simply saw them. Why not write and consolidate the basic knowledge, as follows:
1. Obtain the hostname from several machines concurrently, record the time spent returning the information, and redirect to a ...
Posted by rabidvibes on Fri, 18 Feb 2022 18:25:18 +0100
30 pieces of Python code are extremely simple, allowing you to learn a practical trick in 30 seconds
Life is short, learn Python!
How to learn Python is the fastest. Of course, it is a variety of small projects in actual combat. Only when you think and write, can you remember the rules. Today I share with you 30 minimalist tasks, which beginners can try to achieve by themselves; This article is also 30 pieces of code. Python developers can al ...
Posted by Jamez on Fri, 18 Feb 2022 18:19:23 +0100