02 | Java voice advanced | day12 [! ]_Functional interface, functional programming, common functional interface (Supplier, Consumer, Predicate, Function)

Chapter 1 functional interface 1.1 the concept of functional interface & the definition of functional interface In Java, functional interface refers to an interface with only one abstract method. Syntax sugar refers to the code syntax which is more convenient to use but the principle is unch ...

Posted by hippypink on Fri, 13 Mar 2020 19:10:04 -0700

Cs231n Assignment 1 SVM of in-depth learning series

Write at the beginning: Finally I copied the svm job of the big guys again. It's up to me to copy it. I'll attach a link to the big guys who talked better to me in the response location. Thank them. Recently, facing the pressure of finding an internship, this employment is still very high, what can I d ...

Posted by cornelombaard on Fri, 13 Mar 2020 18:51:52 -0700

Implementation of music player based on madplay library linux Application Programming

Implementation of music player based on madplay library linux Application Programming The system can realize the following functions: play, pause, continue, stop, last song, next song, volume adjustment and exit. Using madplay library to realize a simple music player, which can play local audio files ...

Posted by jdashca on Fri, 13 Mar 2020 08:59:01 -0700

Python self study notes - Chapter 6 object oriented programming

3. Magic method Python's objects naturally have some magical methods. They are always surrounded by double underscores. They are everything of object-oriented python. They are special methods that can add magic to your class. If your object implements (overloads) one of these methods, then this method will be called by Python in a special case. ...

Posted by suspect on Fri, 13 Mar 2020 03:08:30 -0700

Error handling in lua learning

error handling dynamic link In Lua, dynamic links are considered the parent of all other mechanisms So you can use it to dynamically load any other mechanism not in Lua Two parameters required for package.loadlib Full path to the library Correct function name The loadlib function loads the specified library and link ...

Posted by mchip on Thu, 12 Mar 2020 21:54:50 -0700

Spring day 2: preliminary understanding of concepts of AOP, IOC and DI

The core of Spring Spring's core concepts are inversion of control (Ioc), aspect oriented programming (AOP), and dependency injection (DI)! These three core technologies are the basis of learning spring, and most of the others are based on their integration. Let's introduce them separately Spring's of ...

Posted by jediman on Thu, 12 Mar 2020 21:17:43 -0700

How to Solve the Transverse Override Security in the Development of E-commerce Receipt Address Module

What is horizontal/vertical overstepping? Horizontal Override: Horizontal override refers to an attacker attempting to access resources of a user with the same privileges as he has.Vertical Override: Vertical override refers to a low-level attacker attempting to access resources of high-level users. How can I prevent the lateral overstepping ...

Posted by edwardtilbury on Thu, 12 Mar 2020 09:47:57 -0700

Source code analysis of NettyServer network event dispatch mechanism in Dubbo network communication

This section will focus on how Dubbo uses Netty to achieve network communication. From the official website, we know that Dubbo protocol uses a single long connection for network transmission, that is to say, the service caller establishes a connection with the service provider for a long time, and all the service call information passes throug ...

Posted by jmandas on Thu, 12 Mar 2020 06:41:22 -0700

Getting started with Netty and unpacking

Netty programming NIO programming 1. Solve the thread resource limitation 2. Low efficiency of thread switching 3. Resolve that IO read and write are in bytes Netty programming 1. Introduction to netty 2. Use of netty Netty package sticking and unpacking: 1. Sticking problem: 2. unpack Specific ...

Posted by tapdancingtenor on Thu, 12 Mar 2020 05:22:10 -0700

Special symbols commonly used in Scala

1. = > anonymous function In Spark, a function is also an object that can be assigned to a variable. Format of Spark's anonymous function definition: ==(parameter list) = > {function body}== Therefore, the function of = > is to create an anonymous function instance. For example: (X: int) = > x + 1 2. < - (set traversal) Loop trav ...

Posted by ctimmer on Thu, 12 Mar 2020 04:54:52 -0700