Freshman year -- mathematics homework (end of serial)

Description (read!me!please!!!): ① The purpose of this article is to explain that the attached code is fragment interception. Each fragment focuses on showing a function. Different fragments have omitted and overlapped parts. See GitHub for the complete project code 👌 ② Pay attention to the code comments, which can be said to be relatively d ...

Posted by ina on Sat, 05 Feb 2022 04:41:30 +0100

Java Socket programming from single thread to multi thread to realize chat applet

Single threaded example Realize function For 1-to-1 chat communication between the server and the client, you need to run the server first and then the client. When the user enters bye, close the socket and terminate the chat. Specific operation process Start the server, create a ServerSocket, block the accept method, and wait for the c ...

Posted by codebuilder on Sat, 05 Feb 2022 02:51:37 +0100

linux format string vulnerability

format string vulnerability Introduction to formatting strings Common formatting string functions functionBasic introductionprintfOutput to stdoutfprintfOutput to the specified FILE streamvprintfFormat the output to stdout according to the parameter listvfprintfFormat the output to the FILE stream according to the parameter listsprintfOutpu ...

Posted by cherubrock74 on Fri, 04 Feb 2022 13:15:19 +0100

LINUX learning basics LVM logical volume management

LVM logical volume management brief introduction LVM is the abbreviation of Logical Volume Manager (logical volume management). It is a mechanism for managing disk partitions in Linux environment, which can dynamically adjust the partition size. Physical volume (PV): a real physical hard disk or partition.Volume group (VG): multiple phys ...

Posted by R1der on Fri, 04 Feb 2022 12:12:04 +0100

Port multiplexing SO_REUSEADDR

Port reuse is a classic problem in network programming, and the knowledge points in it are very cumbersome. This paper briefly introduces so through the code_ Reuseaddr, but so will not be involved_ REUSEPORT. For a long time, we all know that we can't listen to the same port. For example, the following code. server1.listen(8080); server2.li ...

Posted by davanderbilt on Thu, 03 Feb 2022 22:44:02 +0100

It's hard for you to pretend, Kubernetes

A long time ago, it was said that a wave of Kubernetes clusters would be installed on the virtual machine, but it reported an error once before. Later, it has not been reinstalled. Taking advantage of the holiday and rest these days, another wave was reinstalled, which can be regarded as done. This article will share with you the precautions fo ...

Posted by new_to_php2004 on Thu, 03 Feb 2022 15:57:00 +0100

Small C/S development framework - CSFrameWork

Small C/S development framework - csframework (I) First of all, it should be explained that the framework is based on a multi-level system, which has three layers - communication layer, session layer and outermost layer (server and client). Among them, the communication layer is the lowest layer, the next layer is the session layer, and finall ...

Posted by ponsho on Thu, 03 Feb 2022 13:00:03 +0100

Linux system programming - process concept, process management, signal processing

1. Process knowledge points The process in the operating system is the process of one-time execution of the program and the basic unit of dynamic execution of the operating system; Whenever a new process is created, the operating system will assign a unique identifier to the new process to facilitate subsequent management of the process. The ...

Posted by RIRedinPA on Thu, 03 Feb 2022 02:25:01 +0100

Django, the second day of the Spring Festival

Request and response request Request construction Start line + request header + request body HTTP request method The page information specified by the GET request returns the entity subjectHEAD is similar to get request. There is no specific content in the return response. It is generally used to debug and obtain the message header**POST s ...

Posted by lasse48 on Thu, 03 Feb 2022 00:45:51 +0100

Linux disk (hard disk) configuration

1, Basic knowledge 1 hard disk classification Common disk typesexplainpictureSAS hard disk(Serial Attached SCSI) Serial Attached SCSI interface. Serial attached small computer system interface is a new generation of SCSI technology. Like the popular Serial ATA(SATA) hard disk, it adopts serial technology to obtain higher transmission speed, a ...

Posted by jcvertin on Wed, 02 Feb 2022 21:32:02 +0100