- 博客(77)
- 资源 (1)
- 收藏
- 关注
原创 Vue 实战入门部分细节
1. 为什么采用 vue.js 进行开发官方文档详细(且有中文文档),学习成本较低,有利于项目其他成员迅速投入开发。github 已经有许多 vue 开发的项目,架构易参考,配合 element-ui 很容易开发出一套相应的前端界面。该框架的开发可以把前后台完全分离,前端人员只负责前端开发,服务端人员负责服务端开发。vue有自己的请求处理方式,现在前后端都是用rest风格,前后台只在接口上...
2019-06-30 20:49:14
419
原创 【系统分析与设计】作业5
一.简答使用 UMLet 建模:1. 根据订旅馆建模文档,Asg-RH.pdf :1.1绘制用例图模型(到子用例)1.2 给出make reservation 用例的活动图2.根据课程练习“投递员使用投递箱给收件人快递包裹”的业务场景2.1 分别用多泳道图建模三个场景的业务过程x科技公司发明了投递柜,它们自建了投递柜以及远程控制系统。注册的投递员在推广期免费使用投递柜。由于缺乏资...
2019-05-26 13:39:56
451
原创 【系统分析与设计】作业4
用例建模 - 绘制用例图一、 简答题1. 用例的概念用例,或使用案例、用况,是软件工程或系统工程中对系统如何反应外界请求的描述,是一种通过用户的使用场景来获取需求的技术。每个用例提供了一个或多个场景,该场景说明了系统是如何和最终用户或其它系统互动,也就是谁可以用系统做什么,从而获得一个明确的业务目标。用例一般是由软件开发者和最终用户共同创作的。2. 用例和场景的关系?什么是主场景或 hap...
2019-05-26 13:30:02
618
原创 【系统分析与设计】作业2
简答题:用简短的语言给出对分析、设计的理解分析强调的是对问题和需求对调查研究,对可行性进行分析,而不是解决方案。设计强调的是满足需求的概念上的解决方案,而不是其实现。用一句话描述面向对象的分析与设计的优势实现面向对象程序设计的过程中,会实现设计出来的对象,所以面向对象分析与设计将问题中的对象转换为程序中的对象,使得程序设计更加清晰,项目架构更加清晰。简述 UML(统一建模语言...
2019-04-20 17:36:53
280
原创 【系统分析与设计】作业3
一、简述瀑布模型、增量模型、螺旋模型(含原型方法),并分析优缺点(从项目特点、风险特征、人力资源利用角度思考)【瀑布模型】是一种项目开发架构,开发过程是顺序展开的,从一个阶段流动到下一个阶段。瀑布模型中的每一个开发活动具有下列特征:【优点】降低软件开发的复杂程度,提高软件开发过程的透明性,提高 软件开发过程的可管理性推迟软件实现,强调在软件实现前必须进行分析和设计工作以项目...
2019-04-20 17:29:51
242
原创 【系统分析与设计】作业1
1. 软件工程的定义Software engineering is “(1) the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software, that is, the application of eng...
2019-03-22 10:37:04
289
原创 算法project实验报告
中山大学数据科学与计算机学院本科生实验报告(2018年秋季学期)课程名称算法设计与分析任课老师张子臻年级2016级专业(方向)计算机应用学号16340030姓名陈斯敏电话15917173057Email2540740154@qq.com开始日期2018.12.18完成日期2018.12.22实验问题描述Capacita...
2018-12-23 13:02:33
1810
原创 [每日算法] leetcode第169题Majority Element 和 第229题Majority Element II
169.Majority Element原题目描述Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and...
2018-12-10 00:05:22
212
原创 [每日算法] leetcode第72题 Edit Distance
题目描述给定两个字符串word1, word2。求出从word1到word2步骤最少的修改方式,修改方式包括替换(replace),插入(insert),删除(delete)。replace: “replace” -> “eeplace”insert: “insert” -> “iinsert”delete: “delete” ->“elete”解题思路我们使用一个二...
2018-12-09 23:46:52
231
原创 [每日算法】 背包问题
1.01背包问题:有N件物品和一个容量为V的背包。第i件物品的费用是c[i],价值是w[i]。求解将哪些物品装入背包可使这些物品的费用总和不超过背包容量,且价值总和最大。分析:用dp[i][v]表示将前i个物品放入价值为v的背包能获得的最大价值计算dp[i][v]时,分两种情况:第i件物品选或者不选,二者中价值较大的值就是f[i][v]的值,即:dp[i][v]=max{dp[i-1...
2018-12-02 21:33:47
488
原创 [每日算法] leetcode第115题 Distinct Subsequence 和 第321题 Create Maximum Number
115. Distinct Subsequence原题目描述Given a string S and a string T, count the number of distinct subsequences of S which equals T.A subsequence of a string is a new string which is formed from the origi...
2018-11-18 22:24:48
233
原创 [每日算法] leetcode第221题 Maximal Square
原题目描述Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area.Example:Input: 1 0 1 0 01 0 1 1 11 1 1 1 11 0 0 1 0Output: 4题目大意题干清...
2018-11-11 17:09:41
413
原创 [每日算法] leetcode第198题 House Robber 和 第213题 House Robber II
198. House Robber原题目描述You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of the...
2018-11-04 10:46:19
353
原创 [每日算法] leetcode第345题 Reverse Vowels of a String
345 Reverse Vowels of a String原题目描述Write a function that takes a string as input and reverse only the vowels of a string.Example 1: Input: "hello" Output: "holle"Example 2: Input: "le...
2018-10-27 23:32:51
329
原创 python 爬取编码(charset)为gbk的网页
最近因为安卓作业需要,要对王者荣耀的官方网站进行爬取,然而在最开始便遇到了一些问题,王者荣耀官网的网页charset=gbk,所以爬取时需要进行编码转换,然而转换后却依旧中文乱码,经过查找,发现以下两种解决办法:第一种: req = requests.get(headers=header, url=url) content = req.content print cont...
2018-10-27 00:49:36
7083
1
原创 Windows 安装ffmpeg并从视频中提取音频
安装ffmpeg一、下载地址http://ffmpeg.zeranoe.com/builds/选择符合自己系统的32位或者64位static版本二、下载并解压FFmpeg文件夹,它会生成一个类似名为“ffmpeg-20181018-f72b990-win64-static”的文件夹,里面的bin文件夹里有我们需要的可执行文件,我这里放在E盘中:三、配置系统环境变量,右键我的电脑-&g...
2018-10-22 00:50:27
4920
3
原创 [每日算法] leetcode第112题 Triangle
112 Triangle原题目描述Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], ...
2018-10-21 20:10:07
346
转载 git fork后同步更新
原因之前实验在gitee上fork了老师的项目,而后其项目是渐进式的,后期也逐渐更新了,那么如何保证自己的项目代码保持同步更新呢,总不能下下来然后git add 和git commit吧。查询git资料得知其有与fork同步更新的指令。参考博客:https://blog.youkuaiyun.com/hahachenchen789/article/details/78580281操作过程首先保证本地仓...
2018-10-14 11:18:44
9002
原创 [每日算法] leetcode第24题 Swap Nodes in Pairs、第 111题 Minimum Depth of Binary Tree
111. Minimum Depth of Binary Tree原题目描述Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node....
2018-10-14 11:00:01
728
原创 [每日算法] leetcode第62题 Unique Paths
原题目描述A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach t...
2018-10-04 00:40:38
3183
原创 docker logs不显示颜色解决
问题实验室新评测日志系统使用的是google的glog,然而上线之后发现使用docker logs输出的日志内容没有颜色显示,这对于运维查看问题很不方便,于是便着手解决。解决最开始以为是glog的原因,后来docker exec到容器内部执行一段测试代码之后,发现容器内部终端有颜色输出啊:所以初步可以肯定不是glog的问题,而是docker的问题,于是,退出容器,在容器外部跑里面的测试代...
2018-10-03 14:41:03
7454
原创 [每日算法] leetcode第113题 Path Sum II
原题目描述Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.Note: A leaf is a node with no children.Example:Given the below binary tree and sum = 22,...
2018-09-30 15:31:59
2917
原创 [每日算法] leetcode第151题 Reverse Words in a String
原题目描述Given an input string, reverse the string word by word.Example:Input: “the sky is blue”,Output: “blue is sky the”.Note:A word is defined as a sequence of non-space characters. Input stri...
2018-09-23 01:28:16
3500
原创 Android开发环境搭建笔记总结
Android开发环境搭建笔记总结一、Java 环境安装配置Android studio的配置和安装依赖与Java环境,所以我们需要先进行安装和配置Java环境。下载Java安装包 首先需要安装jdk,这里在网上有很多下载地址,但还是推荐去官网下载最新版本:https://www.java.com/zh_CN/配置环境变量 在“系统变量”新建一个变量名为JAVA_H...
2018-09-16 20:32:10
4937
原创 git 学习笔记
git日常使用总结此处内容参考自廖雪峰的Git教程,其学习参考网址为: https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000一、本地操作1.初始化仓库 相关命令:git init 作用: 初始化仓库,建成一个空的仓库,同时多了一个.git目录,但是一般默认是隐藏的...
2018-09-16 19:38:00
3965
原创 [每日算法] leetcode第31题 Next Permutation
原题目描述 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the low...
2018-09-16 10:39:07
3737
原创 [每日算法] leetcode第179题 Largest Number
原题目描述Given a list of non negative integers, arrange them such that they form the largest number.Example 1: Input: [10,2] Output: “210” Example 2: Input: [3,30,34,5,9] Note: The result ma...
2018-09-08 09:27:40
3246
原创 UWP 实现保存image控件图片到本地
实现代码如下: private async void save_image(string desiredName) { StorageFolder applicationFolder = ApplicationData.Current.LocalFolder; StorageFolder folder = await applica...
2018-03-31 03:43:16
5254
原创 innobackupex 单数据库备份和还原(增量备份)
innobackupex 安装官网链接(戳我)命令行下安装指令如下:$ wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb$ sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb$ sudo ...
2018-03-27 01:06:59
6777
原创 nodejs运行命令行下system指令,完成g++编译
此样例为简单样例,基本实现功能,仅为自己笔记。var callfile = require('child_process');var exec = require('child_process').exec; exec('g++ test.cpp -o test', function(err,stdout, stderr){ if(err) { console.log('...
2018-03-25 11:09:58
4944
转载 linux报错:export `=' not a valid identifier的一般原因
export `=’ not a valid identifier的一般原因原地址戳我原因就是你修改的 /etc/profile 文件里 你加过空格我的代码如下:export JAVA_HOME = /usr/java/jdk1.7.0_75export PATH = $JAVA_HOME/bin:$PATHexport CLASSPATH = .:$JAVA_HOME/li...
2018-03-07 13:17:14
47364
4
原创 crontab命令小结
之前为了做数据库备份,了解了一些关于crontab的知识,现在将其总结一下。一、什么是crontab?(以下参考百度)crond是linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自动启动crond进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任
2018-01-21 20:37:20
4073
原创 Linux添加PATH
在profile中设置PATH vi /etc/profile找到export行,在下面新增加一行,内容为: export PATH=$PATH:/usr/local/apache/bin。注:= 等号两边不能有任何空格。这种方法最好,除非手动强制修改PATH的值,否则将不会被改变。 编辑/etc/profile后PATH的修改不会立马生效,如果需要立即生效的话,网上说可以执行命令
2017-12-20 17:07:03
4448
原创 pip install 时locale.Error: unsupported locale setting的解决办法
使用pip安装docker-compose,结果一直报错locale.Error: unsupported locale setting,经查找,是语言设置问题 问题如下图: 解决办法如下图:
2017-12-14 15:26:48
4630
转载 jquery mouse事件小坑
mouseover与mouseenter不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件。只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件。mouseout与mouseleave不论鼠标指针离开被选元素还是任何子元素,都会触发 mouseout 事件。只有在鼠标指针离开被选元素时,才会触发 mouseleave 事件。
2017-12-06 17:54:43
4030
原创 快速删除docker中的容器
1、停用全部运行中的容器: docker stop $(docker ps -q)2、删除全部容器: docker rm $(docker ps -aq)3、一条命令实现停用并删除容器: docker stop $(docker ps -q) & docker rm $(docker ps -aq)
2017-11-17 22:23:52
4258
转载 javascript 快速获取图片实际大小的宽高
javascript 快速获取图片实际大小的宽高简陋的获取图片实际宽高的方式// 图片地址var img_url = '13643608813441.jpg'// 创建对象var img = new Image()// 改变图片的srcimg.src = img_url// 打印alert('width:'+img.width+',height:'+img.height);结果如下: 宽高
2017-11-15 22:14:19
4402
原创 docker 部分常用命令及其功能笔记汇总
docker ps -a列出所有容器,包括已经停止的容器 docker rmi image-name删除对应镜像,如果改镜像还有对应容器在运行,需要停止删除容器才能删除镜像 docker rm container_name删除对应容器,如果容器在运行,需要加 -f 参数 docker exec -it container_name bash 以bash形式进入容器,类似于把doc
2017-11-13 22:53:17
4336
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人