idea连接MySQL数据库报时区问题: Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually. 解决办法: 登录MySQL,设置时区: set global ...
分类:
数据库 时间:
2020-03-21 23:41:58
阅读次数:
370
一、依赖倒置原则定义 1、上层模块不应该依赖底层模块,它们都应该依赖于抽象。(High level modules should not depend upon low level modules. Both should depend upon abstractions.)2、抽象不应该依赖于细节 ...
分类:
其他好文 时间:
2020-03-21 14:35:49
阅读次数:
71
Given any positive integer N , you are supposed to find all of its prime factors, and write them in the format N = p 1 k 1× p 2 k 2×?× p m k m . Input ...
分类:
其他好文 时间:
2020-03-21 13:10:32
阅读次数:
77
一、常用参数详解Ansible默认配置文件为/etc/ansible/ansible.cfg,配置文件中可以对ansible进行各项参数的调整,包括并发线程、用户、模块路径、配置优化等,如下:Ansible.cfg常用参数详解:[defaults]通用默认配置段;inventory=/etc/ansible/hosts被控端IP或者DNS列表;library=/usr/share/my_modul
分类:
其他好文 时间:
2020-03-21 10:07:28
阅读次数:
88
Masonry 中设置布局优先级需要使用系统方法: 设置抗拉伸性。值越低越容易被拉伸 - (void)setContentHuggingPriority:(UILayoutPriority)priority forAxis:(UILayoutConstraintAxis)axis; 实例代码: [A ...
分类:
移动开发 时间:
2020-03-20 21:57:05
阅读次数:
457
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2020-03-19 22:04:02
阅读次数:
72
1 #include<stdio.h> 2 int main() 3 { 4 int a[3][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 11, 12 }; //设置数组 5 int i, k,max,low,row; 6 max = 0; 7 low = 0; 8 ...
分类:
编程语言 时间:
2020-03-18 20:26:56
阅读次数:
77
expdp可以将数据库中的元数据与行数据导出到操作系统的转储文件. 1).使用create directory语句创建目录对象 SQL> create or replace directory dumpdir as '/opt/oracle/dump'; 2).使用grant语句为用户授予目录对象的 ...
分类:
其他好文 时间:
2020-03-17 19:45:06
阅读次数:
78
SVD(Singular Value Decomposition,奇异值分解)是一种强大的降维工具 很多情况下,数据的一小段携带了大部分信息,其他要么是噪声,要么就是毫不相关的信息,SVD 是矩阵分解的一种,可以把 SVD 看成是从噪声数据中抽取相关特征 优点:简化数据,去除噪声,提高算法的结果 缺 ...
分类:
其他好文 时间:
2020-03-14 21:37:56
阅读次数:
75
http://poj.org/problem?id=1952 题目 你想买股票,方法是每次买的价格都比上一次的低(第一次不受限制)。你预先知道了每天的价格(= =),问最多能买几次,买这么多次产生的价格序列有多少种。 题解 难在价格序列的计数上面 如 \[5\quad3\quad1\quad4\qu ...
分类:
其他好文 时间:
2020-03-14 19:58:12
阅读次数:
51