<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wayne Khan</title>
	<atom:link href="http://kzhiwei.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kzhiwei.wordpress.com</link>
	<description>Web developer musings... and then some.</description>
	<lastBuildDate>Sat, 21 Jan 2012 17:46:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kzhiwei.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Wayne Khan</title>
		<link>http://kzhiwei.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kzhiwei.wordpress.com/osd.xml" title="Wayne Khan" />
	<atom:link rel='hub' href='http://kzhiwei.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Oneiric Ocelot</title>
		<link>http://kzhiwei.wordpress.com/2012/01/19/oneiric-ocelot/</link>
		<comments>http://kzhiwei.wordpress.com/2012/01/19/oneiric-ocelot/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 05:55:26 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=708</guid>
		<description><![CDATA[Since Ubuntu is released every six months, I&#8217;ve compiled a set of instructions/shell commands to get my development environment up ASAP. This one references packages applicable to 11.10 (Oneiric Ocelot). If you use a different one, your mileage will differ! ~/.bashrc # Android. export PATH=${PATH}:~/android-sdk-linux/tools:~/android-sdk-linux/platform-tools # Oracle. alias sqlplus=’rlwrap sqlplus’ . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh export TNS_ADMIN=${ORACLE_HOME}/network/admin # [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=708&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since Ubuntu is released every six months, I&#8217;ve compiled a set of instructions/shell commands to get my development environment up ASAP. This one references packages applicable to 11.10 (Oneiric Ocelot). If you use a different one, your mileage will differ!</p>
<h4>~/.bashrc</h4>
<p><code># Android.<br />
export PATH=${PATH}:~/android-sdk-linux/tools:~/android-sdk-linux/platform-tools</p>
<p># Oracle.<br />
alias sqlplus=’rlwrap sqlplus’<br />
. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh<br />
export TNS_ADMIN=${ORACLE_HOME}/network/admin</p>
<p># Text editor.<br />
export VISUAL=/usr/bin/vim</code></p>
<h4>~/.screenrc</h4>
<p><code># ~/.screenrc</p>
<p>defscrollback 10240<br />
hardstatus alwayslastline<br />
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'<br />
startup_message off<br />
vbell off</p>
<p>screen -t root 0<br />
screen -t bash 1<br />
screen -t mysql/sqlplus 2<br />
screen -t vim 3</code></p>
<h4>Package management</h4>
<p>Oneiric ships with &#8212; in my opinion only, of course &#8212; too many packages, so customize (or completely exclude) the apt-get remove, apt-get install sections as required.</p>
<p><code>sudo apt-get remove aisleriot quadrapassel gbrainy gnome-games-common gnome-mahjongg libreoffice-* gnome-sudoku gnomine -y; \<br />
sudo apt-get autoremove -y; \<br />
sudo apt-get update; \<br />
sudo apt-get upgrade -y; \<br />
sudo apt-get install barcode git-core git-doc git-gui gnome-do imagemagick libaio1 libapache2-mod-php5 meld mysql-server phpmyadmin php-pear php5 php5-cli php5-curl php5-dev php5-ffmpeg php5-gd php5-imagick php5-mcrypt php5-mysql php5-xdebug rlwrap ruby ruby-dev screen subversion tidy vim vim-gnome xclip -y --fix-missing;</code></p>
<h4>Git</h4>
<p><code>ssh-keygen -t rsa<br />
xclip -sel clip &lt; ~/.ssh/id_rsa.pub</code></p>
<p><code><br />
; ~/.gitconfig</p>
<p>[alias]<br />
ci = commit<br />
di = diff<br />
st = status</code></p>
<ol>
<li>Paste the copied public key into the &#8220;Public keys&#8221; section of your git repository provider.</li>
<li>~/.gitconfig creates Subversion-like aliases.</li>
</ol>
<h4>Apache</h4>
<p>The recommended method to serve PHP pages is via mod_userdir; i.e. a public_html/ from the user&#8217;s home directory; e.g. /home/kzhiwei/public_html/. The following commands enable mod_rewrite and mod_userdir.</p>
<p><code>sudo a2enmod rewrite; \<br />
sudo a2enmod userdir;</code></p>
<ol>
<li>Define ServerName in /etc/apache2/httpd.conf; e.g. &#8220;localhost&#8221;.</li>
<li>Update AllowOverride in /etc/apache/mods-available/userdir.conf to &#8220;AllowOverride All&#8221;, so URL rewriting, .htaccess files work correctly.</li>
<li>If using CakePHP with mod_rewrite, the default .htaccess files will not working correctly. Use RewriteBase to adjust accordingly; e.g. for http://localhost/~kzhiwei/github.com/kzhiwei/sandbox/ to work correctly; e.g.
<ul>
<li>/.htaccess: RewriteBase /~kzhiwei/github.com/kzhiwei/sandbox/</li>
<li>/app/.htaccess: RewriteBase /~kzhiwei/github.com/kzhiwei/sandbox/app/</li>
<li>/app/webroot/.htaccess: RewriteBase /~kzhiwei/github.com/kzhiwei/sandbox/app/webroot/</li>
</ul>
</li>
<li>Update /etc/apache2/mods-available/php5.conf by commenting &#8220;php_admin_value engine Off&#8221;, so PHP in user-directories work correctly.</li>
<li>Issue &#8216;sudo service apache2 restart&#8217; when done.</li>
</ol>
<h4>~/.vimrc</h4>
<p><code>"~/.vmrc</p>
<p>"Basics.<br />
colorscheme koehler<br />
set autoindent<br />
set nowrap<br />
set ruler<br />
syntax on</p>
<p>"Tabs, not spaces.<br />
set shiftwidth=3<br />
set softtabstop=3<br />
set tabstop=3</p>
<p>"Others.<br />
set directory=/tmp "Place swap files in /tmp.<br />
set hidden "Switch between unsaved buffers. Beware :q!.<br />
set ignorecase "Case-insensitive text search...<br />
set smartcase "... unless specified.<br />
set term=xterm "PuTTY/Command-T compatibility.</code></p>
<h4>Command-T plugin for Vim</h4>
<p>Command-T is the one plugin I use. For working with large code bases with multiple files, it helps me open multiple buffers quickly, with a couple of keystrokes. My explanation doesn&#8217;t do it much justice, you have to give it a try yourself. If it&#8217;s the only new thing you try in 2012, this is it!</p>
<p><code>wget http://www.vim.org/scripts/download_script.php?src_id=15560 -O ~/command-t.vba; \<br />
vim ~/command-t.vba;<br />
</code></p>
<p>Command-T is distributed as a &#8220;vimball&#8221; which means that it can be installed<br />
by opening it in Vim and then sourcing it.</p>
<p><code>:e command-t.vba<br />
:so %</code></p>
<p>Next the C extension is built from the shell:</p>
<p><code>cd ~/.vim/ruby/command-t/; \<br />
ruby extconf.rb; \<br />
make;</code></p>
<p>Assuming make is successfully, the next time you open Vim you&#8217;ll be able to use the Leader key &#8212; defaults to backslash (/) &#8212; to summon Command-T. Thereafter, inputting the path/name of the file you&#8217;re interested in, then hit Enter to open.</p>
<h4>Oracle Express Edition (XE)</h4>
<p><code>wget http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb; \<br />
sudo dpkg -i oracle-xe-universal_10.2.0.1-1.1_i386.deb; \<br />
sudo /etc/init.d/oracle-xe configure; \<br />
. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh; \<br />
sudo pecl install oci8; \<br />
sudo touch /etc/php5/conf.d/oci8.ini;<br />
</code></p>
<ol>
<li>When prompted to provide the path to the ORACLE_HOME directory, use &#8216;/usr/lib/oracle/xe/app/oracle/product/10.2.0/server&#8217;.</li>
<li>Using oracle_env.sh to define Oracle-related environment variables mostly works correctly, except two naggy &#8220;[[: not found&#8221; errors. This can be resolved by editing lines 108, 110 of /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh and removing the extra set of brackets.</li>
<li>Add &#8220;extension=oci8.so&#8221; to /etc/php5/conf.d/oci8.ini.</li>
<li>Add &#8220;export LD_LIBRARY_PATH=&#8217;/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:&#8217;; export ORACLE_HOME=&#8217;/usr/lib/oracle/xe/app/oracle/product/10.2.0/server&#8217;&#8221; to /etc/apache2/envvars so that Oracle works correctly in PHP.</li>
<li>In case &#8220;pecl install oci8&#8243; fails, check if php5-dev, php-pear is installed.</li>
</ol>
<h6>References</h6>
<p><a href="http://www.vim.org/scripts/script.php?script_id=3025">Command-T : Fast file navigation for VIM</a><br />
<a href="http://kzhiwei.wordpress.com/2009/03/18/oracle-and-php5-in-mepis/">Oracle and PHP5 in Debian-like systems</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/708/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=708&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2012/01/19/oneiric-ocelot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>2011 in review</title>
		<link>http://kzhiwei.wordpress.com/2012/01/03/2011-in-review/</link>
		<comments>http://kzhiwei.wordpress.com/2012/01/03/2011-in-review/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 01:30:35 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=689</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog. Here&#8217;s an excerpt: A New York City subway train holds 1,200 people. This blog was viewed about 7,000 times in 2011. If it were a NYC subway train, it would take about 6 trips to carry that many people. Click here to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=689&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.</p>
<p>	<a href="/2011/annual-report/"><img src="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg" width="100%" alt="" /></a></p>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>A New York City subway train holds 1,200 people.  This blog was viewed about <strong>7,000</strong> times in 2011.  If it were a NYC subway train, it would take about 6 trips to carry that many people.</p></blockquote>
<p><a href="/2011/annual-report/">Click here to see the complete report.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/689/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=689&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2012/01/03/2011-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>

		<media:content url="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg" medium="image" />
	</item>
		<item>
		<title>Sitting up</title>
		<link>http://kzhiwei.wordpress.com/2011/12/10/sitting-up/</link>
		<comments>http://kzhiwei.wordpress.com/2011/12/10/sitting-up/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 00:57:03 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Travis]]></category>

		<guid isPermaLink="false">https://kzhiwei.wordpress.com/?p=683</guid>
		<description><![CDATA[Found that he could sit up fairly straight on his own now. No need to grab onto the sides of the bath tub anymore &#8212; though he still does that, a lot! It makes bathing a bit easier, good boy!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=683&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Found that he could sit up fairly straight on his own now. No need to grab onto the sides of the bath tub anymore &#8212; though he still does that, a lot! It makes bathing a bit easier, good boy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/683/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=683&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/12/10/sitting-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>Teething</title>
		<link>http://kzhiwei.wordpress.com/2011/12/08/teething/</link>
		<comments>http://kzhiwei.wordpress.com/2011/12/08/teething/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 14:46:00 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Travis]]></category>

		<guid isPermaLink="false">https://kzhiwei.wordpress.com/?p=681</guid>
		<description><![CDATA[Was applying Dentinox to his sore gums just now; felt his first front bottom tooth. It&#8217;s sharpish, and I&#8217;m quite touched. Heh<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=681&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Was applying Dentinox to his sore gums just now; felt his first front bottom tooth. It&#8217;s sharpish, and I&#8217;m quite touched. Heh</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/681/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/681/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/681/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/681/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/681/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/681/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/681/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=681&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/12/08/teething/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>MVP HOSTS file</title>
		<link>http://kzhiwei.wordpress.com/2011/10/24/mvp-hosts-file/</link>
		<comments>http://kzhiwei.wordpress.com/2011/10/24/mvp-hosts-file/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 05:41:37 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=661</guid>
		<description><![CDATA[MVP hosts is a good start if you&#8217;re looking to block advertisements-serving domains. However, wildcard domains; e.g. &#8220;*.doubleclick.net&#8221; and sub-domains &#8220;doubleclick.net&#8221; do not work correctly. Furthermore, if you&#8217;re a network administrator &#8212; I administer my home network &#8212; the effect is not propagated for all clients. Aside, the large filesize (~16k lines) means reduced performance, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=661&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://winhelp2002.mvps.org/">MVP hosts</a> is a good start if you&#8217;re looking to block advertisements-serving domains.</p>
<p>However, wildcard domains; e.g. &#8220;*.doubleclick.net&#8221; and sub-domains &#8220;doubleclick.net&#8221; do not work correctly. Furthermore, if you&#8217;re a network administrator &#8212; I administer my home network &#8212; the effect is not propagated for all clients.</p>
<p>Aside, the large filesize (~16k lines) means reduced performance, since there are entries like &#8220;activity.serving-sys.com&#8221;, &#8220;bs.serving-sys.com&#8221;. Typically, the entire domain should be blocked &#8212; although we might end up blacklisting &#8220;good&#8221; domains; e.g. &#8220;zdnet.com&#8221;, the end result is mostly desirable.</p>
<p>Since my TL-WR841N is <a href="http://www.tp-link.com/resources/simulator/841_v5/index.htm">fairly competent</a>; i.e. it allows a dot-prefixed domain; e.g. &#8220;.servicing-sys.com&#8221; works correctly as expected, I wrote a script to extract, and process the contents of <a href="http://winhelp2002.mvps.org/hosts.txt">hosts.txt</a> into ~7k lines, which is a bit more acceptable.</p>
<p>Now, I just need to figure out how to add more than 4 domains to a rule.</p>
<p>If you&#8217;re interested in the source, you can find it <a href="https://github.com/kzhiwei/sandbox/blob/master/hosts.php">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/661/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/661/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/661/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/661/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/661/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/661/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/661/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/661/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=661&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/10/24/mvp-hosts-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>CentOS: rpmbuild-ing Vim w/ Ruby support</title>
		<link>http://kzhiwei.wordpress.com/2011/09/21/centosrpmbuild-ing-vim-w-ruby-support/</link>
		<comments>http://kzhiwei.wordpress.com/2011/09/21/centosrpmbuild-ing-vim-w-ruby-support/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 02:47:16 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Vi]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=636</guid>
		<description><![CDATA[Recently I switched from Ubuntu 11.04 to CentOS 5.7, only to find out that CentOS&#8217;s version of vim was build sans Ruby support: $ vim --version &#124; grep ruby +python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent &#8220;-ruby&#8221; means that Ruby support is not available. This was an unhappy moment, as I&#8217;d been a big [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=636&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I switched from Ubuntu 11.04 to CentOS 5.7, only to find out that CentOS&#8217;s version of vim was build sans Ruby support:</p>
<p><code>$ vim --version | grep ruby<br />
+python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent</code></p>
<p>&#8220;-ruby&#8221; means that Ruby support is not available. This was an unhappy moment, as I&#8217;d been a big fan of <a href="https://wincent.com/products/command-t">Command-T</a>, an excellent plugin for Vim requiring Ruby support. There are a couple of blog posts about it, but required consolidation, so here is my (mostly) repost on the solution.</p>
<p>The posts recommend setting up an &#8220;rpmbuild&#8221; environment for building from source, which is basically user &#8220;rpmbuild&#8221;, plus a &#8220;~/.rpmmacros&#8221; definition, plus the source RPM.</p>
<p>1. If &#8220;rpmbuild&#8221; already exists, the following part is not required:</p>
<p><code># useradd rpmbuild</code></p>
<p>2. Now switch to &#8220;rpmbuild&#8221;:</p>
<p><code># su - rpmbuild<br />
$ vim ~/.rpmmacros</code></p>
<p>3. &#8220;.rpmmacros&#8221; is a file with the following contents:</p>
<p><code>%_topdir /home/rpmbuild/rpm<br />
%_tmppath /home/rpmbuild/rpm/tmp</code></p>
<p>4. My build is for x86_64, so replace &#8220;$ARCH&#8221; with &#8220;x86_64&#8243;:</p>
<p><code><del datetime="2011-09-21T01:36:02+00:00">$ mkdir -p rpm/{BUILD,RPMS/$ARCH,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}</del><br />
$ mkdir -p rpm/{BUILD,RPMS/x86_64,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}</code></p>
<p>5. Next, get the source RPM, removing the &#8220;perl-devel&#8221; dependency from &#8220;vim.spec&#8221;:</p>
<p><code>$ cd rpm/SRPMS<br />
$ wget http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/vim-7.2.411-1.6.el6.src.rpm<br />
$ cd ~<br />
$ rpm -Uvh --nomd5 ~/rpm/SRPMS/vim-7.2.411-1.6.el6.src.rpm<br />
$ vim rpm/SPECS/vim.spec</p>
<p><del datetime="2011-09-21T01:36:02+00:00">BuildRequires: python-devel ncurses-devel gettext perl-devel</del><br />
BuildRequires: python-devel ncurses-devel gettext</p>
<p>6. Now we are ready to start the build process:</p>
<p></code><code>$ rpmbuild -bb ~/rpm/SPEC/vim.spec</code></p>
<p>7. If &#8220;rpmbuild&#8221; is not installed &#8212; mine wasn&#8217;t &#8212; use &#8220;root&#8221; to install &#8220;rpm-build&#8221; first:</p>
<p><code># yum install -y rpm-build</code></p>
<p>8. Assuming #6 completed successfully, we can use &#8220;root&#8221; to install the built RPMs:</p>
<p><code>rpm -Uvh ~/rpm/RPMS/x86_64/vim-{m,c,e}*</code></p>
<h4>References</h4>
<p>http://m.linuxweblog.com/vim-ruby-centos</p>
<p>http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment</p>
<p>http://www.lamolabs.org/blog/2662/fixing-ruby-support-in-vim-on-fedora-10-11-and-centos-5-installing-the-vim-textile-plugin/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/636/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=636&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/09/21/centosrpmbuild-ing-vim-w-ruby-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP 4.3.9 $_SESSION values not being retained</title>
		<link>http://kzhiwei.wordpress.com/2011/07/04/php-4-3-9-_session-values-not-being-retained/</link>
		<comments>http://kzhiwei.wordpress.com/2011/07/04/php-4-3-9-_session-values-not-being-retained/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 04:08:40 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=624</guid>
		<description><![CDATA[Symptoms: After calling session_start() and assigning key-value pairs to $_SESSION, calling print_r($_SESSION) on subsequent pages result in an empty array; i.e. $_SESSION values are not retained across pages. Solution: Assuming your php.ini (session) save_handler, save_path variables are set correctly, also check if sufficient disk space is available. I spent 90 minutes trying to resolve the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=624&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Symptoms: After calling session_start() and assigning key-value pairs to $_SESSION, calling print_r($_SESSION) on subsequent pages result in an empty array; i.e. $_SESSION values are not retained across pages.</p>
<p>Solution: Assuming your php.ini (session) save_handler, save_path variables are set correctly, also check if sufficient disk space is available.</p>
<p>I spent 90 minutes trying to resolve the problem thinking it was a PHP-related issue, but in the end, nullifying the 5+ GiB of httpd error logs promptly resolved the problem. Doh!</p>
<p>HTH,<br />
Wayne</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/624/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=624&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/07/04/php-4-3-9-_session-values-not-being-retained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>The mystery of the disappearing laptop screen brightness slider (Windows 7)</title>
		<link>http://kzhiwei.wordpress.com/2011/06/21/the-mystery-of-the-disappearing-laptop-screen-brightness-slider-windows-7/</link>
		<comments>http://kzhiwei.wordpress.com/2011/06/21/the-mystery-of-the-disappearing-laptop-screen-brightness-slider-windows-7/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 01:54:27 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=620</guid>
		<description><![CDATA[I noticed this problem in the last 2 weeks or so, but searching around the &#8216;net returned no results. So I noticed that if the power plug turned off during bootup, I would be unable to adjust my screen brightness. To resolve the problem, a restart &#8212; with the power plugged in &#8212; was required. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=620&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I noticed this problem in the last 2 weeks or so, but searching around the &#8216;net returned no results.</p>
<p>So I noticed that if the power plug turned off during bootup, I would be unable to adjust my screen brightness. To resolve the problem, a restart &#8212; with the power plugged in &#8212; was required.</p>
<p>Right-clicking the Power system icon &#8212; located on the bottom right of the task bar, clicking Power Options -&gt; High Performance -&gt; Change plan settings showed just two options: &#8220;Turn off the display&#8221;, &#8220;Put the computer to sleep&#8221;. &#8220;Adjust plan brightness&#8221; had disappeared!</p>
<p>The solution is:</p>
<p>Start -&gt; Control Panel -&gt; Hardware and Sound -&gt; Device Manager.</p>
<p>In the Device Manager window, look for &#8220;Monitors&#8221;, then right-click your monitor and select &#8220;Uninstall&#8221;. Be sure to also check the &#8220;Remove driver&#8221; option. Once removed, click the &#8220;Scan for hardware changes&#8221; icon.</p>
<p>Voila. &#8220;Adjust plan brightness&#8221; returns, mystery solved.</p>
<h4>References</h4>
<p>http://social.technet.microsoft.com/Forums/en-US/w7itprohardware/thread/08a3eb1d-b698-4639-af4b-5278b721fcdc/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/620/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/620/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/620/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/620/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/620/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/620/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/620/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/620/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=620&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/06/21/the-mystery-of-the-disappearing-laptop-screen-brightness-slider-windows-7/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>Synaptic games deinstall for Xubuntu 10.04</title>
		<link>http://kzhiwei.wordpress.com/2011/06/17/synaptic-games-deinstall-for-xubuntu-10-04/</link>
		<comments>http://kzhiwei.wordpress.com/2011/06/17/synaptic-games-deinstall-for-xubuntu-10-04/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 03:29:10 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=616</guid>
		<description><![CDATA[Copy the following text for use w/ Synaptic when marking game-related packages for deinstall in Xubuntu 10.04. It may also work with other GNOME2-based, Ubuntu derivatives. The alternate installer does not provide the option to mark/unmark any packages at inastall time, hence the need for this. aisleriot deinstall quadrapassel deinstall gnome-mahjongg deinstall gnome-games-common deinstall gnome-sudoku [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=616&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Copy the following text for use w/ Synaptic when marking game-related packages for deinstall in Xubuntu 10.04. It may also work with other GNOME2-based, Ubuntu derivatives. The alternate installer does not provide the option to mark/unmark any packages at inastall time, hence the need for this.</p>
<pre>aisleriot deinstall
quadrapassel deinstall
gnome-mahjongg deinstall
gnome-games-common deinstall
gnome-sudoku deinstall
gnomine deinstall</pre>
<p>Alternatively:</p>
<pre>$ sudo apt-get remove aisleriot quadrapassel gnome-mahjongg gnome-games-common gnome-sudoku gnomine -y</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/616/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=616&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/06/17/synaptic-games-deinstall-for-xubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
		<item>
		<title>TrueHoop’s Stat Geek Smackdown 2011</title>
		<link>http://kzhiwei.wordpress.com/2011/05/04/truehoops-stat-geek-smackdown-2011/</link>
		<comments>http://kzhiwei.wordpress.com/2011/05/04/truehoops-stat-geek-smackdown-2011/#comments</comments>
		<pubDate>Wed, 04 May 2011 01:00:12 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kzhiwei.wordpress.com/?p=565</guid>
		<description><![CDATA[So now that the real NBA session is taking place, here are my annual predictions for the playoffs. In terms of scoring, I get 5 points if I correctly pick the winner of the series, 7 points if I correctly pick the winner of a series in the specified number of games (e.g. 4 through [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=565&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So now that the real NBA session is taking place, here are my annual predictions for the playoffs. In terms of scoring, I get 5 points if I correctly pick the winner of the series, 7 points if I correctly pick the winner of a series in the specified number of games (e.g. 4 through 7 inclusive), and none if I incorrectly pick the winner of a series.</p>
<p><strong>First Round (29)</strong></p>
<pre>MEM @ SAS: SAS in 5 (0, MEM advances in 6).
NOH @ LAL: LAL in 5 (5, LAL advances in 6).
POR @ DAL: POR in 6 (0, DAL advances in 6).
DEN @ OKC: OKC in 6 (5, OKC advances in 5).
IND @ CHI: CHI in 5 (7, CHI advances in 5).
PHI @ MIA: MIA in 5 (7, MIA advances in 5).
NYK @ BOS: BOS in 5 (5, BOS advances in 4).
ATL @ ORL: ORL in 5 (0, ATL advances in 6).</pre>
<p>After the First Round, I have 29 points, 7 behind Benjamin Morris of <a href="http://www.skepticalsports.com/">Skeptical Sports</a>.</p>
<p><strong>Conf. Semis (17)</strong></p>
<pre>MEM @ OKC: OKC in 6 (5, OKC advances in 7).
DAL @ LAL: LAL in 6 (0, DAL advances in 0).
ATL @ CHI: CHI in 6 (7, CHI advances in 6).
BOS @ MIA: MIA in 6 (5, MIA advances in 5).</pre>
<p>After the conference semi-finals, I&#8217;ve entered a 3-way tie for the lead with <a href="http://www.82games.com/ilardi1.htm">Stephen Ilardi</a> and <a href="http://www.skepticalsports.com/">Benjamin Morris</a>.</p>
<p><strong>Conf. Finals (5)</strong></p>
<pre>CHI vs. MIA: MIA in 7 (5, MIA advances in 5).
OKC vs. DAL: OKC in 7 (0, DAL advances in 5).</pre>
<p>After the conference finals, I now tally 51 points, dropping several places off the lead (65). My consistent picks against DAL has worked against me, but MIA must ultimately prevail!</p>
<p><strong>Finals (0)</strong></p>
<pre>MIA vs. DAL: MIA in 6 (0, DAL wins in 6).</pre>
<p>I made 4 picks against DAL, and they were all wrong My final position . Sigh. Oh well. There is always next year. Congratulations to Kidd, Nowitzki, Chandler &amp; Co., NBA champions for 2010/2011, and to Benjamin Morris who tallied 68 points in Truehoop&#8217;s Stat Geek Smackdown 2011!</p>
<p><strong>References</strong></p>
<ol>
<li><a href="http://sports.espn.go.com/nba/playoffs/2011/news/story?page=Smackdown-11">http://sports.espn.go.com/nba/playoffs/2011/news/story?page=Smackdown-11</a></li>
<li><a href="http://kzhiwei.wordpress.com/2010/04/17/truehoops-stat-geek-smackdown-2010/">http://kzhiwei.wordpress.com/2010/04/17/truehoops-stat-geek-smackdown-2010/</a></li>
<li><a href="http://kzhiwei.wordpress.com/2009/04/29/truehoops-stat-geek-smackdown-2009/">http://kzhiwei.wordpress.com/2009/04/29/truehoops-stat-geek-smackdown-2009/</a></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kzhiwei.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kzhiwei.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kzhiwei.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kzhiwei.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kzhiwei.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kzhiwei.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kzhiwei.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kzhiwei.wordpress.com/565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kzhiwei.wordpress.com&amp;blog=946076&amp;post=565&amp;subd=kzhiwei&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kzhiwei.wordpress.com/2011/05/04/truehoops-stat-geek-smackdown-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f3a36afe006bb122defd2eff0e1c18af?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">kzhiwei</media:title>
		</media:content>
	</item>
	</channel>
</rss>
