2013年12月10日

get方法传送中文乱码解决方法

摘要: 找到tomcat配置文件 server.xml找到 (......为配置文件中原来内容)在最后加上一句: URIEncoding=GBK 如下: 阅读全文

posted @ 2013-12-10 00:25 wps712 阅读(209) 评论(0) 推荐(0) 编辑

2013年12月3日

删除mysql服务

摘要: sc delete mysql 阅读全文

posted @ 2013-12-03 20:21 wps712 阅读(146) 评论(0) 推荐(0) 编辑

2013年8月22日

qt忙等与非忙等

摘要: 非忙等:void delay(int msec) { QTimeend = QTime::currentTime().addMSecs(msec); while( QTime::currentTime() < end) QCoreApplication::processEvents(QEventLoop::AllEvents, 100);}忙等:void delayBlock(int msec) { QTime start = QTime::currentTime(); QTime now; do{ now=QTime::currentTime(); }while (start.... 阅读全文

posted @ 2013-08-22 14:45 wps712 阅读(521) 评论(0) 推荐(0) 编辑

2013年7月28日

获得文件路径 _pgmptr, _makepath, _splitpath

摘要: #include #include int main(void){ char path_buffer[_MAX_PATH]; char drive[_MAX_DRIVE]; char dir[_MAX_DIR]; char fname[_MAX_FNAME]; char ext[_MAX_EXT]; _makepath(path_buffer, "c", "\\sample\\myprogarm\\","makepath", "txt" ); // C4996 printf( "Path created 阅读全文

posted @ 2013-07-28 12:42 wps712 阅读(935) 评论(0) 推荐(0) 编辑

2013年7月24日

RGB2YCbCr RGB2Gray

摘要: Y = 0.2990R+0.5870G+0.1140B; Cb=-0.1687R-0.3313G+0.5000B+128; Cr= 0.5000R-0.4187G-0.0813B+128;RGB --> YCbCr// |Y | |16 | |65.738 129.057 25.06 | |R|// |Cb| = |128| + (1/256)* |-37.945 -74.494 112.43| *|G|// |Cr | |128| |112.439 -94.154 -18.28| |B|Y = 0.256789*R + 0.504129*G + 0.097906*B + 16Cb =- 阅读全文

posted @ 2013-07-24 14:29 wps712 阅读(750) 评论(0) 推荐(0) 编辑

2013年7月9日

qt Cannot connect creator comm socket /tmp/qt_temp.S26613/stub-socket: No such

摘要: Tool->Options->Environment->General将terminal改为xterm-e 阅读全文

posted @ 2013-07-09 10:15 wps712 阅读(778) 评论(0) 推荐(0) 编辑

2013年7月7日

64位Ubuntu系统安装OpenCV 2.4.x+ffmpeg 完美解决方案

摘要: http://www.bfcat.com/index.php/2012/09/64bits-ubuntu-opencv-2-4-x-ffmpeg/ 阅读全文

posted @ 2013-07-07 09:33 wps712 阅读(688) 评论(0) 推荐(0) 编辑

2013年7月3日

vim按下ctrl+s僵死

摘要: CTRL+S表示停止向终端停止输出CTRL+Q恢复向终端输出流 阅读全文

posted @ 2013-07-03 13:03 wps712 阅读(209) 评论(0) 推荐(0) 编辑

2013年7月1日

win32程序应用mfc库

摘要: 引入此时会出现如下错误:#ifdef _DLL#ifndef _AFXDLL#error Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]#endif#endif修改项目属性,把 “MFC的使用”项改成“在共享 DLL 中使用 MFC” ,并把stdafx.h中的#include 注释掉。 阅读全文

posted @ 2013-07-01 12:59 wps712 阅读(288) 评论(0) 推荐(0) 编辑

error LNK2005: _DllMain@12 已经在 dllmain.obj 中定义

摘要: 在dllmian.cpp文件里添加#ifdef_X86_extern"C"{int_afxForceUSRDLL;}#elseextern"C"{int__afxForceUSRDLL;}#endif 阅读全文

posted @ 2013-07-01 12:54 wps712 阅读(624) 评论(0) 推荐(0) 编辑

导航