2013年4月4日
摘要: ejabberdejabberdis a free and open source instant messaging server written inErlang/OTP.ejabberdis cross-platform, distributed, fault-tolerant, and based on open standards to achieve real-time communication.ejabberdis designed to be a rock-solid and feature rich XMPP server.ejabberdis suitable for s 阅读全文
posted @ 2013-04-04 21:39 Anthony Li 阅读(7987) 评论(1) 推荐(0) 编辑
  2013年3月31日
摘要: Lift官方网站:http://liftweb.net/下载http://liftweb.net/download下载.zip压缩包,解压缩或者终端下,运行:git clone https://github.com/lift/lift_25_sbt.git安装终端下,切换目录到“lift/scala_29/lift_basic”运行:./sbtsbt会下载一大堆的东西下载完毕后,提示符">"输入命令备注:sbt is a build tool for Scala and Java projects that aims to do the basics well.sbt 阅读全文
posted @ 2013-03-31 19:38 Anthony Li 阅读(4077) 评论(0) 推荐(0) 编辑
  2013年3月27日
摘要: 需求:> Android开发环境:EclipseAndroid SDKADT> 安装Scala IDE插件:官方网站:http://scala-ide.org/index.htmlEclipse -> Help -> Install New Software...点击Add按钮Location:http://download.scala-ide.org/sdk/e38/scala210/stable/site> 安装AndroidProguardScala插件:GitHub地址:https://github.com/banshee/AndroidProguardS 阅读全文
posted @ 2013-03-27 14:23 Anthony Li 阅读(5609) 评论(0) 推荐(1) 编辑
  2013年3月21日
摘要: github:https://github.com/CocoaPods/CocoaPods官方网站:http://www.cocoapods.org/1、安装 RubyGemsRubyGems 官方网站:http://rubygems.org/RubyGems 下载地址:http://rubygems.org/pages/download下载成功后,解压缩打开终端,cd 打开执行命令:sudo ruby setup.rb2、安装 CocoaPods终端,执行命令:sudo gem install cocoapods报错:Building native extensions. This coul 阅读全文
posted @ 2013-03-21 15:31 Anthony Li 阅读(1867) 评论(0) 推荐(0) 编辑
  2013年3月20日
摘要: JSoup官方地址:http://jsoup.orgApache HttpComponents官方地址:http://hc.apache.org/index.html1、抓取HTML内容这里我们使用HttpClient库,根据URL请求远端的HTMLpublic static String getHTMLFromURL(String url) { String html = null; HttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { ... 阅读全文
posted @ 2013-03-20 11:38 Anthony Li 阅读(1037) 评论(0) 推荐(0) 编辑
  2013年3月18日
摘要: github:https://github.com/facebook/three20官方网站:http://three20.info参考:http://chepri.com/visual-guide-manually-adding-three20-xcode-4-project/1、添加Three20.xcodeproj“add Files to”,在three20/src/Three20目录下,选择Three20.xcodeproj,在弹出的对话框中,请保证反选“Copy items into destination group's folder”选项,点击“add”按钮添加2、添加 阅读全文
posted @ 2013-03-18 17:29 Anthony Li 阅读(747) 评论(0) 推荐(0) 编辑
  2013年3月14日
摘要: 计数排序(Counting sort)维基百科:http://en.wikipedia.org/wiki/Counting_sort时间复杂度:O(n)技术排序的基本思想:对每一个输入元素 x ,确定小于 x 的元素个数。利用这一信息,就可以直接把 x 放到它在输出数组中的位置上了。伪码:COUNTING-SORT(A, B, k) let C[0 .. k] be a new array for i = 0 to k C[i] = 0 for j = 1 to A.length C[A[j]] = C[A[j]] + 1 // C[i] now contains the ... 阅读全文
posted @ 2013-03-14 21:25 Anthony Li 阅读(525) 评论(0) 推荐(0) 编辑
  2013年3月10日
摘要: 快速排序(Quicksort)维基百科:http://en.wikipedia.org/wiki/Quick_sort平均时间复杂度:O(nlogn)示例:[6, 5, 3, 1, 8, 7, 2, 4]快速排序三步分治过程:分解:数组 A[p .. r] 被划分为两个(可能为空)子数组 A[p .. q - 1] 和 A[q + 1 .. r],使得A[p .. q - 1] 中的每一个元素都小于等于 A[q],而 A[q] 也小于等于 A[q + 1 .. r] 中的每个元素。其中,计算下标q也是划分过程的一部分。解决:通过递归调用快速排序,对数组 A[p .. q - 1] 和 A[q 阅读全文
posted @ 2013-03-10 21:08 Anthony Li 阅读(705) 评论(0) 推荐(0) 编辑
  2013年3月4日
摘要: 堆排序(Heapsort)维基百科:http://en.wikipedia.org/wiki/Heapsort时间复杂度:O(nlogn)示例:[6, 5, 3, 1, 8, 7, 2, 4]1、堆(Heap)维基百科:http://en.wikipedia.org/wiki/Heap_(data_structure)Incomputer science, aheapis a specializedtree-baseddata structurethat satisfies theheap property:IfAis a parentnodeofBthen key(A) is ordered 阅读全文
posted @ 2013-03-04 15:21 Anthony Li 阅读(723) 评论(0) 推荐(0) 编辑
  2013年2月25日
摘要: 前情提示:【Wax】使用Wax (非framework方式,XCode 4.6)这次,将以framework的方式来使用Wax那么,让我们开始吧!!!准备工作:下载wax.framework:https://github.com/downloads/probablycorey/wax/wax.framework.zip新建iOS应用项目,使用Empty Application模板,命名为WaxDemoAdd Files...添加wax.framework,选择“Copy items into destination group's folder”复选框1、加载luaAppDelegat 阅读全文
posted @ 2013-02-25 15:48 Anthony Li 阅读(1205) 评论(0) 推荐(0) 编辑

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