How to use Facade
What is the Facade? At present, it is a class that is used to facilitate the static method call of the original class (undefined static method).The specific implementation of Facade is as follows:First look at the core document:\thinkphp\base.php`//Register static proxy of core classFacade::bind([
facade\App::class => App::class,
facade ...
Posted by ArizonaJohn on Tue, 03 Dec 2019 20:52:43 -0800
In the robot framework, use the selenium Library
At present, we use Python 2.7 (please do not despise, company environment, can't use Python 3) + robot framework to automate the function test. Today, we need to use selenium for web page operations, as follows
Installing the selenium 2 library Library
Using pip installation, the process is simple: pip install robot framew ...
Posted by flash99 on Tue, 03 Dec 2019 03:01:57 -0800
Linux basic knowledge DNS server master-slave replication, sub domain authorization
DNS domain name system is a service of Internet. As a distributed database which maps domain name and IP address, it can make people access the Internet more easily. DNS uses TCP and UDP port 53
DNS server master-slave replication, subdomain authorizationMain server: 10.120.123.13Slave server: 10.120.123.250Sub server: 10.120.123.251 Master ...
Posted by Niccaman on Mon, 02 Dec 2019 15:39:45 -0800
12. pytest -- Cache: Record the status of execution
Catalog
1. cacheprovider plug-in
1.1. --lf, --last-failed: Execute only the last failed use case
1.2. --ff, --failed-first: execute the last failed use case before the others
1.3. --nf, --new-first: execute new or modified use cases before others
1.4. --cache-clear: Clear all caches before executing u ...
Posted by mem0ri on Mon, 02 Dec 2019 05:33:26 -0800
Deep learning to recognize handwritten font
We still use MNIST handwritten font data set to see how we can use tensorflow to implement MLP.
data
Data downloading
Here we download the dataset through the tensorflow module.
import tensorflow as tf
import tensorflow.examples.tutorials.mnist.input_data as input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot ...
Posted by ccbayer on Sun, 01 Dec 2019 19:23:28 -0800
mybatis uses plug-ins to implement table splitting
Such as the title, the comparison of sub table rules this time?? Some user related tables are divided by product dimensions, for example: user 1, user 2 (1, 2 is the product id, a new product will add a whole set of tables...). It is not appropriate to study a wave of sharing JDBC (later changed to sharing sphere), and it also has the feeling o ...
Posted by matt2012 on Sun, 01 Dec 2019 03:44:09 -0800
[open source] fast build verification code
Instructions
Support WebForm and Asp.Net Mvc to build verification code
Project source code: MasterChief.DotNet.Infrastructure.VerifyCode
Nuget: Install-Package MasterChief.DotNet.Infrastructure.VerifyCode
Welcome Star, welcome PR;
How to use
To customize the verification code style, you only need to implement the ValidateCodeType abstrac ...
Posted by spooke2k on Sat, 30 Nov 2019 23:27:23 -0800
web source of spring Transformation: mooc.com
Preface
We wrote the foundation of spring yesterday, and continue to write the knowledge related to web today
The use of spring web
Import dependency first
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version& ...
Posted by monarlte on Sat, 30 Nov 2019 22:14:58 -0800
The implementation of PHP's simple jump prompt
In PHP development, especially in MVC framework or projects, there are many jump situations, such as: jump after login success or failure, etc.
Based on the MVC framework development, the following is an example:
In the basic controller class: controller.class.php
1 <?php
2
3 /**
4 * Basic controller class
5 */
6 class Con ...
Posted by BMurtagh on Sat, 30 Nov 2019 13:15:57 -0800
SpringBoot Integrated Security+Thymeleaf case
I. Introduction of relevant jar s
1) change the Thymeleaf version to 3, the Layout version to 2, and the integrated version of Security+Thymeleaf
<properties>
<java.version>1.8</java.version>
<!--thymeleaf Switch to version 3, layout Switch to 2-->
<thymeleaf.version>3.0.9.RELEASE< ...
Posted by Ace_Online on Sat, 30 Nov 2019 07:52:04 -0800