iOS App图标设计要点

最近翻看TrinitiWilliam的微博,无意中发现的精华:

  • 单一物件
  • 简单底色
  • 破坏性立体感
  • 远距离识别

此外自己也总结了一些要点:

  • 图标与App建立视觉和逻辑上的联系
  • 利用图标边角上的图形、标签等建立品牌标识
  • 别写文本

附小广告一则:唱吧iOS团队诚招iOS工程师,推荐成功即奖励6000元现金或iPhone 6一部,详见这篇blog


如何在AWS EC2上设置VPN(PPTP)

如果你已经运行了一个AWS EC2实例,并且会使用SSH进行远程连接,那么请继续往下阅读。


我在EC2上安装的是Ubuntu 11.04版本,如果你使用的是Amazon Linux AMI,可以直接使用本文后面引用的“一键安装脚本”。

安装pptpd:

sudo apt-get -y install pptpd

添加用户名、密码:

sudo vi /etc/ppp/chap-secrets

接着编辑sysctl.conf,去掉net.ipv4.ip_forward=1这行的注释,以允许IPv4的转发:

sudo vi /etc/sysctl.conf

重新加载我们刚才修改过的配置:

sudo sysctl -p

修改pptpd.conf文件:

sudo vi /etc/pptpd.conf

添加local/remote的ip范围,在末尾处添加下面两行配置:

localip 192.168.240.1
remoteip 192.168.240.2-100

修改pptpd-options文件:

sudo vi /etc/ppp/pptpd-options

添加两条dns记录,防止被GFW污染:

ms-dns 8.8.8.8
ms-dns 8.8.8.4

接着添加nat映射和iptables的转发:

sudo iptables -A FORWARD -p tcp --syn -s 192.168.240.0/24 -j TCPMSS --set-mss 1356

最后启动/重启pptpd服务:

service pptpd start(或者service pptpd restart)

参考信息

附小广告一则:唱吧iOS团队诚招iOS工程师,推荐成功即奖励6000元现金或iPhone 6一部,详见这篇blog


Markdown简明指南

开始使用Jekyll,我倾向于Markdown的语法,写起来很流畅,下面是简要的介绍。

  • 大概经过15分钟的练习,就可以掌握它并进行流畅的写作。
  • Dingus可以看到在线的演示。
  • 附Markdown的详细语法说明

Syntax Cheatsheet

Phrase Emphasis

*italic*   **bold**
_italic_   __bold__

Inline:

An [example](http://url.com/ "Title")

Reference-style labels (titles are optional):

An [example][id]. Then, anywhere
else in the doc, define the link:

[id]: http://example.com/  "Title"

Images

Inline (titles are optional):

![alt text](/path/img.jpg "Title")

Reference-style:

![alt text][id]
[id]: /url/to/img.jpg "Title"

Headers

Setext-style:

Header 1
========

Header 2
--------

atx-style (closing #’s are optional):

# Header 1 #

## Header 2 ##

###### Header 6

Lists

Ordered, without paragraphs:

1.  Foo
2.  Bar

Unordered, with paragraphs:

*   A list item.

    With multiple paragraphs.

*   Bar

You can nest them:

*   Abacus
    * answer
*   Bubbles
    1.  bunk
    2.  bupkis
        * BELITTLER
    3. burper
*   Cunning

Blockquotes

> Email-style angle brackets
> are used for blockquotes.

> > And, they can be nested.

> #### Headers in blockquotes
> 
> * You can quote a list.
> * Etc.

Code Spans

`<code>` spans are delimited
by backticks.

You can include literal backticks
like `` `this` ``.

Preformatted Code Blocks

Indent every line of a code block by at least 4 spaces or 1 tab.

This is a normal paragraph.

    This is a preformatted
    code block.

Horizontal Rules

Three or more dashes or asterisks:

---

* * *

- - - - 

Manual Line Breaks

End a line with two or more spaces:

Roses are red,   
Violets are blue.

附小广告一则:唱吧iOS团队诚招iOS工程师,推荐成功即奖励6000元现金或iPhone 6一部,详见这篇blog