How to change WordPress’s language to English

1. You should change define(‘WPLANG’,’zh_CN’) to define(‘WPLANG’,”) in wp-config.php

2. Delete the wp-content/language folder

3. Change your timezone to New York

4. Change your timezone to Utc xx

Note: If you don’t follow the step 4 you will receive the language update, and if you download a plugin, the language will back to the origin language.

Fix the Home, End and Numbers keys on Mac OS X

The origin post at here:

If you use a keyboard that’s not designed specifically for Macs, you probably are familiar with the annoying mapping of the Home and End keys: they scroll to the beginning or end of an entire document, with no regard to the cursor’s location.

Fortunately it’s an easy fix. (Note: This works for native Cocoa apps only, not X11 programs.)

To get your Home and End keys working properly on Mac OS X (in my case, Mountain Lion, although this should work in prior versions back to at least Tiger), simply open the Terminal and do this:

$ cd ~/Library
$ mkdir KeyBindings
$ cd KeyBindings
$ nano DefaultKeyBinding.dict

Put these lines in that file, including the curly braces:


/* Remap Home / End keys to be correct */
“UF729” = “moveToBeginningOfLine:”; /* Home */
“UF72B” = “moveToEndOfLine:”; /* End */
“$UF729” = “moveToBeginningOfLineAndModifySelection:”; /* Shift + Home */
“$UF72B” = “moveToEndOfLineAndModifySelection:”; /* Shift + End */
“^UF729” = “moveToBeginningOfDocument:”; /* Ctrl + Home */
“^UF72B” = “moveToEndOfDocument:”; /* Ctrl + End */
“$^UF729” = “moveToBeginningOfDocumentAndModifySelection:”; /* Shift + Ctrl + Home */
“$^UF72B” = “moveToEndOfDocumentAndModifySelection:”; /* Shift + Ctrl + End */


Press Ctrl+O and then Enter to save the file, and Ctrl+X to exit. Restart your computer to have it take full effect.

Install dropbox on ubuntu

1. Download the deb file from: 2. Install the dependences: apt-get -f install -f python-gtk2 libatk1.0-0 libcairo2 libpan go1.0-0 python-cairo python-gobject-2 libgdk-pixbuf2.0-0 libatk1.0-data libx11-6 libxcb-render0 libxcb-shm0 libxcb1 libxrender1 libjasper1 libjpeg8 libtiff4 lib gdk-pixbuf2.0-common libthai0 libxft2 libgtk2.0-0 libpixman-1-0 libjpeg-turbo8 libthai-data libdatrie1 libx11-data libxau6 libxdmcp6 libgtk2.0-common libxcompo site1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 hicolor-icon-theme libgtk2.0-bin