Queue usage of Yii2 queue

Less bullshit, mainly documentsOfficial documents https://github.com/yiisoft/yi... Use of yii2 queue 1. installation composer require --prefer-dist yiisoft/yii2-queue 2. Configure in common/config/main.php redis as driver return [ 'bootstrap' => [ 'queue', // Register this component to the console ], 'components' => [ ...

Posted by broc7 on Mon, 21 Oct 2019 20:15:19 +0200

Chapter 7 object oriented (10): binding method and unbound method (static method)

What is bound method, unbound method Functions defined internally are divided into two categories: Binding method: it should be called by whoever is bound. Whoever calls will automatically pass in the caller as the first parameter Bound to object method: a method defined within a class that is not decorated by any decorator Methods bound to ...

Posted by JessePHP on Mon, 21 Oct 2019 18:25:10 +0200

Online chat with Swoole

Swoole and thinkp5 develop WebSocket online chat communication system ThinkPHP needs to install the think Swoole composer package when using Swoole, provided that the system has been installed Okay, Swoole PECL expansion To install think swoole, execute the composer command in the project root directory of tp5: 1 composer require topthi ...

Posted by realchamp on Mon, 21 Oct 2019 16:36:50 +0200

How does laravel use swoole to develop websocket active message push

Requirement: to achieve a function that can actively trigger message push, this function can be used to send customized messages to all members of the template message, instead of sending messages through the client. The message in the message on the service end listens for the messages to be sent for relative business logic. Active message pus ...

Posted by nedpwolf on Mon, 21 Oct 2019 11:04:35 +0200

Deep route of React

In this paper, two modes of route parameters acquisition and route are discussed. Continuation: Basic use of route in React This code is still based on the previous code. Parameter acquisition of React route Import the Link component from the react router DOM package. Note the use of deconstruction here Then use the Link component to add a pro ...

Posted by Jip on Sat, 19 Oct 2019 18:10:23 +0200

Build php development environment with win10 docker toolbox

Download mirroring docker pull mysql:5.7 docker pull php:7.2-fpm docker pull nginx docker pull redis:3.2 Set up shared files Host create directory E:\wnmp\mysql57\conf E:\wnmp\mysql57\log E:\wnmp\php72\conf E:\wnmp\php72\conf E:\wnmp\nginx\conf E:\wnmp\nginx\conf E:\wnmp\www vmware setting up file sharing PicturedAfter setting, execute docker ...

Posted by Cless on Sat, 19 Oct 2019 16:01:09 +0200

Experience using MUI to practice app page development

Because the company needs to learn a little about app development first, and the framework of arrangement learning is MUI. It's OK to have two-day experience (from the back-end staff). Relying on the shortcut key of MUI, you can quickly complete the style template you want, and more interactive content needs to be completed using js. This is ...

Posted by saint959 on Sat, 19 Oct 2019 00:16:03 +0200

CF 813E Army Creation block and chairman tree

I. partitioned The core is to find out what to maintain. Imagine that in a column of numbers, we take out the same group. We need to take no more than k numbers within a given range. If the violence is judged from left to right and the number is recorded, it is not realistic. Then we will open an array to record whether the number of positions ...

Posted by Jason Batten on Fri, 18 Oct 2019 22:28:39 +0200

hzwer's checkers

[Title Description]: Hzwer's checkers are played on a number axis. Chessmen can only be placed on the whole point. No more than one chess piece can be placed at each point. One day, the golden God and cjy used checkers to make a simple game: there are three pieces on the board, respectively in a, b and c positions. They're going to move their ...

Posted by sunwukung on Fri, 18 Oct 2019 20:45:29 +0200

Record an open of binary file of unknown type

Recently, we received a request to solve the content of a binary file. /home/work/files # ll total 312 -rw-------@ 1 honvid staff 30K 7 24 14:52 15158 -rw------- 1 honvid staff 46K 7 24 14:53 62770 -rw-------@ 1 honvid staff 73K 7 24 11:26 8686584 vi You can see the following mess. ^_<8b>^H^@^@^@^@^@^D^@í½^G`^\I<96>% ...

Posted by sridhar golyandla on Fri, 18 Oct 2019 00:21:15 +0200