今天尝试在ubuntu下搭建tomcat,因为某些事情 中途删掉了,后来想重装居然出现了chmod: cannot access `/etc/tomcat7/tomcat-users.xml': No such file or directory导致无法正常安装,后来google 了一下,发现了解决...
分类:
其他好文 时间:
2014-08-01 19:34:32
阅读次数:
233
遇到SelectedIndexChanged事件没有触发,可以依次检查以下几种情况是否在程序中出现。一、DropDownList的不同option设置了相同的value。二、没有写 AutoPostBack="True" 三、没有定义事件private void BuDropDownList_Sel...
分类:
其他好文 时间:
2014-08-01 19:04:32
阅读次数:
191
错误举例:
..\..\Libraries\STM32_USB-FS-Device_Driver\inc\usb_type.h(21): error: #5: cannot open source input file "usb_conf.h": No such file or directory
这是因为没有设置 STM32 固件库的目录, 编译器就默认到 “Keil”根目录下的某某目录找...
分类:
其他好文 时间:
2014-08-01 16:07:51
阅读次数:
294
window.close();单独写这句,各个浏览器效果都不一样。比如IE(不是所有版本)会弹提示:点确定之后才会关闭。而有些浏览器压根就没反应。需要让它不弹提示,直接关闭,在window.close();前加两句就可以。window.opener=null;window.open('','_sel...
A simulation problem. We simple walk through all reachable items until we cannot proceed.class Solution {public: bool canJump(int A[], int n) { ...
分类:
其他好文 时间:
2014-08-01 13:16:01
阅读次数:
180
在linux系统下长时间进行性能测试,连续几次发现服务器假死无法连接上的情况,无奈只能重启服务器。在测试路径下发现hs_err_pid17285.log文件,打开文件查看其主要内容如下:# There is insufficient memory for the Java Runtime Environment to continue.# Cannot create GC thread. Out...
分类:
编程语言 时间:
2014-07-31 23:57:00
阅读次数:
641
C++编译错误cannot have cv-qualifier
在C++中CV指const和volatile两个关键字。有两种情况不能使用CV限定。
一、非成员函数不能含有CV限定,即const和volatile限定
#include
using namespace std;
double getArea() const
{
return ...
分类:
编程语言 时间:
2014-07-31 20:52:07
阅读次数:
227
--(1) 查询20号部门的所有员工信息。select * from emp e where e.deptno=20;--(2) 查询奖金(COMM)高于工资(SAL)的员工信息。select * from emp where comm>sal;--(3) 查询奖金高于工资的20%的员工信息。sel...
分类:
数据库 时间:
2014-07-31 19:55:17
阅读次数:
411
--====================================--SCOPE_IDENTITY()函数使用: 只返回插入到当前作用域中的值--返回在当前会话中的任何表内所生成的最后一个标识值--另外两个函数 floor ,Ceiling--select floor(12.99) sel...
分类:
数据库 时间:
2014-07-31 16:45:26
阅读次数:
245
最近重新做了一下系统,在安装和使用svn过程中遇到了一些问题,记下备忘.第一次安装好系统之后,安装VisualSVN遇到报错:Custom action InstallWMISchemaExcute failed: Cannot query proxy blanket: No suchinterfa...
分类:
其他好文 时间:
2014-07-31 12:51:56
阅读次数:
216