归档: 2016

UIWebView vs WKWebView

Three options to open web content in app UIWebView (deprecated on iOS 8) WKWebView (entered on iOS 8) SFSafariViewController (entered on iOS 9) Quick comparsion Recommandations Use WKWebView as the d

Markdown Simple Usage on Hexo

决定用 Hexo 作为 blog 引擎后,自然要总结一下 Markdown 语法与 Hexo 的结合用法,以下为简明用法,在我看来,知道下面这些点,也基本上足够了: 先简单介绍一下,Markdown的语法,具体怎么用,我相信大家一看例文就马上明白了。 1、分段: 两个回车 2、换行 两个空格 + 回车 3、标题 # ~ ###### 井号的个数表示几级标题,即Markdown可以表示一级标题到六级

Low Version Ant Can Not Support Java 1.8

今天用 MyEclipse 2014 中的 ANT 打包时,发现如下错误: ant Class not found: javac1.8 检查 ant 的 build.xml 半天无果,赶紧 google,很快发现问题原因,记录如下:原来,MyEclipse 2014 用的还是 Ant 1.8.4,有图有真相: MyEclipse 在 Mac 上 Ant 位置为:1/Applications/

Quick Delete Line/Lines Plugin for Xcode

What’s this?I like delete line(s) feature by shortcut key (crontol/+d, command+d on Mac) so much on Eclipse, but Xcode does not has this feature.Fortunately, Xcode provides plugin mechnism, so I deve

Kill Alipay Dispatch Service on Mac

今天观察了一下 Mac 上进程对文件读写的操作,发现一个极其流氓的进程,不停的在读写硬盘,而且频率相当高,便开始排查。 1,首先,打开 Instruments, 然后开启 All Processes 的 File Activity 文件监控功能,发现一大排 executable 为 AlipayDispatch 的进程在不停的读写硬盘。 2,接下来就是 google 看网友们有没有中招,一搜吓一跳

Linksys EA2700 Upgrade to DDWRT Note

I spent so many time to upgrade my new Linksys EA2700 router to the DD-WRT, and I get it finally. So exciting! Use following steps:I’m new to dd-wrt (never used before) and linksys routers, so here ar

How To Get ID3 Info from MP3 and M4A

Cause:Today, I got a requriement that get ID3 info from MP3 and M4A files. I am good on MP3 knowledge, but I don’t familiar on M4A format so far. Solution:First of all, I google it, and then I got an

用 Hexo 搭建个人 Blog

最近 Hexo 非常火,加上之前用 Jeklly 搭建的个人 Blog 体验实在差强人意,所以决定切到 Hexo,养成更好的记录和分享习惯,同时,也帮助一下记忆力越来越差的快要生锈的那个大脑。 不多废话,以下记录基于 Mac OS X, 开始: 1,安装Hexo:12345$ npm install hexo-cli -g$ hexo init blog$ cd blog$ npm install