a:apache m:mariadb,mysql, p:php,perl,python [root@localhost conf]#yum -y install mysql pgp-mysql mariadb-server php [root@localhost conf]#rpm -qi mari ...
分类:
其他好文 时间:
2017-12-26 11:57:28
阅读次数:
109
【传送门:BZOJ2434】 简要题意: 给出一个模式串 题解: 处理x字符串在y字符串出现的次数,很容易想到fail树 一开始想着把y字符串的结尾字符在trie树上的位置开始,往上找,找到的点的fail指针如果指向x字符串的结尾字符的话,ans就++ 但是这样做的时间复杂度是O(mn),显然会超时 ...
分类:
其他好文 时间:
2017-12-25 15:08:49
阅读次数:
208
在解释Java中FileInputStream和FileReader的具体区别之前,我想讲述一下Java中InputStream和Reader的根本差异,以及分别什么时候使用InputStream和Reader。实际上, InputStream和Reader都是抽象类,并不直接地从文件或者套接字(s ...
分类:
编程语言 时间:
2017-12-25 11:44:56
阅读次数:
198
【传送门:BZOJ3172】 简要题意: 给出n个字符串,求出每个字符串在这n个字符串中出现的次数 题解: 很容易就想到AC自动机,但是单单是AC自动机还不行 这时就要用AC自动机的延伸——fail树来做(时常膜一膜算法,有益身体健康) fail树这个玩意就是将AC自动机中fail指针当成是一条边, ...
分类:
其他好文 时间:
2017-12-24 15:52:51
阅读次数:
128
#!/bin/bash for x in $(cf a|grep started|tr -s " " |cut -d " " -f 1) do ins_quantity=$(cf a|grep $x|tr -s " "|cut -d " " -f 3|cut -d "/" -f 2); app_me... ...
分类:
系统相关 时间:
2017-12-23 20:20:03
阅读次数:
189
1.创建 ssh key; $ssh-keygen -t rsa -C "youremail@example.com" youremail@example.com为设置的邮箱 不用设置密码 一直回车; id-rsa 是私钥;id-rsa.pub 是公钥; 2. 登录GitHub; 打开Account ...
分类:
其他好文 时间:
2017-12-23 12:01:16
阅读次数:
184
1.安装chrome (1) 添加chrome的repo源 vi /etc/yum.repos.d/google.repo [google]name=Google-x86_64baseurl=http://dl.google.com/linux/rpm/stable/x86_64enabled=1g ...
分类:
其他好文 时间:
2017-12-21 17:19:09
阅读次数:
635
首先运行bin/start-all.sh发现namenode没有启动 只有它们 9428 DataNode 9712 JobTracker 9626 SecondaryNameNode 9983 Jps 9915 TaskTracker 遇到问题要学会翻看日志 cd /usr/local/hadoo ...
分类:
其他好文 时间:
2017-12-20 20:09:57
阅读次数:
228
第一次在mac安装遇到如下问题: 截图: 具体code如下: 我遇到上面的错误,主要是因为缺少xcode-select 会弹出插件安装框,安装好之后再执行 brew install openresty/brew/openresty 进行安装即可。 安装完成后,启动openresty,命令行直接输入o ...
分类:
其他好文 时间:
2017-12-20 13:32:44
阅读次数:
778
出错信息: ==> Creating package "anaconda"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Adding install file... -> Generating .MTRE ...
分类:
编程语言 时间:
2017-12-20 03:46:38
阅读次数:
145