What's new in C × 8.0

01. Readonly member The readonly modifier can be applied to any member of a structure, indicating that the member does not modify the state. This is finer than applying the readonly modifier to a struct declaration. public struct Point { public double X { get; set; } public double Y { get; set; } public double Distance = ...

Added by Stryks on Mon, 21 Oct 2019 08:44:19 +0300

centos7 install MySQL version 5.7 (full)

centos installation Version Description: centos7, mysql5.7, not centos7, some commands may not be compatible Install MySQL server # Download and install mysql yum. wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm # Install MySQL server yum -y install m ...

Added by DusterG20 on Sat, 19 Oct 2019 10:52:32 +0300

MFC bottom window implementation

Brief description MFC is a basic class library of Microsoft. If GUI is developed on Windows platform, it is a good choice. Simply record the knowledge points that need to be mastered or viewed later in the learning process of MFC. Windows Messaging First, the operating system captures the messages from the keyboard or mouse input system, and ...

Added by Copyright on Fri, 18 Oct 2019 09:40:57 +0300

LeetCode 234: Palindrome Linked List

​ Please judge whether a linked list is palindrome linked list. Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example 2: Input: 1 - > 2 - > 2 - > 1 Output: true Advance: Can you use O(n) time complexity and O(1) space complexity to solve this problem? Follow up: Could you do it ...

Added by stenk on Fri, 18 Oct 2019 00:21:35 +0300

Java thread state and correct posture for thread shutdown

1. Thread status and switch There are six states of threads in Java, which are implemented by enumerating classes in Thread. As follows, I explain each state to some extent.   public enum State { /** Indicates that a thread is not enabled (that is, the start method is not called)*/ NEW, /** * JVM All ...

Added by nickmagus on Thu, 17 Oct 2019 21:35:38 +0300

Java description design pattern (14): Interpreter pattern

Source code: GitHub point here || GitEE point here I. interpreter mode 1. Basic concept Interpreter mode is the behavior mode of an object. Given a language, the Interpreter pattern can define a representation of its grammar and provide an interpreter at the same time. The client can use this interpreter to interpret expressions in this langu ...

Added by xardas on Thu, 17 Oct 2019 16:50:00 +0300

Java concurrency -- waiting and notification between threads

Preface: We have talked about the principle of concurrent programming. Now we are going to learn about the cooperation between threads. Generally speaking, the current thread needs to wait under certain conditions and does not need to use too many system resources. Under certain conditions, we need to wake it up, allocate certain system resour ...

Added by umbra on Thu, 17 Oct 2019 08:55:53 +0300

[source code interpretation] thoroughly understand the Events module

Preface Why write this article? Remember clearly that I just got a job at node and talked to the interviewer about the event cycle. Then the interviewer asked how the event happened. Under what circumstances is an event... In which scenarios have Events been applied? Before that, it encapsulated an open source network request framework of RxJa ...

Added by mauri_gato on Thu, 17 Oct 2019 05:08:56 +0300

[source code analysis] I don't know the details of automatic configuration, let alone you can spring boot.

Compared with spring, one of the most important characteristics of spring boot is automatic configuration, which makes the Convention larger than the configuration idea successfully implemented. XXX spring boot starter a series of bootstrappers can be used out of the box, or only need a few configurations (for beginners) because the default aut ...

Added by zemerick on Thu, 17 Oct 2019 04:55:14 +0300

A precise delay method in Cortex-M kernel

This paper introduces a precise delay method in Cortex-M kernel Preface Why study this method of delay? Many times when we run the operating system, we usually use a hardware timer - SysTick, while the clock beat of our operating system is generally set to 100-1000HZ, that is, 1ms - 10ms to generate an interrupt. Many bare metal tutorials use ...

Added by ERuiz on Thu, 17 Oct 2019 00:26:12 +0300