Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
585 lines (488 sloc) 24.6 KB
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="keywords" content="wongyouth, Ryan Wang, 王永志, Rails, Javascript, Web, 移动, 产品, 创业">
<meta name="description" content="王永志(Ryan Wang)的个人博客,关注Web,移动,产品,创业。">
<meta name="baidu-site-verification" content="whKGC9t0PW" />
<title>破而后立 - 王永志的独立博客</title>
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml" />
<link href="stylesheets/all-6c32d234.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">你的浏览器版本过于<strong>陈旧</strong>。请<a href="http://browsehappy.com/">更新你的浏览器</a> 以提升访问体验。</p>
<![endif]-->
<header class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">王永志的独立博客</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="/blog/archives">归档</a></li>
<li><a href="/blog/topics/技术">技术</a></li>
<li><a href="/blog/topics/运营">运营</a></li>
</ul>
<form class="navbar-form navbar-left" role="search" action='http://www.google.com.hk/search' id="search">
<div class="form-group">
<input type="hidden" name='sitesearch' value='wongyouth.com'>
<input type="text" name='q' class="form-control" placeholder='搜索'>
</div>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</header>
<div class="container">
<div class="row">
<div id="main" role="main" class="col-sm-8 col-md-9">
<article class="shadow">
<h2><a href="/blog/2016/12/30/enhenced-ftp-tool-comparision/">Ftp 增强工具比较</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2016-12-30T15:13:00+08:00">2016-12-30 15:13</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2016/12/30/enhenced-ftp-tool-comparision/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/ftp/">ftp</a>
</div>
</div>
<p>现在与主机交互的首选工具应该是 <code>ssh</code> 相关的工具了,比如 <code>scp</code>, <code>rsync</code>。因为他们都是建立在传输层基础上的安全协议。
而老牌的 <code>ftp</code> 则不然,因为他们访问主机时的登录交互容易被窃听,有泄密的可能性。
<code>ftp</code> 也有对应的安全版本 <code>sftp</code>, 但是用的就很少了,因为 <code>sftp</code> 也是基于 <code>ssh</code> 的,但是 <code>ssh</code> 自带传输特效,所有 <code>sftp</code> 就很少用的了。</p>
<p>本篇为什么要写 <code>ftp</code>,是因为对接老的系统的时候,是超出我们控制的。
最近的项目中就需要把本地的数据包传到服务器上,因此找了几...</p>
<a class="more-link" href="/blog/2016/12/30/enhenced-ftp-tool-comparision/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2016/02/24/elk-with-rails-log-analytics/">ELK 套件分析Rails日志</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2016-02-24T14:36:00+08:00">2016-02-24 14:36</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2016/02/24/elk-with-rails-log-analytics/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/logstash/">Logstash</a>
</div>
</div>
<p>当系统访问很频繁,服务器日志增多到一定量时,仅靠 <code>tail -f</code> 已经很难分析出有用信息了。
可能就只能进行一些简单的排除工作,比如根据日志内的时间信息,查找该时间附近有什么特殊访问之类。</p>
<p>即使这样用有时候也会比较麻烦,因为当你的应用服务器增多时,每个服务器都是单独写到本机日志文件内,造成了分析日志的难度。
这个时候就很需要一个工具来收集各个服务器日志来统一处理。</p>
<p>今天说的就是有关于这个问题的解法。</p>
<a class="more-link" href="/blog/2016/02/24/elk-with-rails-log-analytics/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2015/10/30/deploy-redmine-with-docker/">使用 Docker 来安装 Redmine 并结合 gitolite 使用</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2015-10-30T11:16:00+08:00">2015-10-30 11:16</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2015/10/30/deploy-redmine-with-docker/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/docker/">Docker</a>
</div>
</div>
<p><a href="http://wongyouth.com/blog/2015/07/02/use-docker-with-rails/">上一篇</a>介绍了 Docker 之后,仅仅过了3个月时间,Docker又增加了很多变化:
比如 <a href="https://docs.docker.com/machine/install-machine/">Docker Machine</a>, <a href="https://docs.docker.com/compose/install/">Docker Compose</a>。</p>
<p>最近项目里要把 Redmine 从盛大云到阿里云,正好可以发挥 Docker 的强项。这里分析一下需要实现的功能:</p>
<ul>
<li>Redmine 服务</li>
<li>Postgres 数据库服务</li>
<li><a href="https://github.com/sitaramc/gitolite">gitolite</a> Git repo 服务</li>
<li>迁移老数据到新的服务里</li>
<li>Redmine 服务自启动</li>
</ul>
<a class="more-link" href="/blog/2015/10/30/deploy-redmine-with-docker/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2015/07/02/use-docker-with-rails/">与 Docker 一起使用 Rails</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2015-07-02T08:28:00+08:00">2015-07-02 08:28</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2015/07/02/use-docker-with-rails/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/rails/">Rails</a>, <a href="/blog/tags/docker/">Docker</a>
</div>
</div>
<p>最近 Docker 很火,好像只要是服务器端相关的东西都有要搬到 Docker 上的趋势,
似乎要把从开发,安装,部署,维护的问题全都要解决掉的那个意思。</p>
<p>按我的理解,Docker 架构在服务器之上,从服务器上多衍生出了一层,
所以可以跨平台运行在各个系统之上,达到一致的用户体验。
并且 Docker 可以快速导入一个定制好系统,
比如可以把开发人员的系统环境复制一份给测试人员使用,体验真的很好。</p>
<p>Docker 发展很快,但我觉得就目前的阶段还是不太适合商用环境,
毕竟真正商用时是多主机配合工作的,这点上 Docker 还有很大的空间需要完善。
作为一个开发,测试用环境或者小范围商用时是 Docker 的确带来了巨大的用户体验。</p>
<a class="more-link" href="/blog/2015/07/02/use-docker-with-rails/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2015/01/09/use-gpg-to-encrypt-your-data/">使用 GPG 加密数据</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2015-01-09T16:18:00+08:00">2015-01-09 16:18</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2015/01/09/use-gpg-to-encrypt-your-data/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/数据/">数据</a>, <a href="/blog/tags/安全/">安全</a>
</div>
</div>
<p>什么是 <code>GPG</code> 加密,以下来自百度的解释</p>
<blockquote>
<p>PGP加密系统是采用公开密钥加密与传统密钥加密相结合的一种加密技术。
它使用一对数学上相关的钥匙,其中一个(公钥)用来加密信息,另一个(私钥)用来解密信息。
PGP采用的传统加密技术部分所使用的密钥称为“会话密钥”(sek)。
每次使用时,PGP都随机产生一个128位的IDEA会话密钥,用来加密报文。
公开密钥加密技术中的公钥和私钥则用来加密会话密钥,并通过它间接地保护报文内容。</p>
</blockquote>
<a class="more-link" href="/blog/2015/01/09/use-gpg-to-encrypt-your-data/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2014/10/15/postgresql-tips/">PostgreSQL Tips</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2014-10-15T09:28:00+08:00">2014-10-15 09:28</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2014/10/15/postgresql-tips/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/db/">DB</a>, <a href="/blog/tags/postgresql/">PostgreSQL</a>, <a href="/blog/tags/数据库/">数据库</a>
</div>
</div>
<p>PostgreSQL 查询</p>
<h2>PostgreSQL 后台进程状态</h2>
<p>当一个 postgres 进程查询很花时间时,可以在后台看一下到底是什么处理导致慢。</p>
<pre class="highlight plaintext"><code>SELECT datname,usename,procpid,client_addr,waiting,query_start,current_query FROM pg_stat_activity where procpid = $PID;
</code></pre>
<h2>查询 PostgreSQL 存储过程源码</h2>
<p>查询一个 PostgreSQL 的存储过程的源码。</p>
<a class="more-link" href="/blog/2014/10/15/postgresql-tips/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2014/09/05/configure-postgresql-master-slave-replication/">配置主从PostgreSQL数据库</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2014-09-05T16:47:00+08:00">2014-09-05 16:47</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2014/09/05/configure-postgresql-master-slave-replication/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/db/">DB</a>, <a href="/blog/tags/postgresql/">Postgresql</a>, <a href="/blog/tags/数据库/">数据库</a>, <a href="/blog/tags/运维/">运维</a>
</div>
</div>
<h1>背景</h1>
<p>数据库的数据量开始增多,负载开始变高,需要做一个数据库主从配置。</p>
<p>数据量,单表超过了100万条数据,应用程序做读写分离,写到主数据库,读从从数据库。</p>
<h1>步骤</h1>
<ul>
<li>生成操作用的用户</li>
<li>配置主数据库,激活备份模式</li>
<li>关停从数据库,复制数据</li>
<li>配置从数据库,从主数据库同步数据</li>
</ul>
<h2>生成操作用的用户</h2>
<pre class="highlight plaintext"><code>sudo apt-get install postgresql
sudo -s postgres
psql -c "CREATE USER rep REPLICATION LOGIN CONNECTION...</code></pre>
<a class="more-link" href="/blog/2014/09/05/configure-postgresql-master-slave-replication/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2014/09/04/using-lvm-striped-logical-volumn/">Using LVM striped logical volumn</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2014-09-04T17:47:00+08:00">2014-09-04 17:47</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2014/09/04/using-lvm-striped-logical-volumn/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/server/">Server</a>, <a href="/blog/tags/lvm/">LVM</a>, <a href="/blog/tags/运维/">运维</a>
</div>
</div>
<p>之前写过一篇关于 LVM 的<a href="/blog/2013/01/30/use-lvm-with-your-server/">博文</a>。
今天要说的是有关 LVM 的一个应用。</p>
<h1>原理</h1>
<p>当系统需要很多读写操作,需要更高效率的磁盘读写能力,完全升级磁盘等级会没有太多意义。
因为无论多好的磁盘读写能力,总会达到峰顶。</p>
<p>这时候我们需要另一种的解法。</p>
<p>挂载更多的磁盘到一个目录,这样写到一个磁盘的数据会分散到各个磁盘中,
这样子理论上可以达到无限扩展。</p>
<p>能够实现这个技术的,有RAID0, LVM Stripe。这里我只说LVM。</p>
<h1>操作</h1>
<h2>确认 vg 所有 物理盘数量</h2>
<pre class="highlight plaintext"><code>jxb@pg2:~$ sudo...</code></pre>
<a class="more-link" href="/blog/2014/09/04/using-lvm-striped-logical-volumn/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2014/07/16/when-activerecord-is-not-enough/">当 ActiveRecord 不够用时还有 Arel</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2014-07-16T09:31:00+08:00">2014-07-16 09:31</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2014/07/16/when-activerecord-is-not-enough/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/ruby/">Ruby</a>, <a href="/blog/tags/数据库/">数据库</a>
</div>
</div>
<h2>1. 取反运算符</h2>
<pre class="highlight plaintext"><code>SELECT * FROM posts WHERE title != 'Arel is cool'
</code></pre>
<h3>ActiveRecord</h3>
<pre class="highlight plaintext"><code>Post.where.not(title: 'Arel is cool')
</code></pre>
<h3>Arel</h3>
<pre class="highlight plaintext"><code>Post.where(Post[:title].not_eq('Arel is cool')
</code></pre>
<h2>2. NULL 运算</h2>
<pre class="highlight plaintext"><code>SELECT * FROM posts WHERE title IS NOT NULL
</code></pre>
<h3>ActiveRecord</h3>
<pre class="highlight plaintext"><code>Post.where...</code></pre>
<a class="more-link" href="/blog/2014/07/16/when-activerecord-is-not-enough/">Read more</a>
</article>
<article class="shadow">
<h2><a href="/blog/2014/07/05/variations-of-equal-method-in-ruby/">详解Ruby里用到的比较函数(equal?, eql?, ==, ===)</a> </h2>
<div class="meta text-muted">
<div class="date">
<i class="glyphicon glyphicon-calendar"></i>
<abbr class="timeago" title="2014-07-05T18:10:00+08:00">2014-07-05 18:10</abbr>
</div>
<div class="comments">
<i class="glyphicon glyphicon-comment"></i>
<span class="ds-thread-count" data-thread-key="/blog/2014/07/05/variations-of-equal-method-in-ruby/" data-count-type="comments"></span>
</div>
<div class="tags">
<i class="glyphicon glyphicon-tags"></i>
<a href="/blog/tags/ruby/">Ruby</a>
</div>
</div>
<p>Ruby里面有4种比较方法,<code>equal?</code>, <code>eql?</code>, <code>==</code>, <code>===</code>,而且在不同的类里面表现的很不一样。在使用的时候也特别容易搞糊涂。
这篇博文将演示一些代码来讲解各个方法。</p>
<h3>
<code>==</code> - 类意义上的 <code>相等</code>,需要每个类自己定义实现</h3>
<p>在特定类中觉得两个对象是否相同,需要看业务上的逻辑表象,所有由程序员覆盖该方法的定义,决定两个对象是否相同。</p>
<p>比如 <code>String</code> 类,他是来计较实际的文字串是否相同,而不在意是否来自同一个内存区域。</p>
<pre class="highlight ruby"><code><span class="o">&gt;&gt;</span> <span class="n">a</span> <span class="o">=</span> <span class="s2">"abc"</span>
<span class="c1">#=&gt; "abc"</span>
<span class="o">&gt;&gt;</span> <span class="n">b</span> </code></pre>
<a class="more-link" href="/blog/2014/07/05/variations-of-equal-method-in-ruby/">Read more</a>
</article>
<ul class="pager">
<li class="disabled">
<a href="#">&laquo;</a>
</li>
<a class="btn disabled" href="#">1 / 4</a>
<li class="">
<a href="/page/2/">&raquo;</a>
</li>
</ul>
</div>
<div class="col-sm-4 col-md-3">
<ul class="list-group">
<li class="list-group-item list-group-item-success">
关于我
</li>
<li class="list-group-item profile">
<img src="http://tp1.sinaimg.cn/1429798952/50/5627311745/1" alt="破而后立">
系统架构师<br>
全栈式 Rails 开发者<br>
最近折腾了一些前端框架<br>
关注 Web,移动,创业<br>
<div class="social">
<a class="wechat" href="/images/social/my_wechat-bcc4527b.png" rel='facebox' title="Wechat">微信</a>
<a class="github" href="https://github.com/wongyouth" title="GitHub">GitHub</a>
<a class="twitter" href="http://twitter.com/wongyouth" title="Twitter">Twitter</a>
<a class="rss" href="/atom.xml" title="RSS">RSS</a>
</div>
</li>
</ul>
<ul class="list-group">
<li class="list-group-item list-group-item-success">
近期文章
</li>
<li class="list-group-item">
<a href="/blog/2016/12/30/enhenced-ftp-tool-comparision/">Ftp 增强工具比较</a> <span class="text-muted">12-30</span>
</li>
<li class="list-group-item">
<a href="/blog/2016/02/24/elk-with-rails-log-analytics/">ELK 套件分析Rails日志</a> <span class="text-muted">02-24</span>
</li>
<li class="list-group-item">
<a href="/blog/2015/10/30/deploy-redmine-with-docker/">使用 Docker 来安装 Redmine 并结合 gitolite 使用</a> <span class="text-muted">10-30</span>
</li>
<li class="list-group-item">
<a href="/blog/2015/07/02/use-docker-with-rails/">与 Docker 一起使用 Rails</a> <span class="text-muted">07-02</span>
</li>
<li class="list-group-item">
<a href="/blog/2015/01/09/use-gpg-to-encrypt-your-data/">使用 GPG 加密数据</a> <span class="text-muted">01-09</span>
</li>
</ul>
<ul class="list-group">
<li class="list-group-item list-group-item-success">
近期评论
</li>
<li class="list-group-item recent-comments">
<ul class="ds-recent-comments" data-num-items="5" data-show-avatars="1" data-show-time="1" data-show-admin="1" data-excerpt-length="70"></ul>
</li>
</ul>
<ul class="list-group">
<li class="list-group-item list-group-item-success">
标签云
</li>
<li class="list-group-item" id="tagcloud">
<a rel="3" href="/blog/tags/博客/">博客</a>
<a rel="9" href="/blog/tags/ruby/">Ruby</a>
<a rel="5" href="/blog/tags/rails/">Rails</a>
<a rel="6" href="/blog/tags/server/">Server</a>
<a rel="6" href="/blog/tags/git/">Git</a>
<a rel="1" href="/blog/tags/淘宝/">淘宝</a>
<a rel="9" href="/blog/tags/运维/">运维</a>
<a rel="4" href="/blog/tags/db/">DB</a>
<a rel="2" href="/blog/tags/postgresql/">Postgresql</a>
<a rel="1" href="/blog/tags/mongodb/">Mongodb</a>
<a rel="1" href="/blog/tags/nosql/">Nosql</a>
<a rel="1" href="/blog/tags/vim/">Vim</a>
<a rel="1" href="/blog/tags/redmine/">Redmine</a>
<a rel="1" href="/blog/tags/项目管理/">项目管理</a>
<a rel="1" href="/blog/tags/ssl/">SSL</a>
<a rel="2" href="/blog/tags/lvm/">LVM</a>
<a rel="1" href="/blog/tags/dns/">DNS</a>
<a rel="1" href="/blog/tags/bind9/">Bind9</a>
<a rel="1" href="/blog/tags/nfs/">NFS</a>
<a rel="2" href="/blog/tags/mac/">Mac</a>
<a rel="1" href="/blog/tags/chef/">Chef</a>
<a rel="1" href="/blog/tags/自媒体/">自媒体</a>
<a rel="2" href="/blog/tags/数据/">数据</a>
<a rel="1" href="/blog/tags/中国城市/">中国城市</a>
<a rel="3" href="/blog/tags/数据库/">数据库</a>
<a rel="1" href="/blog/tags/postgresql/">PostgreSQL</a>
<a rel="1" href="/blog/tags/安全/">安全</a>
<a rel="2" href="/blog/tags/docker/">Docker</a>
<a rel="1" href="/blog/tags/logstash/">Logstash</a>
<a rel="1" href="/blog/tags/ftp/">ftp</a>
</li>
</ul>
<ul class="list-group">
<li class="list-group-item list-group-item-success">
年份
</li>
<li class="list-group-item">
<span class="badge">2</span>
<a href="/blog/2016/">2016</a>
</li>
<li class="list-group-item">
<span class="badge">3</span>
<a href="/blog/2015/">2015</a>
</li>
<li class="list-group-item">
<span class="badge">10</span>
<a href="/blog/2014/">2014</a>
</li>
<li class="list-group-item">
<span class="badge">8</span>
<a href="/blog/2013/">2013</a>
</li>
<li class="list-group-item">
<span class="badge">11</span>
<a href="/blog/2012/">2012</a>
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">
<div id="qrcode"></div>
<div>使用手机阅读或分享至微信朋友圈</div>
</li>
</ul>
</div>
</div>
</div>
<div id="footer" class="text-center">
<div>
©2014 <a href="http://wongyouth.com">http://wongyouth.com</a>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1000394755'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/z_stat.php%3Fid%3D1000394755%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F84b5475b333b745a8ca4850a4852fe67' type='text/javascript'%3E%3C/script%3E"));
</script>
</div>
<div class="credit">Powered by <a href="http://middlemanapp.com">Middleman</a></div>
</div>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-30466888-1');ga('send','pageview');
</script>
<script src="javascripts/all-7bcf5a86.js" type="text/javascript"></script>
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"wongyouth"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js" type="text/javascript"></script>
<![endif]-->
</body>
</html>