Simple application of JavaScript nine palace click color change

Finish the layout of nine palace grid, and change the background color of any grid after clicking it. First, use the table to complete the nine palace grid frame: <table> <tr > <td></td> <td></td> <td></td> </tr> <tr > &l ...

Posted by victor on Thu, 26 Mar 2020 18:49:45 +0100

Implementation and analysis of K NN algorithm

KNN (K-Nearest Neighbors) algorithm, also known as K-nearest neighbor algorithm, can be seen from the literal meaning alone. This algorithm must be related to distance. The core idea of KNN algorithm: In a feature space, if most of the K samples next to a sample belong to a category, the sample also belongs to this category to a large extent, a ...

Posted by w00kie on Thu, 26 Mar 2020 16:25:40 +0100

opencv calls Nu book / zxing CPP to identify QR code

Environment installation: 1. The source code of zxing CPP and the lib generated after the source code compilation. My version is V1.0.8. The compilation method is as follows: https://www.cnblogs.com/zhenjin-huaxiazongdai/p/12545959.html . Zxing CPP project path: https://github.com/nu-book/zxing-cpp 2. Visual Studio 2017 installation https://vi ...

Posted by AnarchistX on Thu, 26 Mar 2020 05:15:22 +0100

Machine Learning Algorithms-Linear Regression Algorithms

In the previous section, we learned the KNN classification algorithm.Among them: Classification means that the Y variable is categorical, such as color category, computer brand, and reputation. The linear regression algorithm learned today, where: Regression means that the Y variable is a continuous numerical variable, such as house price, popu ...

Posted by spikeon on Sun, 22 Mar 2020 02:50:25 +0100

How to simplify the Bean configuration of Spring

1 simplified configuration Spring provides a simplified configuration for literals, reference beans, and collections, so if you don't use the special features in the complete configuration, it is recommended to try to use a simplified configuration. 1.1 face value 1.1.1 literal attribute Before simplification: <property name="na ...

Posted by ruttiger on Sat, 21 Mar 2020 18:00:34 +0100

How to get the annotated annotation according to the annotation?

Give an example: For example, you should know that the @ Repository, @ Service, @ Controller annotations in the Spring framework are all marked by the @ Component annotation in the source code Question: Can you find the classes marked by @ Repository, @ Service, @ Controller by scanning @ Component annotation in native reflection or Spring ...

Posted by zuessh on Sat, 21 Mar 2020 16:53:28 +0100

Use of HTML (3) forms

Forms are everywhere on the web. Let's make a form to understand it comprehensively. 1. Create a form In HTML, the < form > tag is used to define form fields, that is, to create a form. The basic syntax is as follows: <form action="url address" method="Submission mode" name="Form name"> </form> The acti ...

Posted by Owe Blomqvist on Thu, 19 Mar 2020 17:15:46 +0100

Introduction to the open source project Humanizer

Humanizer meets all your.Net needs for operations and displays of the following types, including strings, enumerations, dates, times, time spans, numbers, and quantities.It uses MIT for authorized distribution.   1. Humanized string Humanized string extensions allow you to convert strings that were originally processed by your computer into hum ...

Posted by mastermike707 on Thu, 19 Mar 2020 04:44:26 +0100

Write a python Google automated test library by yourself

I've been exposed to selenium before. There are call interfaces in various languages and browser kernels But we need to build an automatic test library by ourselves for convenience. We can use it when we throw it under our program. We only support window s at present Each kernel browser has its own web debugging protocol Here I use Google's ...

Posted by scottybwoy on Wed, 18 Mar 2020 17:51:09 +0100

C# AOP Learning Notes

1. AOP Concepts Official Interpretation: AOP (Aspect-Oriented Programming) is a technology that dynamically and uniformly adds functionality to a program without modifying its source code through precompilation and run-time dynamic proxies.It is a new methodology and a complement to traditional OOP programming.OOP is concerned with dividing req ...

Posted by Shandrio on Tue, 17 Mar 2020 17:54:29 +0100