错误经过:在读取Excel时,出现外部表不是预期的格式错误原因1: 由于Excel 97-2003的连接格式与Excel 2010 的 不同造成。以下是从网上摘抄原文Excel “External table is not in the expected format.” .Question:I'm...
分类:
其他好文 时间:
2014-06-18 21:27:00
阅读次数:
410
(1) cv::Mat -> QImageOpenCV存储图片默认使用BGR顺序,而QImage使用RGB顺序,所以需要用cvtColor转换一下。使用QImage如下构造函数:QImage(uchar * data, int width, int height, Format format)QIm...
分类:
其他好文 时间:
2014-06-18 20:26:20
阅读次数:
202
定义IntPair 以及IntPair(first,second)的compareto,先比較first的大小,再比較second的大小定义FirstPartitioner是为了让partition的时候依照IntPair的first来做为选择reduce的根据定义FirstGroupingComp...
分类:
其他好文 时间:
2014-06-18 18:57:15
阅读次数:
289
WinDirStat is a disk usage statistics viewer and cleanup tool for various versions ofMicrosoft Windows.Note:if you are looking for an alternative forL...
我们知道,一个典型的Map-Reduce过程包 括:Input->Map->Partition->Reduce->Output。Partition负责把Map任务输出的中间结果 按key分发给不同的Reduce任务进行处理。Hadoop 提供了一个很有用的partitioner类KeyFieldBa...
分类:
编程语言 时间:
2014-06-18 17:00:55
阅读次数:
332
一 、目标文件格式 1. PE(Portabel Executable) 2. ELF (Executable Linkable Format) : 可重定位、可执行、共享目标文件、核心转储文件思考: 弱符号和弱引用 VS 回调函数 __attrbute__ ((weakref)) voi...
分类:
其他好文 时间:
2014-06-18 13:02:54
阅读次数:
180
#!/usr/bin/pythonimport tracebacktry: 1/0#except Exception,e:# print traceback.format_exc() except Exception as e: print e#!/usr/bin/pythonimport tra....
分类:
编程语言 时间:
2014-06-17 15:07:08
阅读次数:
329
对于linux系统硬件信息的查看,主要针对cpu、memory、disk,以及网卡,每一种硬件的信息通常会有多种查看方法。1.cpu查看/proc/cpuinfo文件可查看cpu的详细信息。[root@primary_server~]#cat/proc/cpuinfo
vendor_id :GenuineIntel
cpufamily :15
model :4
modelname :Intel(..
分类:
系统相关 时间:
2014-06-16 18:03:26
阅读次数:
525
01.在服务端创建zabbix组configuration---Templates---createtemplate---TemplateLinux
DiskIO===其中选择组为"Template"在TemplateLinuxDiskIO中创建Discoveryrule:Name:Diskdevice
discovery
Key:custom.vfs.dev.discovery
FilterMacro{#DISK}Regexp@Disk
devicefordiscover..
分类:
其他好文 时间:
2014-06-16 17:00:42
阅读次数:
543
我们知道java中可以用MessageFormat.format来格式化字符串。这个方法在我们的实际开发中经常用到,有点类似模板,这样我们就不需要用很恶心的拼接字符串了。如下面 String s1="my blogWebSite is {0} and sinaWeiBo is {1} ";Strin...
分类:
编程语言 时间:
2014-06-16 13:18:01
阅读次数:
344