1、代码如下: /// /// 递归读取指定路径下的所有文件信息 /// /// /// private void DIGuiGetFile(string path, TreeNode node) ...
分类:
其他好文 时间:
2014-07-16 19:19:28
阅读次数:
153
Preference->Browse Packages->python,编辑Python.sublime-build文件,在字典里添加path item,value为你的python路径,示例如下:{ "cmd":["python.exe", "-u", "$file"], "path":"C:/P...
分类:
其他好文 时间:
2014-07-16 19:12:25
阅读次数:
200
zabbix 默认会有3个script功能,分别是Detect operating system,ping ,traceroute ,都比较好用。默认安装完毕需要做一些修改才能正常使用。1.traceroute ,默认的path 不对, whichtraceroute ,然后把正确的信息填上去就行了...
分类:
其他好文 时间:
2014-07-16 19:06:42
阅读次数:
344
1.把ex.Message换成任意字符串,检验在catch语句块中可以用Response.Write方法显示对话框。结果显示成功,说明问题就出在ex.Message上。2.在程序中下断点,可以看到ex.Message的内容如下图:重点是红色圈起来的部分,这里边有个回车+换行符号,估计也就是他搞的鬼,...
分类:
Web程序 时间:
2014-07-16 18:49:40
阅读次数:
221
1. 背景音乐1> 添加AVFoundation.framework框架,import该框架头文件2> 加载背景音乐路径 NSString *path = [[NSBundle mainBundle] pathForResource:@”music.mp3” ofType:nil];3> 路径转化....
分类:
其他好文 时间:
2014-07-16 18:42:21
阅读次数:
220
问题如何发送一个简单的HTTP GET请求并且取回相应的HTTP响应。设计创建一个WebClient类的实例,然后使用它的DownloadData()方法。方案string uri = "http://server/path/WebForm.aspx";WebClient wc = new WebC...
分类:
其他好文 时间:
2014-07-16 18:42:15
阅读次数:
186
public class FileSplit extends InputSplit implements Writable { private Path file; private long start; private long length; private String[] hosts; pu...
分类:
其他好文 时间:
2014-07-16 18:32:45
阅读次数:
236
今天在项目中向数据库的CLOB属性插入一段篇文章(1000~2000)字就会报一个字符串过长的错误。网上说用流来处理,没有这么做。这像是一个Bug,只要把插入的数据,默认扩充到2000以上就ok了。下面是这段代码:if((temp.length()>=1000)&&(temp.length()<=2...
分类:
数据库 时间:
2014-07-16 18:24:48
阅读次数:
279
Generate ParenthesesGivennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a sol...
分类:
其他好文 时间:
2014-07-16 18:07:04
阅读次数:
146
1. UIBezierPath* path = [UIBezierPathbezierPathWithRoundedRect:CGRectMake(30,30,100,100)cornerRadius:0]; CAShapeLayer* layer = [CAShapeLayerlayer]; l....
分类:
其他好文 时间:
2014-07-15 23:58:10
阅读次数:
554