autofs 自动挂载.操作环境:redhat 6一、autofs 说明自动挂载器是一个监视目录的守护进程,并在目标子目录被引用时,自动执行预定义的挂载自动挂载器由autofs服务脚本管理自动挂载器由auto.master配置文件进行配置,该文件引用了一个按惯例称作/etc/auto.misc二、安...
分类:
其他好文 时间:
2014-06-19 07:52:45
阅读次数:
324
ChangeQueue类实现ChangeSource接口,声明了拉取下一条Change对象的方法 * A source of {@link Change} objects. * * @since 2.8 */public interface ChangeSource { /** * @retu...
分类:
其他好文 时间:
2014-06-19 06:07:09
阅读次数:
264
When you know that a certain condition will not change throughout the life of the program, it makes sense to test the condition only once. Browser sni...
分类:
编程语言 时间:
2014-06-18 22:35:12
阅读次数:
341
如果新提交的分支代码和master有冲突,先checkout到分支merge master,解决冲突,然后再checkout master,merge 分支.(1) git checkout edit_package_page git merge master --no-ff这时候会看到很多CO.....
分类:
其他好文 时间:
2014-06-18 19:49:55
阅读次数:
246
最新项目稍有空隙,開始研究SQL Server 2012和2014的一些BI特性,參照(Matt)的一个演示样例,我们開始体验SSIS中的CDC(Change Data Capture,变更数据捕获)。注:假设须要了解关于SQL Server 2008中的CDC,请看这里http://blog.cs...
分类:
其他好文 时间:
2014-06-18 18:51:12
阅读次数:
304
Billy investigates the question of applying greedy algorithm to different spheres of life. At the moment he is studying the application of greedy algo...
分类:
其他好文 时间:
2014-06-18 15:17:54
阅读次数:
272
题意:有n条电缆,他们的长度分别为l[i]。如果从n条电缆中切割出K条长度相同的电缆的话,这k条电缆每条最长能多长?答案小数点后保留两位有效数字。输入:n, kn行:l[i]Sample Input4 118.027.434.575.39Sample Output2.00数据范围:1=k);25 ....
分类:
其他好文 时间:
2014-06-17 21:04:38
阅读次数:
226
本文主要介绍一个轻量级的文件监控方式,对文件的Create & Change & Delete,都有一个对应的Event方法来进行处理。对于核心的File Monitor Class,我们继承一个监听适配器类FileAlterationListenerAdaptor,这样会更文件,不用再去重写每个Event方法。...
分类:
编程语言 时间:
2014-06-16 21:23:44
阅读次数:
285
大纲1、TheBashShell2、OutputinColor3、Howcandoit?1、TheBashShellBashistheprimaryshelloftheLinuxmachine,includedherearesometips/trickswiththeshell.UsethemanualpageandlearnaboutPS1,PS2andPROMPT_COMMAND.Thetricksinherecanbeusein~/.bash_profileor~/.bashrc.2、Ou..
分类:
系统相关 时间:
2014-06-16 16:53:26
阅读次数:
407
做主从同步时的报错:mysql>changemastertomaster_host=‘192.168.10.151‘,master_user=‘repl‘,master_password=‘zrer90‘,master_log_file=‘mysql2-bin.000004‘,master_log_pos=98;ERROR1201(HY000):Couldnotinitializemasterinfostructure;moreerrormessagescanbefoundinthe..
分类:
数据库 时间:
2014-06-16 16:00:06
阅读次数:
279