记录一个加载配置文件的代码段,以保存以后使用
bool Consumer::loadConfigFile()
{
if( ConfigMap.size() != 0 )
ConfigMap.clear();
char szFilePath[256]={0};
GetModuleFileNameA(NULL, szFilePath, 255);
(strrchr(szFileP...
分类:
其他好文 时间:
2014-08-05 14:14:49
阅读次数:
235
On most of the Linux distribution IPv6 is enabled by default, which may cause your internet is workding slow, so If your network do not supportor do not setup IPv6 network, you should better to dis...
分类:
Web程序 时间:
2014-08-05 11:40:29
阅读次数:
348
Queue与Topic的比较1、JMS Queue执行load balancer语义:一条消息仅能被一个consumer收到。如果在message发送的时候没有可用的consumer,那么它将被保存一直到能处理该 message的consumer可用。如果一个consumer收到一条message后...
分类:
其他好文 时间:
2014-08-04 13:40:07
阅读次数:
448
结构化异常处理程序?
SEH:structured Exception Handling,结构化异常处理。
结构化异常处理,是Windows操作系统上,Microsoft对C/C++程序语言做的语法扩展,用于处理异常事件的程序控制结构。
异常事件是打断程序正常执行流程的不在期望之中的硬件、软件事件。硬件异常是CPU抛出的如“除0”、数值溢出等;软件异常是操作系统与程序通过RaiseExc...
分类:
其他好文 时间:
2014-08-04 02:03:56
阅读次数:
311
最近尝试用SSIS自带的 Slow Changing Transformation组件处理缓慢变化维,看到yi...
分类:
其他好文 时间:
2014-08-01 13:36:21
阅读次数:
486
Next time you see a numeric problem has a too straightforward solution, think about optimized one.Like this one: recursion\iteration is tooo slow. SoD...
分类:
其他好文 时间:
2014-08-01 06:57:01
阅读次数:
279
jQuery animate() 方法用于创建自定义动画。语法:$(selector).animate({params},speed,callback);必需的 params 参数定义形成动画的 CSS 属性。可选的 speed 参数规定效果的时长。它可以取以下值:"slow"、"fast" 或毫秒...
分类:
Web程序 时间:
2014-07-31 20:00:47
阅读次数:
282
问题:判断链表是否有环。分析:利用快慢指针slow,fast slow指针每次走一步,fast指针每次走两步,倘若存在环,则slow和fast必定在某一时刻相遇。 由于fast指针走的比slow快所以循环的时候只需要判断fast和fast->next不为空,判断fast->next是因为...
分类:
其他好文 时间:
2014-07-31 12:25:26
阅读次数:
236
Hybrid transaction memory systems and accompanying methods. A transaction to be executed is received, and an initial attempt is made to execute the tr...
分类:
其他好文 时间:
2014-07-31 02:26:35
阅读次数:
309
$("选择器").clink单击dbmouse 双击hide 隐藏$(".div.ex").perances(".div").hide("slow")perance 祖 parents父mouseenteredmouseleavermousedownmouseupmousehover 悬浮focus...
分类:
Web程序 时间:
2014-07-30 23:23:25
阅读次数:
254