- 博客(15)
- 资源 (2)
- 收藏
- 关注
原创 自动处理安卓不同尺寸图片
参数1:xxhdpi下图片路径参数2:drawable所在目录路径用法:image.sh /home/zenith/project/src/main/res/drawable-xxhdpi/sample.png /home/zenith/project/src/main/res脚本将自动resize图片并将相应图片放到drawable-hdpi, drawable-ldpi, draw
2015-12-14 16:32:42
300
原创 ios查看sqlite database
ios使用sqlite数据库作为本地存储。 在开发过程中,免不了要查看sqlite数据库情况。ios上做法和android一样,将数据库文件(一般为.db后缀)复制到本地,再使用sqlite查看器进行查看。 将.db文件复制到本地需要使用工具iexplorer。号称需要购买,但使用demo版也能用。本地查看sqlite有很多工具,一般可用firefox的sqlite3 manag...
2013-08-12 19:50:47
233
原创 JVM回收算法
1. Reference Counting循环引用2. Mark and Sweep第一遍,标记所有活跃的对象;第二遍清除未标记的对象产生碎片3. Copying两个相等的内存空间,回收时,将一个里的活跃对象复制到另一个中。回收之前,总有一个为空。占用空间较大,需两份相等空间。4. Mark and Compact第一遍标记所有活跃的对象,第二遍整理。不...
2013-04-07 21:33:11
119
原创 Git Server(SSH)搭建
http://www.urbanpuddle.com/articles/2008/07/11/installing-git-on-a-server-ubuntu-or-debiansudo apt-get install git-coresudo apt-get install python-setuptoolsgit clone git://eagain.net/gitosis.gitcd ...
2013-03-27 17:12:53
121
原创 Tomcat Https Support
Tomcat支持Https1. 生成keystore文件。$ keytool -genkey -alias tomcat -keyalg RSA过程中需要设置keystore和key密码,假设为tomcatpassword。该命令将在当前目录生成.keystore文件,假设为/home/user/.keystore。2. 修改tomcat配置中ssl相关设置。<!...
2013-03-27 15:35:51
236
Xcode初始化设置
#!/bin/bash# this script can help to initialize xcode environment, including # set organization name, set author name.ORGANIZATION_NAME="";FULL_USERNAME="";defaults write com.a...
2013-03-27 14:25:14
1494
原创 gwt history & bookmark & session
http://developerlife.com/tutorials/?p=232
2009-11-09 13:42:04
103
原创 Analysis
Byte Code Analysis - FindBugsSource Analysis - PWDMetrics - Panopticode
2009-07-05 20:19:47
191
原创 HTML 5 Web Form
reference - http://www.infoq.com/cn/articles/html5-web-form HTML5 Web Forms 2.0是对目前Web表单的全面提升,它在保持了简便易用的特性的同时,增加了许多内置的控件或者控件属性来满足用户的需求,并且同时减少了开发人员的编程。在我看来,HTML5 主要在以下几个方面对目前的Web表单做了改进:新的控件类型 ...
2009-06-28 13:49:20
131
原创 CanonicalPath
...removing redundant names such as "." and ".." from the pathname, resolving symbolic links (on UNIX platforms), and converting drive letters to a standard case (on Microsoft Windows platforms)... ...
2009-06-24 17:21:04
306
原创 Clipboard Java
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();StringSelection selection = new StringSelection(buffer.toString());clipboard.setContents(selection, selection);
2009-06-22 17:47:38
255
原创 Junit-Ext
@Testpublic void shouldPromptErrorMessageWhenPathIsLongerThan255OnWindows() { try { document.saveTo(veryLongPath())//用户希望用一个很长的路径来保存文件 Assert.fail("should throw exception whe...
2009-06-21 22:58:02
140
原创 ln osgispringdm
http://www.javaworld.com/javaworld/jw-04-2008/jw-04-osgi2.html?page=1
2009-06-21 12:25:58
93
Mastering Regular Expression(english chm)
2008-10-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人