<?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>LJ&#039;s life in US</title>
	<atom:link href="http://www.zh-cn.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zh-cn.org</link>
	<description>No Theme</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:40:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tips on compiling ipopt and pyipopt</title>
		<link>http://www.zh-cn.org/en/2012/01/26/english-tips-on-compiling-ipopt-and-pyipopt/</link>
		<comments>http://www.zh-cn.org/en/2012/01/26/english-tips-on-compiling-ipopt-and-pyipopt/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 23:37:33 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Study]]></category>
		<category><![CDATA[ipopt]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[pyipopt]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=601</guid>
		<description><![CDATA[This post describes some tips on building the ipopt package and pyipopt package from source. IPOPT is part of the coin-or project, and pyipopt provides an interface of ipopt to python. Thanks to the author of pyipot, Eric You Xu, for providing me some insightful hint. The reason for me to build these packages is to use them in openopt, which I [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes some tips on building the ipopt package and pyipopt package from source. <a title="IPOPT" href="https://projects.coin-or.org/Ipopt">IPOPT</a> is part of the coin-or project, and <a href="https://github.com/xuy/pyipopt">pyipopt</a> provides an interface of ipopt to <a title="Python" href="http://www.python.org">python</a>. Thanks to the author of pyipot, <a title="徐宥" href="http://blog.youxu.info/">Eric You Xu</a>, for providing me some insightful hint. The reason for me to build these packages is to use them in <a title="Openopt" href="http://openopt.org">openopt</a>, which I may write another post to describe.</p>
<p>The current version of ipopt is 3.10.1, and the current version of pyipopt is 0.8. The author of openopt Dmitrey claims that recent versions of ipopt does not work well together with openopt, and he uses version 3.8.3. Anyway, the focus of this post is to build ipopt and pyipopt. I use ubuntu 11.10 within a vmware virtual machine. There is a 3.9 version ipopt in ubuntu repository, however that one does not work well when compiling pyipopt, which motivated me to build by myself.</p>
<p>The document of ipopt is fabulous. However, there are so many steps that you may easily miss some. <strong>This post is by no means a replacement of the original document.</strong> So before you have any questions, make sure you have read the original document carefully.</p>
<h1>Tip 1, remove existing ipopt</h1>
<p>I had ipopt 3.9.1 from the ubuntu repository installed, but I did not check that. So I had everything built successfully, but bunches of errors when trying to import pyipopt in python. Thus, remember to uninstall existing ipopt before you start.</p>
<h1>Tip 2, BLAS</h1>
<p>ubuntu has a pre-compiled BLAS library, or if you have MKL, you may have your own BLAS. So I thought I could supply these library without downloading the source of BLAS. Everything worked well at ipopt side. However, when it comes to pyipopt, you will find yourself missing all kinds of symbols. So, even you have BLAS installed, do not supply it use the &#8211;with-BLAS options. Remember to download BLAS and LAPACK source. Refer to the Thirdparty directory of the ipopt source package for detailed information. By the end, you will get libcoinblas.so, libcoinlapack.so, which are useful to build pyipopt. If you don&#8217;t do this, very possibly you will get an error when importing pyipopt stating certain symbols are not defined.</p>
<h1>Tip 3, HSL</h1>
<p>Well, this maybe not a tip, but a work around.  The files I downloaded from HSL website have different names as described in ipopt document. Thus, in order to use MA57 and MC19, I have to build them separately and supply them as pre-compiled library using the &#8211;with-hsl option. Read the help file came with MA57 to detailed information of compiling them.</p>
<h1>Tip 4, Modify the configuration files</h1>
<p>You actually do not need to modify anything for the ipopt configuration file. However, for pyipopt, make sure you modify the makefile and setup.py file to reflect the environment of your <strong>own</strong> machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2012/01/26/english-tips-on-compiling-ipopt-and-pyipopt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choice of optimization tools</title>
		<link>http://www.zh-cn.org/en/2011/10/08/english-choice-of-optimization-tools/</link>
		<comments>http://www.zh-cn.org/en/2011/10/08/english-choice-of-optimization-tools/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 09:55:56 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Study]]></category>
		<category><![CDATA[ampl]]></category>
		<category><![CDATA[cplex]]></category>
		<category><![CDATA[gurobi]]></category>
		<category><![CDATA[modeling]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[optimJ]]></category>
		<category><![CDATA[pulp]]></category>
		<category><![CDATA[tomlab]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=586</guid>
		<description><![CDATA[Recently, my lab mates asked me to recommend some tools for mathematical programming. I would like to share some of my experience on this. My first optimization related project dates back 5 years ago, when I needed to improve some models built by some other senior students. Those models were written in AMPL, using cplex [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, my lab mates asked me to recommend some tools for mathematical programming. I would like to share some of my experience on this.</p>
<p>My first optimization related project dates back 5 years ago, when I needed to improve some models built by some other senior students. Those models were written in AMPL, using cplex as a solver. My preferred computation tool was Matlab at that time, but cplex did not support Matlab yet. What I did was some thing really dirty. I wrote script to generate AMPL data files in Matlab,  parse the screen print out of AMPL and then send back to Matlab. Until recently, I got to know that <a href="http://tomopt.com/tomlab/products/ampl/">TOMLAB</a> provides an interface between AMPL and Matlab. Actually, if you use Matlab a lot, there are more interfaces provided by TOMLAB.</p>
<p>Later I need to use column generation to solve a problem, and by then I started to use the C++/Concert/Cplex tool chain. Honestly, it is more time-consuming to learn this, and less efficient to write models. However, it does offer more control to the solve engine. I would be satisfied with this solution, until <a href="http://www.gurobi.com/">Gurobi</a> came out. Then I think, maybe I want to switch among solvers to see which one fits my problem best. However, if you have your model written with C++ and concert, basically it means to rewrite the model again with Gurobi API again if you really want to use Gurobi. At this time, I would really appreciate AMPL, which has interface to many mainstream solvers.</p>
<p>The story did not stop here. Later on, I started a new project, where optimization was just part of the problem, statistical modeling was another part. At that time, I suddenly got some interests on <a href="http://python.org/">Python</a>, and switched almost everything to Python and <a href="http://www.r-project.org/">R</a>. When cplex 12 came out, it started to provide a Python API. Same problem, I wanted to try different solvers,  but there is no interface between Python and AMPL. This time, I tried to have a better solution rather than parsing screen output. I heard about <a href="https://software.sandia.gov/trac/coopr/wiki/Pyomo">Pyomo</a> in <a href="http://informs.org/">INFORMS</a> southwest regional meeting. I liked this idea very much, but there was not much document available. After googling around, I found a similar tool, <a href="http://code.google.com/p/pulp-or/">pulp</a>, which gives similar functionality as AMPL, but within Python. I finished one project with pulp, and it did quite good job, except that it does not support 64 bit cplex, either in Windows or Linux. Pulp has relatively better documentation than Pyomo, but most of the time you need to reply on their examples to figure out how to use it.</p>
<p>Finally, I would suggest to put a middle layer between modeling and the actual solve engine for two reasons:</p>
<ul>
<li>A modeling language usually provide better readability of the models and easier to writer models.</li>
<li>A modeling middle layer enables you to switch among different solvers much easier.</li>
</ul>
<p>AMPL is good, but it is really hard to interact with other languages. IBM OPL is another choice, but it only supports solvers from IBM, i.e. cplex and cp. In python, you could choose pulp or Pyomo. There is also a package called <a href="http://www.ateji.com/optimj/index.html">optimJ</a>, which provides same functionality as pulp, but within JAVA. I haven&#8217;t tried this out yet, but it looks promising.</p>
<p>As a student, pricing of the tools also concerns me. For your information, I made the following list</p>
<p>AMPL: usually not free, may be available from your department if you are in an IE or OR department</p>
<p>cplex studio: free for academia use. Includes OPL, cplex, cp</p>
<p>Gurobi: free for academia use</p>
<p>TOMLAB: commercial</p>
<p>optimJ: The company is close, the products are free~~~</p>
<p>pulp: MIT license</p>
<p>Pyomo: BSD license</p>
<p>There are some open source solvers I did not mention in this post just because I did not use them. For example, lp_solver, cvxopt. Non linear solvers are not covered as well. For a complete guide of solver choice, I suggest you go to Dr. Mittelmann&#8217;s website: <a href="http://plato.asu.edu/guide.html">http://plato.asu.edu/guide.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2011/10/08/english-choice-of-optimization-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SETTING UP A RAPACHE ENVIRONMENT</title>
		<link>http://www.zh-cn.org/en/2011/05/19/english-setting-up-a-rapache-environment/</link>
		<comments>http://www.zh-cn.org/en/2011/05/19/english-setting-up-a-rapache-environment/#comments</comments>
		<pubDate>Fri, 20 May 2011 00:15:48 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Study]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[rapache]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=554</guid>
		<description><![CDATA[The package Rapache is only available under *nix based operating systems, such as Linux, Unix and Mac. This document describes how to setup a Rapache environment in Linux, especially under Ubuntu. At the time I set up the server, I had no experience setting up a web server from scratch. Thus some steps may be [...]]]></description>
			<content:encoded><![CDATA[<div>The package Rapache is only available under *nix based operating systems, such as Linux, Unix and Mac. This document describes how to setup a Rapache environment in Linux, especially under Ubuntu. At the time I set up the server, I had no experience setting up a web server from scratch. Thus some steps may be not necessary. The goal of this tutorial is to make the useR2007 example run. <span id="more-554"></span></div>
<h1>STEP 1 SET UP THE OPERATING SYSTEM</h1>
<div>Get a Linux box, if you don’t have a spare machine, virtual machine is a good choice. There are different choices for virtualization. Make sure you have a modern CPU that supports virtualization. In this example, I use vmware workstation; other choices include <a href="http://www.virtualbox.org">virtual box</a> and virtual pc from Microsoft. Install the system in normal way. Since I am using the virtual machine as a developer machine, I chose desktop edition rather than server edition of Ubuntu 11.04.</div>
<h1>STEP 2 INSTALL RAPACHE</h1>
<div>Note that here is the installation, rather than configuration. Follow the manual from Rapache website, you can run the following commands:</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install r-base-dev apache2-mpm-prefork apache2-prefork-dev
wget http://biostat.mc.vanderbilt.edu/rapache/files/rapache-latest.tar.gz
rapachedir=`tar tzf rapache-latest.tar.gz   | head -1`
tar xzvf rapache-latest.tar.gz
cd $rapachedir
./configure
make
sudo make install
</pre>
<p>You may need to provide administrator password for the last command. By doing so, you have R, Apache and Rapache installed.</p></div>
<h1>STEP 3 SET UP R</h1>
<div>Install all the necessary packages you need. Try to install the package via Ubuntu package manager first, as it will install the package to the site library directly. If it is not there, use the </p>
<pre class="brush: r; title: ; notranslate">install.packages() </pre>
<p>command inside R to install. Open a terminal (Alt+F2, type terminal), and run R with <strong>sudo</strong>. </p>
<pre class="brush: bash; title: ; notranslate"> sudo R</pre>
<p>This is because we want to install the R package into site library.</p></div>
<div>Check the library paths by </p>
<pre class="brush: r; title: ; notranslate">
.libPaths()
[1] &quot;/usr/local/lib/R/site-library&quot; &quot;/usr/lib/R/site-library&quot;
[3] &quot;/usr/lib/R/library&quot;
</pre>
<p>Don’t forget the <strong>.</strong> in front of the command. When installing the package, specify the lib. For example, if you want to install the package called “qcc”, type</p>
<pre class="brush: r; title: ; notranslate">install.pacakages(‘qcc’,lib=&quot;/usr/local/lib/R/site-library&quot;)</pre>
<p>This is important!! otherwise the R initialize by Rapache may not be able to find the library.</p></div>
<h1>STEP 4 CONFIGURE A RAPACHE ENABLED SITE</h1>
<div>Now we start to configure the site. Suppose your home directory is /home/ilpil and you want to create site that hold all the files under /home/ilpil/www/ Create a configure file under /etc/apache2/sites-available. Let’s name it rapache, well, you can name whatever name you like. Here is the content of my configuration file, modified according to the Rapache manual and based on the configuration file inside the Rapache installation package. </div>
<pre class="brush: bash; title: ; notranslate">
&lt;VirtualHost *:80&gt;
	ServerAdmin LJ@localhost
	LoadModule R_module /usr/lib/apache2/modules/mod_R.so
	# Place this in the config file to turn error messages into HTML which
	# are printed in the browser. Without this, all warning and error messages
	# are printed to the Apache error log file.

	ROutputErrors
	DocumentRoot &quot;/home/ilpil/www&quot;
	REvalOnStartup &quot;setwd('/home/ilpil/www/') &quot;
	RSourceOnStartup &quot;./R/startup.r&quot;

	&lt;Directory /&gt;
	    Options FollowSymLinks
	    AllowOverride None
	#	Order allow,deny
	#	Allow from all
	&lt;/Directory&gt;

	&lt;Location /RApacheInfo&gt;
		SetHandler r-info
	&lt;/Location&gt;

	&lt;Location /hello&gt;
        	SetHandler r-handler
		RFileHandler /home/ilpil/www/helloworld.r
	&lt;/Location&gt;

	&lt;Location /sendBin&gt;
		SetHandler r-handler
		RFileHandler /home/ilpil/www/sendBin.r
	&lt;/Location&gt;

	&lt;Directory /home/ilpil/www/brew&gt;
		SetHandler r-script
		RHandler brew::brew
	&lt;/Directory&gt;

	&lt;Location /R&gt;
	        SetHandler r-handler
	        RFileHandler /home/ilpil/www/test.R
	&lt;/Location&gt;

	&lt;Location /Rblah&gt;
        	SetHandler r-handler
		RFileHandler /home/ilpil/www/test.R::main
	&lt;/Location&gt;

	# Prints out a nice report about R running within Apache

	&lt;Directory /&gt;
		Options FollowSymLinks
		AllowOverride None
	&lt;/Directory&gt;

	&lt;Directory /home/ilpil/www/&gt;
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	&lt;/Directory&gt;

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	&lt;Directory &quot;/usr/lib/cgi-bin&quot;&gt;
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	&lt;/Directory&gt;

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ &quot;/usr/share/doc/&quot;
    &lt;Directory &quot;/usr/share/doc/&quot;&gt;
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    &lt;/Directory&gt;

&lt;/VirtualHost&gt;
</pre>
<div>After creating this configuration file, go back to the terminal. Run the following code to enable the site</p>
<pre class="brush: bash; title: ; notranslate">
sudo a2dissite default
sudo a2ensite Rapache
sudo /etc/init.d/apache2 reload
</pre>
<p>So far, everything should be fine. You can test it by visiting <strong>http://localhost/RApacheInfo</strong> from your own machine to see if everything is working well. </div>
<h1>STEP 5 THE USER2007 EXAMPLE</h1>
<div> Now we come to the setting of useR2007 example.  Copy all the files in test directory inside the installation package to /home/ilpil/www Open useR2007.rhtml with an editor and change the external files to the right position. For example,</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;plot&quot;&gt;&lt;% brew('test/brew/useR2007plot.rhtml') %&gt;&lt;/div&gt;</pre>
<p>should be changed to</p>
<pre class="brush: xml; title: ; notranslate"> &lt;div id=&quot;plot&quot;&gt;&lt;% brew('/brew/useR2007plot.rhtml') %&gt;&lt;/div&gt;</pre>
<p>Similar changes should be made in the useR2007.js, useR2007plot.rhtml and other files. I did not check all the files. When you have any wired problem, remember to check back if the links are pointing to the right place. </p>
<p>To have this example run, you need to install extra packages Hmisc and Cairo. In order to install Cairo, you need to have <strong>libxt</strong> installed in your system. I installed X11 dev packages before I did this, so I am not sure if X11 dev packages are necessary for Cairo. </div>
<h1>LAST CAUTION</h1>
<div>This setting is meant to be a developer machine, which did not consider any security issue, as I do not know much about it. Ask a security specialist before you making anything online public. There is one flaw that the sendbin example doesn&#8217;t work. However, if I change the file name to helloworld.r and run it as localhost/hello, it actually works. So I suspect my Apache configuration file contains some mistakes. Anyway, this pretty much made the useR2007 example work. </div>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2011/05/19/english-setting-up-a-rapache-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>(中文) 情分，缘分</title>
		<link>http://www.zh-cn.org/en/2010/08/08/%e6%83%85%e5%88%86%ef%bc%8c%e7%bc%98%e5%88%86/</link>
		<comments>http://www.zh-cn.org/en/2010/08/08/%e6%83%85%e5%88%86%ef%bc%8c%e7%bc%98%e5%88%86/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 09:12:45 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[文艺]]></category>
		<category><![CDATA[电影]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=520</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2010/08/08/%e6%83%85%e5%88%86%ef%bc%8c%e7%bc%98%e5%88%86/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Will I ever buy a mac again?</title>
		<link>http://www.zh-cn.org/en/2009/11/17/english-will-i-ever-buy-a-mac-again/</link>
		<comments>http://www.zh-cn.org/en/2009/11/17/english-will-i-ever-buy-a-mac-again/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 05:16:36 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=430</guid>
		<description><![CDATA[I bought a mac, a few months. I was happy, but that did not last long. First, it is really really hot. I don&#8217;t know if I should give a positive or negative rate on this point. Recently, the weather is quite cold, and the hot macbook turns out to be really comfortable. However, I [...]]]></description>
			<content:encoded><![CDATA[<p>I bought a mac, a few months. I was happy, but that did not last long.</p>
<p>First, it is really really hot. I don&#8217;t know if I should give a positive or negative rate on this point. Recently, the weather is quite cold, and the hot macbook turns out to be really comfortable. However, I am living in ARIZONA~~~, the center of dessert, which means it will be too hot for most of the time in a year <img src='http://www.zh-cn.org/WP/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Next, I was told Apple was equal to high quality. Unfortunately, I just made my second appointment for repair today. The lid has some awful sound when being closed. Every time I close my computer, I felt it was going to be broken. I already spent some time in transferring from windows to mac, and now, I spent even more time to contact the custom care. Well, I admit that there custom care is very good, but, the best customer service I want is no service at all. Like my old thinkpads, the first one, I used for 3 years, never need to contact customer  service. The second one, only contacted customer service once at the end of the second year, right before the expiration of my warranty. The most ironic thing is that I persuaded three people to buy a thinkpad and I bought a macbook myself. It turns out all the thinkpad guys are happy, and I am busy contacting apple customer service, FML~~~~</p>
<p>Well, anyway, I have to drive 15 miles to go to the nearest apple store to get it fixed. Hopefully, this time they give me another new macbook. If so, I could say I change three mac book in 5 months~~ hoho. Maybe I will buy a new PC as soon as I have money. My friends were joking, LJ&#8217;s example is better than any &#8220;buy a PC&#8221; commercial~~~ Come on, Microsoft, give me some money to buy a PC, LOL</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2009/11/17/english-will-i-ever-buy-a-mac-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A video I like</title>
		<link>http://www.zh-cn.org/en/2009/09/07/%e5%be%88%e6%9c%89%e6%84%9f%e8%a7%89%e7%9a%84%e4%b8%80%e4%b8%aa%e8%a7%86%e9%a2%91/</link>
		<comments>http://www.zh-cn.org/en/2009/09/07/%e5%be%88%e6%9c%89%e6%84%9f%e8%a7%89%e7%9a%84%e4%b8%80%e4%b8%aa%e8%a7%86%e9%a2%91/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 23:48:34 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=398</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/uy0HNWto0UY&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/uy0HNWto0UY&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2009/09/07/%e5%be%88%e6%9c%89%e6%84%9f%e8%a7%89%e7%9a%84%e4%b8%80%e4%b8%aa%e8%a7%86%e9%a2%91/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Sorry, Apple</title>
		<link>http://www.zh-cn.org/en/2009/07/25/%e4%b8%8d%e5%a5%bd%e6%84%8f%e6%80%9d%e5%86%a4%e6%9e%89%e8%8b%b9%e6%9e%9c%e4%ba%86/</link>
		<comments>http://www.zh-cn.org/en/2009/07/25/%e4%b8%8d%e5%a5%bd%e6%84%8f%e6%80%9d%e5%86%a4%e6%9e%89%e8%8b%b9%e6%9e%9c%e4%ba%86/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 04:49:07 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Backlit]]></category>
		<category><![CDATA[键盘灯]]></category>
		<category><![CDATA[MacBook]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=378</guid>
		<description><![CDATA[I bought my new 13&#8242; MacBook Pro a few weeks ago, and replaced a new one from Apple for free because I found the backlit keyboard was &#8220;NOT&#8221; working.  Since I upgraded the hard driver and the memory by myself, I was conjecturing that I broke the backlit. However, I clearly remembered that the backlit [...]]]></description>
			<content:encoded><![CDATA[<p>I bought my new 13&#8242; MacBook Pro a few weeks ago, and replaced a new one from Apple for free because I found the backlit keyboard was <strong>&#8220;NOT&#8221;</strong> working.  Since I upgraded the hard driver and the memory by myself, I was conjecturing that I broke the backlit. However, I clearly remembered that the backlit worked the day after I did my upgrade. So, I was totally confused. For my own safety, I decided to ask Apple to replace the computer since I just bought it less than 5 days at that time. To my surprise, they happily replaced a new one for me.</p>
<p>Unfortunately, I found the backlit weirdly stopped working sometimes just like the previous one. Since I spent a lot of time to go to the apple store for that replacement, I decided not to replace again this time. However, I couldn&#8217;t help googling this. To my surprise again, there is a light sensitive controller for the backlit. If the environment light is strong enough, no matter how hard you hit the increase backlit light button, the light will kept off. So what? the first computer was not a defected one at all!!! What&#8217;s more, Apple replaced that for a non-existing defect.</p>
<p>I appreciate the customer service Apple provided, but who is going to pay for that? We end user!!!!! There was never a person told me that there was such a controller working behind, not even the repairman in the Apple store. If he told me that, I don&#8217;t think I would do the replacement. Every apple customer is enjoying this kind of superb and luxury customer service, maybe some of them are not conscious that they are actually paying for this customer service. Their service is impressive, but I think the best customer service is &#8220;no need for service&#8221;.  I don&#8217;t know if apple can squeeze more waste from their &#8220;service chain&#8221;, will they lower the price for the Macs? Maybe being expensive is just what they want, even they can save money from here and there.</p>
<p>BTW: you can get a small free software from <a href="http://labtick.proculo.de/" target="_blank">Lab Tick</a>, so you can fully control the backlit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2009/07/25/%e4%b8%8d%e5%a5%bd%e6%84%8f%e6%80%9d%e5%86%a4%e6%9e%89%e8%8b%b9%e6%9e%9c%e4%ba%86/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>介绍家乡的一个视频</title>
		<link>http://www.zh-cn.org/en/2009/06/16/%e4%bb%8b%e7%bb%8d%e5%ae%b6%e4%b9%a1%e7%9a%84%e4%b8%80%e4%b8%aa%e8%a7%86%e9%a2%91/</link>
		<comments>http://www.zh-cn.org/en/2009/06/16/%e4%bb%8b%e7%bb%8d%e5%ae%b6%e4%b9%a1%e7%9a%84%e4%b8%80%e4%b8%aa%e8%a7%86%e9%a2%91/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 08:28:40 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=363</guid>
		<description><![CDATA[A video introducing my hometown, Ruian, Zhejiang, mainly about local history and culture. Unfortunately, it is only in Chinese since it was broadcast in CCTV 1o.]]></description>
			<content:encoded><![CDATA[<p>A video introducing my hometown, <a title="ruian,zhejiang" href="http://en.wikipedia.org/wiki/Ruian" target="_blank">Ruian, Zhejiang</a>, mainly about local history and culture. Unfortunately, it is only in Chinese since it was broadcast in <a title="CCTV 10" href="http://en.wikipedia.org/wiki/CCTV_10" target="_blank">CCTV 1o</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="src" value="http://player.youku.com/player.php/sid/XOTUzNjMzODQ=/v.swf" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://player.youku.com/player.php/sid/XOTUzNjMzODQ=/v.swf" quality="high" align="middle"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2009/06/16/%e4%bb%8b%e7%bb%8d%e5%ae%b6%e4%b9%a1%e7%9a%84%e4%b8%80%e4%b8%aa%e8%a7%86%e9%a2%91/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>温州话的rap，又出新的了</title>
		<link>http://www.zh-cn.org/en/2009/03/14/%e6%b8%a9%e5%b7%9e%e8%af%9d%e7%9a%84rap%ef%bc%8c%e5%8f%88%e5%87%ba%e6%96%b0%e7%9a%84%e4%ba%86a-wenzhounese-rap/</link>
		<comments>http://www.zh-cn.org/en/2009/03/14/%e6%b8%a9%e5%b7%9e%e8%af%9d%e7%9a%84rap%ef%bc%8c%e5%8f%88%e5%87%ba%e6%96%b0%e7%9a%84%e4%ba%86a-wenzhounese-rap/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 07:28:47 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=266</guid>
		<description><![CDATA[Well, although I put it here, I don&#8217;t think any English speaking people can understand this. It is in a Chinese Dialect, which is only spoken by people from the city of  Wenzhou.]]></description>
			<content:encoded><![CDATA[<p>Well, although I put it here, I don&#8217;t think any English speaking people can understand this. It is in a <a href="http://en.wikipedia.org/wiki/Oujiang_Chinese" target="_blank">Chinese Dialect</a>, which is only spoken by people from the city of  <a href="http://en.wikipedia.org/wiki/Wenzhou" target="_blank">Wenzhou</a>.</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/bP_jj5QHWg4&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/bP_jj5QHWg4&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2009/03/14/%e6%b8%a9%e5%b7%9e%e8%af%9d%e7%9a%84rap%ef%bc%8c%e5%8f%88%e5%87%ba%e6%96%b0%e7%9a%84%e4%ba%86a-wenzhounese-rap/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>多语言解决方案</title>
		<link>http://www.zh-cn.org/en/2009/03/08/%e5%a4%9a%e8%af%ad%e8%a8%80%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88multi-language-blog-solution/</link>
		<comments>http://www.zh-cn.org/en/2009/03/08/%e5%a4%9a%e8%af%ad%e8%a8%80%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88multi-language-blog-solution/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 06:07:06 +0000</pubDate>
		<dc:creator>L.J.</dc:creator>
				<category><![CDATA[Everything]]></category>

		<guid isPermaLink="false">http://www.zh-cn.org/?p=248</guid>
		<description><![CDATA[A friend from my old lab always asks me to write blog in English. However, I did not do it because of  two reasons: My English sucks. As a professor told me: LJ, you are absolutely not the person has the best grammer I know. However, since I still need to live in this English [...]]]></description>
			<content:encoded><![CDATA[<p>A friend from my old lab always asks me to write blog in English. However, I did not do it because of  two reasons:</p>
<ol>
<li>My English sucks. As a professor told me: LJ, you are absolutely not the person has the best grammer I know. However, since I still need to live in this English speaking country in the predictable future, I have to improve it.</li>
<li>My original Blog was in Chinese, on which I spent a lot time in customizing the back end platform, thus I was always not willing to start a new one.</li>
</ol>
<p>Thanks to <a title="qTranslate" href="http://www.qianqin.de/qtranslate/" target="_blank">somebody</a>,  it is possible to write multi-language blog with one system now.  This is the first bi-lingual post, although I had some English post previously.</p>
<p>For any page in my blog, append <strong>&amp;lang=en</strong> to the adrress, you will see the English version if it is available. I will add a link in each page to change the language later.</p>
<p>Right now, the site also choose the display language according to your system language setting. So, if you are using English system to visit here, you will only see the English ones, but if you want to read the Chinese ones, you need to click the Chinese flag.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zh-cn.org/en/2009/03/08/%e5%a4%9a%e8%af%ad%e8%a8%80%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88multi-language-blog-solution/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
	</channel>
</rss>

