https://www.cnblogs.com/cute/archive/2011/08/26/2154137.html 1、判断字符串为空 if [ -z "$str" ]; then echo "empty string" fi 2、判断文件是否存在 if [ -f /home/builder/ ...
分类:
系统相关 时间:
2020-06-29 13:44:40
阅读次数:
107
使用encodeURI()和encodeURIComponent()函数将字符串转换为通用资源标识符 前提是字符串: var uri="http://www.jxbh.cn/illegal value.htm#start"; console.log(encodeURI(uri)); // http: ...
分类:
Web程序 时间:
2020-06-29 11:47:59
阅读次数:
74
一、问题来源 当项目依赖其他jar包的时候,打出的jar包执行出错,抛出标题中的异常。 原因:因为依赖jar包中的META-INF中有多余的.SF文件与当前jar包冲突。 二、解决方案 2.1 打包前排除 maven项目在pom.xml文件: <plugin> <groupId>org.apache ...
分类:
编程语言 时间:
2020-06-28 19:02:32
阅读次数:
62
namespace WpfGridChange { using System; using System.CodeDom.Compiler; using System.Diagnostics; using System.Windows; using System.Threading.Tasks; p ...
1、判断1.1 if语句if condition;then commandfi示例:#!/bin/bashif [ `ps -elf | grep -c ssh` -gt 1 ]; then echo "true"fi命令行展示:if [ `ps -elf | grep -c ssh` -gt 1 ...
分类:
系统相关 时间:
2020-06-28 00:39:18
阅读次数:
78
1.oracle 用户环境: 主库: [oracle@hzmtx admin]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi ...
分类:
数据库 时间:
2020-06-28 00:20:49
阅读次数:
82
Ubuntu操作系统运行apt update命令时会卡在Connecting to security.ubuntu.com,搭了梯子也无法解决 尝试了网络上的方法,如: https://blog.csdn.net/v6543210/article/details/81562266 https://u ...
分类:
系统相关 时间:
2020-06-28 00:08:44
阅读次数:
162
单例模式(Singleton) /*** * Class Singleton 单例模式 * 单例类不能再其它类中直接实例化,只能被其自身实例化。它不会创建实例副本,而是会向单例类内部存储的实例返回一个引用。 * 1.私有的构造函数、克隆函数,防止外部代码new、clone * 2.私有的静态的成员变 ...
分类:
Web程序 时间:
2020-06-27 18:40:16
阅读次数:
99
UGO(User/Group/Others) 目前在 Linux/Unix 文件系统中使用,也是使用最广泛的权限控制方式。是一种粗 粒度的文件系统权限控制模式。 ACL(Access Control List)访问控制列表 包括三个方面: 权限模式(Scheme) 1、IP:从 IP 地址粒度进行权 ...
分类:
其他好文 时间:
2020-06-27 13:35:50
阅读次数:
90
DAY 3 特殊方格棋盘 互不侵犯 旅游景点 Tourist Attractions 愤怒的小鸟 上白泽慧音 受欢迎的牛 BLO ...
分类:
其他好文 时间:
2020-06-26 18:29:22
阅读次数:
55