Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-11-19 20:16:31
阅读次数:
152
今天编译出现ld: 0706-006 Cannot find or open library file: -l xerces-c_static,ld:open(): A file or directory in the path name does not exist.这个熟悉得不能再熟悉的链...
分类:
系统相关 时间:
2014-11-19 20:11:48
阅读次数:
361
egrep‘(vmx|svm)‘/proc/cpuinfo##查看系统是否支持硬件虚拟化apt-getisntallkvmcd/zpf/xp##进入创建虚拟机的目录kvm-imgcreatexp.iso10G##创建虚拟机系统kvm-drivefile=xp.iso-cdrom/path/xxx.iso-bootd-m1024##安装虚拟机系统(-cdrom指定镜像位置,-bootd从光盘启动,-m1024设置..
分类:
系统相关 时间:
2014-11-19 18:56:58
阅读次数:
205
最近在做Android 4.4系统的定制开发(RockIII)进行Debug时,并打上断点,运行到断点处时,Debug窗口出现source not found问题(没有自动关联程序编码):
解决办法:
-》在调试的线程上 右键单击
-》选择Edit Source Lookup Path
-》选择Add
-》选择Project
选择自己正在调试的项目。保存。
不...
分类:
系统相关 时间:
2014-11-19 18:51:42
阅读次数:
250
path是图片路径。/// /// 将图片转成二进制 /// /// /// public static byte[] ImageDatabytes(string FilePath) { ...
分类:
数据库 时间:
2014-11-19 18:34:32
阅读次数:
213
有一个特别有用的Stack,“最近打开过的项目”,建立方法如下:1. 打开Terminal,输入以下命令defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; ...
分类:
移动开发 时间:
2014-11-19 18:32:46
阅读次数:
220
前言 经常在博客园看大家的文章,由于本人文笔太烂,没写过博客和小伙伴们分享过,昨天看到安卓同事做的那个按钮比较不错,就想着也做个。现在把过程写出来,请大家不吝赐教(第一次发博客不会排版。。。)大家凑合看吧开始 一般要做动画之前,习惯用blend先做个动画,因为blend做动画很快,可以方便的看到.....
Dynamic ProgrammingGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For exa...
分类:
其他好文 时间:
2014-11-19 18:18:00
阅读次数:
235
public static ProductView getProductDetail(String id) { String path ="http://192.168.7.45:8080/Service/ws/product/detail/"+id; URL url = null; Pro...
分类:
Web程序 时间:
2014-11-19 18:11:34
阅读次数:
195
nginx支持php的解析配置,userwww-data;(注意此用户,如果注释掉,错误日志里面会出现连接php5-fpm失败,权限拒绝)location~\.php${roothtml;#fastcgi_split_path_info^(.+\.php)(/.+)$;#fastcgi_pass127.0.0.1:9000;fastcgi_passunix:/var/run/php5-fpm.sock;fastcgi_indexi..
分类:
Web程序 时间:
2014-11-19 16:14:45
阅读次数:
157