背景:在 WinForms 中,有时要执行耗时的操作,比如统计某个磁盘分区的文件夹或者文件数目,如果分区很大或者文件过多的话,处理不好就会造成“假死”的情况,或者报“线程间操作无效”的异常,或者在该操作未完成之前操作用户界面,会导致用户界面停止响应。----比如现在学习的MES UI中要查询数据量较...
分类:
其他好文 时间:
2015-06-03 15:32:45
阅读次数:
185
安装:brew install nsq使用:The following steps will run a small NSQ cluster on your local machine and walk through publishing, consuming, and archiving mes...
分类:
系统相关 时间:
2015-05-27 11:36:52
阅读次数:
586
//第一种方式message message = new obtain();message.what = 1;message.age1 = 1;message.age2 = 2;message.obj = "yuzhi";message.sendMessage(message);//第二种方式Mes...
分类:
移动开发 时间:
2015-05-19 18:51:41
阅读次数:
613
[dbo].[st_MES_MonitorMachine]--------------------------------------------USE [ChiefMESNew]GO/****** Object: StoredProcedure [dbo].[st_MES_MonitorMach....
分类:
其他好文 时间:
2015-05-15 19:21:58
阅读次数:
138
这两天公司做pos机,原来的做pos的人走了,程序已经基本写完。我下载到wince里,发现一旦调用webservice,就会弹出针对此异常的错误消息可用但无法显示,原因是这些消息是可选的,而当前未安装在此设备上。对于 Windows Mobile 5.0 及更高版本,请安装“NETCFv35.Mes...
如何合并小文件,减少map数?假设一个SQL任务:Selectcount(1)frompopt_tbaccountcopy_meswherept=‘2012-07-04’;该任务的inputdir/group/p_sdo_data/p_sdo_data_etl/pt/popt_tbaccountcopy_mes/pt=2012-07-04共有194个文件,其中很多是远远小于128m的小文件,总大小9G,正常..
分类:
其他好文 时间:
2015-05-05 16:48:39
阅读次数:
123
如何合并小文件,减少map数?
假设一个SQL任务:
Select count(1) from popt_tbaccountcopy_mes where pt = ‘2012-07-04’;
该任务的inputdir/group/p_sdo_data/p_sdo_data_etl/pt/popt_tbaccountcopy_mes/pt=2012-07-04
共有194个文件,其中很多是远...
分类:
其他好文 时间:
2015-05-05 16:36:33
阅读次数:
248
基础规则表Rul_Sequence:规则表中的数据:辅助存储过程:CREATE DEFINER=`root`@`%` PROCEDURE `proc_getseqence`(IN `SeqCode` VARCHAR(60), OUT `ReturnNum` VARCHAR(40), OUT `Mes...
分类:
数据库 时间:
2015-05-05 16:20:23
阅读次数:
359
持续更新中:(1)按照降序查询:List entities= Entity.find("order by id desc").fetch(2);(2)错误验证:if (validation.hasErrors()) {renderText(validation.errors().get(0).mes...
分类:
Web程序 时间:
2015-04-21 17:54:37
阅读次数:
126
private void button1_Click(object sender, EventArgs e) { if(web.ReadyState != WebBrowserReadyState.Complete){ Mes...