The implementation of Facade in thinkphp
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 cloudnyn3 on Mon, 21 Oct 2019 20:15:54 -0700
Project search of pinyougou mall
The search of this module mainly uses solr search engine + Ik word segmentation package and cache redis to achieve a piece of business.
1. Excellent purchase - Highlight
demand
The key words entered by the user are displayed in red font in the title, which is the common highlight in search.
The main idea is to add HTML bold color and other ...
Posted by BlackViperSJM on Mon, 21 Oct 2019 13:47:38 -0700
[explanation] [usaco2007 OCT] Objective course-C++
subjectDescriptionConsider a n x n (1 < = n < = 100) square pasture with 1 square grid. Some of the squares that cows can't step on are marked 'x'.For example, the following figure:
. . B x .. x x A .. . . x .. x . . .. . x . .
Bessie found herself at point A. she wanted to add salt to the salt block at point B. Slow and clumsy animals, ...
Posted by Collin on Mon, 21 Oct 2019 13:21:59 -0700
P1607 [USACO09FEB] temple Fair Shuttle
P1607 [USACO09FEB] temple Fair Shuttle
Title: it's not much for Farmer John to go to the market, exchange prizes and watch the program, but his cows are very lack of exercise - if they want to go to the market all day, they will be exhausted. So in order for the cows to have a good time in the market, John is going to let the cows walk by car. ...
Posted by doni49 on Mon, 21 Oct 2019 12:15:05 -0700
The installation and configuration of NGINX+PHP under Centos7
First compile and install NGINX:
1. Install dependency package
yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
2. Run configure configuration
cd /usr/local/src/nginx-1.14.0 && ./configure --prefix=/usr/local/nginx
4. Compile and install
make && make install
5. Start NGINX
/usr/local/nginx/sbin ...
Posted by coupe-r on Mon, 21 Oct 2019 10:48:16 -0700
Introduction to python os module
"""
rename file
os.rename(src,dst)
os.rename('123.txt','124.txt')
Delete files
os.remove(path)
os.remove('123.txt')
Create directory
os.mkdir()
Create a multi-level directory
os.makedirs()
Delete directory
os.rmdir()
Delete multi level directory
os.removedirs()
Get current directory
os.getcw ...
Posted by Pilli on Mon, 21 Oct 2019 10:22:53 -0700
Luogu P2471 - [SCOI2007] rainfall
Local AC submits RE...
Portal: QAQQAQ
Look at it by yourself
Thought: it is said that RMQ can be used for this question very quickly, but the line tree of this question is OK
The line tree maintains the leftmost and rightmost years of a section, whether there is a gap and the maximum value of the section.
The classification and discu ...
Posted by abelajohnb on Mon, 21 Oct 2019 09:12:40 -0700
Centos7 forgot the root password of mysql
1. Stop mysql service first
[root@CentOS ~]# ps -ef | grep mysql
root 5365 1 0 15:47 pts/0 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/CentOS.pid
mysql 5452 5365 4 15:47 pts/0 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --d ...
Posted by designationlocutus on Mon, 21 Oct 2019 08:56:31 -0700
The first summary of the preliminary competition of 2019 UnionPay University geek challenge
2 questions, 98, T-shirt in hand
Is the real name certification late, I don't know if it will affect.
Upper solution
The king's way of yard team's girlfriend
Simple simulation is enough. Pay attention to the net game. It is possible to pay attention to long long in the course of the season.
#include<bits/stdc++.h> ...
Posted by bigfunkychief on Sun, 20 Oct 2019 15:20:34 -0700
Centos-7.4lamp architecture Discuz Forum
Linux-centos-7 lamp Architecture Forum page details
Experiment purpose: to set up a forum web page on LAMP framework
I. overview of LAMP architecture
Three components are needed: Linux, Apache and mysql. Their source packages are private to me and I will send them to you. You don't need to go to the official documents again.
1. Understand th ...
Posted by wake2010 on Sun, 20 Oct 2019 11:50:29 -0700