logstash在windows中收集日志的时候,会导致写日志的程序不能进行日志的切割(windows提示,文件被占用)从github上下载useJavatoOpenFilehttps://github.com/edwinf/ruby-filewatch/tree/useJavatoOpenFilewgethttps://github.com/jordansissel/ruby-filewatch/archive/master..
分类:
Windows程序 时间:
2014-09-03 18:27:57
阅读次数:
3214
在git for windows里面不能commit修改,提示open shellopen shell以后,使用git add [filename],会报错:fatal: Unable to create './.git/index.lock': File exists. If no other g...
向我老大致敬!这个做法其实是抄我老大的。服务器中,多线程经常需要使用临界区,为了简化代码的使用,把临界区封装为 CThreadLockHandle 类,通过封装,使用临界区资源每次只需要一行代码,而且只要确定对象的生存周期,就能完成对临界区资源的自动释放:头文件://thread_lock.h#if...
分类:
其他好文 时间:
2014-09-02 15:34:04
阅读次数:
309
Executed as user: WTC\Ebw.Admin. Transaction (Process ID 95) was deadlocked on lock resources with another process and has been chosen as the deadlock...
分类:
其他好文 时间:
2014-09-02 12:19:24
阅读次数:
200
数据库连接突然增多到1000的问题查看了一下,未有LOCK操作语句。但是明显有好多copy to tmp table的SQL语句,这条语读的时间比较长,且这个表会被加读锁,相关表的update语句会被排进队列。如果多执行几次这样的copyt to tmp table 语句,会造成更多的语句被阻塞。连...
分类:
数据库 时间:
2014-09-02 01:30:03
阅读次数:
305
function template
std::any_of
template
bool any_of (InputIterator first, InputIterator last, UnaryPredicate pred);
Test if any element in range fulfills condition
Returns true if pr...
分类:
其他好文 时间:
2014-09-01 17:42:13
阅读次数:
285
熟悉C++98的朋友,应该都知道,在C++98中没有thread, mutex, condition_variable这些与concurrency相关的特性支持,如果需要写多线程相关程序,都要借助于不同平台上各自提供的api,这样带来的问题就是程序的跨平台移植性比较差,经常要用一大堆的#ifdef ...
分类:
编程语言 时间:
2014-09-01 17:35:23
阅读次数:
205
图片是转载的,来源不清楚了。#include #include #include #include #include pthread_cond_t cond_a;pthread_cond_t cond_b;pthread_cond_t cond_c;pthread_mutex_t lock_a...
分类:
编程语言 时间:
2014-09-01 17:12:53
阅读次数:
284
publicclassGetListViewHeight{ publicstaticvoidsetListViewHeightBasedOnChildren(ListViewlistView){ ListAdapterlistAdapter=listView.getAdapter(); if(listAdapter==null){ //pre-condition return; } inttotalHeight=0; for(inti=0;i<listAdapter.getCount();i++){ ..
分类:
其他好文 时间:
2014-09-01 15:49:14
阅读次数:
160