Online Sudoku, this website has an answer
Use two-dimensional array to represent chessboard, 0 for null
First calculate the set of every empty possible value
The dfs search is carried out in turn. After a value is determined each time, the nine palaces and all vertical and horiz ...
Posted on Sat, 30 May 2020 07:09:26 -0700 by TGWSE_GY
When working on a project some time ago, you want to cache the Model::find method without changing the method signature. And want to be plug and play.
1. First, let's see what the framework does when we call the find method?
Find the code of Illuminate\Database\Eloquent\Model, search find, there is no such method. It seems to be leaving__ Call ...
Posted on Wed, 27 May 2020 07:12:29 -0700 by stanleybb
Zabbix is an excellent distributed monitoring server, which consists of two parts:
1. "ZABBIX server" is used to collect and display data on the web
2. "ZABBIX agent" is used to collect data and send it to the server
When Zabbix was installed, three virtual machines were used to test whether the monito ...
Posted on Wed, 27 May 2020 01:54:43 -0700 by apocryia
PHP file upload configuration php.ini Files and predefined variables$_ FILES
1: Configuration php.ini file
To achieve the upload function smoothly, the first thing to do is to php.ini Open file upload and make reasonable settings for some of the parameters. Find the File Upioads item, and you can see that there are three attributes as follow ...
Posted on Tue, 26 May 2020 23:57:49 -0700 by psunshine
How to judge the user's operation authority through Session
In most of the web development process, according to the actual needs, it is necessary to divide the rights of administrators and ordinary users to operate the web site. The following is a comprehensive explanation through a specific code example.
(1) Design a landing page, add a form ...
Posted on Tue, 26 May 2020 02:46:38 -0700 by phpmady
Magic method__ get() instance details
Methods that start with two underscores in PHP are called Magic methods. For example__ construct(), __destruct (), __clone(), and__ call(),,__get(), __set(),__sleep(), __wakeup(), __toString(), __autoload() and so on are all Magic methods.
If you want PHP to call these magic methods, you must first define t ...
Posted on Sun, 24 May 2020 20:08:53 -0700 by Neptunus Maris
Old article, just moved here.
Because the business needs to access Google's incentive advertising, it involves the server-side verification (SSV) of Google callback.
Python version is based on the third-party package ecdsa out of the box. PHP version also has an ecdsa library, but it is too complex.
Think of the openssl rsa key signature chec ...
Posted on Fri, 22 May 2020 08:28:09 -0700 by leena
php forms inserting forms into Web pages
Insert the form in the normal WEB page as follows: a relatively complete form will be created here to show all the elements and attributes in < form >.
Posted on Fri, 22 May 2020 01:05:11 -0700 by roba59
System time zone settings for PHP date and time functions
In PHP, there are two ways to change the time zone:
modify php.ini For the settings in the file, click data; date.timezone =Option, remove the preceding quotation marks, and change to:“ date.timezone =Asia / Shanghai "and restart the Apache server
In the a ...
Posted on Thu, 21 May 2020 22:26:51 -0700 by rklapwijk
Install Kafka service
Go directly to kafka website and download the latest
Unzip, enter directory
tar -zxvf kafka_2.13-2.5.0.tgz
Start Kafka service
Starting a single node Zookeeper instance using the script in the installation package ...
Posted on Tue, 19 May 2020 07:36:32 -0700 by dmeade