摘要: MEMORY=`free | sed -n '2p' | awk '{print $4}'` USE_MEMORY_RATE=0.8 ## 判断USE_MEMORY_RATE 值是否在0~1之间 PRODUCT=`bc << EOF scale = 0 a1 = $USE_MEMORY_RATE b1 = 10 a1 * b1 EOF` index=`expr index "${PRODUCT... 阅读全文
posted @ 2019-02-28 16:51 空空的小冷 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.首先确保新用户至少拥有一个库表的权限。 阅读全文
posted @ 2018-12-15 09:45 空空的小冷 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 创建一个仓库 git init 把文件添加到仓库 git add readme.txt 把文件提交到仓库git commit -m "wrote a readme file" 查看仓库状态git status 查看某个文件的修改记录git diff readme.txt 查看仓库的历史提交记录git 阅读全文
posted @ 2018-07-31 09:42 空空的小冷 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Windows操作系统中,当我们在安装Mysql数据库服务器的时候,通常有两个选择:一是去官方网站下载Mysql -installer.exe,利用windows系统安装程序的方法按部就班的来安装;二是去软件社区下载mysql绿色免安装版,解压出来就能立即使用。 以上两种方式都可以顺利在电脑上装好M 阅读全文
posted @ 2017-11-07 13:18 空空的小冷 阅读(8940) 评论(0) 推荐(0) 编辑
摘要: 此代码并不复杂,但却是其他集合数据类型的实现的模版 阅读全文
posted @ 2017-09-24 11:20 空空的小冷 阅读(140) 评论(0) 推荐(0) 编辑
摘要: public class Evaluate{ public static void main(String[] args){ Stack ops = new Stack(); Stack vals = new Stack(); Scanner in = new Scanner(System.in); while (in.ha... 阅读全文
posted @ 2017-09-24 10:41 空空的小冷 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1.添加maven依赖 2.获取拼音逻辑 阅读全文
posted @ 2017-09-22 15:58 空空的小冷 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: public class DoGetChinese{ public static void main(String[] args) { String src = "D:/ab.txt"; String res = "D:\\static"; File srcFile = new File(src); ... 阅读全文
posted @ 2017-09-22 15:39 空空的小冷 阅读(299) 评论(0) 推荐(0) 编辑
摘要: public static String getChinese(String paramValue) { String regex = "([\u4e00-\u9fa5]+)"; String str = ""; Matcher matcher = Pattern.compile(regex).matcher(paramVa... 阅读全文
posted @ 2017-09-22 15:00 空空的小冷 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一.前言 存储在数据库中的数据一般不是应用程序所需要的格式,我们需要直接从数据库检索出转换、计算或格式化过的数据,这就是计算字段发挥作用的所在了。 二.相关术语解释 字段(field) 基本上与列(column)的意思相同,经常互换使用,不过数据库一般称为列,而术语字段通常用在计算字段的连接上。 三 阅读全文
posted @ 2017-04-29 09:36 空空的小冷 阅读(207) 评论(0) 推荐(0) 编辑