随笔分类 -  WEB

摘要:解决办法,为远程创建用户并给予权限mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' -> WITH GRANT OPTION;mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';mysql& 阅读全文
posted @ 2013-04-14 21:11 qiangzhu 阅读(5380) 评论(0) 推荐(0)
摘要:Last packet sent to the server was 0 ms ago.at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:825)at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(Loc 阅读全文
posted @ 2013-04-14 21:05 qiangzhu 阅读(2265) 评论(0) 推荐(0)
摘要:修改前代码:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();DocumentBuilder builder = factory.newDocumentBuilder();Document document = builder.parse(xmlPath);\\直接将路径名给builder.改后:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();DocumentBuilder builder = factory.ne 阅读全文
posted @ 2013-04-14 10:36 qiangzhu 阅读(6162) 评论(1) 推荐(0)
摘要:HTML elements can be displayed either inblockorinlinestyle.The 3 ways that HTML elements can be displayedAll HTML elements are naturally displayed in one of the following ways:BlockTakes up the full width available, with a new line before and after (display:block;)InlineTakes up only as much width a 阅读全文
posted @ 2012-05-05 19:54 qiangzhu 阅读(572) 评论(0) 推荐(0)
摘要:This is a problem I’ve come across frequently, and since it has come up again recently, I thought I’d explore this issue in the hope that it will save others some trouble. There are so many problems that this one issue can lead to that it’s baffling browsers still behave this way. The issue? An HTML 阅读全文
posted @ 2012-05-05 19:34 qiangzhu 阅读(239) 评论(0) 推荐(0)
摘要:As many of you must have read or realised(i did) while working with it, MS Internet Explorer doesn't allow you to set the innerHTML property of any table related tag(table, thead, tbody, tr except for td). It says "Unknown Runtime Exception". You are provided with explicit methods to h 阅读全文
posted @ 2012-05-05 19:33 qiangzhu 阅读(224) 评论(0) 推荐(0)
摘要:1.CSS Block vs Inline CSS Display Styleshttp://www.webdesignfromscratch.com/html-css/css-block-and-inline/2.Containing Floatshttp://www.complexspiral.com/publications/containing-floats/http://css-tricks.com/all-about-floats/3.CSS Positioninghttp://www.vanseodesign.com/css/css-positioning/4.CSS Organ 阅读全文
posted @ 2012-05-05 19:32 qiangzhu 阅读(233) 评论(0) 推荐(0)