参考了这篇文章: https://my.oschina.net/u/1034176/blog/512314 1. 在Scala 2.7中,Array、List都不能混合类型,只有Tuple可以;而在Scala以上版本中,3者的元素都可以混合不同的类型(转化为Any类型),只不过是当使用混合类型时,A ...
分类:
其他好文 时间:
2016-12-01 17:05:40
阅读次数:
170
#################dns集群############1.dns集群的基础配置需求:一台dns服务器不能满足大量的访问需求,需要增加辅助dns服务器辅助dns端(client):vim/etc/resolv.conf修改内容为:3nameserver172.25.254.207vim/etc/named.conf修改为:11listen-onport53{any;};17allow-query{any..
分类:
其他好文 时间:
2016-12-01 15:04:33
阅读次数:
224
Come from ArcGIS Online IGeometryCollection Interface Provides access to members that can be used for accessing, adding and removing individual geomet ...
分类:
其他好文 时间:
2016-12-01 03:32:31
阅读次数:
255
原理: 检测url返回状态即可 源码: #等有时间优化一下 #注意, 这个是用于win版本, 因为开头的#!路径, 还有就是system(‘cls’)用于WIN, 如果是linux的话 #请修改system(‘cls’)为system(‘clear’) #再把开头的#!c:\\perl\\bin\\ ...
分类:
Web程序 时间:
2016-12-01 01:34:35
阅读次数:
279
一、错误起因 Active NameNode日志出现异常IPC's epoch [X] is less than the last promised epoch [X+1],出现短期的双Active 我配置的ha自动切换,但是发现STandByNameNode是active,我强制手动切换了三次,S ...
分类:
其他好文 时间:
2016-12-01 01:29:15
阅读次数:
680
//注解方法配置 1)一对多 private List<TNoticeaffix> ffi; @OneToMany(cascade =CascadeType.ALL,mappedBy="T_NOTICE",targetEntity=TNoticeaffix.class) public List<TN ...
分类:
Web程序 时间:
2016-11-30 22:28:57
阅读次数:
228
CountDownLatch是Java concurrent包下的一个同步工具。它可以让一个(或多个)线程等待,直到其他线程中的某些操作完成。 本质上是一个信号量,我们把它比作一个有N个插销的大门,它把等待(调用await)的线程挡住了, 直到其他线程把插销去完了(调用countDown减到0),这 ...
分类:
编程语言 时间:
2016-11-30 22:16:26
阅读次数:
157
/// <summary> /// 将DataTable中数据写入到CSV文件中 /// </summary> /// <param name="dt">提供保存数据的DataTable</param> /// <param name="fileName">CSV的文件路径</param> publ ...
我在ubuntu上使用npm安装依赖是出现下面错误: npm ERR! Linux 3.13.0-101-genericnpm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "express"npm ERR! node v4.6.2npm ...
分类:
Web程序 时间:
2016-11-30 13:53:30
阅读次数:
1044
The Z order of a window indicates the window's position in a stack of overlapping windows. This window stack is oriented along an imaginary axis, the ...