Course assignment - get all campus news
Operation requirements:
Take out all the news of a news list page and wrap it into a function.
Get the total number of news articles and calculate the total number of pages.
Get all news details for all news list pages.
Find a topic that you are interested in, do data crawling and word segmentation analysis. Can't be the same as other students ...
Posted by zubinkasad on Thu, 02 Apr 2020 22:18:00 -0700
dotsql of Go Language Library Series
Guide: is it very interesting to be able to carry out a single line or lines of SQL files? Today, let's introduce this interesting Library -- dotsql.
Background introduction
dotsql is not an ORM or a builder of SQL query statements, but a tool that can carry out several lines in an SQL file, very similar to the reading of ini configuration fi ...
Posted by ~n[EO]n~ on Thu, 02 Apr 2020 19:14:54 -0700
Week 12 [project 3] Floyd algorithm verification
/*
*Copyright (c)2017, School of computer and control engineering, Yantai University
*All rights reservrd.
*Author: Li Xinhao
*Completion time: November 23, 2017
*Version number: v1.0
*Problem Description: Floyd algorithm verification
The following figure is an example:
1, Edit graph.h as header ...
Posted by mzfp2 on Thu, 02 Apr 2020 16:53:02 -0700
mysql master-slave configuration under linux
CentOS 6.5 192.168.1.84 host
CentOS 6.5 192.168.1.83 slave
1, Primary server configuration:
Create synchronization user and specify server address
[root@node04 ~]# mysql -u root -p111111
mysql>use mysql;
mysql>grant replication slave on *.* to 'tongbu'@'192.168.1.84' identified by '123456';
mysql>flush privileges # ...
Posted by smilinmonki666 on Thu, 02 Apr 2020 14:59:59 -0700
MyBatis first program: HelloWorld
1. Download the jar package required by MyBatis
Download links of Github versions of MyBatis: https://github.com/mybatis/mybatis-3/releases
Download the JDBC driven jar package of the corresponding database
2. Prepare the database to use
create database School;
use School;
create table Users
(
id int primary key,
name varcha ...
Posted by tranzparency on Thu, 02 Apr 2020 14:05:48 -0700
Two methods of Mysql using binlog to recover data to solve the problem of misoperation
Not finished yet... To be edited
To ensure that there is no other parameter configuration impact, a CentOS7 virtual machine with minimized installation is reinstalled
1. Install mysql5.6 database https://my.oschina.net/sgmder/blog/1631045
2. Configure mysql, enable binlog, and change binlog mode to Row Level mode
vi /etc/my.cnf
Modify the ...
Posted by UVL on Thu, 02 Apr 2020 09:06:03 -0700
vue+axios+php+mysql to realize dynamic update of front-end interface data
vue implements dynamic data mainly by vue resource and axios. However, vue resource has not been updated since vue 2.0. Therefore, this paper mainly uses axios to operate.
1. Install axios
npm install axios --save
2. Writing components in components of Vue cli
<span style="font-size:14px;"><template>
<di ...
Posted by killerofet on Thu, 02 Apr 2020 02:44:23 -0700
Domain event publishing based on Spring Data
Domain event publishing is a notification issued by a domain object to let other objects know that they have already processed an operation. Event publishing tries to decouple their own objects from external objects at the code level and reduce technical code intrusion.
1. Manually Publish Events
// Entity Definition
@Entity
public class Depart ...
Posted by kid_c on Thu, 02 Apr 2020 01:07:09 -0700
Application of iOS predicate
The predicate in Cocoa provides a general query method to process data, The filtering form of data can be obtained and specified. In the actual development of Cocoa, NSPredicate and its parent classes NSComparisonPredicate and nscompoundpredict can be used. Its style is similar to the mixture of SQL query language and regular expression, provid ...
Posted by Anyaer on Wed, 01 Apr 2020 22:49:36 -0700
python crawler 01 - create a simple crawler (with 100G of a novel web database)
Disclaimer: the database provided in this article is for technical verification only, and any form of commercial and reprint activities based on this database are prohibited. The legal liability arising therefrom shall be borne by itself! , once you continue to read this article, you will be deemed to agree to this stat ...
Posted by noobie_daddy on Wed, 01 Apr 2020 18:59:41 -0700