Two memebers of one of my teams left me today, and I feel a little depressed. Everytime this kind of things happen, I will check myself and ask why.

There are several resons that I can conclude, listed below.

Firstly, belief. Simon Sinek pointed that first why then trust. Those people who do not beleive what I believe will not trust me or trust what I am doing. Let put it more clear, if they are not interested in the thing, they feel bored or meaningless, they quit.

Secondly, attaction. There are moments I am totally attracted by some leaders and I think it is also true that if you are attractive enough, you will get more people who would like to cooperate with you. If you are not so attractive, they quit.

Thirdly, benefits. If they see no value in it, if they could not get anything for what they are doing, they quit.

Yeah, something like this.

Windows: change keyboard layout to Japanese in Windows 8

Accidentally, I have my MacBook (MC516) keyboard changed to Japanese layout after a water-pouring hazard happened to him. Keyboard layout switching work is automatic in OS X and easy to be done in Linux (KDE environment), but I had a little trouble in Windows 8 since there is no GUI options.

After reading this article:


I managed to get it switched:

  1. launch Device Management (Win+X, M);
  2. double click keyboard, select “Driver”-“Update Driver…”;
  3. select “Browse”-“Select from List”-Uncheck “Show Compatible Hardwars”-“(Standard Keyboard)”-“Japanese PS/2 Keyboard (106/109 Key)”-“Next”-“Yes”;
  4. reboot;
  5. launch regedit (Win+R, regedit);
  6. navigate to “\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts”;
  7. select “00000804”, change “Layout File” from “KBDUS.DLL” to “KBDJPN.DLL”;
  8. select other keyboard layouts ends with “0804” (stands for Chinese), change “Layout File” from “KBDUS.DLL” to “KBDJPN.DLL”;
  9. reboot;
  10. everything is as cool as OS X and KDE now.

Yeah, very straightforward.

iOS: fix iCloud Tab syncing bug after jailbreak

After jailbreaking both my iPhone 5 and iPad 3rd generation, I was faced with a problem that while iPad and Mac can sync their iCloud Tabs perfectly, my iPhone refused to sync as if it was out of them. Many people said their iPad refuse to work, my doesn’t, iPad works always fine.

After many Google work I found a solution in JailbreakQA (quite a cool place):


Following to86’s comment, I managed to get iPhone’s sync back. Here I’d like to share my steps since it’s not very similar to to86’s:

  1. launch Cydia and uninstall AppSync;
  2. launch iFunBox (since I do not have iFile on iPhone), delete /var/mobile/Library/Caches/com.apple.mobile.installation.plist;
  3. this is the only file I deleted, not two files;
  4. reboot iPhone;
  5. sure you may see your AppSync-related-apps all gone in home screen but reappear after few seconds, iOS is recaching I guess;
  6. if you set iTunes to auto sync, it may sync your iPhone now, but since you uninstalled AppSync, you may be told “fail to install xxx.app”;
  7. for now your iCloud Tabs is working again actually, but you may want AppSync back;
  8. launch Cydia, install AppSync, respring as told, everything is done;
  9. so at last you have both AppSync and iCloud Tabs working.

Enjoy jailbreak.

CLI: replace one character in filenames recursively

I accidentally ran into a phenomenon that in a very big folder, I have so many files that has a character “·” and I need to remove it. At that time I have two options, either write a program my self or use existing command line tool to achieve my goal. At last I decided to use command line tool since it’s robust, well designed, commonly useful, efficient and time-saving.

All I need to know is find and rename, find tool is available on any UNIX and UNIX-like platforms, while rename is not available in Linux (AFAIC). So I used my LinuxMint to finish this task, very straightforward, here it goes:

find . -name “*.*” -exec rename ‘s/•//’ {} \;

I guess this “find . -name “xxx” {} \;” thing is just for recursive finding and “rename ‘s/•//'” did the trick of renaming.

Cool, CLI and Linux may make your life much easier. :-)


01: http://blog.tordeu.com/?p=112

02: http://stackoverflow.com/questions/3279845/bash-recursively-copy-and-rename-files

iOS: my jailbreak tweaks

After several weeks of test and learning, I finally make my iPhone 5 stable on jailbreak tweaks, I’d like to record them here.

  1. Activator, makes iPhone buttonless
  2. Auxo, yeah everybody knows it or you google it
  3. Kuaidial, Chinese dialing tweak must-have
  4. goagent-ios, GFW ting and speed up Cydia official src download if you are in China
  5. DisplayRecorder
  6. SBRotator 6, I love the feel of iPad on iPhone
  7. MobileTerminal

What’s more, I do not recommend Zephyr, it is not compatible with Activator or SBRotator 6, you may receive accidentally respring and weird UI all the time after installing it.


OS X: access IPv6 in THU with ISATAP

Tsinghua University has IPv6 network access if you use cable, sometimes Wi-Fi is also IPv6-ready but it’s never reliable. What’s more, you have to use ISATAP to get an stable IPv6 access in THU, while ISATAP is not officially supported by OS X. So you will find out that IPv6 in THU is sometimes on and down when you are using OS X.

Thank goodness somebody have find out how to fix this without any plugin installing, but some basic command line steps: http://blog.ucare.me/2012/12/15/mac下用isatap上ipv6/

sudo route delete -inet6 default
EN0_IP=`/sbin/ifconfig en0 | grep inet | grep -v inet6 | awk ‘{print $2}’`
EN1_IP=`/sbin/ifconfig en1 | grep inet | grep -v inet6 | awk ‘{print $2}’`
if [ -n “$EN0_IP” ]; then
if [ -n “$LOCAL_IP” ]; then
/sbin/ifconfig gif0 tunnel $LOCAL_IP isatap.tsinghua.edu.cn
/sbin/ifconfig gif0 inet6 2402:f000:1:1501:200:5efe:$LOCAL_IP prefixlen 64
/sbin/route add -inet6 default 2402:f000:1:1501::1

I tried it, it works. But it is not known why the IP address shown in System Preferences panel is different from the gif0 interface specified in ifconfig command.


Here are some more links talking about this issue, but they are either too old an post to giving a working workaround or using a very complex way to fix it.



OS X: hide/unhide files and folders

Let’s use ~/Desktop/1.txt and ~/Desktop/1/ for example.

Hide files and folders:

chflags hidden ~/Desktop/1.txt

chflags hidden ~/Desktop/1/

Unhide files and folders:

chflags nohidden ~/Desktop/1.txt

chflags nohidden ~/Desktop/1/

If you installed Apple developer command line tool in Xcode, you can also use the following ones.

Hide files and folders:

setfile -a V ~/Desktop/1.txt

setfile -a V~/Desktop/1/

Unhide files and folders:

setfile -a v ~/Desktop/1.txt

setfile -a v ~/Desktop/1/

It is also true that these two command makes the same effects, so you can simply use any combination of them. For example, use chflags to hide one file and use setfile to unhide it.

Source link:



On Apple begins selling unlocked iPhone 5

Source news: http://articles.washingtonpost.com/2012-11-30/business/35584471_1_16gb-model-iphone-64gb-model

I’m interested in this news because I’m also buying one. I asked my friend in HK to buy the iPhone 5 in a much lower price than it will be in the mainland. What is disappointing is that, iPhone 5 was ready for sale in HK at September 20th, but after several moths until now, I’m still waiting for the deal to be done. How come? It’s mainly because a very special phenomenon in China, ticket resale, ”Huang Niu” in Chinese.

Apple designs Macs, the best personal computers in the world, along with OS X, iLife, iWork and professional software. Apple leads the dig- ital music revolution with its iPods and iTunes online store. Apple has reinvented the mobile phone with its revolutionary iPhone and App Store, and is defining the future of mobile media and computing devices with iPad. I began to love Apple when I was in middle school and I’m thrilled by its vision of personal computing. In recent years, Apple’s products are becoming more and more popular around the world, and ticket resellers in China paid much more attention on this growing market.

There is no taxes in HK for Apple products so these devices usually price 800 to 1000 RMB lower than those sold in mainland. What’s more, HK is usually in the first class of Apple products’ release country/region. Ever heating pursuit of Apple products, much lower price, first selling place, the short distance to mainland, these four reasons make HK a per- fect place for people to buy Apple devices, and yet a perfect place for those Huang Nius to make big profit.

Let’s take iPhone 5 for example, here is how their business work. On the first day of iPhone 5 release in HK, Apple already did something to prevent Huang Nius from buying iPhone 5: there is no option for shopping online or shopping in Apple Store, everybody have to draw cuts online to reserve iPhone 5, and one ID card can only buy up to 2 models a day. Even after these rules settled, you can hardly buy an iPhone 5 in the next 3 months, since millions of Huang Nius are also drawing cuts against people who really want to buy iPhone 5!

Then it comes to the funny part, an iPhone 5 pricing 4600 RMB in HK will be sold at a price of 8000 RMB in the mainland, people in HK can hardly buy iPhone 5 just because of the big amount of Huang Nius drawing cuts everyday. I’m not alone, I’ve benign drawing cuts for 3 months since the release of iPhone 5 in HK and I got nothing for now. While being depressed, I’m full of anger on those Huang Nius, they are ruining the market and destroyed the normal trading cycle, they are kind of evil and selfish.

iPhone 5 will meet it’s release in mainland at December 14th, with this date drawing near, prices of iPhone 5 models from HK is dropping everyday, but I’m sure that when iPhone 5 is released in mainland, there will be another crowd of Huang Nius buying them, and the hard time cycles.

Dennis Wong

Dec. 2nd, 2012

Tex: Journal Template

% Template IEEE conference
% Source: https://code.google.com/p/jawi-papers/source/browse/template-IEEEconf.tex
% Wang Dexi
% 20121125


\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like “—”
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX

\setmainfont{Minion Pro} % set the main body font (\textrm), assumes Charis SIL is installed
\setsansfont{Myriad Pro}
%\setmonofont{Deja Vu Mono}

% other LaTeX packages…..
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % or letterpaper (US) or a5paper or….
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent

\usepackage{graphicx} % support the \includegraphics command and options

Dexi Wang\\
Tsinghua University, Beijing
\end{affiliation} \\
\title{Improving Data Quality: Consistency and Accuracy}



This paper is mainly based on the discussion in Gao Cong, Wenfei Fan, Floris Geerts, et al. ‘s work.



\section{Research Methodology}

% 参考文献
% xd:向东;dx:得希;zx:子璇;wz:维玺。

S. Abiteboul, R. Hull, and V. Vianu.
\newblock {\em Foundations of Databases}.
\newblock Addison-Wesley, 1994.

Philip Bohannon, Wenfei Fan, Floris Geerts, et al.
\newblock {\em Conditional Functional Dependencies for Data Cleaning},
\newblock In ICDE, 2007.

Gao Cong, Wenfei Fan, Floris Geerts, et al.
\newblock {\em Improving Data Quality: Consistency and Accuracy}.
\newblock In VLDB, 2007.

Graham Cormode, Lukasz Golab, Flip Korn, et al.
\newblock {\em Estimating the Confidence of Conditional Functional Dependencies}.
\newblock In SIGMOD, 2009.

Wenfei Fan, Floris Geerts, Jianzhong Li, et al.
\newblock {\em Discovering Conditional Functional Dependencies}.
\newblock In TKDE, 2011.



Moved all my blogs to wordpress.com

WordPress is just awesome and I know it.

Firstly, all my blogs are in http://wanderseeme.blogbus.com/, it was cool but it is just a little stupid and unprofessional, I finally got fed up with it. Then I planed to move it from blogbus.com to wordpress.com.

Later on, I moved blogbus.com to 163.com with its online moving tool: http://blog.163.com/clone/clone.html?fromToolBarCopy. It is because I found out that moving blogbus.com to wordpress.com directly is not possible.

Finally, I found a tool named “blogs-to-wordpress”, very cool and robust, all I need to concern is a few key strokes:

sudo python BlogsToWordpress.py -s http://wanderseeme.blog.163.com/

Yeah now I am here.