Absent-minded Masha got set of n cubes for her birthday. At each of 6 faces of each cube, there is exactly one digit from 0 to 9. Masha became interes ...
分类:
其他好文 时间:
2017-11-07 19:46:43
阅读次数:
189
Single Responsibility Principle 简称SRP,定义为:应该有且仅有一个原因引起类的变更,也就是将对象的属性和行为进行分离,通过一个接口变两个接口来实现分离。一个接口或类只有一个原因引起变化,也就是一个接口或一个只有一个职责,负责一件事情。生搬硬套单一原则会引起类的剧增, ...
分类:
其他好文 时间:
2017-11-07 17:57:51
阅读次数:
184
CentOS6和CentOS7恢复root口令的方法有很大不同 CentOS6: 在引导菜单倒计时界面按任意键,进入grub引导菜单 按e键进入内核引导参数编辑界面 选中kernel项,按e键编辑引导参数,在末尾追加single(也可以填数字1) 回车返回上级界面,按b键开始引导内核 引导完成后,至 ...
分类:
其他好文 时间:
2017-11-07 13:15:50
阅读次数:
515
In Single Page Apps we're used to fetch the data on event callbacks. That disables the capacity to use the URL to share it to someone else and get to ...
分类:
Web程序 时间:
2017-11-06 19:16:16
阅读次数:
186
题目描述 Farmer John has decided to give each of his cows a cell phone in hopes to encourage their social interaction. This, however, requires him to set ...
分类:
移动开发 时间:
2017-11-05 13:14:28
阅读次数:
239
2017/11/3 Leetcode 日记 654. Maximum Binary Tree Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: ...
分类:
其他好文 时间:
2017-11-03 21:44:59
阅读次数:
196
文档参考地址:http://blog.csdn.net/u010587433/article/details/49305019 需求: 使用Goldengate完成Mysql到Mysql的数据同步,源库的o2m-mc库同步到目标库的gmdc库,表名GMQDSJSP,换句话说,就是不同数据库之间表之间 ...
分类:
数据库 时间:
2017-11-03 20:23:58
阅读次数:
264
本文转自 http://www.cnblogs.com/skywang12345/p/3310928.html 概要 这一章,我们对TreeMap进行学习。我们先对TreeMap有个整体认识,然后再学习它的源码,最后再通过实例来学会使用TreeMap 转载请注明出处:http://www.cnblo ...
分类:
其他好文 时间:
2017-11-03 19:11:25
阅读次数:
252
问题:查询当前数据库系统时间(sysdate)select sysdate from dual; dual :是Oracle自带的一张虚拟表,没有任何意义,为了保证sql语句的完整性。 Oracle中携带了大量了函数: 单行函数(single function) 多行函数(组函数) 数字函数 rou ...
分类:
其他好文 时间:
2017-11-03 13:02:04
阅读次数:
149
单例模式,有“懒汉式”和“饿汉式”两种。 懒汉式 单例类的实例在第一次被引用时候才被初始化。 饿汉式 单例类的实例在加载的时候就被初始化。 在单线程程序中,上面两种形式基本可以满足要求了,但是在多线程环境下,单例类就有可能会失效,这个时候就要对其加锁了,来确保线程安全。 对线程加锁用的synchro ...
分类:
其他好文 时间:
2017-11-02 21:09:15
阅读次数:
170