最简单的方法:System.Diagnostics.Process.Start(@"路径");网上的其他方法:Process p = new System.Diagnostics.Process(); p.StartInfo.FileName =@"路径"; ...
分类:
其他好文 时间:
2014-07-03 07:12:57
阅读次数:
227
1. 启动安卓手机app发送如下命令:adb shell am start -n 包名/.Activity名包名与Activity名,可以通过如下命令获取到:aapt dump badging sample.apk一般返回如下:package: name='com.tencent.android.q...
分类:
数据库 时间:
2014-07-03 06:58:44
阅读次数:
293
在使用的是 Template(open(file)) 引入的 html, 在处理静态文件的时候,怎么处理图片?可以这样:def imgFile(environ, start_response): ext = environ['PATH_INFO'].split('.') for n in...
分类:
编程语言 时间:
2014-07-03 06:39:21
阅读次数:
220
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, 1 ...
分类:
其他好文 时间:
2014-07-02 21:13:05
阅读次数:
170
最近用asp.net做webservice,其中有个功能是调用执行外部的exe(类似cmd中执行),但执行Process.Start之后就没有结果,同样代码在winform下正常,折腾两天终于找到解决方法本文参考了以下网页,十分感谢http://bbs.csdn.net/topics/3000538...
分类:
Web程序 时间:
2014-07-02 17:47:16
阅读次数:
207
1.错误提示:
03-31 16:48:43.740: INFO/ActivityManager(59): Start proc com.android.packageinstaller for activity com.android.packageinstaller/.PackageInstallerActivity: pid=620 uid=10026 gids={}
03-31 16:4...
分类:
移动开发 时间:
2014-07-02 11:13:56
阅读次数:
844
1 类Process和ProcessBuilder的比较Process是一个抽象类,一般通过Runtime.exec()或ProcessBuilder.start()间接创建其实例 ;ProcessBuilder是一个最终类,可以通过构造方法来直接创建ProcessBuilder的对象。Proces...
分类:
其他好文 时间:
2014-07-02 10:30:15
阅读次数:
215
(一)二分的模版:
int binary_search(int *array, int length, int key) {
int start = 0, end = length - 1;
while(end >= start) {
int middle = start + (end - start) / 2;
int tmp = array[middle];
if(tmp <...
分类:
其他好文 时间:
2014-07-02 08:19:05
阅读次数:
211
查看所有postgre语句执行时间:select procpid, start, now() - start as lap, current_query from (select backendid, pg_stat_get_backend_pid(s.backendid) as procpid, ...
分类:
其他好文 时间:
2014-07-01 17:35:56
阅读次数:
810
substr 方法返回一个从指定位置开始的指定长度的子字符串。stringvar.substr(start [, length ])参数stringvar必选项。要提取子字符串的字符串文字或 String 对象。start必选项。所需的子字符串的起始位置。字符串中的第一个字符的索引为 0。lengt...
分类:
Web程序 时间:
2014-07-01 16:20:58
阅读次数:
253