最精简的 if 命令的语法是: if TEST-COMMANDS; then CONSEQUENT-COMMANDS; fiTEST-COMMAND 执行后且它的返回状态是0,那么 CONSEQUENT-COMMANDS 就执行。返回状态是最后一个命令的退出状态,或者当没有条件是真的话为0。 TES...
分类:
系统相关 时间:
2014-07-18 17:12:01
阅读次数:
353
pyenv安装:https://github.com/yyuu/pyenv#choosing-the-python-versionpyenv命令:https://github.com/yyuu/pyenv/blob/master/COMMANDS.mdpyenv virtualenv插件安装:htt...
分类:
编程语言 时间:
2014-07-17 23:22:39
阅读次数:
348
如何在相同的页面设置多个tinymce编辑器
This example shows how to setup multiple editors on the same page and with different configs.
用于多功能文本框,之前同页面只能用一个tinymce编辑器,百度谷歌没结果,所以整理下代码,以供参考:...
分类:
其他好文 时间:
2014-07-17 17:02:09
阅读次数:
298
1.Create a VM01 on esx01,Create a VM02 on esx02 2.Create the RDM on your VM01 (using the virtual, not physical)3.Add new disk to VM02 (select existing...
分类:
其他好文 时间:
2014-07-16 16:46:24
阅读次数:
203
Search and Replace
Sublime Text features two main types of search:
Search - Single FileSearch - Multiple Files
We’ll examine them in turn, but first let’s talk about a powerful tool for searc...
分类:
其他好文 时间:
2014-07-16 16:18:52
阅读次数:
312
Search and Replace - Multiple Files
Searching
To open the search panel for files, press Ctrl
+ Shift +
F. You can use thekeyboard to control some search panel options and search actions:
...
分类:
其他好文 时间:
2014-07-16 16:17:14
阅读次数:
212
在分析安卓源码过程中看到几处使用变长结构体的例子,比如下面的结构体:
struct command
{
/* list of commands in an action */
struct listnode clist;
int (*func)(int nargs, char **args);
int nargs;
char *args[1];
...
分类:
其他好文 时间:
2014-07-16 16:16:29
阅读次数:
381
★mdadm是multiple devices admin的简称,它是Linux下的一款标准的软件 RAID 管理工具,作者是Neil Brown我们知道raidtools是Linux下一款经典的用于管理软件 RAID 的工具,但是因为配置/etc/raidtab比较繁琐,而且其功能有限,所以现在越...
分类:
其他好文 时间:
2014-07-16 16:05:22
阅读次数:
227
最小公倍数=两个数的乘积/两个数的最大公约数。
接上篇求最大公约数方法,最小公倍数的代码如下:
public class LCM {
//最小公倍数=两数乘积/最大公约数
public static int lcm(int m, int n){
return m*n/GCD.gcd(m,n);
}
public static void main(String[] args){
...
分类:
其他好文 时间:
2014-07-16 09:39:09
阅读次数:
256
高维数据的可伸缩最近邻算法FLANN
1. 简介
在计算机视觉和机器学习中,对于一个高维特征,找到训练数据中的最近邻计算代价是昂贵的。对于高维特征,目前来说最有效的方法是 the randomized k-d forest和the priority search k-means tree,而对于二值特征的匹配 multiple hierarchical clusteringtrees则...
分类:
其他好文 时间:
2014-07-15 10:42:24
阅读次数:
727