/** * 上传文件 * @param file * @param path * @param fileName * @throws IOException */public void fileLoad(File file, String path, String fileName)throws I...
分类:
其他好文 时间:
2014-07-18 00:18:04
阅读次数:
274
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-07-17 23:27:12
阅读次数:
216
七月 17, 2014 4:56:01 下午 org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet [dispatcher] in context with path [] ...
分类:
数据库 时间:
2014-07-17 22:28:55
阅读次数:
777
转自 http://blog.csdn.net/zhibudefeng/article/details/7795946//file文件操作NSFileManager常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path 从文件中读取数据-(BO...
分类:
移动开发 时间:
2014-07-17 22:06:12
阅读次数:
423
1.配置Java的环境
1)JAVA_HOME配置:
2)C:\Program Files\Java\jdk1.7.0_51;CLATHPATH配置:C:\Program Files\Java\jdk1.7.0_51\lib\dt.jar;C:\Program Files\Java\jdk1.7.0_51\lib\tools.jar;.注意:最后有“.”
3)path配置:C:\Progra...
分类:
其他好文 时间:
2014-07-17 21:04:07
阅读次数:
252
今天用eclipse,当打算run一个带有main函数的class时,出现editor does not contain a main type的错误框。
baidu了一下,迅速解决问题:原来这个class所在包没有被添加到build path中。
解决方法:在左侧的package explorer中右击这个class所在包的上一级目录--build path--use as source f...
分类:
其他好文 时间:
2014-07-17 20:36:18
阅读次数:
225
众所周知,eclipse的project bulid path中可以引用第三方类库(如图1),
图1
但是这种方式有个缺点:对类库的引用是通过绝对路径。如果有两台电脑(办公室1台、家1台),很可能造成因为类库的路径不同导致eclipse报错。
但事实上,两台电脑中只是libraries目录的绝对路径不同,从libraries开始的子目录完全同步。
只要满足这个条件,...
分类:
系统相关 时间:
2014-07-17 20:34:34
阅读次数:
243
LOCAL_PATH:=$(callmy-dir)include$(CLEAR_VARS)#编译库的名称LOCAL_MODULE:=cocos2dcpp_shared#编译库的文件名LOCAL_MODULE_FILENAME:=libcocos2dcpp#包含的源文件LOCAL_SRC_FILES:=hellocpp/main.cpp\../../Classes/AppDelegate.cpp\../../Classes/Card.cpp\../../Classes/Ga..
分类:
移动开发 时间:
2014-07-17 19:33:26
阅读次数:
286
package main
import (
"html/template"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"path"
"runtime/debug"
)
const (
ListDir = 0x0001
UPLOAD_DIR = "./uploads"
TEMPLATE_DIR = "./v...
scheme://login:password@address:port/path/to/resource?query_string#fragmentscheme:协议名称//:层级URL标记符号login@password:访问资源需要的凭证address:获取数据的服务器port:连接的端口号/...
分类:
其他好文 时间:
2014-07-17 17:34:11
阅读次数:
279