<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>IScale</title>
	
	<link>http://dotimes.com/iscale</link>
	<description>Keep It Simple Stupid Secure Scalable</description>
	<lastBuildDate>Fri, 02 Jul 2010 09:54:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/dotimesIscale" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="dotimesiscale" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">dotimesIscale</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Running MoinMoin Wiki with Nginx via FastCGI and Flup</title>
		<link>http://dotimes.com/iscale/2010/07/running-moinmoin-wiki-with-nginx-via-fastcgi-and-flup.html</link>
		<comments>http://dotimes.com/iscale/2010/07/running-moinmoin-wiki-with-nginx-via-fastcgi-and-flup.html#comments</comments>
		<pubDate>Fri, 02 Jul 2010 09:54:43 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=513</guid>
		<description><![CDATA[I&#8217;m seeing the topic that how to run MoinMoin wiki with Nginx is still active in the Nginx (Russian) mailing list and some other places, and the post &#8220;Standalone MoinMoin Wiki with Nginx Proxy&#8221; I wrote about 2 years ago has a high ranking in Google search engine. So I decide to give an update [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m seeing the topic that how to run MoinMoin wiki with Nginx is still active in the Nginx (Russian) mailing list and some other places, and the post &#8220;<a href="http://dotimes.com/iscale/2008/10/standalone-moinmoin-wiki-with-nginx-proxy.html">Standalone MoinMoin Wiki with Nginx Proxy</a>&#8221; I wrote about 2 years ago has a high ranking in Google search engine. So I decide to give an update on this topic according to my recent experience.</p>
<p>I&#8217;v switched MoinMoin version from 1.8 to 1.9, and the running method from standalone to fastcgi.</p>
<p>As of 1.9.3 released a few days ago, <a href="http://hg.moinmo.in/moin/1.9/raw-file/011bbc010d40/docs/CHANGES">MoinMoin has a bunch of changes</a>. For those who wanna upgrade from 1.8 to 1.9, here&#8217;s some advise:</p>
<ul>
<li>Read the changelog, linked above. Pay attention the &#8220;HINT&#8221;s.</li>
<li>Get to know <a href="http://hg.moinmo.in/moin/1.9/raw-file/011bbc010d40/docs/REQUIREMENTS">the requirements by MoinMoin</a>.</li>
<li>Read <a href="http://hg.moinmo.in/moin/1.9/raw-file/011bbc010d40/docs/UPDATE.html">the doc on updating MoinMoin</a>.</li>
<li>Do exactly as the docs say, especially, watch out for your data, BACKUP can save your life.</li>
<li>Follow the above four points.</li>
</ul>
<p>I&#8217;m running MoinMoin 1.9.3 currently. Taken as a  whole, it looks like below:</p>
<pre>Client ----&gt; Nginx Web Frontend -----------+
                                           | fastcgi_pass
                                          \|/
                            +-------------------------+
              moin.fcgi     | spawn-fcgi-moin.socket  |
spawn-fcgi ---------------&gt; |           or            |
                            |     localhost:port      |
                            +-------------------------+</pre>
<p><strong>Configuration snip in Nginx:</strong></p>
<pre>
    rewrite     ^/moin_static[0-9]+/(.*)$       /moin/$1  last;
    location /wiki {
      if ($uri ~ ^/wiki(.*)?) {
        set $wiki_url $1;
      }
      if (!-f $request_filename) {
        fastcgi_pass  unix:/var/run/spawn-fcgi-moin.socket;
      }
      include fastcgi_params;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param PATH_INFO   $wiki_url;
      #fastcgi_param SCRIPT_NAME /wiki; # <-- This can be removed, see below.
    }
</pre>
<pre>
<strong>$ grep -v '^[[:space:]]*#' moin.fcgi</strong>
"""
    MoinMoin - CGI/FCGI Driver script

    @copyright: 2000-2005 by Juergen Hermann &lt;jh@web.de&gt;,
                2008 by MoinMoin:ThomasWaldmann,
                2008 by MoinMoin:FlorianKrupicka,
                2010 by MoinMoin:RadomirDopieralski
    @license: GNU GPL, see COPYING for details.
"""
import sys, os

<em>sys.path.insert(0, '/usr/lib64/python2.6/site-packages')</em>

<em>sys.path.insert(0, '/path/to/wikiconfigdir')</em>

from MoinMoin import log
<em>log.load_config('/path/to/logfile')</em>
logging = log.getLogger(__name__)

from MoinMoin.web.serving import make_application
app = make_application(shared=True)  # <-- adapt here as needed

<em>fix_script_name = '/wiki' # <-- adapt here as needed</em>

if fix_script_name is None:
    application = app
else:
    def script_name_fixer(env, start):
        env['SCRIPT_NAME'] = fix_script_name
        return app(env, start)
    application = script_name_fixer

fix_apache_win32 = False  # <-- adapt here as needed

if fix_apache_win32:
    from werkzeug.contrib.fixers import PathInfoFromRequestUriFix
    application = PathInfoFromRequestUriFix(application)

try:
    from flup.server.fcgi import WSGIServer
except ImportError:
    logging.warning("No flup-package installed, only basic CGI support is available.")
    from MoinMoin.web._fallback_cgi import WSGIServer

WSGIServer(application).run()
</pre>
<p>The <em>fix_script_name</em> is very useful. With this setting, neither</p>
<pre>proxy_set_header  X-Moin-Location /wiki/;</pre>
<p>nor</p>
<pre>fastcgi_param SCRIPT_NAME /wiki;</pre>
<p>is no longer needed in Nginx If you're running MoinMoin at http://domain/wiki/.</p>
<p>BTW, FYR: MoinMoin Wiki FCGI control script for Slackware Linux</p>
<pre>
<strong>$ cat rc.spawn-fcgi-moin</strong>
#!/bin/sh
#
# MoinMoin Wiki FCGI control script for Slackware Linux
#
# Copyright (c) 2008-2010 Cowyn Li &lt;cowynli_#_gmail.com&gt;
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
#    this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.

SPAWNFCGI="/usr/bin/spawn-fcgi"
<em>SPAWNAPP="/path/to/moin.fcgi"</em>
APPNAME="Moin"
IP="127.0.0.1"
PORT="9001"
SPAWNUNIXSOCKET="/var/run/spawn-fcgi-moin.socket"
FORKCHILDREN="1"
MAXCGIREQUEST="1024"
PID="/var/run/spawn-fcgi-moin.pid"
SPAWNCHROOT=
USER="apache"
GROUP="apache"
UNIXSOCKETUSER="apache"
UNIXSOCKETGROUP="apache"

if [ ! -z ${SPAWNCHROOT} ]; then
  SPAWNOPTS="-c ${SPAWNCHROOT} -S"
fi

start_cmd() {
  PHP_FCGI_CHILDREN=${FORKCHILDREN} \
  PHP_FCGI_MAX_REQUESTS=${MAXCGIREQUEST} \
  ${SPAWNFCGI} -f ${SPAWNAPP} -P ${PID} -u ${USER} -g ${GROUP} \
  $*
}

spawn_start() {
  if [ ! -x ${SPAWNFCGI} ]; then
    echo "Can not execute spawn-fcgi, exiting ..."
    exit 1
  fi

  if [ ! -x ${SPAWNAPP} ]; then
    echo "Can not execute ${APPNAME} FCGI, exiting ..."
    exit 1
  fi

  if [ -s ${PID} ]; then
    echo "${APPNAME} FCGI is already running?"
    exit 1
  fi

  echo "Starting ${APPNAME} FCGI ..."
  case "$2" in
    unixsocket)
      start_cmd -s ${SPAWNUNIXSOCKET} -U ${UNIXSOCKETUSER} -G ${UNIXSOCKETGROUP} ${SPAWNOPTS}
      ;;
    ip|'')
      start_cmd -a ${IP} -p ${PORT} ${SPAWNOPTS}
      ;;
    *)
      spawn_usage
  esac
}

spawn_stop() {
  if [ ! -f ${PID} ]; then
    echo "No ${APPNAME} FCGI process found, exiting ..."
  else
    echo "Stopping ${APPNAME} FCGI ..."
    kill -QUIT $(cat ${PID})
    if [ -f ${PID} ]; then
      /bin/rm -f ${PID}
    fi
    if [ -S ${SPAWNUNIXSOCKET} ]; then
      /bin/rm -f ${SPAWNUNIXSOCKET}
    fi
  fi
}

spawn_restart() {
  spawn_stop
  sleep 3
  spawn_start $*
}

spawn_usage() {
  echo "usage: $0 &lt;start|stop|restart&gt; [ip(default)|unixsocket]"
}

case "$1" in
  start)
    spawn_start $*
    ;;
  stop)
    spawn_stop
    ;;
  restart)
    spawn_restart $*
    ;;
  *)
    spawn_usage
esac
</pre>
<p>Anyway, this scenario is a just work usage. As MoinMoin is now a WSGI server, and using <a href="http://trac.saddi.com/flup">flup</a> as the middleware for communication.<br />
All these stuff is making things more complex.<br />
BTW, <a href="http://www.saddi.com/software/news/archives/58-flup-1.0-released.html">flup author said that he didn't use flup himself anymore</a> 2+ years ago. I've no idea how is it now.</p>
<p>The simplest way is just to use "standalone" wikiserver.py bundled with MoinMoin, if you don't care about scalability and etc.. That also makes your life darker, LOL.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2010/07/running-moinmoin-wiki-with-nginx-via-fastcgi-and-flup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>He Is Really Tired</title>
		<link>http://dotimes.com/iscale/2010/06/he-is-really-tired.html</link>
		<comments>http://dotimes.com/iscale/2010/06/he-is-really-tired.html#comments</comments>
		<pubDate>Fri, 04 Jun 2010 20:39:00 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=508</guid>
		<description><![CDATA[小盆友，请原谅，我未经你的同意拍下你，还放在这里。 上图拍摄时间是晚上11点20分，地点是公交车上。不知道在这个周末的夜晚，对他意味着什么，以至于在这么不安静的车厢里，他能靠着书包，睡得如此优雅平静。但愿是吃饱喝足玩的尽兴了。 哥走了，哥大概累坏了吧。站在这里的时候，心里很不是滋味。不由得想到中国深圳富士康的N连跳，倒是一小撮不明真相的国外公司积极展开调查评估。 前几天的一个夜里睡不着，打开电视看了会儿CCTV-2，讲的是记者调查暗访几个楼盘的入住率，根据人员流动率和晚上亮灯率，得出的结论是调查对象里40%左右的房屋空置。节目最后挖了个坑说这些买了房而不入住的人，到底是什么原因。好样的，直接把舆论导向塞给观众，把矛盾对立面架在炒房的和想买房而买不起的人之间。 为什么在2003年把80%的经适房改成事实上的商品房，为什么不大力调整住房结构，为什么不加大尺度地更多地向民间游资开放投资渠道和环境。 偶尔看看央视，是锻炼智商的充分不必要条件。 一系列政治社会体制注定了中国的特立独行，一系列教育体制导致了大多数中国人麻木的奴性。曾经在某人的blog上评论说了中华民族的劣根性，被鄙视了，是我醒了还是他仍醉？ 中国就是个山寨。大到社会，小到公司，单位，乃至个人。 我很想问问那些战斗在审查线上的东西们，核技术被应用到战争里的后果是什么样的；你们重蹈覆辙就不累么；你们这些历史的罪人，出卖了灵魂苟且偷生，连鸡都知道，啄米的时候别忘了不停地抬头。 今天才知道某个牛逼同事的遭遇，再次让我对微软的人失望。还有一个牛逼的同事也离开了公司，也受够了来自微软的两位高人的折腾。哥几个都累了。今天某内线说Yahoo!北京研发院里有很多微软的，心里一凉一热，很庆幸上次对那个offer没太感冒。 关于公司，有很多关于技术和制度方面的苦水，也许类似老外发现腾讯QQ里的dirty codes一样。太消极了，早已没有吐出来的积极意义。而且也看得出来，国内的这些公司，大都一个样。 前两天问一个同事，如果给你很多钱，你会不会去做GFW。答曰，有钱谁不去啊。太诚实了，也很悲哀。 在这个物权横流，金钱至上，信仰缺失的山寨里，有多少人能够坚持作为社会人的责任感，有多少人积极地去推动历史的车轮逆势而上，而不是等着它坡起熄火来不及刹车被一辗而过。 改革创新，不应该被挂在嘴上。它是流动的血液，看不见摸不着，却是保持生命的根本，它永远不会累。 但愿有一天，我能见证中国的崛起，而不是眼前的外强中干。但愿有一天，尼姑思凡。]]></description>
			<content:encoded><![CDATA[<p><img src="http://dotimes.com/iscale/wp-content/uploads/2010/06/2010-06-04-23.20.10-450x600.jpg" alt="he is so tired" title="2010-06-04 23.20.10" width="450" height="600" class="aligncenter size-large wp-image-507" /></p>
<p>小盆友，请原谅，我未经你的同意拍下你，还放在这里。<br />
上图拍摄时间是晚上11点20分，地点是公交车上。不知道在这个周末的夜晚，对他意味着什么，以至于在这么不安静的车厢里，他能靠着书包，睡得如此优雅平静。但愿是吃饱喝足玩的尽兴了。</p>
<p><img src="http://dotimes.com/iscale/wp-content/uploads/2010/06/2010-06-04-21.51.56-800x600.jpg" alt="google china" title="2010-06-04 21.51.56" width="800" height="600" class="aligncenter size-large wp-image-509" /></p>
<p><a href="http://googleblog.blogspot.com/2010/01/new-approach-to-china.html">哥走了</a>，<a href="http://googleblog.blogspot.com/2010/03/new-approach-to-china-update.html">哥大概累坏了</a>吧。站在这里的时候，心里很不是滋味。不由得想到中国深圳富士康的N连跳，倒是一小撮不明真相的<a href="http://int.nfdaily.cn/content/2010-05/27/content_12298866.htm">国外公司积极展开调查评估</a>。</p>
<p>前几天的一个夜里睡不着，打开电视看了会儿CCTV-2，讲的是记者调查暗访几个楼盘的入住率，根据人员流动率和晚上亮灯率，得出的结论是调查对象里40%左右的房屋空置。节目最后挖了个坑说这些买了房而不入住的人，到底是什么原因。好样的，直接把舆论导向塞给观众，把矛盾对立面架在炒房的和想买房而买不起的人之间。<br />
为什么在2003年把80%的经适房改成事实上的商品房，为什么不大力调整住房结构，为什么不加大尺度地更多地向民间游资开放投资渠道和环境。<br />
偶尔看看央视，是锻炼智商的充分不必要条件。</p>
<p>一系列政治社会体制注定了中国的特立独行，一系列教育体制导致了大多数中国人麻木的奴性。曾经在某人的blog上评论说了中华民族的劣根性，被鄙视了，是我醒了还是他仍醉？<br />
中国就是个山寨。大到社会，小到公司，单位，乃至个人。</p>
<p>我很想问问那些战斗在审查线上的东西们，核技术被应用到战争里的后果是什么样的；你们重蹈覆辙就不累么；你们这些历史的罪人，出卖了灵魂苟且偷生，连鸡都知道，啄米的时候别忘了不停地抬头。</p>
<p>今天才知道某个牛逼<a href="http://blog.1zsoft.com/node79056.html">同事的遭遇</a>，再次让我对微软的人失望。还有一个牛逼的同事也离开了公司，也受够了来自微软的两位高人的折腾。哥几个都累了。今天某内线说Yahoo!北京研发院里有很多微软的，心里一凉一热，很庆幸上次对那个offer没太感冒。<br />
关于公司，有很多关于技术和制度方面的苦水，也许类似老外发现腾讯QQ里的dirty codes一样。太消极了，早已没有吐出来的积极意义。而且也看得出来，国内的这些公司，大都一个样。</p>
<p>前两天问一个同事，如果给你很多钱，你会不会去做GFW。答曰，有钱谁不去啊。太诚实了，也很悲哀。</p>
<p>在这个物权横流，金钱至上，信仰缺失的山寨里，有多少人能够坚持作为社会人的责任感，有多少人积极地去推动历史的车轮逆势而上，而不是等着它坡起熄火来不及刹车被一辗而过。</p>
<p>改革创新，不应该被挂在嘴上。它是流动的血液，看不见摸不着，却是保持生命的根本，它永远不会累。</p>
<p>但愿有一天，我能见证中国的崛起，而不是眼前的外强中干。但愿有一天，尼姑思凡。</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2010/06/he-is-really-tired.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>reiser was dead</title>
		<link>http://dotimes.com/iscale/2009/12/reiser-was-dead.html</link>
		<comments>http://dotimes.com/iscale/2009/12/reiser-was-dead.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 05:42:17 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[leisure]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=499</guid>
		<description><![CDATA[Below is a piece of IRC log in the &#35;linode channel, `cli&#8217; is me: &#60;cli&#62; hi there, i wanna deploy Slackware with reiserfs file system, is it possible? &#60;chesty&#62; are you trolling? &#60;cli&#62; Slackware use reiserfs by default, why linode use ext3 in the system image? &#60;cli&#62; chesty: no &#60;chesty&#62; ah right, i didn&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>Below is a piece of IRC log in the &#35;linode channel, `cli&#8217; is me:</p>
<blockquote><p>
&lt;cli&gt; hi there, i wanna deploy Slackware with reiserfs file system, is it possible?<br />
&lt;chesty&gt; are you trolling?<br />
&lt;cli&gt; Slackware use reiserfs by default, why linode use ext3 in the system image?<br />
&lt;cli&gt; chesty: no<br />
&lt;chesty&gt; ah right, i didn&#8217;t know that. maybe the control panel doesn&#8217;t support reiser natively like it does ext3?<br />
&lt;chesty&gt; not sure<br />
&lt;cli&gt; it&#8217;s a pity<br />
&lt;chesty&gt; <strong>i thought reiser was dead?</strong><br />
&lt;internat&gt; <strong>reiser will kill you;)</strong><br />
&lt;cli&gt; chesty: not yet<br />
&lt;cli&gt; internat: lol<br />
&lt;mikegrb&gt; lolz<br />
&lt;chesty&gt; oh right, that&#8217;s Mrs reiser that&#8217;s dead
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/12/reiser-was-dead.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Hands-on Canon EF 70-200mm f/2.8 L Lens</title>
		<link>http://dotimes.com/iscale/2009/11/first-hands-on-canon-ef-70-200mm-f2-8-l-lens.html</link>
		<comments>http://dotimes.com/iscale/2009/11/first-hands-on-canon-ef-70-200mm-f2-8-l-lens.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 06:01:52 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=486</guid>
		<description><![CDATA[寂寞得经不起诱惑，崩溃得抵不住冲动，最终，还是烧了只小白。 没有IS，没有脚架，想练就出雨中之蚊的铁手。前辈蘑菇头说小白不实用。 好吧，语言的表达是苍白的，看图，然后，欢迎批判指教。 带上小白游荡西湖，记 介张，下手晚鸟 北山路上的岳王庙 婚照ing 怎木办捏 吟得一首好诗不难，难的是淫得一地好湿 船家很忙，比牛仔还忙 西施，4P 内身模塔来着 你知道我在摄你吗 青梅竹马 两小无猜 我被她的眼神秒杀 怪叔叔你这是故意的吧 下面来到了西湖音乐节 快乐的水牛边嘘嘘边吹口哨 让我想起了我以前染色之后的头发 渔夫在叉烧身模？ 渔夫叉烧人肉包 咦，那么长炮筒，是在看我么？ 开始音乐喷泉]]></description>
			<content:encoded><![CDATA[<p>寂寞得经不起诱惑，崩溃得抵不住冲动，最终，还是烧了只<a href="http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&#038;fcategoryid=150&#038;modelid=7341">小白</a>。</p>
<p>没有IS，没有脚架，想练就出雨中之蚊的铁手。前辈蘑菇头说小白不实用。<br />
好吧，语言的表达是苍白的，看图，然后，欢迎批判指教。</p>
<p>带上小白游荡西湖，记</p>
<p>介张，下手晚鸟<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1882-800x533.jpg" alt="img_1882" title="img_1882" width="600" height="400" class="aligncenter size-large wp-image-435" /><br />
北山路上的岳王庙<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1885-e1257048966840-400x600.jpg" alt="img_1885" title="img_1885" width="400" height="600" class="aligncenter size-large wp-image-436" /><br />
婚照ing<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1890-800x533.jpg" alt="img_1890" title="img_1890" width="600" height="400" class="aligncenter size-large wp-image-437" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1891-800x533.jpg" alt="img_1891" title="img_1891" width="600" height="400" class="aligncenter size-large wp-image-438" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1894-800x533.jpg" alt="img_1894" title="img_1894" width="600" height="400" class="aligncenter size-large wp-image-439" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1899-e1257049098891-400x600.jpg" alt="img_1899" title="img_1899" width="400" height="600" class="aligncenter size-large wp-image-440" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1901-e1257049133114-400x600.jpg" alt="img_1901" title="img_1901" width="400" height="600" class="aligncenter size-large wp-image-441" /><br />
怎木办捏<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1907-e1257049259609-400x600.jpg" alt="img_1907" title="img_1907" width="400" height="600" class="aligncenter size-large wp-image-442" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1913-e1257049285298-400x600.jpg" alt="img_1913" title="img_1913" width="400" height="600" class="aligncenter size-large wp-image-443" /><br />
吟得一首好诗不难，难的是淫得一地好湿<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1915-e1257049307270-400x600.jpg" alt="img_1915" title="img_1915" width="400" height="600" class="aligncenter size-large wp-image-444" /><br />
船家很忙，比牛仔还忙<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1921-800x533.jpg" alt="img_1921" title="img_1921" width="600" height="400" class="aligncenter size-large wp-image-445" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1922-800x533.jpg" alt="img_1922" title="img_1922" width="600" height="400" class="aligncenter size-large wp-image-446" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1924-800x533.jpg" alt="img_1924" title="img_1924" width="600" height="400" class="aligncenter size-large wp-image-447" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1927-800x533.jpg" alt="img_1927" title="img_1927" width="600" height="400" class="aligncenter size-large wp-image-448" /><br />
西施，4P<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1930-800x533.jpg" alt="img_1930" title="img_1930" width="600" height="400" class="aligncenter size-large wp-image-449" /><br />
内身模塔来着<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1933-e1257049338104-400x600.jpg" alt="img_1933" title="img_1933" width="400" height="600" class="aligncenter size-large wp-image-450" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1936-800x533.jpg" alt="img_1936" title="img_1936" width="600" height="400" class="aligncenter size-large wp-image-451" /><br />
你知道我在摄你吗<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1938-800x533.jpg" alt="img_1938" title="img_1938" width="600" height="400" class="aligncenter size-large wp-image-452" /><br />
青梅竹马<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1939-800x533.jpg" alt="img_1939" title="img_1939" width="600" height="400" class="aligncenter size-large wp-image-453" /><br />
两小无猜<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1942-800x533.jpg" alt="img_1942" title="img_1942" width="600" height="400" class="aligncenter size-large wp-image-454" /><br />
我被她的眼神秒杀<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1946-e1257049366868-400x600.jpg" alt="img_1946" title="img_1946" width="400" height="600" class="aligncenter size-large wp-image-455" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1948-800x533.jpg" alt="img_1948" title="img_1948" width="600" height="400" class="aligncenter size-large wp-image-456" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1950-800x533.jpg" alt="img_1950" title="img_1950" width="600" height="400" class="aligncenter size-large wp-image-457" /><br />
怪叔叔你这是故意的吧<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1957-e1257049392121-400x600.jpg" alt="img_1957" title="img_1957" width="400" height="600" class="aligncenter size-large wp-image-458" /><br />
下面来到了西湖音乐节<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1960-e1257049426641-400x600.jpg" alt="img_1960" title="img_1960" width="400" height="600" class="aligncenter size-large wp-image-459" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1961-e1257049451455-400x600.jpg" alt="img_1961" title="img_1961" width="400" height="600" class="aligncenter size-large wp-image-460" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1963-800x533.jpg" alt="img_1963" title="img_1963" width="600" height="400" class="aligncenter size-large wp-image-461" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1965-800x533.jpg" alt="img_1965" title="img_1965" width="600" height="400" class="aligncenter size-large wp-image-462" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1969-e1257049481959-400x600.jpg" alt="img_1969" title="img_1969" width="400" height="600" class="aligncenter size-large wp-image-463" /><br />
快乐的水牛边嘘嘘边吹口哨<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1971-800x533.jpg" alt="img_1971" title="img_1971" width="600" height="400" class="aligncenter size-large wp-image-464" /><br />
让我想起了我以前染色之后的头发<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1979-e1257049511326-400x600.jpg" alt="img_1979" title="img_1979" width="400" height="600" class="aligncenter size-large wp-image-467" /><br />
渔夫在叉烧身模？<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1982-e1257049545826-400x600.jpg" alt="渔夫在叉烧身模" title="img_1982" width="400" height="600" class="aligncenter size-large wp-image-468" /><br />
渔夫叉烧人肉包<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1983-e1257049568921-400x600.jpg" alt="渔夫叉烧人肉包" title="img_1983" width="400" height="600" class="aligncenter size-large wp-image-469" /><br />
咦，那么长炮筒，是在看我么？<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1984-e1257049594461-400x600.jpg" alt="咦那么长炮筒" title="img_1984" width="400" height="600" class="aligncenter size-large wp-image-470" /><br />
开始音乐喷泉<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1994-800x533.jpg" alt=“开始音乐喷泉" title="img_1994" width="600" height="400" class="aligncenter size-large wp-image-472" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1995-800x533.jpg" alt="img_1995" title="img_1995" width="600" height="400" class="aligncenter size-large wp-image-473" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_1997-800x533.jpg" alt="img_1997" title="img_1997" width="600" height="400" class="aligncenter size-large wp-image-474" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2001-800x533.jpg" alt="img_2001" title="img_2001" width="600" height="400" class="aligncenter size-large wp-image-475" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2002-800x533.jpg" alt="img_2002" title="img_2002" width="600" height="400" class="aligncenter size-large wp-image-476" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2003-800x533.jpg" alt="img_2003" title="img_2003" width="600" height="400" class="aligncenter size-large wp-image-477" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2004-800x533.jpg" alt="img_2004" title="img_2004" width="600" height="400" class="aligncenter size-large wp-image-478" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2005-800x533.jpg" alt="img_2005" title="img_2005" width="600" height="400" class="aligncenter size-large wp-image-479" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2006-800x533.jpg" alt="img_2006" title="img_2006" width="600" height="400" class="aligncenter size-large wp-image-480" /><br />
结束音乐喷泉<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2014-800x533.jpg" alt="结束音乐喷泉" title="img_2014" width="600" height="400" class="aligncenter size-large wp-image-481" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2018-800x533.jpg" alt="img_2018" title="img_2018" width="600" height="400" class="aligncenter size-large wp-image-482" /><br />
灰机机在干身模<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2019-800x533.jpg" alt="灰机机在干身模" title="img_2019" width="600" height="400" class="aligncenter size-large wp-image-483" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2023-800x533.jpg" alt="灰机机在干嘛" title="img_2023" width="600" height="400" class="aligncenter size-large wp-image-484" /><br />
这什么玩意儿<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/11/img_2024-800x533.jpg" alt="这什么玩意儿" title="img_2024" width="600" height="400" class="aligncenter size-large wp-image-485" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/11/first-hands-on-canon-ef-70-200mm-f2-8-l-lens.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Disassemble HTC Dream for GPS Sensor</title>
		<link>http://dotimes.com/iscale/2009/10/disassemble-htc-dream-for-gps-sensor.html</link>
		<comments>http://dotimes.com/iscale/2009/10/disassemble-htc-dream-for-gps-sensor.html#comments</comments>
		<pubDate>Sat, 31 Oct 2009 12:58:11 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=427</guid>
		<description><![CDATA[流浪过多少城市，换过多少GPS App，住过多少ROM，才觉得手里G1的GPS不工作是因为硬件问题。 于是下手，下狠手，剥开G1。 打开后盖，取下电池： 主板一览： 传说中的GPS芯片： 好吧，来个GPS芯片特写： 这里是主板跟GPS芯片的通道： 摘下GPS芯片： 本着尝试寻找问题，而非制造问题的原则，拆鸡鸡到此结束。 没有SIM卡，我很沮丧： 紧了紧线，亲了亲GPS芯片，恢复鸡鸡。然后，能试的都试了，还是不能搜到星，我彻底死鸟心。 下一站，有时间再去折腾。]]></description>
			<content:encoded><![CDATA[<p>流浪过多少城市，换过多少GPS App，住过多少ROM，才觉得手里G1的GPS不工作是因为硬件问题。<br />
于是下手，下狠手，剥开G1。</p>
<p>打开后盖，取下电池：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1863-800x533.jpg" alt="img_1863" title="img_1863" width="600" height="400" class="aligncenter size-large wp-image-419" /></p>
<p>主板一览：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1865-800x533.jpg" alt="img_1865" title="img_1865" width="600" height="400" class="aligncenter size-large wp-image-420" /></p>
<p>传说中的GPS芯片：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1867-800x533.jpg" alt="img_1867" title="img_1867" width="600" height="400" class="aligncenter size-large wp-image-421" /></p>
<p>好吧，来个GPS芯片特写：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1869-e1256994146137-400x600.jpg" alt="img_1869" title="img_1869" width="400" height="600" class="aligncenter size-large wp-image-422" /></p>
<p>这里是主板跟GPS芯片的通道：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1870-e1256994121124-400x600.jpg" alt="img_1870" title="img_1870" width="400" height="600" class="aligncenter size-large wp-image-423" /></p>
<p>摘下GPS芯片：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1871-e1256994085698-400x600.jpg" alt="img_1871" title="img_1871" width="400" height="600" class="aligncenter size-large wp-image-424" /><br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1872-e1256994058124-400x600.jpg" alt="img_1872" title="img_1872" width="400" height="600" class="aligncenter size-large wp-image-425" /></p>
<p>本着尝试寻找问题，而非制造问题的原则，拆鸡鸡到此结束。</p>
<p>没有SIM卡，我很沮丧：<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/10/img_1874-e1256994013291-400x600.jpg" alt="img_1874" title="img_1874" width="400" height="600" class="aligncenter size-large wp-image-426" /></p>
<p>紧了紧线，亲了亲GPS芯片，恢复鸡鸡。然后，能试的都试了，还是不能搜到星，我彻底死鸟心。<br />
下一站，有时间再去折腾。</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/10/disassemble-htc-dream-for-gps-sensor.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First Anniversary in Hangzhou</title>
		<link>http://dotimes.com/iscale/2009/08/first-anniversary-in-hangzhou.html</link>
		<comments>http://dotimes.com/iscale/2009/08/first-anniversary-in-hangzhou.html#comments</comments>
		<pubDate>Sat, 22 Aug 2009 21:15:11 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=401</guid>
		<description><![CDATA[去年的8月18号，从北京漂到杭州。今年的8月18号，已经过去了，趁习惯了的不眠夜，还是留下点短暂的回忆吧。 那时候做出离开的决定之前，没少挣扎。两年差不多正好到一个平台期，尤其对于刚入社会的人来说。蔡琴说，人生的际遇，稍纵即逝。最后一现实，一狠心，先撤离。一直很感激大家的理解和支持。 对杭州这个城市的感觉，就是没有感觉。 正如大海当初所说，工作上也就是颗螺丝钉。不过，所接触的，所掌握的，所理解的，都是很难得的价值。这些都让我能把工作做得更好。当然，不是所有事都完美无可挑剔，也许我太偏执。 平时的生活，跟在北京时不能比。也许是我自己的问题，但是我怎么就没再遇到像Sliver等这帮损友呢。也许&#60;&#60;The Shawshank Redemption&#62;&#62;里Andy与Red的感情，只是用来推崇的。 这一年，迷茫中努力，寂寞中持续。对下面这两句台词有很深的体会： First you hate them, then you get used to them. Enough time passed, get so you depend on them. That’s institutionalizing. Remember, hope is a good thing, maybe the best of things and no good thing ever dies! Get busy living or get busy dying. Hope is [...]]]></description>
			<content:encoded><![CDATA[<p>去年的8月18号，从北京漂到杭州。今年的8月18号，已经过去了，趁习惯了的不眠夜，还是留下点短暂的回忆吧。<br />
<img src="http://dotimes.com/iscale/wp-content/uploads/2009/08/ali_1_anniversary.jpg" alt="ali_1_anniversary" title="ali_1_anniversary" width="251" height="75" class="alignleft size-full wp-image-402" /></p>
<p>那时候做出离开的决定之前，没少挣扎。两年差不多正好到一个平台期，尤其对于刚入社会的人来说。蔡琴说，人生的际遇，稍纵即逝。最后一现实，一狠心，先撤离。一直很感激大家的理解和支持。</p>
<p>对杭州这个城市的感觉，就是没有感觉。<br />
正如大海当初所说，工作上也就是颗螺丝钉。不过，所接触的，所掌握的，所理解的，都是很难得的价值。这些都让我能把工作做得更好。当然，不是所有事都完美无可挑剔，也许我太偏执。<br />
平时的生活，跟在北京时不能比。也许是我自己的问题，但是我怎么就没再遇到像Sliver等这帮损友呢。也许&lt;&lt;The Shawshank Redemption&gt;&gt;里Andy与Red的感情，只是用来推崇的。</p>
<p>这一年，迷茫中努力，寂寞中持续。对下面这两句台词有很深的体会：</p>
<blockquote><p>
First you hate them, then you get used to them. Enough time passed, get so you depend on them. That’s institutionalizing.
</p></blockquote>
<blockquote><p>
Remember, hope is a good thing, maybe the best of things and no good thing ever dies!<br />
Get busy living or get busy dying.
</p></blockquote>
<p>Hope is good, action is better.</p>
<p>常被指思维太跳跃，想象过丰富。多次控制所写内容不偏题，虽然想说的太多，就说这么点好了。</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/08/first-anniversary-in-hangzhou.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: The Missing Recall of First Anniversary in Beijing</title>
		<link>http://dotimes.com/iscale/2009/08/the-missing-recall-of-first-anniversary-in-beijing.html</link>
		<comments>http://dotimes.com/iscale/2009/08/the-missing-recall-of-first-anniversary-in-beijing.html#comments</comments>
		<pubDate>Sat, 22 Aug 2009 19:29:51 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=398</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://dotimes.com/iscale/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-398">Password:<br />
<input name="post_password" id="pwbox-398" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/08/the-missing-recall-of-first-anniversary-in-beijing.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optimizing GZip Level</title>
		<link>http://dotimes.com/iscale/2009/08/optimizing-gzip-level.html</link>
		<comments>http://dotimes.com/iscale/2009/08/optimizing-gzip-level.html#comments</comments>
		<pubDate>Sun, 09 Aug 2009 19:05:22 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=395</guid>
		<description><![CDATA[optimizing fine turning gzip compresison level, ratio and speed on nginx webserver, with a pentiom 4 2.8GHz, 512KB cache size CPU, using a bash script, with drop caches tested.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gzip.org/">GZip</a> has 9 compression levels, which one is the most appropriate for the system, to assure the balance between compress speed and ratio, especially on server side, it&#8217;s generally neglected, but indeed important.<br />
As compression mainly depends on CPU, the compression level may vary on different CPUs. Here is a simple bash script attempted to give some information on determining the level.<br />
As it will test with <a href="http://linux-mm.org/Drop_Caches">dropcache</a>, so you need at least kernel 2.6.16, since which the dropcache was tunable.</p>
<p>Use with CAUTION, do NOT test on production environment.</p>
<pre>
#!/bin/sh
# Written by Cowyn Li &lt;cowynli_#_gmail.com&gt;.
# for testing GZip compression levels

set -e

dropcache=&quot;0 1&quot;
size=&quot;10240 102400 1024000 10240000&quot;
tmp=&quot;./tmp&quot;
log=&quot;./gzip.log&quot;
finallog=&quot;gzip.diff&quot;

rm -rf ${tmp} ${log}* 2&gt; /dev/null

mkdir -p ${tmp}

for l in ${dropcache}; do
  for m in ${size}; do
    dd if=/dev/zero of=${tmp}/file.${m} bs=${m} count=1 2&gt; /dev/null
    for n in $(seq 9); do
      echo -e &quot;gzip level:\t\t${n}&quot; &gt;&gt; ${log}.${l}
      [ ${l} -eq 1 ] &#038;&#038; sudo sync &#038;&#038; sudo echo 3 &gt; /proc/sys/vm/drop_caches
      /usr/bin/time &quot;-ftime real\t\t%e&quot; -o ${log}.${l} -a gzip -nv${n} \
        ${tmp}/file.${m} &gt; /dev/null 2&gt;&gt; ${log}.${l}
      [ ${l} -eq 1 ] &#038;&#038; sudo echo 0 &gt; /proc/sys/vm/drop_caches
      echo -e &quot;compressed:\t\t$(stat -c%s ${tmp}/file.${m}.gz)\n&quot; &gt;&gt; ${log}.${l}
      gzip -d ${tmp}/file.${m}.gz
    done
    echo &quot;--------------------&quot; &gt;&gt; ${log}.${l}
  done
done

diff -u ${log}.$(echo ${dropcache}|cut -d' ' -f1) \
  ${log}.$(echo ${dropcache}|cut -d' ' -f2) &gt; ${finallog} || true

echo -n &quot;Log of gzip test WITHOUT fs-dropcache is at &quot;
echo &quot;\&quot;${log}.$(echo ${dropcache}|cut -d' ' -f1)\&quot;.&quot;
echo &quot;while the one WITH is at \&quot;${log}.$(echo ${dropcache}|cut -d' ' -f2)\&quot;.&quot;
echo &quot;Check the diff log between the two at \&quot;${finallog}\&quot;.&quot;
</pre>
<p>I&#8217;m afraid the dropcache test doesn&#8217;t make much sense, added here for just in case somebody think it should be token in consideration.<br />
The suffix of tmp-file(dded) names indicates the file size, in bytes. No more explanations, please read and run and think for yourselves, if you wish.</p>
<p>For my situation, I&#8217;m using compression level 4 within Nginx, on a Pentium 4 2.8GHz, 512 KB cache size CPU.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/08/optimizing-gzip-level.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pulling From Outside Git Directory</title>
		<link>http://dotimes.com/iscale/2009/08/pulling-from-outside-git-directory.html</link>
		<comments>http://dotimes.com/iscale/2009/08/pulling-from-outside-git-directory.html#comments</comments>
		<pubDate>Sun, 09 Aug 2009 05:31:56 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=382</guid>
		<description><![CDATA[enable git pull from outside/external directories using simple bash function]]></description>
			<content:encoded><![CDATA[<p>Git-pull use current directory by default, that means you have to change into the repository directory first before you git-pull. It&#8217;s annoying, especially when you&#8217;ve got lots of Git repositories to pull at once. I haven&#8217;t found any solutions with Git&#8217;s internal functions. So, I wrote an simple bash function to solve this. Just put the following into the bash profile file.</p>
<pre>
function gg() {
  if [ $# -gt 0 ]; then
    for i in $(echo $*); do
      if [ -d ${i} ]; then
        ( cd ${i} &#038;&#038; git pull )
      else
        echo "No such directory: &#92;"${i}&#92;", skipping ..."
      fi
    done
  else
    echo "usage: gg &lt;git repo dir&gt;"
  fi
}
</pre>
<p>The parameters can be either relative directories or absolute directories, wildcard is supported.<br />
If there&#8217;s any better ways, such as Git&#8217;s internal methods, please let me know. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/08/pulling-from-outside-git-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes on System Alterations</title>
		<link>http://dotimes.com/iscale/2009/08/notes-on-system-alterations.html</link>
		<comments>http://dotimes.com/iscale/2009/08/notes-on-system-alterations.html#comments</comments>
		<pubDate>Sat, 01 Aug 2009 06:41:06 +0000</pubDate>
		<dc:creator>cowyn</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dotimes.com/iscale/?p=376</guid>
		<description><![CDATA[Exactly a quarter since last post. Several days during the end of last month, the server was took offline and got a hardware reconditioning. Meanwhile, the OS refreshed, lots of garbage cleaned. Before that, only 1GB RAM was available, the system was running Slackware Linux 11.0 with customized 2.4.x kernel. For some historical reasons, bloated [...]]]></description>
			<content:encoded><![CDATA[<p>Exactly a quarter since last post.</p>
<p>Several days during the end of last month, the server was took offline and got a hardware reconditioning. Meanwhile, the OS refreshed, lots of garbage cleaned.</p>
<p>Before that, only 1GB RAM was available, the system was running Slackware Linux 11.0 with customized 2.4.x kernel. For some historical reasons, bloated Apache was chosen as web server.</p>
<p>Those are all turned into the bad old times. I&#8217;m pleased for the reforms as below:</p>
<p>1. The server got 3GB RAM. TBH, it&#8217;s so piteous little. Even <a href="http://dotimes.com/articles/t61-slackware-index.html">my laptop has 4GB RAM</a>, and planning to upgrade it to 8GB.</p>
<p>2. <a href="ftp://ftp.osuosl.org/pub/slackware/slackware-current/ChangeLog.txt">Slackware Linux Current</a> is running. Yeah, it&#8217;s <a href="http://slackware.osuosl.org/slackware-current/CURRENT.WARNING">so called bleeding edge</a>. But with whichever version, Slackware Linux is damn stable for me. Making it more bleeding edge is my pleasure. Anyway, risks is always there, but you&#8217;ve got your head there too. So, some kernel features are now available, like <a href="http://www.xmailserver.org/linux-patches/nio-improve.html">epoll</a>, which was lack in 2.4.x kernels. I used to try the <a href="http://www.xmailserver.org/linux-patches/nio-improve.html#patches">epoll patch for 2.4 kernel</a>, but with no luck, and the system got unstable.</p>
<p>3. Goodbye Apache, hello <a href="http://nginx.net/">Nginx</a>. I finally get an running Nginx web server! This proposal comes true.</p>
<p>4. Mod_php within Apache was replaced with <a href="http://php-fpm.org/">PHP-FPM</a>, which is <a href="http://michaelshadle.com/2009/07/31/php-530-patch-now-considered-stable/">no longer a patch</a> but <a href="https://launchpad.net/php-fpm/">now standalone</a>, announced just yesterday, mentioned by <a href="http://paulgao.com.cn/">Paul Gao</a> in Google Reader shared items.</p>
<p>With these changes, from now on, I can smoothly keep up with the newest apps (versions). Strict system management rules will be carried out.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotimes.com/iscale/2009/08/notes-on-system-alterations.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
