7-3 find a common elective - hebust

7-3 find a common elective - hebust Each student likes different programming languages. Please program to find a programming language that everyone likes. Input format: The first line of input is the number of records The first line is followed by the programming language records of each student. The names and programming la ...

Posted by lox on Fri, 29 Nov 2019 22:37:22 -0800

PHP Iterator iterate object properties

foreach is the same as the previous array traversal, except that the traversal key is the attribute name and value is the attribute value. When traversing outside the class, you can only traverse to the public attribute, because the others are protected and invisible outside the class. class HardDiskDrive { public $brand; public $color ...

Posted by Lautarox on Fri, 29 Nov 2019 12:20:37 -0800

Generating QR code with logo in PHP

#Generate QR code in PHP (you need to download the phpqrcode class file) Download address: http://phpqrcode.sourceforge.net/ This class library is just a file. Open the file and you can see that it consists of multiple classes (I used 1.1.4). The first class name is qrstr, and the file name is phpqrcode. After downloading the cl ...

Posted by JaGeK on Fri, 29 Nov 2019 08:34:53 -0800

zabbix4.2 server installation

As for the installation of zabbix server 4.2, in fact, the official website has written a lot of details. I'll take notes here and make some additions by the way. zabbix official website address: https://www.zabbix.com/download The system environment I use here is CentOS 6.9. mysql, php and nginx are pre installed 1. Install ZAB ...

Posted by lizard on Fri, 29 Nov 2019 08:31:39 -0800

Using gRPC client in PHP

Because the work needs to use gRPC, I use windows 10, but the operation flow of linux is basically the same. Go directly to the topic, divided into several parts 1. Download Protoc Download address: https://github.com/google/protobuf/releases Select the corresponding platform and download the binary file used herehttps://github.com/protocol ...

Posted by jexx on Fri, 29 Nov 2019 01:01:08 -0800

[swoole] if the timer function is used well

The use of a timer is provided in swoole $server->tick(1000, function() use ($server, $fd) { $server->send($fd, "hello world"); }); I used it in the beginning. Look at the code <?php $serv = new Swoole\Server("0.0.0.0", 9501); $serv->set(array( 'worker_num' => 1, //worker process num )); $ ...

Posted by nunomira on Thu, 28 Nov 2019 13:29:52 -0800

An example of what Facade does in the TP framework

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 robinjohn on Thu, 28 Nov 2019 01:13:57 -0800

PHPer knows what a Facade is in the TP framework

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 timmy2 on Wed, 27 Nov 2019 02:06:41 -0800

Do you know what the Facade is in the TP framework

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 xydra on Tue, 26 Nov 2019 01:22:18 -0800

JavaScript Plus and Minus Crisis - Why is this happening?

A catalog What's the difference between a non-tossing front end and salted fish? |Directory|| --- | | A catalog | | Second Preface || Three problems recurring ||  3.1 Root Cause: IEEE 754 Standard ||  3.2 Replication: the calculation process ||  3.3 Extension: Digital Security || 4. Solving problems ||  4.1 toFixed() ||  4.2 Handwritten Simpl ...

Posted by mad81 on Mon, 25 Nov 2019 18:15:56 -0800