获取随机字符串或数字 随机获取8位字符串 # 方法一 echo $RANDOM |md5sum |cut -c 1-8 d2614e90 # 方法二 openssl rand -base64 4 6kLKvQ== # 方法3 cat /proc/sys/kernel/random/uuid |cut ...
分类:
系统相关 时间:
2020-06-30 22:26:01
阅读次数:
99
title: 数论 行列式 date: 2019-08-26 16:36:33 tags: 数论 数论 行列式 1.1 一些前置知识——排列 排列:从n个不同元素中任取m个元素,按照一定的顺序排列,就是从n个不同元素中抽取m个元素的一个排列 逆序对:\(\exists i<j \quad a_i>a ...
分类:
其他好文 时间:
2020-06-29 22:50:15
阅读次数:
105
枚举工具类:封装判断是否存在这个枚举 1. 定义一个枚举类,继承BaseEnum public enum MethodEnum implements BaseEnum { /** get请求方法 */ GET(1, "GET"), /** post请求方法 */ POST(2, "POST"), / ...
分类:
其他好文 时间:
2020-06-29 11:57:58
阅读次数:
48
IOS active 状态失效问题 失效原因 By default, Safari Mobile does not use the :active state unless there is a touchstart event handler on the relevant element or ...
分类:
移动开发 时间:
2020-06-29 00:21:02
阅读次数:
69
1、cobbler check失败 httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback: Traceback (most recent call ...
分类:
其他好文 时间:
2020-06-28 22:55:20
阅读次数:
118
LeetCode 0701. Insert into a Binary Search Tree 二叉搜索树中的插入操作【Medium】【Python】【二叉树】 Problem LeetCode Given the root node of a binary search tree (BST) an ...
分类:
编程语言 时间:
2020-06-28 20:34:28
阅读次数:
44
方法一 直接使用流判断 public static bool isFileLocked(string pathName) { try { if (!File.Exists(pathName)) { return false; } using (var fs = new FileStream(path ...
1 BOOL IsAlreadyRun() 2 3 { 4 5 HANDLE hMutex = NULL; 6 hMutex = ::CreateMutex(NULL,FALSE,"Application"); 7 if(hMutex) 8 { 9 if(ERROR_ALREADY_EXIST==: ...
Tableau Public从网站上下载的twbx文件加载时,报错。 An error occurred while communicating with Tableau Data Extract. Unable to connect to the server. Check that the se ...
分类:
其他好文 时间:
2020-06-26 18:19:10
阅读次数:
175
@ 前言 SpringBoot是Spring的包装,通过自动配置使得SpringBoot可以做到开箱即用,上手成本非常低,但是学习其实现原理的成本大大增加,需要先了解熟悉Spring原理。如果还不清楚Spring原理的,可以先查看博主之前的文章,本篇主要分析SpringBoot的启动、自动配置、Co ...
分类:
编程语言 时间:
2020-06-26 14:56:57
阅读次数:
52