摘要:
MySQL默认一个连接空闲8小时候就会自动断开,而这时程序以为连接还能使用,然后在使用的时候就会出现Communications link failure异常。这时需要进行两步设置,有时候只设置MySQL就可以了。一、在MySQL的配置文件(linux配置文件是my.cnf,windows配置文件为... 阅读全文
摘要:
不同的浏览器可能会有一些差别,使用的时候请先进行测试。 var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区... 阅读全文
摘要:
C++中的代码如下:传入字节(byte)数组引用和数组长度unsigned short CTcpClient::Crc16(const char *pBuf, unsigned short nLen){ BYTE i; unsigned short crc = 0; while (nLen--) { for (i = 0x80; i != 0; i >>= 1) { if ((crc&0x8000) != 0) { crc <<= 1; c... 阅读全文
摘要:
严重: Servlet.service() for servlet jsp threw exceptionorg.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server returned error code = 404 for URI : http://192.168.9.210:18080/*/services/*. Check server logs for detailsorg.code 阅读全文