Beginner Rust Notes

Today is the third day of learning rust. First summarize what you learned yesterday so that you can learn something new ~ Learning Material: The Rust Programming Language, Rust Official Tutorial Overview of learning content Getting Started: hello world base code, Hello Cargo trial cargo command. Prog ...

Added by vasse on Mon, 17 Feb 2020 04:18:00 +0200

5. Air 720sl module Luat development: two common methods of GPIO input and their advantages and disadvantages

Catalog Click here to view all posts I. Preface In the last blog, we talked about initializing GPIO as an output function to drive LED s or other peripherals. In this blog, we will continue to talk about the other remaining function of GPIO - input function Since it is a smart device, it needs to i ...

Added by HokieTracks on Sun, 16 Feb 2020 08:27:22 +0200

Lesson 12 - calculator core analysis algorithm (I)

1. Suffix expression Example:              2. Calculator core algorithm Solutions 1. Separate infix expression from number and operator 2. Convert infix expression to suffix expression 3. Calculate the final result by suffix expression 3. Separation algorithm idea Initial num variable is empty, scan stringIf a number or decima ...

Added by wardo on Sat, 15 Feb 2020 22:07:31 +0200

#Chapter 5: object oriented programming style

Basic knowledge The inheritance mechanism defines the parent-child relationship. The parent class defines the common public interface and private implementation for all children. Each subclass can add or override inherited things to achieve its own unique behavior. In C + +, the parent class is called base class, and the child class is called d ...

Added by davidz on Fri, 14 Feb 2020 10:56:33 +0200

Three ways to create threads

1, Inherit Thread class In java, classes are single inheritance. If you inherit this class, you can't inherit other classes, which increases the coupling of code. Now, interface oriented programming is advocated. 2, Implement the Runnable interface Compared with method 1, it uses the implementation interface to reduce the coupling between progr ...

Added by PDXDesigner on Thu, 13 Feb 2020 19:40:23 +0200

Talk about Federation manager of artemis

order This paper focuses on the Federation manager of artemis FederationManager activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/federation/FederationManager.java public class FederationManager implements ActiveMQComponent { private final ActiveMQServer server; private Map<String, Federatio ...

Added by Dm7 on Thu, 13 Feb 2020 17:15:05 +0200

[JAVA book list] - JAVA multithreading core technology chapter 3 inter thread communication

This article is a summary of JAVA multithreaded programming core technology. If you want to know the specific details, you can go to the original book. Chapter 3 inter thread communication Using wait/notify to realize the communication between threads The function of wait() method is to make the cu ...

Added by Master Zen on Thu, 13 Feb 2020 10:29:12 +0200

Inheritance, super and this, abstract class

First, inheritance 1. Introduction to inheritance ① Multiple classes have the same properties and behaviors. Extract these properties and behaviors into a single class, and then inherit the class. There is no need to define these properties and behaviors. ② Inheritance is that the child class inherits the non private properties and methods ...

Added by ssmK on Wed, 12 Feb 2020 15:09:29 +0200

Source reading notes

1 some pits of assembly When a collection element is a custom class, the custom class enforces the equals and hashCode methods, both of which must be implemented. In the collection, except that TreeMap and TreeSet compare element sizes through comparators, the other collection classes will use the equals and hashCode methods ...

Added by Jumba on Wed, 12 Feb 2020 10:22:55 +0200

Install the Deep Learning Framework Pytorch with Conda

1. Preface Pytorch is currently a hot framework for in-depth learning.The learning curve is smoother than TensorFlow, so you can train and use the network without writing a lot of template code.Java support has started in the latest version of Pytorch.But installing Pytorch is not easy.Today, let's talk about how to install Pytorch using Conda. ...

Added by abax on Wed, 12 Feb 2020 06:21:53 +0200