//从给定位置读取Json文件 public static String readJson(String path){ //从给定位置获取文件 File file = new File(path); BufferedReader reader ...
分类:
Web程序 时间:
2015-05-18 18:41:47
阅读次数:
104
web攻击: 用巧妙的方法操纵URIURI : URL描述了访问位于服务器(authority)上的资源(path)或应用程序(query)所采用的协议(scheme)。对于web应用程序来说,协议基本上都是HTTP,或者是HTTP的安全版本HTTPS。在HTTPS中,会话数据被SSL或TLS协.....
分类:
Web程序 时间:
2015-05-18 18:21:46
阅读次数:
178
数据库(MS)
关于获取沙盒路径
// 1. 获取当前的沙盒路径(Doucuments)
NSString * path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)firstObject];//
这样写不会越界报错,【0】若越界会报错
关于排序
...
分类:
数据库 时间:
2015-05-18 16:46:05
阅读次数:
203
Title:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, ...
分类:
其他好文 时间:
2015-05-18 16:35:54
阅读次数:
108
import sysimport osdef pySource(filePath): myFile=os.path.basename(filePath) dir=os.path.dirname(filePath) fileName=os.path.splitext(myFile)[...
分类:
编程语言 时间:
2015-05-18 16:34:09
阅读次数:
129
python os.path模块os.path.abspath(path) #返回绝对路径os.path.basename(path) #返回文件名os.path.commonprefix(list) #返回list(多个路径)中,所有path共有的最长的路径。os.path.dirname(pat...
分类:
编程语言 时间:
2015-05-18 16:12:28
阅读次数:
199
题意:
如果输入的串分割后的和最小都比Target大,那就输出error.
如果有多种结果一样,那么就输出rejected.
否则,输出最大的和 和分别是哪些子串。这个题都是整数,所以比较简单。直接搜索所有的情况就好了,还有一点是打印路径,一般可以用path[]或者pre[]的数组表示,但是这里数据有点大我就用的map水过了。。#include
#include <cstri...
分类:
其他好文 时间:
2015-05-18 14:51:44
阅读次数:
115
一般发生在长期使用hbase,后面再安装之后直接使用hbase shell 想要进入hbase界面,却没有启动start-hbase.sh而导致的。
[root@master local]# hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:fi...
分类:
Web程序 时间:
2015-05-18 14:46:32
阅读次数:
138
下面我通过一道编程题:计算文件的代码行数,总结一下NSString、NSArray的使用方法。#import/*path :文件的全路径(可能是文件夹、也可能是文件)返回值int:代码行数*/NSUIntegercodeLineCount(NSString *path){// 1.获得文件管理者 N...
分类:
移动开发 时间:
2015-05-18 14:22:13
阅读次数:
118
export IPHONEOS_DEPLOYMENT_TARGET=6.0export PATH="/Applications/Xcode.app/Contents/Developer/..."/Applications/Xcode.app/Contents/Developer/Toolchains...
分类:
其他好文 时间:
2015-05-18 14:18:22
阅读次数:
131