
Sep
20
完成一个 Scheme 解释器需要哪些知识
Published 12:09 Sep 20, 2015 by @ezra.
#Programming# 源码级解释器
在词法、语法分析的过程中解释执行其语义,不需要生成抽象语法树
对于简单的语言 (如各种 Scheme 子集) ,实现起来比较方便,间接层少,但是模块耦合度大,不方面调试。
基于语法树解释...

Sep
19
iOS Waring: TabBar Item States
Published 12:09 Sep 19, 2015 by @ezra.
#Programming# 在设置 TabBar 文字属性时,可能会遇到类似这样的警告:
button text attributes only respected for UIControlStateNormal, UICon...

Sep
18
UNIX/Linux Command: When should I not kill 9 a process
Published 12:09 Sep 18, 2015 by @ezra.
#Technology# Q:
I am always very hesitant to run kill -9, but I see other admins do it almost routinely.
I figur...

Sep
18
iOS 9 : ATS (App Transport Security)
Published 12:09 Sep 18, 2015 by @ezra.
#Programming# 相信很多小伙伴即将开始着手 iOS 9 的适配工作了,下面我们就来了解一下 iOS 9 的一项新特性: ATS。
什么是 ATS
ATS 的全称是 App Transport Security,是iO...

Sep
18
iOS 9 : Bitcode
Published 12:09 Sep 18, 2015 by @ezra.
#Programming# 相信很多小伙伴即将开始着手 iOS 9 的适配工作了,下面我们就来了解一下 iOS 9 的一项新特性: Bitcode。
什么是 Bitcode
首先我们需要了解苹果的 App Thinning ...

Sep
18
iOS 9 : URLScheme
Published 12:09 Sep 18, 2015 by @ezra.
#Programming# 相信很多小伙伴即将开始着手 iOS 9 的适配工作了,下面我们就来了解一下 iOS 9 的一项新特性: URLScheme。
URLScheme 白名单与 canOpenURL: 方法
在 iOS 9...

Sep
16
UNIX/Linux 文件权限浅析
Published 12:09 Sep 16, 2015 by @ezra.
#Technology# 一、基本文件权限
我们知道在 UNIX/Linux 中可以用 ls -l 命令来查看权限,其表示格式是类似这样的:
-rwxr-xr-x
这种表示方法一共有十位:
9 8 7 6 5 4 3 2 ...

Sep
16
iOS : App Group
Published 12:09 Sep 16, 2015 by @ezra.
#Programming# 本文主要介绍 App Group 功能。
我们可以使用 NSUserDefaults 来访问,当然,这里的 NSUserDefaults 并不是使用 NSUserDefaults.standardUs...

Sep
16
iOS UITableView: Appearance of HeaderView & FooterView for Section
Published 12:09 Sep 16, 2015 by @ezra.
#Programming# 如果你想自定义header颜色,可以这样做:
[[UITableViewHeaderFooterView appearance] setTintColor:[UIColor redColor]];
...

Sep
16
git clone error: RPC failed; result=56, HTTP code = 200
Published 12:09 Sep 16, 2015 by @ezra.
#Version Control# 如果你遇到这样的 Git 错误:
git clone error: RPC failed; result=56, HTTP code = 200
其解决办法很简单:
git config --gl...

Sep
16
Git Error: insufficient permission for adding an object to repository database .git/objects
Published 12:09 Sep 16, 2015 by @ezra.
#Version Control# 今天提交 Git 的时候出现一个错误,来看一下:
error: insufficient permission for adding an object to repository database ...

Sep
16
OS X : SSH 克隆会话
Published 12:09 Sep 16, 2015 by @ezra.
#Programming# Terminal的SSH是标准的OpenSSH client
如果需要克隆会话功能,可以通过配置打开:
$ cat .ssh/config
Host *
ControlMaster auto
...