![](/media/posts/categories/covers/programming.jpg)
Dec
02
Pebble Smart-watch, Xcode 5 and OS X Mavericks
Published 12:12 Dec 02, 2013 by @ezra.
#Programming# After stumbling a few times while setting up my development environment for the Pebble Smart-watch,...
![](/media/posts/categories/covers/programming.jpg)
Nov
22
Command that Terminal
Published 12:11 Nov 22, 2013 by @ezra.
#Programming# In case somebody else is using the left and right arrows to navigate through typed commands, I've co...
![](/media/posts/categories/covers/chip.jpeg)
Nov
05
UNIX/Linux : 让 man 手册变为彩色
Published 12:11 Nov 05, 2013 by @ezra.
#Technology# 用过 Unix/Linux 的朋友一定知道 man 指令,但是黑白的 man 手册看起来还是蛮费劲的。那就让我们来把它变为彩色吧。
首先,你当然要知道自己所使用的 shell 是什么,你可以使用 ec...
![](/media/posts/categories/covers/programming.jpg)
Nov
03
The data beyond the JPEG
Published 12:11 Nov 03, 2013 by @ezra.
#Programming# JPEG files from a digital camera include lots of information beyond the actual picture. Camera setti...
![](/media/posts/categories/covers/chip.jpeg)
Oct
13
RegEx: Syntax
Published 12:10 Oct 13, 2013 by @ezra.
#Technology# 正则表达式是一种文本模式,包括普通字符 (例如,a 到 z 之间的字母) 和特殊字符 (称为"元字符) 。模式描述在搜索文本时要匹配的一个或多个字符串。
正则表达式示例
表达式
匹配
...
![](/media/posts/categories/covers/programming.jpg)
Oct
10
OS X: Terminal Cheatsheet
Published 12:10 Oct 10, 2013 by @ezra.
#Programming# Terminal Cheatsheet for Mac
快捷键
按键/命令
描述
Ctrl + A
移动光标至行首
Ctrl + E
移动光标至行尾
Ctrl + L
清屏
...
![](/media/posts/categories/covers/chip.jpeg)
Sep
19
grep 基础
Published 12:09 Sep 19, 2013 by @ezra.
#Technology# grep 基本概念
grep: global search regular expression and print out the line.
作用
文本过滤器,用于文本搜索,用指定“模式”逐行匹配...
![](/media/posts/categories/covers/programming.jpg)
Sep
19
Java 与 RegEx 浅析 002: 小试 java.util.regex
Published 12:09 Sep 19, 2013 by @ezra.
#Programming# 正则表达式包 java.util.regex 的使用十分简单,它的功能由下列内容组成:
类 java.util.regex.Pattern
Pattern 对象就是编译好的正则表达式,它可以应用...
![](/media/posts/categories/covers/programming.jpg)
Sep
19
Java 与 RegEx 浅析 001: 概述
Published 12:09 Sep 19, 2013 by @ezra.
#Programming# Java 是目前极为流行的一门语言,而正则表达式也是开发和维护中必不可少的一个工具,如何将这两者融合成为一个非常重要的问题。
从 2002 年初 Java 发布 1.4 版本后就有了内建的采用 NFA...
![](/media/posts/categories/covers/programming.jpg)
Sep
17
Linux 配置 IP
Published 12:09 Sep 17, 2013 by @ezra.
#Programming# 首先需要找到配置文件,以 eth0 为例,用 vi 打开它:
vi /etc/sysconfig/network-script/ifcfg-eth0
将其内容改为如下格式:
DEVICE=eth0
H...
![](/media/posts/categories/covers/chip.jpeg)
Sep
15
UNIX/Linux get IP Address
Published 12:09 Sep 15, 2013 by @ezra.
#Technology# use this:
curl icanhazip.com
or this:
function myip(){
myip="$(ifconfig | grep 'inet.*net...