Example of PHP+Mysql to realize the function of website top and step voting

PHP+Mysql implements the example of website top and step voting function. By recording the user's IP address, it can judge whether the user's voting behavior is effective. The example can also be extended to the voting system. First of all, we put the "top" and "step" buttons on the page, that is, "dig up" and &qu ...

Posted by zang8027 on Sat, 08 Feb 2020 07:25:05 -0800

Zabbix&LNMP installation configuration

Monitoring terminal operation #!/bin/bash #Install zabbix+LNMP # lnmp(){ #Turn off firewall & core security features systemctl stop firewalld.service systemctl disable firewalld.service &> /dev/null setenforce 0 sed -i "7cSELINUX=disabled" /etc/sysconfig/selinux #yum install nginx wget http://nginx.org/packages/centos/7/noarch/RPM ...

Posted by ccl on Fri, 07 Feb 2020 09:23:31 -0800

The implementation of the shortest path finding algorithm (dixstra algorithm) in php

Refer to Chapter 7 of algorithm diagram for details. The original book was written in python, and I wrote it again in PHP, which was slightly improved Test these three exercises in the book   I found another "difficult" question on the Internet   Upper Code: class ShortPath{ ...

Posted by Pioden on Wed, 05 Feb 2020 07:13:55 -0800

Ansible Role Management-Roles (Example Demo!!!)

An overview of Roles Roles can automatically load variable files, task s, handlers, and so on, depending on the hierarchy. Simply put, Roles is about including variables, files, tasks, modules, and processors in separate directories and easily. Roles is typically used in scenarios where services are built on hosts, but it can also be used in s ...

Posted by hemoglobina on Tue, 04 Feb 2020 15:13:50 -0800

Java sets the selection mode of tables

For a table, we can set its selection mode: select one row or consecutive rows at a time, or any consecutive rows. We can also set the selection model for its columns. Create table first JTable table=new JTable(); For row selection, you should callgetSelectionModel().setSelectionMode(model); function W ...

Posted by kriek on Tue, 04 Feb 2020 09:46:18 -0800

Python text data analysis -- news classification task

Inverse Document Frequency (IDF for short) If a certain word is less, but it appears many times in this article, it may reflect the characteristics of this article, which is the key words we need Word frequency (TF) = the number of times a word appears in an article / the number of times a word app ...

Posted by Lijoyx on Sun, 02 Feb 2020 06:11:45 -0800

swoole battle in 2018 7-process details

Following the last chapter 2018 swoole 6-asynchronous redis This presentation swoole process management module Create child process New process.php <?php $process = new swoole_process(function(swoole_process $pro) { echo 'swoole Create process' . PHP_EOL; }, false); // If set to true, the terminal will not display standard o ...

Posted by sandsquid on Fri, 31 Jan 2020 12:04:36 -0800

Nginx + Tomcat + HTTPS configuration

This article mainly introduces how to use nginx to configure tomcat and https ssl certificates.   Mode 1: directly modify the nginx.conf file under the conf file of nginx   You can directly copy the entire server node as follows, and change the certificate in the red box to your own. #user nobody; worker_processes 1; ...

Posted by dspeer on Fri, 31 Jan 2020 04:40:36 -0800

2018 swoole actual combat 2-asynchronous non blocking delivery task

Following the last chapter Swoole battle in 2018 1 - get to know swoole In a project, there are always scenarios that trigger behaviors that take a long time. For example, if the user updates the article and triggers the push message to all the fans of this user, if a user has 10000 fans and uses synchronized blocking method, it wi ...

Posted by makoy on Fri, 31 Jan 2020 00:42:58 -0800

LNMP environment setup (php7.3 installation under Centeros 7.7, PHP installation sqlsrv extension)

The article concludes with the material information and installation instructions for this project Article Directory 1. Basic preparation 2. Install Mysql 3. Install PHP 4. Install Nginx 5. Nginx Integration php 6. Install PHP extensions END 1. Basic preparation System Environment CenterOs7. ...

Posted by crickettdt on Wed, 29 Jan 2020 18:56:20 -0800