&#65279 is the culprit for mysterious white gaps

August 29th, 2017 No comments

I’m coding html with Visual studio, and has become so frustrated that CSS sometimes doesn’t work and there are some mysterious white gaps.

After struggling for hours I’ve just noticed that there are some “&#65279” in the code.

These characters are byte order marks (BOMs), aka “zero width no-break space”. These are totally invisible in the editor (but if you open it in Word and show the hidden marks, they’ll show). In Word they can be replaced with ^u8520.

Visual Studio saves UTF-8 files “with signature” by default, which also saves the BOM characters.

The remedy is to choose the encoding “UTF-8 without signature”…

Categories: Technical Tags:


July 13th, 2016 No comments

Sorry, this entry is only available in 中文.


June 15th, 2016 No comments

Sorry, this entry is only available in 中文.

Categories: Miscellaneous Tags:

Interview with Prof. Cédric Villani

May 6th, 2016 No comments

On April 9, during Prof. Villani’s visit to Shanghai, we had an interview with him on behalf on Turing Book. We would like to thank Prof. Villani for having this interview, and Prof. Yaguang Wang of Shanghai Jiao Tong University and Prof. Benoît Vermander of Fudan University for the coordiation.
IMG_4029s P1060885ss

Read more…

Categories: Technical Tags: ,


May 1st, 2016 No comments


Categories: Piggy Drawings Tags:


April 26th, 2016 4 comments

Windows never fails to give surprises. Windows always fails to give surprises. One hour ago, out of the blue (pun intended) my Windows 10 went to the blue (screen of death) of some VIDEO_TDR_FAILURE. Maybe I was pushing the system to its limit, I thought. So naturally I rebooted. To my horror, the system now comes directly to another blue screen, saying “BAD_SYSTEM_CONFIG_INFO”.

The system automatically went through some diagnosis and to no avail. I rebooted to safe mode, to no avail.

According to Microsoft, “This bug check indicates that there is an error in the registry.” The solution is:

  1. Try restarting the computer by selecting “last known good configuration” in the boot options.
  2. If the restart does not fix the problem, the registry damage is too extensive. You must reinstall the OS or use the Emergency Repair Disk (ERD) that you previously created by using the Windows Backup tool.

Well, that is very informative – but indeed it is, which tells us to look into the registry. So I boot into the command prompt, go to D:\Windows\System32\config which is where the registry is stored. In this directory there is a hidden folder called RegBack which is a backup of the registry. That is our savior.

So I created another backup folder, copied everything into the backup folder, and used the files in RegBack to overwrite those in D:\Windows\System32\config. Reboot, and the system is back to life.

Happy playing

February 2nd, 2016 No comments


Categories: Piggy Drawings Tags:


January 4th, 2016 No comments

Sorry, this entry is only available in 中文.

Categories: Miscellaneous Tags:

正态分布随机数的生成 (2)

November 16th, 2015 1 comment

Sorry, this entry is only available in 中文.

VMware Player upgrade / uninstallation error

November 9th, 2015 No comments

I recently tried to uninstall VMware player 7.1.2 – you know what? It popped up an error

The MSI '' failed

What exactly does it mean?… Well there’s a KB article on it kb.vmware.com/kb/1031302, which … again tells you ALMOST nothing. Look at the 500+ voting of 1 star.

Read more…

Categories: Technical Tags: ,