<?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/"
	>

<channel>
	<title>SoleSky &#187; Technique</title>
	<atom:link href="http://www.solesky.com/category/technique/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solesky.com</link>
	<description>My love, My life,My soul</description>
	<lastBuildDate>Tue, 15 Jun 2010 14:35:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Save the Energy, Save the World</title>
		<link>http://www.solesky.com/2010/05/save-the-energy-save-the-world/</link>
		<comments>http://www.solesky.com/2010/05/save-the-energy-save-the-world/#comments</comments>
		<pubDate>Sat, 08 May 2010 00:08:39 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1503</guid>
		<description><![CDATA[The sticky damn summer of Canton has come. My poor little laptop would face a serious problem about its own temperature which cause it closes itself directly.
Yep, we can set the power performance manually. But there are only few fixed profile to choose: high performance, low performance and balance&#8230; Then I have to focus on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://grano.la/"><img alt="" src="http://grano.la/_IMAGES/granola_linux.png" title="granola gui" class="alignright" width="377" height="474" /></a>The sticky damn summer of Canton has come. My poor little laptop would face a serious problem about its own temperature which cause it closes itself directly.<br />
Yep, we can set the power performance manually. But there are only few fixed profile to choose: high performance, low performance and balance&#8230; Then I have to focus on the temperature&#8217;s changing and switch different setting among them.</p>
<p>Maybe <a href="http://grano.la/help/?download">Granola</a> is a good choice for me. It&#8217;s a smart automatically energy management software. That sounds cool~ Now I only have to install it and let it do the job for me. And beside, I can also install a GUI interface to see what it has done.</p>
<p>Make a notice for myself:</p>
<p>1 download and run the install script: <a href="http://grano.la/help/?download&#038;os=linux">here</a></p>
<p>2 install software and GUI interface:</p>
<blockquote><p>sudo apt-get install granola granola-gui</p></blockquote>
<p>and it&#8217;s done~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/05/save-the-energy-save-the-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to 32 bit Linux Flashplugin again&#8230;</title>
		<link>http://www.solesky.com/2010/04/back-to-32-bit-linux-flashplugin-again/</link>
		<comments>http://www.solesky.com/2010/04/back-to-32-bit-linux-flashplugin-again/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 12:25:29 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1489</guid>
		<description><![CDATA[After Adobe released its 64 bit flashplugin for Linux 64 bit OS , I switched to that 64 bit version at once and hope that the problems can be fixed forever. But I am so bored with its endless crashing and decided to turn back to the 32 bit version.
Just make a record for myself [...]]]></description>
			<content:encoded><![CDATA[<p>After Adobe released its 64 bit flashplugin for Linux 64 bit OS , I switched to that 64 bit version at once and hope that the problems can be fixed forever. But I am so bored with its endless crashing and decided to turn back to the 32 bit version.</p>
<p>Just make a record for myself :</p>
<p>1st: Remove the gnash (If you have)</p>
<blockquote><p>sudo apt-get remove gnash</p></blockquote>
<p>2nd : Install nspluginwrapper and Flash 9:</p>
<blockquote><p>sudo apt-get install nspluginwrapper flashplugin-nonfree lib32nss-mdns</p></blockquote>
<p>3rd:  Flash 9 is not packaged, but the package installer script will fetch it from Adobe&#8217;s download site and install it. Now simply install nspluginwrapper as a Firefox plugin:</p>
<blockquote><p>sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/ sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-3.0/plugins/</p></blockquote>
<p>OK, Bye</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/04/back-to-32-bit-linux-flashplugin-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play SSH Trick Freely Part 2</title>
		<link>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/</link>
		<comments>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 15:35:01 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1318</guid>
		<description><![CDATA[As we said, we can set up a secure Socket 5connection via SSH tool. Then we make our App. like browsers programs go through it. But,,, not all of the browsers support the Socket 5 proxy method. For example, the new generation Google web browser Chrome doesn&#8217;t support that.
So we have to make it through. [...]]]></description>
			<content:encoded><![CDATA[<p>As we said, we can set up a secure Socket 5connection via SSH tool. Then we make our App. like browsers programs go through it. But,,, not all of the browsers support the Socket 5 proxy method. For example, the new generation Google web browser Chrome doesn&#8217;t support that.</p>
<p>So we have to make it through. First, the Chrome browser does support the common proxy way &#8212; Http proxy. And then, if we can &#8220;translate&#8221; the socket connection into the http connection, then it works!</p>
<p>The solution is to set up a http proxy in our localhost and let it do the job to help those App. to talk to the remote socket proxy. Then comes to the next tool we need, the Privoxy. Yep, we always use this software to help our Tor proxy services smarter. So we can also do it in this way:</p>
<p>Find the configure file of Privoxy : /etc/privoxy/config  (in Ubuntu)<br />
And add this line at the end of the file:</p>
<blockquote><p>forward-socks5 / 127.0.0.1:7070 .</p></blockquote>
<p>  (don&#8217;t miss the &#8220;.&#8221; at the end of line, that make this route complete)</p>
<p>Easy to see that all the date transfer through the 7070 port will &#8220;translate&#8221; into the SSH socket 5 proxy service<br />
Save and exit.</p>
<p>Restart the Privoxy : </p>
<blockquote><p>sudo /etc/init.d/privoxy restart </p></blockquote>
<p>   (in Ubuntu)</p>
<p>And finished&#8230;. All you have to do next is to set up your browser&#8217;s proxy as http proxy: 127.0.0.1:7070    <img src='http://www.solesky.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<p>And BTW, the DNS pollution problem is still needed to be considered.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play SSH Trick Freely</title>
		<link>http://www.solesky.com/2009/11/play-ssh-trick-freely/</link>
		<comments>http://www.solesky.com/2009/11/play-ssh-trick-freely/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 12:47:43 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1254</guid>
		<description><![CDATA[SSH is a very popular tool for remote control under Unix and Linux System. And ssh command is included in most Unix/Linux OS shell by default.
SSH stands for &#8220;security Shell&#8221;, that&#8217;s to say it provides a security access to OS via a &#8220;SHELL&#8221; like interface. So before you wanna play SSH trick, you have to [...]]]></description>
			<content:encoded><![CDATA[<p>SSH is a very popular tool for remote control under Unix and Linux System. And ssh command is included in most Unix/Linux OS shell by default.</p>
<p>SSH stands for &#8220;security Shell&#8221;, that&#8217;s to say it provides a security access to OS via a &#8220;SHELL&#8221; like interface. So before you wanna play SSH trick, you have to own a host as the remote host. Then we can use ssh to access our host safely and manage the machine just like you are in front of it(normally in TEXT mode, of course ).  But there is another way to use SSH tool, let it make a &#8220;tunnel&#8221; for our applications in local host. That means our applications like browsers can connect to the remote host via encrypted messages and the remote host will help them communicate with the destination sites. The result is that our communications become safer and the GFW can&#8217;t block us anymore~  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<p>Let&#8217;s go to own a host first. Be careful, not all the host or VPS provide SSH access. Make sure you are going to own a host with SSH function!  My friend tell me that<a href="http://host-blaster.com/"> host-blaster.com</a> provide free VPS with SSH access, so I visited it and registered a VPS.</p>
<p>Then the second step is to make SSH to dig a tunnel for us.<br />
Input such like command in our local shell terminal:</p>
<blockquote><p>ssh -qTfnN -D 7070 yourname@yourname.host-blaster.com</p></blockquote>
<p>Maybe you use the ssh command before, but those parameters would make you puzzled. Let&#8217;s make them clean first.</p>
<p><span id="more-1254"></span></p>
<p style="padding-left: 30px;">-q:    Quiet mode.  Causes most warning and diagnostic messages to be<br />
suppressed.  Only fatal errors are displayed.  If a second -q is<br />
given then even fatal errors are suppressed, except for those<br />
produced due solely to bad arguments.</p>
<p style="padding-left: 30px;">-T      Disable pseudo-tty allocation.</p>
<p style="padding-left: 30px;">-f      Requests ssh to go to background just before command execution.<br />
This is useful if ssh is going to ask for passwords or<br />
passphrases, but the user wants it in the background.  This<br />
implies -n.  The recommended way to start X11 programs at a<br />
remote site is with something like ssh -f host xterm.</p>
<p style="padding-left: 30px;">-n      Redirects stdin from /dev/null (actually, prevents reading from<br />
stdin).  This must be used when ssh is run in the background.  A<br />
common trick is to use this to run X11 programs on a remote<br />
machine.  For example, ssh -n shadows.cs.hut.fi emacs &amp; will<br />
start an emacs on shadows.cs.hut.fi, and the X11 connection will<br />
be automatically forwarded over an encrypted channel.  The ssh<br />
program will be put in the background.  (This does not work if<br />
ssh needs to ask for a password or passphrase; see also the -f<br />
option.)</p>
<p style="padding-left: 30px;">-N      Do not execute a remote command.  This is useful for just for‐<br />
warding ports (protocol version 2 only).</p>
<p style="padding-left: 30px;">-D [bind_address:]port<br />
Specifies a local “dynamic” application-level port forwarding.<br />
This works by allocating a socket to listen to port on the local<br />
side, optionally bound to the specified bind_address.  Whenever a<br />
connection is made to this port, the connection is forwarded over<br />
the secure channel, and the application protocol is then used to<br />
determine where to connect to from the remote machine.</p>
<p>After that, we have cleaned that mass, this command tell SSH to work in the background and served at 7070 port.</p>
<p>So we go to the final step, make our application work via SSH &#8220;tunnel&#8221; we made just now.</p>
<p>For example, we browse web with Firefox, that all we have to do is to set our proxy setting of FF use the SSH. Then we set the socket proxy setting as</p>
<p>IP: 127.0.0.1(you can use loaclhost too) port: 7070  and click the socket 5 option.</p>
<p>BTW, if the GFW block the sites by DNS pollution, you have to active the FF to use remote dns. Type about:config to active the network.proxy.socks_remote_dns option.</p>
<p>That&#8217;s all, happy SSH life <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/play-ssh-trick-freely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a Small Lovely 2010 Asian Games Countdown in Your Site</title>
		<link>http://www.solesky.com/2009/11/add-a-small-lovely-2010-asian-games-countdown-in-your-site/</link>
		<comments>http://www.solesky.com/2009/11/add-a-small-lovely-2010-asian-games-countdown-in-your-site/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:45:03 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Asian Games]]></category>
		<category><![CDATA[Canton]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1214</guid>
		<description><![CDATA[There is less the one year left for the 16th Asian Games at Canton, 2010. To be a Cantonese, we have our duty to support it with our effort.
I browse the official website of 16th Asian Games (http://www.gz2010.cn/en) which obviously found by the support of NetEase. In my opinion, this website is quite well and [...]]]></description>
			<content:encoded><![CDATA[<p>There is less the one year left for the 16th Asian Games at Canton, 2010. To be a Cantonese, we have our duty to support it with our effort.</p>
<p>I browse the official website of 16th Asian Games (<a href="http://www.gz2010.cn/en" target="_blank">http://www.gz2010.cn/en</a>) which obviously found by the support of NetEase. In my opinion, this website is quite well and enough &#8220;official&#8221;. Maybe that is the reason why many web design fans blame it as no creation and passion. But integrally speaking, it&#8217;s quite simple(simple is the best) and has enough function as a news issue website.</p>
<p>The most attractive  thing caught my eyes is not those news and pictures, but a lovely countdown flash on the top of sider bar. It&#8217;s a small flash animation with a funny cartoon dragon board keeps rowing forward.</p>
<div class="flash">
    <script type="text/javascript">swf('http://swf.news.163.com/2010/yayun/lh/countDownEng.swf','378','200');</script>
</div>
<div>As I am so loved with this small flash animation, I decided to &#8220;steal&#8221; it to the side bar of my site. <img src='http://www.solesky.com/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' />  </div>
<div>After checking the source code in firebug, I found that piece of code quickly:</div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;div<span style="color: #00AA00;">&gt;</span>&lt;object id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;Player1258246398430&quot;</span> classid<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;</span>
      <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;257&quot;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;136&quot;</span> 
      codebase<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;</span><span style="color: #00AA00;">&gt;</span>
              &lt;param name<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;src&quot;</span> value<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://swf.news.163.com/2010/yayun/lh/countDownEng.swf&quot;</span> /<span style="color: #00AA00;">&gt;</span>
              &lt;param name<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;wmode&quot;</span> value<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span> /<span style="color: #00AA00;">&gt;</span>&lt;param name<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;quality&quot;</span> value<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> /<span style="color: #00AA00;">&gt;</span>
              &lt;embed id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;Player1258246398430&quot;</span> type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;application/x-shockwave-flash&quot;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;257&quot;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;136&quot;</span>
                          src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://swf.news.163.com/2010/yayun/lh/countDownEng.swf&quot;</span> 
                          quality<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> wmode<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span><span style="color: #00AA00;">&gt;</span>
               &lt;/embed<span style="color: #00AA00;">&gt;</span>
&lt;/object<span style="color: #00AA00;">&gt;</span>&lt;a title<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;www.gz2010.cn/en&quot;</span> href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://www.gz2010.cn/en&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;/a<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>PS: Remember to resize the width and height if you want to fix it into your site. And the value of width and height in the param tab is very important if you want it work perfect for Opera user.</p>
<p>At last, if you wanna use a Chinese version, just change </p>
<blockquote><p>value=&#8221;http://swf.news.163.com/2010/yayun/lh/countDownEng.swf&#8221; </p></blockquote>
<p>into </p>
<blockquote><p>value=&#8221;http://swf.news.163.com/2010/yayun/lh/countDown.swf&#8221;</p></blockquote>
<p>Then you will see :</p>
<div class="flash">
    <script type="text/javascript">swf('http://swf.news.163.com/2010/yayun/lh/countDown.swf','378','200');</script>
</div>
<p>If you use Worprss blog, it&#8217;s very easy to add this code in the &#8220;Widgets&#8221; Setting by adding a Text widgets and copy into it. That&#8217;s all <img src='http://www.solesky.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/add-a-small-lovely-2010-asian-games-countdown-in-your-site/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mice Hole</title>
		<link>http://www.solesky.com/2009/11/mice-hole/</link>
		<comments>http://www.solesky.com/2009/11/mice-hole/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 02:16:49 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tor]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1191</guid>
		<description><![CDATA[
At the same day in 20 years ago,the Berlin Wall was torn down.Today,another higher invisible &#8220;Wall&#8221; is still standing in China.  ( tweeted by @icalcifer )
Today is the day that Berlin Wall crashed at 20 years ago. The fall of Berlin Wall is the symbol of democracy freedom. The West takes it as a great [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-1195" title="wall" src="http://www.solesky.com/wp-content/uploads/2009/11/wall-300x169.jpg" alt="wall" width="300" height="169" /></p>
<blockquote><p>At the same day in 20 years ago,the Berlin Wall was torn down.Today,another higher invisible &#8220;Wall&#8221; is still standing in China.  ( tweeted by @icalcifer )</p></blockquote>
<p>Today is the day that Berlin Wall crashed at 20 years ago. The fall of Berlin Wall is the symbol of democracy freedom. The West takes it as a great victory and the opposite side try to make it less attractive. However the fall of Berlin Wall takes the world into a new direction and will be remember forever.</p>
<p>Where there is a wall, there would be some mice hole on it. So the stories of the cat and the mouses will never stop until the day that wall crashed.</p>
<p><span id="more-1191"></span></p>
<p>There are tricks  for the mice to dig holes on the Wall, such as VPN, SSH, Proxy and so on. Tor is my favorite trick cause its untraceable and free to use. But unlucky it got a VIP treatment from the Wall and we have to do something to make it work again.</p>
<p>There is a small trick note for myself below. You can take it if you need it too.</p>
<blockquote><p>Step 1: Write a request letter to bridges@torproject.org via a reliable email service likes Gmail. (It&#8217;s especially important if you are behind the Wall) Then we would get a list likes &#8221; bridge 123.123.123.123 &#8221; .</p>
<p>Step 2: Edit the /etc/tor/torrc file as root. To add that list you have got to the &#8220;bridge relays&#8221; section at the bottom of the file. Save and exit.</p>
<p>Step 3: Restart the Tor and Privoxy(if you need) services by the commands:</p>
<p>sudo /etc/init.d/tor restart</p>
<p>sudo /etc/init.d/privoxy restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/mice-hole/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wap Version of Solesky</title>
		<link>http://www.solesky.com/2009/08/wap-version-of-solesky/</link>
		<comments>http://www.solesky.com/2009/08/wap-version-of-solesky/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 00:43:36 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1016</guid>
		<description><![CDATA[More and more people will use mobile device to surf on Internet world. Maybe nowadays, the mobile devices get faster performance and larger screen to display the complex web page. And the smart browsers likes Opera mini would support the HTML protocol of web pages very well. And further, the mobile network is keeping speeding [...]]]></description>
			<content:encoded><![CDATA[<p>More and more people will use mobile device to surf on Internet world. Maybe nowadays, the mobile devices get faster performance and larger screen to display the complex web page. And the smart browsers likes Opera mini would support the HTML protocol of web pages very well. And further, the mobile network is keeping speeding up. But how ever, to make it perfect to read your pages on mobile devices, you&#8217;d better choose wap pages instead of web pages.</p>
<p><em>Wap or Wi-Fi Protected Access, is an open international standard for application layer network communications in a wireless communication environment. Its main use is to enable access to the Mobile Web from a mobile phone or PDA. WAP sites are websites written in, or dynamically converted to, WML (Wireless Markup Language) and accessed via the WAP browser.<br />
</em><br />
So maybe you would say Wap sites is different from Web sites. But actually, they are totally the same except the foreground. Wap sites give us a document that use WML instead of HTML. And that&#8217;s all, it means that we can create the Wap pages for our own Web sites.</p>
<p>Word press is a great blog platform which give great development experience to the coders. Many themes for Word press  are created. Those are the foreground of Word press. And Wap verion &#8220;Theme&#8221; also had been made. I would show you a new way to read and write the word press sites.</p>
<p>&#8220;Word press To  Wap&#8221; is a great Wap foreground. You can seach &#8221;WP-T-WAP&#8221; at word press official web site or go to http://wordpress.org/extend/plugins/wp-t-wap/</p>
<p>Just download the code file and active that plugin, remember to make sure you have the permission to modify the &#8216;wap&#8217; folder. Now try to have a look via www.solesky.com/wap/ :</p>
<p><iframe src="http://www.solesky.com/wap/index-wap2.php" frameBorder="0" width="300" height="300" scrolling="yes" height="90"></iframe></p>
<p>It seems greats and further more, we can enter the &#8220;Site Admin&#8221; to mange your site. That&#8217;s also a easy way to write post on your mobile phone <img src='http://www.solesky.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/08/wap-version-of-solesky/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Wine on 64 bit Ubuntu and Run WOW~</title>
		<link>http://www.solesky.com/2009/08/install-wine-on-64-bit-ubuntu-and-run-wow/</link>
		<comments>http://www.solesky.com/2009/08/install-wine-on-64-bit-ubuntu-and-run-wow/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 02:45:49 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WOW]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=948</guid>
		<description><![CDATA[We can say that WOW is a great on-line game in the world. It released when I was in Campus. For the good of my study, I missed this game totally. At that time, WOW was run by the 9th City and made great benefit in China. Nowadays, Blizzard decides to end the contract with [...]]]></description>
			<content:encoded><![CDATA[<p>We can say that WOW is a great on-line game in the world. It released when I was in Campus. For the good of my study, I missed this game totally. At that time, WOW was run by the 9th City and made great benefit in China. Nowadays, Blizzard decides to end the contract with 9th City and make a good deal with the other IT giant in China, Net Ease. So a new age of China WOW is coming&#8230;</p>
<p>We know that WOW&#8217;s PC client software is only supported Windows. To the Linux users like me, one of the way to play this game is to install wine which can run Windows version software under a Linux environment. That&#8217;s easy to make it cause Ubuntu has built it easy to install. But I countered another problem, the Chinese character and input method support&#8230; <img src='http://www.solesky.com/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' /> </p>
<p>After search on Google, I found that the already built version wine-cn haven&#8217;t released and I have to &#8220;hack&#8221; it by myself.<br />
The job I have to do:</p>
<ul>
<li> 1 download the source ball of wine</li>
<li> 2 patch the source file with Chinese charset support</li>
<li> 3 prepare the environment of building wine on 64-bit platform</li>
<li> 4 compile and install wine</li>
<li> 5 fix the Chinese character display by adding &#8220;gdi32.dll.so&#8221;</li>
<li> 6 Download and Install WOW~</li>
</ul>
<p>1  go to http://www.winehq.org/site/download to download the wine source ball</p>
<p>2 extract the file and patch with the <a href="http://forum.ubuntu.org.cn/download/file.php?id=35293">&#8220;wine_charset.patch&#8221;</a></p>
<blockquote><p>cd wine-1.0<br />
patch -p1 &lt; wine_charset.patch</p></blockquote>
<p>3 Run this in Shell to prepare:(Ubuntu 9.04 only)</p>
<blockquote><p>sudo apt-get build-dep wine</p></blockquote>
<p>4 Configure, make, and install:</p>
<blockquote><p>CC=&#8221;gcc-4.3 -m32&#8243; LDFLAGS=&#8221;-L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32&#8243; ./configure -v</p></blockquote>
<blockquote><p>make</p></blockquote>
<blockquote><p>
make instal</p></blockquote>
<p>To compile 14.9MB source ball is a time wasting job.  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_neutral.gif' alt=':neutral:' class='wp-smiley' />  </p>
<p>5 Fetch the <a href="http://forum.ubuntu.org.cn/viewtopic.php?f=121&#038;t=131400"> gdi32.dll.so</a> and copy to the wine</p>
<blockquote><p>sudo cp gdi32.dll.so /usr/lib/wine/</p></blockquote>
<p>6 Install and Run WOW just like in Windows~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/08/install-wine-on-64-bit-ubuntu-and-run-wow/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create a Page of posts</title>
		<link>http://www.solesky.com/2009/07/create-a-page-of-posts/</link>
		<comments>http://www.solesky.com/2009/07/create-a-page-of-posts/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 00:34:47 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=827</guid>
		<description><![CDATA[Maybe sometimes we need to create a page to collect many posts that have same factor, or they are about the same topic. For example, now I have posted several posts about my journey at Yangshuo. Then I wanna create a page to display them. My plan is to create a page called &#8220;footprints&#8221; that [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe sometimes we need to create a page to collect many posts that have same factor, or they are about the same topic. For example, now I have posted several posts about my journey at Yangshuo. Then I wanna create a page to display them. My plan is to create a page called &#8220;footprints&#8221; that can show a list of all my posts about journey. And then, I wanna create a sub-page to display some of them, focused on the Yangshou journey. Like this:<br />
<img class="alignnone size-full wp-image-829" title="page&amp;subpages" src="http://www.solesky.com/wp-content/uploads/2009/07/screenshot_002.png" alt="page&amp;subpages" width="246" height="213" /><br />
Then the first step is to create the &#8220;footprints&#8221; page. There are several ways to do that.</p>
<ul>
<li> The lazy one is to let it done with some plugins, such things related with &#8220;list&#8221;, anyway, I don&#8217;t remember <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  . That&#8217;s quite easy to make it work. So let&#8217;s go to the second one.</li>
<li> DIY the page by yourself.  When you decide to DIY such page by yourself, we have to make a file called template file which control how the page display.</li>
</ul>
<p>The way to create a template file:</p>
<p><span id="more-827"></span></p>
<ol>
<li>: Make a copy of your &#8220;index.php&#8221; in the using theme folder, or the &#8220;single.php&#8221; if you want the comment feature. And add a few line to mention that this is a template file, just like:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: yangshuo
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Then rename as &#8220;tour.php&#8221;.
</li>
<li> : Modify some codes.<br />
you can replace the codes which fetching the posts data by new codes that get the post list function.<br />
Or make it as what I do:<br />
Find the sentence about fetching all post like:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>replace with</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cat=55&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That is to choose those category belong to &#8220;tour&#8221; (ID =55).<br />
Then find and delete the part of post content:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">                &lt;div class=&quot;content&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;div class=&quot;fixed&quot;&gt;&lt;/div&gt;
		&lt;/div&gt;</pre></td></tr></table></div>

<p>Then we got a &#8220;list&#8221; that display the post only with those title and some meta information. <a href="http://www.solesky.com/footprints/">Like this</a>
</li>
<li> : Add page called &#8220;footprints&#8221; that using this template and publish~ </li>
<p>       In fact there is another way to do that, by using the search feature of word press.</p>
<ol>
<li> : We need a search link that show the post related to tour. <a href="http://www.solesky.com/category/tour-fun/">Like this: http://www.solesky.com/category/tour-fun/</a>
</li>
<li> : Create a template called tour2.php by copying the index.php and add a heading like this:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: tour
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;script&gt;location=&quot;http://www.solesky.com/category/tour-fun&quot;&lt;/script&gt;</pre></td></tr></table></div>

</li>
<p>Maybe you are clear now. This time we use the script to make a automatic &#8220;jump&#8221; to the search page of &#8220;tour&#8221;. That also make a good list for us. But this time we can&#8217;t modify the detail such as the order and meta and so on. Anyway, this methods is easier~
</li>
<p>OK, the &#8220;footprints&#8221; page show a list of posts about all my tour.<br />
Then I have to create different feature like Yangshuo tour feature.</p>
<p>The steps are quite similar. Create a template file called &#8220;yangshuo&#8221; and do step 1 as when we create the &#8220;tour.php&#8221; above.</p>
<p>Now we find the codes</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>And modify it to display only on the topic about Yangshuo.<br />
This time we use tag selection instead, so we replace this line by:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tag=yangshuo&amp;order=ASC'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
       <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s to say we only query the posts those have Yangshuo tag from database.</p>
<p>And I don&#8217;t modify the rest part cause I want to display the content.</p>
<p><a href="http://www.solesky.com/footprints/yangshuo/">Like this</a></p>
<p>Then make a sub page called &#8220;Yangshuo&#8221; belongs to the &#8220;footprint&#8221; page using this template file and publish~<br />
~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/07/create-a-page-of-posts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Out of The Wall</title>
		<link>http://www.solesky.com/2009/07/out-of-the-wall/</link>
		<comments>http://www.solesky.com/2009/07/out-of-the-wall/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 08:53:24 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[GFW]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=800</guid>
		<description><![CDATA[BBC sources in China report they have been unable to open the Twitter messaging site in Shanghai and that message boards on Xinjiang on a number of websites were not taking posts.
Reports from Xinjiang suggest some internet and mobile phone services have been blocked.
Analysts say the government&#8217;s so-called Great Firewall of China, which it uses [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>BBC sources in China report they have been unable to open the Twitter messaging site in Shanghai and that message boards on Xinjiang on a number of websites were not taking posts.</p>
<p>Reports from Xinjiang suggest some internet and mobile phone services have been blocked.</p>
<p>Analysts say the government&#8217;s so-called Great Firewall of China, which it uses to block unwanted Internet material, will prevent large-scale dissemination of information but that dedicated Internet users can bypass it fairly easily.</p></blockquote>
<p>From <a href="http://news.bbc.co.uk">BBC news</a></p>
<div class="wp-caption alignright" style="width: 210px"><img title="GW" src="http://static.bowenwang.com.cn/gif/mtg-beijing-sidetrips-2.jpg" alt="GW" width="200" height="134" /><p class="wp-caption-text">Great Wall</p></div>
<p>Ok, as we know, because of some reasons, the Internet of the mainland area of China is in a state of emergency. Lots of foreign web sites are blocked and many of the internal web sites also stand by at once for the information strike. And this time, GFW can show its power again. First, I am not interesting about any political conflict or which side is right. Because the truth is hard to figure out. Second, many not related sites are blocked innocently maybe just because they are sharing the same IP or within the same IP range of the sites which have &#8220;problems&#8221;. So I think it&#8217;s necessary to find a way to make it.</p>
<p>Many friends are seeking ways to go through this &#8220;wall&#8221; and I was asked about this questions many times. So I want to share a &#8220;easy way&#8221; to build such ladder.</p>
<div class="wp-caption alignleft" style="width: 57px"><img title="Tor" src="http://security.ngoinabox.org/sites/all/files/u12/tor.png" alt="Tor" width="47" height="64" /><p class="wp-caption-text">Tor</p></div>
<p>&#8220;Tor&#8221; is design to increase the anonymity of our activities on the Internet. It disguises your identity and protects your online activities from many forms of Internet surveillance. It can also be used to bypass Internet filtering.</p>
<p>To explain in a simple way, it&#8217;s a P2P software that makes the people to be the proxy hosts to those who are also using this softwares. So we are all proxy hosts and we can let our never seen &#8220;friend&#8221; to be our proxy hosts. This feature also bring an additional usage, to bypass the GFW <img src='http://www.solesky.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<p>Installing tor is easy for everyone, but to make it work with other softwares, like the browser or IM maybe is a little difficult for them.</p>
<p>So I want to introduce a &#8220;tor suit&#8221; that give you a &#8220;one-stop&#8221; service. <img src='http://www.solesky.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </p>
<p><span id="more-800"></span></p>
<p>Tor Browser:</p>
<p><a href="http://security.ngoinabox.org/sites/all/security/files/portable/tor-browser-1.2.0_en-US.exe">tor with configured FF</a></p>
<p>and<a href="http://security.ngoinabox.org/sites/all/security/files/portable/tor-im-browser-1.2.0_en-US.exe"> tor with configured FF &amp; IM &amp; more </a></p>
<p>After extracting the files, a new folder named <em>Tor Browser</em> will appear in the chosen location. All you need to do is open the &#8220;Star Tor Browser.exe&#8221; .</p>
<p>Wish you will like it  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_wink.gif' alt=':wink:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/07/out-of-the-wall/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
