建立一个Java project如下图所示:在Test.java://没用map的判断逻辑 int i = 1;//1,2,3 switch (i) { case 1: new RankLevel(); break...
分类:
编程语言 时间:
2014-07-16 18:15:56
阅读次数:
212
一. 被test的工程:新建一个android工程:D_session;它有一个activity:D_sessionActivity;package名:com.mysession二.测试工程:新建一个测试工程:D_sessionTest, 类型是android test project;1. men...
分类:
移动开发 时间:
2014-07-16 17:50:21
阅读次数:
241
mod_rewrite的魔力
简单举例:创建三个文件,分别命名为 test.html,test.php和.htaccess
test.html 输入:
This is the HTML file.
test.php输入:
This is the php file.
.htaccess输入:
RewriteEngine on
RewriteRule ^/?test\.html$ test.php [L]...
分类:
Web程序 时间:
2014-07-16 17:30:20
阅读次数:
220
1.函数指针1.1 普通成员函数指针包含类名信息以及const属性,指向具体函数是必须加上&符号。#include using namespace std;class Test{ public: void setValue(const string &s, int a){ ...
分类:
编程语言 时间:
2014-07-16 15:33:15
阅读次数:
287
#!/bin/bashimage_list=$(ls *.png)for imag in ${image_list}do if test -f $imag then xxd -i ${imag} >> test.h fidone参考:http://www.cnblo...
分类:
编程语言 时间:
2014-07-16 15:29:12
阅读次数:
260
我们在安装完MySql服务器,设置好MySql的root用户密码后,就直接开始使用了,其实这样的MySql服务器还存在着一些不安全因素,本篇演示一下用命令mysql_secure_installation来安全初始化我们的MySql服务器。01[root@test ~]# /usr/bin/mysq...
分类:
数据库 时间:
2014-07-16 15:01:06
阅读次数:
314
1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn: // 192.168. 1.1 / pro /domain简写:svn co2、往版本库中添加新的文件svn add file例如:svn add test.p...
分类:
系统相关 时间:
2014-07-16 14:52:17
阅读次数:
355
如何进行Mongodb测试?
我们在java中使用Mongodb作为数据库进行存储的时候,怎么样对于进行测试呢?一种可能直接的方式就是在setUp中getDB,然后在tearDown里面dropDatabase。这样的方式相对来说比较慢。一种更好的方式就是使用fake的数据库,比如embedded的Mongodb用于测试。http://xunitpatterns.com/Test%20Doubl...
分类:
数据库 时间:
2014-07-16 14:07:53
阅读次数:
344
public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub /* * A 父类 * B 子类 * */ ...
分类:
其他好文 时间:
2014-07-16 11:59:48
阅读次数:
787