![](/media/posts/categories/covers/programming.jpg)
Jul
12
Android : Layout 基础
Published 12:07 Jul 12, 2014 by @ezra.
#Programming# 好像一直都没有系统的写过 Android 方面的博客,就先从布局开始吧,介绍一些布局属性。
主要的布局方式有:
LinearLayout
RelativeLayout
FrameLayou...
![](/media/posts/covers/guoxue256-13048937-e84c-3c7d-a015-add352522cd7.jpg)
Jul
01
常用汉字简繁对照表
Published 17:07 Jul 01, 2014 by @ezra.
#Culture#
简体
繁体
简体
繁体
一
一
七
七
万
萬
丈
丈
三
三
上
上
下
下
不
不
与
...
![](/media/posts/images/solarized-palette.png)
Jun
30
Solarized Cheatsheet
Published 12:06 Jun 30, 2014 by @ezra.
#Desiging# I’ve been enjoying Ethan Schoonover’s Solarized Color Scheme. However, when setting up various progr...
![](/media/posts/categories/covers/chip.jpeg)
Jun
12
UNIX/Linux: Signals
Published 12:06 Jun 12, 2014 by @ezra.
#Technology# The signals of UNIX/Linux systems:
|Signal|Description|
|SIGABRT|由调用 abort 函数产生,进程非正常退出|
|SIGALRM|用 ...
![](/media/posts/categories/covers/programming.jpg)
May
12
C : 浮点数
Published 12:05 May 12, 2014 by @ezra.
#Programming# 其实浮点数的精度缺失应该是个众所周知的问题,而我第一次注意到这件事还是在学生时代,跟随着社会的洪流涌入了 J2EE 的学习热潮中,在一次使用 JavaScript 的过程中出现曾让我无比震惊的一幕:
...
![](/media/posts/categories/covers/programming.jpg)
Apr
20
Programming in Clojure 001 : 简介
Published 12:04 Apr 20, 2014 by @ezra.
#Programming# Clojure 是一种 Lisp 方言,属于函数式语言的范畴(主流的函数式语言有 Clojure , Common Lisp , Erlang , F# , Haskell , ML , OCaml ...
![](/media/posts/categories/covers/programming.jpg)
Apr
20
Programming in Clojure 002 : 语法糖
Published 12:04 Apr 20, 2014 by @ezra.
#Programming# 现在,如果你真的有兴趣,可能已经迫不及待想要学习 Clojure 的语法了,下面我们再来列举一些 Clojure 的语法糖吧:
作用
语法糖
对应函数
...
![](/media/posts/categories/covers/programming.jpg)
Apr
20
Mac: 注册全局热键
Published 12:04 Apr 20, 2014 by @ezra.
#Programming# 使用 Cocoa 为应用注册热键, 首先需要引入 Carbon.framework, 并包含头文件。
#import <Carbon/Carbon.h>
接下来, 要做两件事, 注册热...
![](/media/posts/categories/covers/programming.jpg)
Apr
16
HTML color codes and names
Published 12:04 Apr 16, 2014 by @ezra.
#Programming#
Color Name
Color Code
Red
...
![](/media/posts/categories/covers/programming.jpg)
Apr
07
__block directive, a simple explanation
Published 12:04 Apr 07, 2014 by @ezra.
#Programming# Nowadays, if you pass a variable inside a block and try to assign a new value to it, you will encoun...
![](/media/posts/categories/covers/programming.jpg)
Mar
21
Python : tree
Published 12:03 Mar 21, 2014 by @ezra.
#Programming# 用 Python 实现一个 tree 指令的模拟,后面有时间再做优化:
import os
def main():
while True:
path = input('Inp...
![](/media/posts/categories/covers/programming.jpg)
Mar
20
Python : Calculator
Published 12:03 Mar 20, 2014 by @ezra.
#Programming# 用 Python 实现一个 GUI 计算器的基本思路,后面有时间会添加更高级的计算功能:
from __future__ import division
import ui
shows_result ...