摘要: /** * <p>将文件转成base64 字符串</p> * @param path 文件路径 * @return * @throws Exception */ public static String encodeBase64File(String path) throws Exception { File file = new File(path); FileInputStream inputFile = new FileInputStream(file); byte[] buffer = n... 阅读全文
posted @ 2012-03-15 11:16 freedragon 阅读(4341) 评论(0) 推荐(0) 编辑
摘要: /** * 将文件转成base64 字符串 * @param path 文件路径 * @return * @throws Exception */ public static String encodeBase64File(String path) throws Exception { ... 阅读全文
posted @ 2012-03-15 10:56 freedragon 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 《深入体验C语言项目开发》 配书光盘 版权所有,侵权必究 2011年5月_______________________________________________________________... 阅读全文
posted @ 2012-03-10 15:42 freedragon 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Play VideoThe UN-Arab League special envoy on Syria, Kofi Annan, has warned any further militarisation would only make the situation in Syria worse.An... 阅读全文
posted @ 2012-03-09 17:57 freedragon 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 03-09-2012 09:20 BJTThis year's London Book Fair is set to shine a spotlight on China. Running from April 16th to 18th, the fair is a global marketpla... 阅读全文
posted @ 2012-03-09 17:52 freedragon 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Database Editor - Get access to the offline or online databasehttp://download.exdat.com/file/ode.msi/index-12856.htmlhttp://www.download25.com/install... 阅读全文
posted @ 2012-03-09 16:30 freedragon 阅读(188) 评论(0) 推荐(0) 编辑
摘要: //获取通知管理器 NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); int icon = android.R.draw... 阅读全文
posted @ 2012-03-08 15:31 freedragon 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 03-08 10:39:43.240: W/System.err(3449): java.net.SocketException: No route to host03-08 10:39:43.240: W/System.err(3449): at org.apache.harmony.luni.p... 阅读全文
posted @ 2012-03-08 10:40 freedragon 阅读(115) 评论(0) 推荐(0) 编辑
摘要: //手机屏幕的密度分为低密度(240*320)/中密度(320*480)和高密度(480*800).通过//window.devicePixelRatio属性可以获得当前手机屏幕的密度类型.//如果该属性值为1.5表示高密度;1为中密度;075表示低密度. if (window.devicePixelRatio == 1.5) { alert("高密度屏幕"); } else if (window.devicePixelRatio == 1) { alert("中密度屏幕"); } else if (window.devicePixelRatio == 阅读全文
posted @ 2012-01-03 16:05 freedragon 阅读(533) 评论(0) 推荐(0) 编辑
摘要: UTF-8:Unicode TransformationFormat-8bit,允许含BOM,但通常不含BOM。是用以解决国际上字符的一种多字节编码,它对英文使用8位(即一个字节),中文使用24为(三个字节)来编码。UTF-8包含全世界所有国家需要用到的字符,是国际编码,通用性强。UTF-8编码的文字可以在各国支持UTF8字符集的浏览器上显示。如,如果是UTF8编码,则在外国人的英文IE上也能显示中文,他们无需下载IE的中文语言支持包。 GBK是国家标准GB2312基础上扩容后兼容GB2312的标准。GBK的文字编码是用双字节来表示的,即不论中、英文字符均使用双字节来表示,为了区分中文,将其最 阅读全文
posted @ 2012-01-03 15:11 freedragon 阅读(182) 评论(0) 推荐(0) 编辑