Friday, May 30, 2008

Google Translation Gadget

Google released a translation gadget which can translate blog or website easily from one language to another. According to wikipedia only 35.2% of the internet users are English, so it makes sense to add translation widgets for your blog to increase the reach for your blog.

Google Translator widget supports lots of languages as of now if your primary language is English. This widget also served through Javascript and carries a link Google Translator and Google Gadgets.

Add the Google Translate gadget to your webpage is quick and easy. Its offer instant access to automatic translations of that page. Go to Google Translate gadget, select the language of your webpage, copy and paste the HTML to include the gadget on your webpage.

Sunday, May 25, 2008

Top Ten China Mobile Site

Opera released a State of the Mobile Web: First Quarter, 2008 report recently. The report listed the top 10 Chinese mobile sites based on the statistics of Opera Mini.

Web portal content and search engine access is extremely popular in China, accounting for nearly 55% of the traffic.

E-commerce and e-mail are not yet as popular in China as in other parts of the world. Together, these two categories combine to create less than 2% of overall Opera Mini traffic in China.

Top 10 sites in China

www.sina.com.cn
www.baidu.com
www.google.cn
www.ko.cn
news.sohu.com
www.xiaonei.com
www.3g.cn
www.paojiao.com
www.188bet.com
www.feiku.com

Saturday, May 24, 2008

Install WordPress MU On IIS With Url Rewrite

I have successfully installed WordPress MU on my Windows Server 2003 running IIS 6. To be honest, I know that WPMU is not full compatible with IIS right out of the box. It relies heavily on apaches mod_rewrite, which IIS isn't capable of. The only IIS fix for permalinks I've seen have either been via a special filter named ISAPI_Rewrite.

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS server. It is compatible with Apache mod_rewrite making it possible to move configurations from Apache to IIS and vice versa just by copying .htaccess files. I have tested with Wordpress 2.x or Wordpress MU 1.3.x, it's work. This is also works in IIS Mod-Rewrite Pro, but IIS Mod-Rewrite Pro have no free version.

To enable Clean Permalinks on Wordpress MU on IIS, follow these steps:

  • Install PHP and MySQL following the vendor's instructions.

  • Install ISAPI_Rewrite.

  • Install Wordpress according to the vendor's instructions.

  • Open with a text editor the file wp-settings.php, located in Wordpress root directory. Add the code line



$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL'];

  • Log on to Wordpress as administrator, go to admin panel, open the "Permalinks" settings page, and set the permalink structure of your choice. Apply your changes.

  • Wordpress is supposed to automatically create a file with name ".htaccess" in its root directory. Open with a text editor the file .htaccess, copy it and paste into httpd.conf in ISAPI_Rewrite directory.


Now we have a WordPress MU with clean permalinks on Windows Server 2003 running IIS 6.

Friday, May 23, 2008

Free Online Translation Tools

Google Translate - Google's free online language translation service instantly translate text and web pages. This translator supports: English, Arabic, Bulgarian, Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hindi, Italian, Korean, Japanese, Norwegian, Polish, Romanian, Russian, Spanish, Swedish, Portuguese.

Windows Live Translator - Microsoft Windows Live Translator is a free online language translation service for text and web pages. This translator supports more than 25 translation languages.

Babelfish - Yahoo Babel Fish provides free online text and web page language translation tools. You can use this site to translate words, phrases, or entire web sites into 19 pairs of languages, including to and from English, Chinese, French, German, Italian, Japanese, Korean, Portuguese, and Spanish.

Systran - Systran is a leader in providing language translation software products and solutions for the desktop, enterprise and Internet. With Systran products or solutions you can instantly translate and understand foreign language content into 52 language pairs.

Monday, April 28, 2008

Disable Directory Listings in WordPress

By default when accessing any directory which does not contain an index file, a directory listing will be shown displaying a list of the files in that folder. Web servers can be configured to automatically display the listings of the contents of a web site's file directory if no index file (i.e. index.html or index.php) is present. This can expose files and information to visitors.

Simply adding a blank/ 0 byte text file named "index.html" will prevent this directory list from being displayed, however another way to disable directory listing is by adding the following line to the .htaccess file in your public_html folder of your web hosting account :

Options -Indexes

That’s it, with this line in place, folders which do not contain index files will no longer show the default directory list.

Saturday, April 26, 2008

Top Ten Best Wordpress Plugins

WordPress is a simple to use blogging tool. The beauty of WordPress is that it can become so much more with the simple installation of plugins. With a few clicks, WordPress can become a full fledged Content Management System (CMS). Here is a rundown on the top 10 best plugins every blogger should have installed.

Here is a great list that I whipped together of some of the most useful and most popular Wordpress plugins which every blogger should have installed. Enjoy the list.

Akismet - Simply the best Spam protection you can get for handling comments on your blog. Akismet checks your comments against the Akismet web service to see if they are spam or not, also checks the trackbacks for spam.

WP Super Cache - An extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests.

WP-PostViews - Enables you to display how many times a post/page had been viewed. It will not count registered member views, but that can be changed easily.

WP-PageNavi - A WordPress Plugin that adds more advanced page navigation to WordPress. It does this by adding page number links to your different pages. Using this plugin your readers will be able to jump from the first to the last page and other pages of your blog very easily.

Simple Tags - A plugin does everything related with tagging. With this plugin you can generates a list of related posts based on the text of blog entry. The tags can be used to search your blog and are picked up by blog search engines like Technorati and can bring in new users.

All in One SEO Pack - Automatic Search Engine Optimization (SEO) out of the box for your wordpress blog, everything you need to get your site optimized for search engines.

Google XML Sitemaps - Simple tool for auto generating sitemaps every time you make an update to your site. This plugin is the best tool to tell Google how it should crawl your blog and where to find everything you want found.

Wordpress Thread Comment - This Plugin is an enhancement for Wordpress's comment function. It enables users to reply on a exist comment, and the discussion will be displayed threaded or nested.

FeedBurner Feedsmith - Forwards all feed traffic to Feedburner while creating a randomized feed for Feedburner to pull from.

Wordpress Database Backup - Automated or on-demand backup solution for your wordpress database. Don't leave home without it!

Wednesday, April 23, 2008

DreamHost CPU Minute Restrictions

DreamHost is a popular web host among bloggers. With accounts beginning at only $7.95 a month, featuring generous disk space and bandwidth. But DreamHost's CPU minute restriction limits their otherwise generous bandwidth/storage allowance.

DreamHost measure server resource consumption in CPU minutes. This number indicates how much time a processor spends working for host user. All DreamHost shared hosting customers should use less than 60 cpu minutes per day for all their users on their account.

How to find the my CPU minutes per day, DreamHost tell us the way.

First, you'll need to verify that you have CPU Reporting enabled for your user. This can be done from the 'Users'->'Manage Users' section of the web panel by clicking 'edit' for the user.

You should be able to access your reports within a day after being enabled by FTP'ing or SSH'ing to your account and switching to the logs/resources/ directory. In there, you'll find files named .sa.analyzed.0, .sa.analyzed.1, .sa.analyzed.2. Your username will replace . These files are generated by a script that looks at how many minutes your scripts use, then rotates them every day. So the latest file from yesterday will be the .0 file, and the day before will be .1 and so on.

You can also view and download these stats files through the stats url of any of your domains (E.G. http://yourdomain.com/stats/resources )

You'll only really need to pay attention to the first column, the second column, and the total at the bottom. In the first column is the process name, or the file name. The second is the total CPU seconds per day it's using, and then the total CPU seconds after the dashed line. In this example, the top process is "view" with 6245.03 CPU seconds per day (or 104.08 CPU minutes per day if you divide by 60). The total for this particular day is 6767.95 CPU seconds per day, or 112.79 CPU minutes per day.