Given an array of integers, every element appears
three times except for one. Find that single one. Note: Your algorithm should
have a linear runtime ...
分类:
其他好文 时间:
2014-05-27 00:10:26
阅读次数:
319
本文网上收集+自己的经验,持续更新中。。。。1、书写独立的用例,可独立执行。2、每个用例只测试一件事。3、每个测试用例中只写一个Assert。4、使用便于识别的名称。__5、使用描述性信息。例:
Assert.AreEqual(a, b, "a,b must be equal")6、通过Code C...
分类:
其他好文 时间:
2014-05-26 21:01:55
阅读次数:
267
这两天正在将之前的一款cocos2d游戏,移植到wp平台上,这里记录一下所遇到的问题以及解决方法。我是用的cocos2d下面的例子程序进行修改的。遇到的第一个问题是资源路径的问题,当时我把解决方案下面的Assert删除后自己又新建了Resources目录,但是导入资源时选择了与Classes同级目录...
分类:
其他好文 时间:
2014-05-26 15:23:31
阅读次数:
521
Virtualization Basics Virtualization is not a
new concept, but its complexity has been growing, and a number of new paradigms
are rising. I will try t...
分类:
其他好文 时间:
2014-05-26 12:08:01
阅读次数:
381
我曾经针对yii制作了
个nginx配置,其中包括了以下几项内容:rewrite规则(try_file),需要nginx0.8.6版本以上支持。针对于icon,
robots.txt文件的日志优化.svn, .git,等版本控制文件的忽略,以及Mac本身索引文件目录Yii框架本身应该禁止web访问的...
分类:
其他好文 时间:
2014-05-26 07:54:58
阅读次数:
255
public void Update(byte[] buffer){if ( buffer ==
null ) {throw new ArgumentNullException("buffer"); //判断参数为空,抛出异常,而非try
catch捕获}Update(buffer, 0, buf....
分类:
其他好文 时间:
2014-05-26 07:03:27
阅读次数:
268
最近经常做接口集成,总结两种使用JAVA调用webservice服务的两种方式,生成本地客户端类调用就不说了。第一种: public static String
testOAWebService(){ String result = ""; try { ...
分类:
Web程序 时间:
2014-05-26 02:22:43
阅读次数:
498
JavaScript 错误 - Throw、Try 和 CatchJavaScript
测试和捕捉try 语句允许我们定义在执行时进行错误测试的代码块。catch 语句允许我们定义当 try 代码块发生错误时,所执行的代码块。JavaScript
语句 try 和 catch 是成对出现的。语法tr...
分类:
编程语言 时间:
2014-05-24 09:53:13
阅读次数:
295
介绍一个多选list
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th...
分类:
其他好文 时间:
2014-05-23 00:52:57
阅读次数:
455