自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 MySQL读写分离与主从同步

MySQL读写分离与主从同步MySQL Replication主从同步一,环境搭建masterip:10.10.20.125Mysql版本:5.7.29服务器版本:CentOS7slaveip:10.10.21.127Mysql版本:5.7.29服务器版本:CentOS71,master配置在/etc/my.cnf文件[mysqld]下添加:#服务器唯一ID,一般取IP最后一段server-id=125#启用二进制日志log-bin=mysql-binbin

2020-09-29 15:39:40 242

原创 Centos离线安装mysql

Centos7离线安装MySQLlinux版本:Centos7mysql版本:mysql-5.7.29-1.el7.x86_64一、安装1、下载mysql离线安装包下载地址:https://dev.mysql.com/downloads/mysql/2、上传tar包至服务器3、删除原有的mariadb先查看一下是否已经安装了,命令:rpm -qa|grep mariadb删除mariadb,命令:rpm -e --nodeps mariadb-libs4、解压缩mysql离线安装包

2020-09-29 11:54:01 559

原创 形式化学习方法

import multiprocessing as mpfrom dataclasses import dataclassfrom typing import List, Dictfrom z3 import *from ast import *# a symbolic execution engine.# symbolic execution memory model will store arguments, symbolic values and path condition@.

2020-06-28 22:42:51 1755

原创 Tomcat&Servlet

今日内容1. web相关概念回顾2. web服务器软件:Tomcat3. Servlet入门学习web相关概念回顾1. 软件架构 1. C/S:客户端/服务器端 2. B/S:浏览器/服务器端2. 资源分类 1. 静态资源:所有用户访问后,得到的结果都是一样的,称为静态资源.静态资源可以直接被浏览器解析 * 如: html,css,JavaScript 2. 动态资源:...

2019-12-10 21:49:36 142

原创 html&&css基础

今日内容:1. HTML标签:表单标签2. CSS:HTML标签:表单标签* 表单: * 概念:用于采集用户输入的数据的。用于和服务器进行交互。 * form:用于定义表单的。可以定义一个范围,范围代表采集用户数据的范围 * 属性: * action:指定提交数据的URL * method:指定提交方式 ...

2019-12-10 21:48:31 98

原创 html基础

今日内容1. web概念概述2. HTMLweb概念概述* JavaWeb: * 使用Java语言开发基于互联网的项目* 软件架构: 1. C/S: Client/Server 客户端/服务器端 * 在用户本地有一个客户端程序,在远程有一个服务器端程序 * 如:QQ,迅雷... * 优点: 1. 用户体验好 * 缺点: 1. 开发、安装,部署,维护 麻...

2019-12-10 21:47:38 110

原创 JDBC基础笔记

JDBC:1. 概念:Java DataBase Connectivity Java 数据库连接, Java语言操作数据库 * JDBC本质:其实是官方(sun公司)定义的一套操作所有关系型数据库的规则,即接口。各个数据库厂商去实现这套接口,提供数据库驱动jar包。我们可以使用这套接口(JDBC)编程,真正执行的代码是驱动jar包中的实现类。2. 快速入门: * 步骤: 1. 导入...

2019-11-25 19:38:01 112

原创 《深入理解计算机系统》第3章家庭作业

3.58long decode2(long x,long y,long z){ y=y-z; x=x*y; result = (y<<63)>>63; result = result^x; return result;} 3.60A: %rdi保存x,%esi保存n,%rdx保存mask,%rax保存resultB: result = 0; m...

2019-10-07 21:36:05 244

原创 关于cv的调研报告

#关于cv的调研报告目前,随着人工智能第三次高潮的到来,机器学习,深度学习的迅猛发展,计算机视觉已经成为当前人工智能领域发展最快速,落地最顺利的技术之一。随着计算机视觉技术的日渐成熟,人们对安全和效率需求的提高,未来计算机视觉市场规模也将迎来突破性发展。##一、 计算机视觉的方向:###1. 图像分类###2. 目标检测###3. 图像分割###4. 风格迁移###5. 图像重构#...

2019-10-06 22:53:48 1365

原创 sklearn实现多项式回归

1)生成数据集import numpy as npimport matplotlib.pyplot as pltn_train, n_test, true_w, true_b = 100, 100, [1.2, -3.4, 5.6], 5 # X = np.linspace(-3,3,n_train+n_test)X = np.random.normal(size=(n_train...

2019-10-06 22:44:53 1239 1

原创 JavaScript高级笔记

今日内容:1. JavaScript: 1. ECMAScript: 2. BOM: 3. DOM: 1. 事件DOM简单学习:为了满足案例要求* 功能:控制html文档的内容* 获取页面标签(元素)对象:Element * document.getElementById("id值"):通过元素的id获取元素对象* 操作Element对象: 1. 修改属性值: 1....

2019-09-18 16:14:10 81

原创 JavaScript基础笔记

今日内容1. JavaScript基础JavaScript:* 概念: 一门客户端脚本语言 * 运行在客户端浏览器中的。每一个浏览器都有JavaScript的解析引擎 * 脚本语言:不需要编译,直接就可以被浏览器解析执行了* 功能: * 可以来增强用户和html页面的交互过程,可以来控制html元素,让页面有一些动态的效果,增强用户的体验。* JavaScript发展史: ...

2019-09-18 16:12:37 72

原创 MySQL约束笔记

今日内容1. DQL:查询语句 1. 排序查询 2. 聚合函数 3. 分组查询 4. 分页查询2. 约束3. 多表之间的关系4. 范式5. 数据库的备份和还原DQL:查询语句1. 排序查询 * 语法:order by 子句 * order by 排序字段1 排序方式1 , 排序字段2 排序方式2... * 排序方式: * ASC:升序,默认的。 * D...

2019-09-10 21:10:51 80

原创 MySQL基础课堂笔记

今日内容数据库的基本概念MySQL数据库软件安装卸载配置SQL数据库的基本概念1. 数据库的英文单词: DataBase 简称 : DB2. 什么数据库? * 用于存储和管理数据的仓库。3. 数据库的特点: 1. 持久化存储数据的。其实数据库就是一个文件系统 2. 方便存储和管理数据 3. 使用了统一的方式操作数据库 -- SQL​4. ...

2019-09-09 18:55:52 157

原创 PAT 1088 Rational Arithmetic (20 分) -甲级

1088 Rational Arithmetic (20 分)For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Each ...

2019-08-19 21:47:19 74

原创 PAT 1007 Maximum Subsequence Sum (25 分) -甲级

1007 Maximum Subsequence Sum (25 分)Given a sequence of K integers { N1, N2, …, N**K }. A continuous subsequence is defined to be { N**i, N**i+1, …, N**j } where 1≤i≤j≤K. The Maximum Subsequence is th...

2019-08-17 21:09:02 80

原创 PAT 1087 All Roads Lead to Rome (30 分) -甲级

1087 All Roads Lead to Rome (30 分)Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happ...

2019-08-17 21:07:48 103

原创 PAT 1072 Gas Station (30 分) -甲级

1072 Gas Station (30 分)A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it must gu...

2019-08-17 21:06:36 108

原创 PAT 1030 Travel Plan (30 分) -甲级

1030 Travel Plan (30 分)A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to de...

2019-08-17 21:04:48 104

原创 PAT 1018 Public Bike Management (30 分) -甲级

1018 Public Bike Management (30 分)There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and retu...

2019-08-17 21:03:22 118

原创 PAT 1003 Emergency (25 分) -甲级

1003 Emergency (25 分)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams ...

2019-08-17 21:01:40 63

原创 PAT 1021 Deepest Root (25 分) -甲级

1021 Deepest Root (25 分)A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a h...

2019-08-17 21:00:18 99

原创 PAT 1013 Battle Over Cities (25 分) -甲级

1013 Battle Over Cities (25 分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We ...

2019-08-17 20:58:46 64

原创 PAT 1076 Forwards on Weibo (30 分) -甲级

1076 Forwards on Weibo (30 分)Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed wit...

2019-08-17 20:51:25 103

原创 PAT 1034 Head of a Gang (30 分) -甲级

1034 Head of a Gang (30 分)One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a ...

2019-08-17 20:24:54 97

原创 PAT 1001 害死人不偿命的(3n+1)猜想 (15) -乙级

1001. 害死人不偿命的(3n+1)猜想 (15)卡拉兹(Callatz)猜想:对任何一个自然数n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把(3n+1)砍掉一半。这样一直反复砍下去,最后一定在某一步得到n=1。卡拉兹在1950年的世界数学家大会上公布了这个猜想,传说当时耶鲁大学师生齐动员,拼命想证明这个貌似很傻很天真的命题,结果闹得学生们无心学业,一心只证(3n+1),以至于...

2018-01-18 15:09:01 388

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除