boost asio运行中报错
使用Boost.asio进行socket编程,实际运行过程中,会出现如下错误,导致程序异常退出:remote_endpoint: Transport endpoint is not connectedDisconnected from其中第二行debug信息是我在程序中添加的,当需...
谈MySQL中char varchar区别
偶尔间,发现一处bug:程序要求将系统当前时间及相关配置信息按照指定帧结构,发给远端socket,但有时总会少1个字节。由于处理流程是在存储过程中完成的,遂定位到错误,归结为对char varchar区别不够了解的原因...
modSecurity安装 - libLua.so
将ModSecurity加到Apache中时,需要修改Apache配置文件,如下:#Load libxml2LoadFile /usr/lib/libxml2.so#Load LuaLoadFile /usr/lib/liblua5.1.so#Finally, load ModSecurityLoadModule security2_module modules...
modSecurity 安装
今天介绍一款开源项目modSecurity的安装过程。主要介绍源码安装。1. 使用svn将modSecurity源码下载下来。2. 阅读文档,解决依赖关系:apache portable runtime,apr-util,mod_unique_id,libcurl,libxml2...
screenshot in Android - 4
Everyone knows that the android device supports free rotation, however, my application just copes the framebuffer and builds jpeg files with solid resolution. The problem is how to transfe...
screenshot in Android - 3
In the continued development, I found a error or a bug in screenshot application, and the detail is when I play some video on the android device, the screenshot will read a black hole rather than the ...
Android下截屏-2
继续上一章的描述,使用上一章的方法对截屏有很多的局限性,因此考虑其他的方法进行截屏,由于Android使用的是Linux内核,也因此很自然的想到使用framebuffer进行截屏操作。感兴趣的同学可以直接搜索”andro...
下载xcode4.3.2---痛苦
从App Store点击下载XCODE 4.3.2,到现在差不多有一周了,仍未成功。期间莫名其妙地断掉后,重头下载,总之各种痛苦,看着1byte 1byte的下载。今天偶遇一网页,上面提到了v2ex dns,打开其主页,修改dns,速度果然就...
Android下截屏
目的:在Android下进行截屏操作。代码:view.setDrawingCacheEnabled(true);view.buildDrawingCache();Bitmap bitmap = view.getDrawingCache();分析:首先获取指定的view,然后对该view进行截屏。缺陷在于...
Windows下截屏
在Windows下对屏幕进行截屏。原理:使用BitBlt函数进行截屏操作。代码:HWND hwnd = ::GetDesktopWindow(); HDC hdc = GetWindowDC(NULL); int x = GetDeviceCaps(hdc, HORZRES); &...
(转)Linux下 C++调用C 实现socket网络通讯编程
转自http://diaoge.iteye.com/blog/702873
提高数据库系统的运行效率的办法
转载http://blog.csdn.net/liu7537/article/details/1469111 在给定的系统硬件和系统软件条件下,提高数据库系统的运行效率的办法是: (1) 在数据库物理设计时,降低范式,增加冗余, 少用触发器, 多...
gsoap使用(2)
昨天简单的实现了调用远程webService方法,但今天测试过程中发现在中文编码上又出现了问题。1. 确定系统的中文编码方式为utf82. 分析vim编辑器下的中文编码为utf8(:set fenc=utf-8)3. 确保gsoap编码为utf8...
gsoap使用
最近有个项目需要在C++中调用java的接口,因此将java api封装成web service,然后考虑尽快在C++程序中远程调用Web Service方法,选用gsoap开源项目。使用心得:很简单,从完全不了解到初步能够使用,只花了一天的时...