摘要: import osimport os.pathrootdir="/Volumes/extend/test" #要查找的目录result = []def findSame(parent,filenames,category): for filename in filenames: ... 阅读全文
posted @ 2016-01-23 23:39 Liren 阅读(2595) 评论(0) 推荐(0) 编辑
摘要: void print2(unsigned char a){ int r[8]; r[0] = ( a & (0x01 << 0)) >> 0; // 最低位 r[1] = ( a & (0x01 << 1)) >> 1; r[2] = ( a & (0x01 << 2)) >> 2; r[3] = ( a & (0x01 << 3)) >> 3; r[4] = ( a & (0x01 << 4)) >> 4; r[5] = ( a &a 阅读全文
posted @ 2012-08-05 16:34 Liren 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: 基于JMS的数据交换既数据互操作平台的方案1.引言1.1.系统目标为解决应用系统间数据和信息的互通、互用,建立一个通用的、分布式的数据集成平台,用以解决异构数据平台数据交流和沟通的问题。数据交换平台,为跨地域、跨部门、跨平台不同应用系统不同数据库之间的互联互通提供包含提取、转换、传输和加载等操作的数据整合服务,实现扩展性良好的“松耦合”结构的应用和数据集成;利用数据交换平台,通过分布式部署和集中式管理架构,可以有效解决各节点之间数据的及时、高效地上传下达,在安全、方便、快捷、顺畅的进行信息交换的同时,精准的保证数据的一致性和准确性,实现数据的一次采集、多系统共享;基于数据交换节点服务器适配器的 阅读全文
posted @ 2012-03-19 11:58 Liren 阅读(2508) 评论(0) 推荐(1) 编辑
摘要: packagecom.liren.javadb2;importstaticorg.junit.Assert.assertNotNull;importstaticorg.junit.Assert.fail;importjava.sql.Connection;importjavax.sql.DataSource;importorg.junit.Test;importorg.junit.runner.RunWith;importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;importorg.springframework.beans.factory. 阅读全文
posted @ 2011-12-06 09:45 Liren 阅读(2480) 评论(0) 推荐(0) 编辑
摘要: SpringMVC3中关于url-pattern设成"/"后,CSS等资源的访问会报错:No mapping found for HTTP request with URI。解决办法是将资源类文件夹放到resources目录中,然后在 servlet-context.xml中 添加 xmlns:mvc="http://www.springframework.org/schema/mvc"<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static 阅读全文
posted @ 2011-11-28 09:52 Liren 阅读(524) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-11-09 15:20 Liren 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--NotificationManagernotificationManager=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);Notificationnotification=newNotification(R.drawable.icon,"您有新消息了",System.currentTimeMillis());Pending 阅读全文
posted @ 2011-01-25 15:38 Liren 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatevoidsendMessage(Stringcontact,Stringmessage){SmsManagersmsManager=SmsManager.getDefault();PendingIntentsentIntent=PendingIntent.getBroadcast(this,0,newIntent(),0);if(message.length()70){ListS 阅读全文
posted @ 2011-01-25 15:30 Liren 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 调用系统联系人列表[代码]获取返回代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1@Override2protectedvoidonActivityResult(intrequestCode,intresultCode,Intentintent){3if(ACTION_PICK==requestCode){4if(resultCode==Activity.RESULT_OK){5UricontactData=intent.getData(); 阅读全文
posted @ 2011-01-25 15:29 Liren 阅读(851) 评论(0) 推荐(1) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/**Copyright(C)2008TheAndroidOpenSourceProject**LicensedundertheApacheLicense,Version2.0(the"License");*youmaynotusethisfileexceptincompliancewiththeLicense.*YoumayobtainacopyoftheLicenseat**http://ww 阅读全文
posted @ 2011-01-23 16:54 Liren 阅读(486) 评论(0) 推荐(0) 编辑