Hong (180)

Eliminate double spacing

Usually double spacing is caused by some text editor or control interpret both carriage return (0x0d or \r) and new line (0x0a, or \n) as starting a new line. This can be remedied by remvoing all carriage returns. For example, in Visual Studio, replace "\n"…

Continue reading...

London 2012 badminton incident – punishment of victims

The disqualification of 8 badminton athletes for their not using their best efforts is an injustice at its worst. The whole incident started with two Chinese players intentionally losing. Under the current Chinese sport system, by no means can their athletes make such an important…

Continue reading...

Issues of GNU General Public License

The GNU GPL may be good for software intended to be free, but it is generally detrimental to the software industry. It is a child of Free Software Foundation. If software was developed largely by people as a hobby, the GPL would make a lot of…

Continue reading...

Ye Shiwen, doping, etc.

The media frenzy surrounding the suspicion of Olympic gold medalist Ye Shiwen doping is unprecedented in terms of scale. The suspicion is primarily due to her mind-blowing performance in her last lap of the 400 meter individual medley. It was faster than the that of…

Continue reading...

A lion cub and a Chinese (joke)

This is a translation of a G+ post An African lion cub looks depressed. His mom asks him what is wrong. The cub said: "I have just eaten a person, probably a Chinese". The lioness reprimands the cub "Ate a person withtout checking his passport?!…

Continue reading...

Shifang, another awakening

A copper mine itself may not necessarily be a bad idea if it is transparent and well managed, but every project under the current totalitarian regime is operated in a black box in which many dirty deals can be made, numbers can be forged. The…

Continue reading...

Muscle spasm (i.e. muscle cramp)

I have had muscle spasms during training and a marathon. All of them were most likely caused by severe loss or imbalance of electrolytes. Appropriately replenishing body with electrolytes is naturally the most effective way of preventing muscle spasm. The most important thing do do after…

Continue reading...

Frederick Flather – a quintessential American

My friend Frederick Flather, a lawyer, novelist, historian, and independent thinker, passed away on Monday April 16 2012, at the age of 80. I have lost a friend with whom I have enjoyed many enlightening conversations. Freddie reminds me of the official motto of New…

Continue reading...

Upgrading Windows

Upgrading Microsoft Windows usually takes a day but it does not mean one has to do a day's work to accomplish it. Installing the OS usually takes one to two hours. Installing updates which could be well over 100 takes two hours or so. Configuring firewall and installing all the…

Continue reading...

Godaddy Virtual Dedicated Server is not business grade.

A year experience of using Godaddy's Virtual Dedicated Server involving frequent extremely long email relay delays (up to a whole day), and frequent poor performance (almost daily) shows the VDS is not business grade. At one pointer, a problem of the parent server shut down our VDS. It…

Continue reading...

My digital photography journey

I tend to be an early adopter of new technologies including consumer product front. I bought my first digital camera - Kodak DC20 - in early 1997 when most people had never heard of digital camera. I was probably the only person in our company…

Continue reading...

Sony Cyber-shot DSC-HX50V

Reviews on DPReview.com and a review with comparison with Canon PowerShot sX280 HS and Panasonic Lumix ZS30 at CameraLabs.com. A short video shows how the Wi-Fi feature works. One cannot peep pixels of these P&S compact cameras. They would scare you. For pocket size travel cameras,…

Continue reading...

NFC and digital cameras

For those who appreciate the usefulness of shutter cable, controlling a digital camera via a smartphone is an exciting relatively new feature of digital cameras. This is done via WiFi. The common problem with this feature is the hassle of establishing connection between the camera…

Continue reading...

US$2.74 trillion robbed and stolen from Chinese people

The Task Force on Financial Integrity and Economic Development estimates conservatively that US$2.74 trillion flowed out of China illicitly from 2000 to 2009. Some people believe this number is too conservative, and believe the actual number may be an order of magnitude higher. A very high…

Continue reading...

Advanced Audio Coding 

AAC is a part of MPEG-2 AND MPEG-4 specifications. Open source codec implementation can be found in FFmpeg, FAAC and opencore-amr. JAAD is a Java version of AAC decoder (decoding only). aacdecoder-android is a library for Android to play AAC streams or files (decoding only). Java AAC…

Continue reading...

First they came…

Rereading Niemöller’s famous saying “First they came…” makes me reflect on the current mindset of my fellow Chinese citizens. First they executed millions of landlords, and I didn’t speak out because I wasn’t a landlord. Then they purged 550,000 rightists, and I didn’t speak out…

Continue reading...

MultiselectList of Windows Phone

MultiselectList is handy if all you need is a simple list allowing multiple selections. What if you also want each item is clickable, or each item is a custom control. This may be able to be implemented by customizing MultiselectLit and MultiselectItem. However, the easiest…

Continue reading...