1.单一职责原则(srp):就是设计一个对象,对象的职责要单一.比如设计用户类,将用户的行为和用户的属性分成两个接口,继承的方式设计类.还有一个srp的解释是:there is no more than one reason for a class to change但srp的原则有可能把握的过细,...
分类:
其他好文 时间:
2014-06-28 13:57:06
阅读次数:
205
/* * Created by SharpDevelop. * User: Administrator * Date: 2013/11/18 * Time: 20:55 * * To change this template use Tools | Options | Coding | Edit ....
分类:
其他好文 时间:
2014-06-28 12:34:14
阅读次数:
466
一。onConfigurationChanged 与android:configChangesLists configuration changes that the activity will handle itself. When a configuration change occurs at...
分类:
其他好文 时间:
2014-06-28 12:15:22
阅读次数:
207
案例环境: 启动一台数据库服务器(Windows Server 2003)的Reporting Service(SQL Server 2008 R2)服务时,出现如下错误信息: System.InvalidOperationException: Cannot start service Report...
分类:
其他好文 时间:
2014-06-23 08:24:07
阅读次数:
415
今天在进行代码检查的时候出现下面的异常:1 type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang...
分类:
编程语言 时间:
2014-06-23 08:05:13
阅读次数:
381
在学习makefile的时候涉及到修改时间,对于mtime,ctime,atime三个时间之间有啥区别呢??atime - access time mtime - if modify timectime - of change timels -luTo view ctimels -lcTo vi.....
分类:
其他好文 时间:
2014-06-23 07:58:14
阅读次数:
246
apt-get install lib32z1 如果libz.so.1: cannot open shared object file: No such file or directory在/etc/ld.so.conf中加入/usr/lib 增加类库所有路径 /sbin/ldconfig –v」来...
分类:
其他好文 时间:
2014-06-23 07:44:47
阅读次数:
306
相信不少人遇到过ORA-02429: cannot drop index used for enforcement of unique /primary key 这个错误,对应的中文提示“ORA-02429: 无法删除用于强制唯一/主键的索引”,其实从错误提示信息已经很明显了。下面还是用一个简单的例...
分类:
其他好文 时间:
2014-06-21 14:04:25
阅读次数:
297
报这个错,只有一个原因,就是转化的类型不对.接口过父类的子类,在强制转换的时候,一定要用接口父类来定义。代码示例:package com.luoluo.dao.impl;import java.sql.Connection;import java.sql.SQLException;import ja...
分类:
编程语言 时间:
2014-06-20 20:58:03
阅读次数:
900
#ifndef _LINUX_TASKS_H#define _LINUX_TASKS_H/** This is the maximum nr of tasks - change it if you need to*///最大的进程数量#define NR_TASKS 128#endif
分类:
系统相关 时间:
2014-06-20 17:29:36
阅读次数:
290