上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 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 阅读(2242) 评论(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 阅读(6119) 评论(1) 推荐(0) 编辑
摘要: mysql> set character_set_results='gbk'; 阅读全文
posted @ 2013-04-09 22:07 qiangzhu 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 如果没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了 阅读全文
posted @ 2013-04-09 14:51 qiangzhu 阅读(32860) 评论(1) 推荐(7) 编辑
摘要: Type in terminal: 1. sudo gedit /etc/default/grub2. Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"3. Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"4. Save the file and close the file.5. Finally, in terminal: sudo update-grub 阅读全文
posted @ 2013-03-25 20:05 qiangzhu 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 1. How to get code1.0 sign-in gerrit (only for the very first time)login with your LDAP account on http://216.224.176.142:8080/setup Preferred email, you need go to your email box to click the link ( if you don't get the email in minutes, please check your spam box)upload your ~/.ssh/id_rsa.pub 阅读全文
posted @ 2013-03-12 09:02 qiangzhu 阅读(1655) 评论(0) 推荐(0) 编辑
摘要: Paddingis the space inside the border, between the border and the actual view's content. Note that padding goes completely around the content: there is padding on the top, bottom, right and left sides (which can be independent).Marginsare the spaces outside the border, between the border and the 阅读全文
posted @ 2013-03-10 16:23 qiangzhu 阅读(2527) 评论(0) 推荐(0) 编辑
摘要: 分辨率适配的出发点:a.根据不同的屏幕尺寸提供UI布局(layout)。 b.根据不同屏幕像素密度(单位英寸的像素值)提供界面元素的图片。1.基本概念Screen size-屏幕尺寸(Actual physical size, measured as the screen's diagonal.For simplicity, Android groups all actual screen sizes into four generalized sizes: small, normal, large, and extra large.)手机实际的物理尺寸,指屏幕对角线的长度,比如2.8 阅读全文
posted @ 2013-03-08 19:59 qiangzhu 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: 比图android旋转屏幕,又竖屏到横屏,activity的生命周期onPause->onStop->onDestroy->onCreate->onStart->OnResumeAPI level 13 or higher,you should set this config instead:android:configChanges="orientation|screenSize"然后旋转屏幕,只会调用onConfigurationChanged,不会创建新activity. 阅读全文
posted @ 2013-03-08 16:59 qiangzhu 阅读(954) 评论(0) 推荐(0) 编辑
摘要: public static boolean isMediaScannerScanning(Context context) { boolean result = false; Cursor cursor = query(context, MediaStore.getMediaScannerUri(), new String [] { MediaStore.MEDIA_SCANNER_VOLUME }, null, null, null); if (cursor != null) { if (cursor.getCount() == 1) { cursor.moveToFirst(); re.. 阅读全文
posted @ 2013-03-06 14:32 qiangzhu 阅读(432) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页