Dec 22, 2012

Tips for Smart Phone App Coding

Mainly two ways to show different interface due to different devices:

1. Load matching stylesheet

<link media="screen and (min-device-width: 481px)" href="not-small-device.css" type="text/css" rel="stylesheet">

2. Add media queries in CSS

@media screen and (min-device-width: 481px) { ... }

Viewport Meta Tag Options

1. Make the viewport width match user's device-width

Dec 13, 2012

Moving wordpress site to a new address

Suppose you've built a wordpress website on www.abc.com/one, now you want to move it to one.abc.com --

Step 1. Create your subdomain and folder on your server. You don't want to destroy your original wordpress folder,  so you should use a different name, or alternatively you may rename the old folder before creating a new folder/subdomain.

Step 2. Move all files under the old folder to the new one. Be attention not to move the folder but the files under it, since you want to use one.abc.com as your root folder.

Step 3. If you're using a different database for the new location, make sure that the database is accessible. Check the configuration in "wp-config.php" to get your database name and password.

Dec 4, 2012

Tips for Facebook Social Networking




Having been working on my personal blog for many years, I think I am not a complete newbie in this field. I have a Facebook fan page which has over 8500 fans, and the number remain increasing though I now have very few time to maintain it. I ran another fan page for my company, whose fans reached as much as 1000 within 3 months. I have the confidence to make a new-created fan page's fans reach 100 in a week, if enough free time, and if I was allowed to use my mother tongue.

Social networking is a time-consuming work that requires lots of practice and patience. No one can become an expert without actually doing it, and you may find social networking for different events, companies, and websites, demands different ways to do it. The result varies depending not only on your efforts, but also on many factors like the base number of your targeted audience, current trends, the resources you own, etc. For instance, two fan pages, A and B start from the same day. A is a famous singer's fans club, and B is for collecting moral examples in our city. I should expect the former one will grow much faster. But if A is not an official page and  B is run by the government, the situation may change.

Hi, I'm Kero, a web developer.