【Lift】Scala Web 框架——Lift(一)准备工作
摘要: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
阅读(4082)
推荐(0) 编辑
使用Scala开发Android
摘要:需求:> 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
阅读(5613)
推荐(1) 编辑
【CocoaPods】CocoaPods:Objective-C依赖库管理(XCode 4.6)
摘要: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
阅读(1869)
推荐(0) 编辑
【HTML Parser】解析HTML:基于第三方库Jsoup
摘要: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
阅读(1042)
推荐(0) 编辑
【Three20】手动添加Three20(XCode 4.6)
摘要: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
阅读(754)
推荐(0) 编辑
【CLRS】《算法导论》读书笔记(三):计数排序(Counting sort)、基数排序(Radix sort)和桶排序(Bucket sort)
摘要:计数排序(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) 编辑
【CLRS】《算法导论》读书笔记(二):快速排序(Quicksort)
摘要:快速排序(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
阅读(707)
推荐(0) 编辑
【CLRS】《算法导论》读书笔记(一):堆排序(Heapsort)
摘要:堆排序(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
阅读(727)
推荐(0) 编辑