Nov
13
AsciiDoc
Published 12:11 Nov 13, 2015 by @ezra.
#Mark-up# 轻量级的标记语言已经有很多(Wikipedia),例如我用来写博客的 Markdown 就是目前十分流行的一种轻量级标记语言,包括 Github、StackOverflow 等很多网站以及个人都在使用...
![](/media/posts/categories/covers/programming.jpg)
Nov
10
OS X: Launch At Login
Published 12:11 Nov 10, 2015 by @ezra.
#Programming# To have the app launch start at login you just need to call SMLoginItemSetEnabled with your bundle I...
![](/media/posts/categories/covers/programming.jpg)
Nov
07
Android: ScrollView 顶部图片下拉放大
Published 12:11 Nov 07, 2015 by @ezra.
#Programming# 先写布局
<LinearLayout xmlns:android="<https://schemas.android.com/apk/res/android>"
...
![](/media/posts/categories/covers/programming.jpg)
Nov
07
The best way to create constants in Objective-C
Published 12:11 Nov 07, 2015 by @ezra.
#Programming# The first question is what scope you want your constants to have, which is really two questions:
Ar...
![](/media/posts/categories/covers/programming.jpg)
Nov
01
iOS: WKWebView Useage
Published 12:11 Nov 01, 2015 by @ezra.
#Programming# iOS8以后, 苹果推出了新框架Wekkit, 提供了替换UIWebView的组件WKWebView。各种UIWebView的问题没有了, 速度更快了, 占用内存少了, 一句话, WKWebView是...
![](/media/posts/categories/covers/programming.jpg)
Nov
01
CSS: rem
Published 12:11 Nov 01, 2015 by @ezra.
#Programming# 最近花了点时间修改博客的页面效果,第一次用 CSS 里的 rem 单位,顺便总结一下。
我们知道,在设置字体时常见的 px 和 em。
px
px 是很常用的单位,比较稳定和精确,但也存在一些问题,例...
![](/media/posts/categories/covers/programming.jpg)
Oct
27
Android : ScrollView 联动
Published 12:10 Oct 27, 2015 by @ezra.
#Programming# ScrollView 联动,就是指多个 ScrollView 中有一个滚动时其它 ScrollView 也随同滚动的效果。并不是什么复杂的事情,最近自己在写一些东西时用到了,所以顺便分享一下。
与 i...
![](/media/posts/categories/covers/programming.jpg)
Oct
26
Android: 在 Mac 中生成 keystore
Published 12:10 Oct 26, 2015 by @ezra.
#Programming# 在 Mac 中生成 keystore 其实也很简单, 虽然 Android Studio 中有这个功能, 但不少小伙伴还在用 eclipse 呢。
打开终端进入 Java 安装路径
cd /Libra...
![](/media/posts/categories/covers/chip.jpeg)
Oct
26
UNIX/Linux : awk 清理重复行
Published 12:10 Oct 26, 2015 by @ezra.
#Technology# 最近遇到一个需求,就是要清理掉文本中重复的行。这看起来并不是什么困难的事情,你可以使用 Python、Ruby、Perl 甚至 C 来完成这项任务,轻而易举。
但是,作为一个处女座的程序员,并不能满足...
![](/media/posts/categories/covers/programming.jpg)
Oct
20
HTML: 自动跳转
Published 12:10 Oct 20, 2015 by @ezra.
#Programming# 常见的几种自动跳转页面的方式, 以 3 秒后跳转到本博客为例:
JavaScript setTimeout
<script type="text/javascript">...
![](/media/posts/categories/covers/programming.jpg)
Oct
20
OS X : 像 iPhone 一样的充电提示音
Published 12:10 Oct 20, 2015 by @ezra.
#Programming# 用 iPhone/iPad/iPod Touch 的同学肯定对充电时的提示音不陌生,但是,有没有想过在 Mac 上也听到同样的声音呢?如果你想过,却不知道怎么实现,今天就让我来告诉你。
首先,为了体现...
![](/media/posts/categories/covers/programming.jpg)
Oct
16
Xcode: The meaning of Debug Navigator icons
Published 12:10 Oct 16, 2015 by @ezra.
#Programming# Looks like Apple finally documented it in the Process View Display section. Here's a link to the ima...