2012年12月25日
摘要: 1、下载Tomcat 7.0地址:http://tomcat.apache.org/download-70.cgiBinary Distributions -> Core选择zip或tar.gz格式2、安装将下载的压缩包解压到/Library/目录下打开目录Tomcat/bin,在终端下执行:sudo sh /Library/Tomcat/bin/startup.sh,启动Tomcat服务器提示错误:解决方法:在终端下执行:sudo chmod +x/Library/Tomcat/bin/*.sh,为bin目录下的所有Shell脚本文件添加可执行权限重新执行启动服务器.sh脚本,成功!3 阅读全文
posted @ 2012-12-25 09:18 Anthony Li 阅读(6579) 评论(0) 推荐(1) 编辑
  2012年12月24日
摘要: 1、添加ZXingWidget打开目录ZXing/iphone/ZXingWidget,将ZXingWidget.xcode文件拖拽添加到项目中2、设置Link Binary With LibrariesTARGETS -> Build Phases -> Link Binary With Libraries点击+,添加libZXingWidget.a3、设置Target DependenciesTARGETS -> Build Phases -> Target Dependencies点击+,添加ZXingWidget4、设置Header Search PathsTA 阅读全文
posted @ 2012-12-24 15:13 Anthony Li 阅读(4802) 评论(0) 推荐(0) 编辑
摘要: ASIHTTPRequest简介:HTTP请求http://allseeing-i.com/ASIHTTPRequest/SBJson简介:JSON解析http://stig.github.com/json-framework/FMDB简介:SQLite数据库https://github.com/ccgus/fmdbwsdl2objc简介:SOAPhttp://code.google.com/p/wsdl2objc/ios-ntp简介:NTPhttps://github.com/jbenet/ios-ntpCocoaAsyncSocket简介:Sockethttps://github.com/ 阅读全文
posted @ 2012-12-24 13:15 Anthony Li 阅读(511) 评论(1) 推荐(0) 编辑
  2012年12月6日
摘要: Apache Commons NetApache Commons Net库实现了许多基本的客户端网络协议,其中包括NTP/SNTP。地址:http://commons.apache.org/net/1、创建JAR包进入下载页,当前的最新版本是Commons Net 3.2,选择源代码下载下载完成,解压缩.tar.gz或.zip文件进入目录/src/main/java,打开Eclipse,将源代码拷贝到一个新建的Java Project中删除多余的package,只留下org.commons.net,org.commons.net.util,org.commons.net.io和org.comm 阅读全文
posted @ 2012-12-06 11:48 Anthony Li 阅读(1655) 评论(0) 推荐(0) 编辑
  2012年12月5日
摘要: TOTP - Time-based One-time Password Algorithm is an extension of the HMAC-based One Time Password algorithm HOTP to support a time based moving factor.TOTP(基于时间的一次性密码算法)是支持时间作为动态因素基于HMAC一次性密码算法的扩展。维基百科:http://en.wikipedia.org/wiki/Time-based_One-time_Password_AlgorithmRFC 6238:http://tools.ietf.org/ 阅读全文
posted @ 2012-12-05 18:58 Anthony Li 阅读(23863) 评论(0) 推荐(0) 编辑
  2012年12月4日
摘要: HTC Desire Android 2.2 真机测试,报错:12-04 14:16:55.687: E/AndroidRuntime(6989): FATAL EXCEPTION: main12-04 14:16:55.687: E/AndroidRuntime(6989): java.lang.RuntimeException: startPreview failed12-04 14:16:55.687: E/AndroidRuntime(6989): at android.hardware.Camera.startPreview(Native Method)12-04 14:16:55. 阅读全文
posted @ 2012-12-04 16:46 Anthony Li 阅读(7329) 评论(2) 推荐(0) 编辑
  2012年12月3日
摘要: 选择Settings -> Security ->Set up screen lock设置屏幕锁选择Pattern设置图案在我的真机HTC Desire(Android 2.2)上,截图如下:Android是一个开源的操作系统,所以我们可以通过下载该控件的源代码重用该控件。1、LockPatterView源代码图案解锁控件,对应着framework层的LockPatterView类,如下所示:源代码:https://github.com/android/platform_frameworks_base/blob/master/core/java/com/android/intern 阅读全文
posted @ 2012-12-03 17:27 Anthony Li 阅读(17103) 评论(2) 推荐(0) 编辑
  2012年11月29日
摘要: 继续上一节的内容本节我们将对上一节的QQ群号二维码进行解码QQ群号二维码图片另存为后,将下载的.jpg拷贝到项目assets目录下1、解码配置Map<DecodeHintType,Object> hints = new EnumMap<DecodeHintType,Object>(DecodeHintType.class);Collection<BarcodeFormat> decodeFormats = EnumSet.noneOf(BarcodeFormat.class);decodeFormats.addAll(EnumSet.of(BarcodeFo 阅读全文
posted @ 2012-11-29 17:09 Anthony Li 阅读(6225) 评论(1) 推荐(0) 编辑
  2012年11月27日
摘要: 准备工作:添加依赖库core.jar在Package Explorer选择导入的项目,右键 -> Build Path -> Add External Archives...选择zxing/core目录下的core.jar1、设置编码内容使用的字符集Map<EncodeHintType,Object> hints = new EnumMap<EncodeHintType,Object>(EncodeHintType.class);hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");messag 阅读全文
posted @ 2012-11-27 15:24 Anthony Li 阅读(6504) 评论(0) 推荐(0) 编辑
  2012年11月26日
摘要: 维基百科:QR Codehttp://en.wikipedia.org/wiki/QR_code开源项目:ZXinghttp://code.google.com/p/zxing/1、下载源代码导航栏,选择Downloads下载当前最新版本2、导入项目解压下载的.zip文件打开Eclipse,菜单栏,选择file -> new -> project...在弹出的New Project对话框中,选择Android -> Android Project from Existing Code,点击NextRoot Directory文本框,点击Browse按钮,选择zxing/and 阅读全文
posted @ 2012-11-26 15:04 Anthony Li 阅读(11650) 评论(0) 推荐(0) 编辑

博客园博客已停止更新,博客地址:dyinigbleed.com