开放-关闭原则:是说软件实体(类、模块、函数等等)应该可以扩展,但是不可修改[ASD]。这其实说明了两个特征,一个是“对于扩展是开放的(Open for
extension)”,另一个是“对于更改是封闭的(Closed for modification)”[ASD]。对扩展开放,意味着有新的需求或变...
分类:
其他好文 时间:
2014-05-14 04:15:09
阅读次数:
266
JavaScript实现弹窗报错
1、具体错误如下
SCRIPT 5022:cannot call methods on dialog prior to initialization;
attempted to call method 'open'.
2、错误原因
3、解决办法...
分类:
编程语言 时间:
2014-05-13 07:01:27
阅读次数:
463
我发了一个wine的补丁,实现complex::pow的部分重载:http://source.winehq.org/patches/data/104267
HongQian帮我在irc上问了Piotr对这个补丁的看法,他说:
“it generally looks ok but it's possible to implement it with better
precision, so I...
看到很多程序都是根据CPU个数来创建线程个数,当时很不理解他们之间的关系,咨询了项目组的同事后才有了大致了解。1.相关系统函数下面的函数可以通过man命令查询到。SYNOPSIS
#define_GNU_SOURCE
#include<pthread.h>
intpthread_setaffinity_np(pthread_tthread,size_tc..
分类:
编程语言 时间:
2014-05-13 04:08:00
阅读次数:
450
下面是HTML文件用于上传3个文件
ACTION="Upload.asp">
Image
Text
Source Code
Archive
上传程序(Upload.asp):
Set Upload = Server.CreateObject("Persits.Upload.1")
...
分类:
其他好文 时间:
2014-05-13 00:21:11
阅读次数:
270
各种存储过程使用指南
'---开始链接数据库
Dim strConnString
strConnString = "driver={SQL Server};server=songhp;uid=sa;pwd=;database=XVZDemo"
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open str...
分类:
其他好文 时间:
2014-05-12 23:00:55
阅读次数:
304
网络层的“ip地址”可以唯一标识网络中的主机,而传输层的“协议+端口”可以唯一标识主机中的应用程序(进程)。这样利用三元组(ip地址,协议,端口)就可以标识网络的进程了,网络中的进程通信就可以利用这个标志与其它进程进行交互。Unix/Linux基本哲学之一就是“一切皆文件”,都可以用“打开open
...
分类:
其他好文 时间:
2014-05-12 20:45:35
阅读次数:
316
自己写的一段://goolchar* str_replace(char* source,
const char* find, const char* replace){ if (source == NULL || find == NULL ||
find == "") return strdup.....
分类:
其他好文 时间:
2014-05-12 02:42:20
阅读次数:
418
ListView相关http://b275518834201204034558.iteye.com/blog/1482140http://blog.csdn.net/jj120522/article/details/8229423http://www.open-open.com/lib/view/o...
分类:
移动开发 时间:
2014-05-12 02:14:38
阅读次数:
439
在微信开放平台,申请移动应用的时候:https://open.weixin.qq.com/cgi-bin/appcreate?t=manage/createMobile&type=app&lang=zh_CN&token=60682ddfbd9106b1c4b1f9d70f56c98e5f72890...
分类:
微信 时间:
2014-05-11 22:50:27
阅读次数:
675