I=imread(im_path);
axes(handles.axes1);
imshow(I),
% title('原始图像');
%计算每个像素点的真实长度
[x,y]=ginput(2);
length=str2double(get(handles.edit5,'st...
分类:
其他好文 时间:
2014-06-08 18:11:31
阅读次数:
263
【题目】
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to...
分类:
其他好文 时间:
2014-06-08 17:52:45
阅读次数:
235
1、ant + findbugs安装
通过Eclipse或者MyEclipse继承ant、findbugs插件。插件可以到网上去下。
注:findbugs最好是下载1.3.9版本,如果是其他版本,可能在运行的时候会提示版本冲突错误!
2、通过findbugs做静态代码检查,此处可以说有两种方式。
A、直接生成HTML报告形式,在项目根目录下新建文件build.xml,将如下代码复制进去
...
分类:
数据库 时间:
2014-06-08 16:41:20
阅读次数:
450
问题重现:
MySql 数据库中,一给列的内容中包括 “.wmv” 需要将 “.” 后的wmv格式 换为“flv”
解决办法
update video_info set file_path=substring(file_path,1,length(file_path)-3);
先执行以上SQL进行删除;
update video_info set file_path =...
分类:
数据库 时间:
2014-06-08 16:38:39
阅读次数:
262
看了韩顺平的j2ee的视频后,吧里面教的做了出来,感觉好极了,新手上路!!!
这个肯定不是原创,但是也不是转载,那我就姑且把它作为翻译吧,给其他看视频学习但是没有代码的同学一点福利吧
首先是login.jsp的登陆界面代码。
<%
String path = request.getContextPath();
String basePath = request.getScheme()+":...
分类:
Web程序 时间:
2014-06-08 10:47:14
阅读次数:
258
题目
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 leaf node.
方法
使用DFS对树进行遍...
分类:
其他好文 时间:
2014-06-08 10:26:33
阅读次数:
207
1. NDK版本要求
NDKr7或者更新,我是在NDKr9b上测试的。
2. Builder配置方法
首先,在Builders目录,点击New,新建一个Builder。
然后,选取创建Program类型的Builder。
最后,在Location处,指定ndk-build.cmd,我的路径是E:\software\android-ndk-r9b-windows-x86\android-ndk-r9b\ndk-build.cmd。在WorkingDirectory处,选取要进行...
本人电脑是64位的,用的eclipse也是64位的,jdk也是64位。 前两天MyEclipse需要安装一个插件,需要32的jdk,于是修改系统的path为32的,包括JAVA_HOME和JRE_HOME。 今天再次使用eclipse时就出现了Failed to load the JNI shared library jvm.dll的错误。如图: 很是郁闷啊,网上一查,是64的eclip...
分类:
系统相关 时间:
2014-06-08 05:39:10
阅读次数:
384
题目链接 Given a m x n grid filled with non-negative
numbers, find a path from top left to bottom right which minimizes the sum of
all numbers along its p...
分类:
其他好文 时间:
2014-06-07 21:59:08
阅读次数:
344
PWD和OLDPWDPWD代表当前工作目录,改变目录后系统会自动更新该环境变量OLDPWD代表之前的工作目录实验:先进入/home目录,再cd到/etc目录,查看这两个变量
PATH这个环境变量大家应该比较熟悉,可执行文件的搜索路径,避免每次都要写全路径或者相对路径。默认多个可执行文件路径以冒号分隔...
分类:
系统相关 时间:
2014-06-07 21:01:53
阅读次数:
563