比如比较字符串、判断文件是否存在及是否可读等,通常用"[]"来表示条件测试。注意:这里的空格很重要。要确保方括号的空格。笔者就曾因为空格缺少或位置不对,而浪费好多宝贵的时间。if ....; then....elif ....; then....else....fi[ -f "somefile" ]...
分类:
系统相关 时间:
2015-03-18 19:51:57
阅读次数:
172
Still 3 methods:Same with inorder, but post order is a little different. We need to treat it as reverse result of preorder.So we go to right branch fi...
分类:
其他好文 时间:
2015-03-18 08:57:58
阅读次数:
132
Android连接无线设备——与Wi-Fi直接连接
分类:
其他好文 时间:
2015-03-17 21:41:51
阅读次数:
231
普通的高斯滤波会将图像的边缘模糊掉,而双边滤波器具有保边特性。
#define MAX_IMAGE_SIZE 1024
double d[MAX_IMAGE_SIZE][MAX_IMAGE_SIZE];//d[i][j]表示入图像,fi][j]表示出图像。
double f[MAX_IMAGE_SIZE][MAX_IMAGE_SIZE];
void CImageColorProcess::Bi...
分类:
其他好文 时间:
2015-03-16 17:57:12
阅读次数:
162
Xcode6添加pch文件一直在用xcode6开发,但项目都是在xcode5上创建的,所以一直没注意到,xcode6竟然干掉pch文件了。如何在Xcode6中添加pch(Precompile Prefix Header)?1,Command+N,打开新建文件窗口:ios->other->PCH fi...
分类:
其他好文 时间:
2015-03-15 18:18:30
阅读次数:
260
畅通工程的升级版。
求最小生成树。Kruskal 算法:应用并查集。
#include
#include
using namespace std;
int p[102];
bool Init(int n) //一开始指向自己
{
for(int i=0;i<=n;i++)
p[i]=i;
return true;
}
int Fi...
分类:
其他好文 时间:
2015-03-15 15:21:44
阅读次数:
154
错误栈信息java.lang.IllegelArgumentException:Mapped Statements collection does not contain value for xxx.xxx(com.xx.storage.mapper.InternalExchageMapper.fi...
分类:
移动开发 时间:
2015-03-15 12:14:03
阅读次数:
140
iOS 环境下,链接某个静态库(.a文件)时,Xcode 会出现链接错误:
xxx file was built for archive which is not the architecture being linked (i386)
这是因为静态库是为iOS 环境编译的,并不能在模拟器环境下使用,只要将Build 目标改成设备即可。如果是:
ld: warning: ignoring fi...
分类:
移动开发 时间:
2015-03-15 09:31:20
阅读次数:
189
Initializing View Instances Created in Interface BuilderView instances that are created in Interface Builder don't callinitWithFrame:when their nib fi...
分类:
其他好文 时间:
2015-03-13 16:12:14
阅读次数:
132
Generally sort key allows you to configure what to populate in assignment field for FI documents. ( Refer assignment field in reports FBL3N , FBL1N, F...
分类:
其他好文 时间:
2015-03-12 18:31:24
阅读次数:
158