行动
在了实践之前,希望大家看一下上面的学习资源,了解一下基本操作.
数据连接初始账号密码
账号:admin
密码:admin
首先我们建立一个文件:mongodb.php,设置需要连接账号密码,连接数据库
php
/**
* Mongodb Test
*
* Tools:
* Zend Studio 8.x
* Eclipse Plug :Toggle Va...
分类:
数据库 时间:
2014-05-15 14:49:56
阅读次数:
442
try catch finally 语句中
如果try中有返回语句,如果在fianlly代码块中有对这个值修改的话,并不影响其放回值public class Test { public static
void main(String[] string){ System.out.p...
分类:
其他好文 时间:
2014-05-15 10:38:40
阅读次数:
209
public class Test { public static void
main(String[] string){ int i = Integer.MAX_VALUE; System.out.println(i); ...
分类:
其他好文 时间:
2014-05-15 10:13:33
阅读次数:
224
1. Grant necessory permission to user account,
so it can use SQL profiler.USE masterGRANT ALTER TRACE TO TEST;GRANT VIEW SERVER
STATE TO TEST;USE test...
分类:
数据库 时间:
2014-05-15 10:09:38
阅读次数:
469
public class Test{ public static void
main(String args[]){ int i[]= new int[1]; System.out.println(i.equals(0));
}}//false...
分类:
其他好文 时间:
2014-05-15 10:03:08
阅读次数:
216
所需要的包:
junit需要是4.5以上
org.springframework.test-XXX.RELEASE.jar
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
i...
分类:
编程语言 时间:
2014-05-15 04:21:45
阅读次数:
357
实例四:随机读写。在C:\\TEST.TXT文件中创建如下字符串:我爱你,中国使用随机读写,输出"中国"两个字,以为中文字符占两个字节,所以要从文件首部向后偏移7个字节,逗号是英文字符,占用一个字节。#include<stdio.h>#include<stdlib.h>intmain(){FILE*fp;charc;if(..
分类:
编程语言 时间:
2014-05-15 00:49:19
阅读次数:
325
program Test;{$APPTYPE CONSOLE}uses System,
System.SysUtils; const Value: array[0..5] of Byte = (5, 72, 101, 76, 76, 111); {
Old ShortString represent...
分类:
其他好文 时间:
2014-05-14 23:42:03
阅读次数:
475
在c++中定义一个类 ,对于构造函数 我们经常是这么写的:
class test
{
public:
test(int n_x , int n_y)
{
x = n_x;
y = n_y;
}
private:
int x , y;
};
这中写法虽然是合法的但比较草率
在构造函数 test(int n_x , i...
分类:
编程语言 时间:
2014-05-14 20:13:39
阅读次数:
322
MapTask运行通过执行.run方法:
1.生成TaskAttemptContextImpl实例,此实例中的Configuration就是job本身。
2.得到用户定义的Mapper实现类,也就是map函数的类。
3.得到InputFormat实现类。
4.得到当前task对应的InputSplit.
5.通过InputFormat,得到对应的RecordReader。
6.生成Re...
分类:
其他好文 时间:
2014-05-14 14:31:59
阅读次数:
381