zhao-sun.com

August 23, 2010

Chinese Characters in WordPress

Filed under: Computer — @ 4:00 pm

Chinese characters do not work in WordPress by default if you didn’t originally setup your WordPress to handle Chinese.

However, it is pretty easy to get it working. I didn’t see it documented elsewhere, so I thought I’d post instructions on configuring WordPress to allow posting Chinese.

* Using a program (like phpMyAdmin) to administer your database, select the WordPress database.
* Find the wp_posts table, and click on the “structure” icon (it is the second from the left under Actions)
* Click the “pencil” icon on the wp_content table.
* Change the Collation option to utf8_unicode_ci (on mine, that’s the option at the very bottom).
* Click Save.
* If you want to enable Chinese in titles, you can repeat the procedure for the wp_posts.wp_title. You might also want to enable it in comments by repeating on wp_comments.comment_content and wp_comments.comment_author.

That’s it! You can now post 汉字 in WordPress!

April 13, 2010

sites to buy discount flight tickets

Filed under: Entertainment — @ 5:42 am

taopiao
kuxun
qunar
xiaoyaoyou
ctrip
elong
caissa

April 10, 2010

10 Simple Google Search Tricks

Filed under: Others — @ 12:52 pm

Published: April 2, 2010
By SIMON MACKIE of GigaOm

I’m always amazed that more people don’t know the little tricks you can use to get more out of a simple Google search. Here are 10 of my favorites.
Skip to next paragraph
More News From GigaOm

* 10 Secrets to Being a Successful Corporate Web Worker
* Yahoo Banking on Original Content — Again
* This Week in Mobile Tech Manor #82: iPad Eve
* What’s the Driving Force Behind China’s Great Green Leap Forward?
* How the Email Inbox Can Become An App Platform

1. Use the “site:” operator to limit searches to a particular site. I use this one all the time, and it’s particularly handy because many site’s built-in search tools don’t return the results you’re looking for (and some sites don’t even have a search feature). If I’m looking for WWD posts about GTD, for example, I could try this search: GTD site:webworkerdaily.com.
2. Use Google as a spelling aid. As Rob Hacker — the WWD reader I profiled last week — pointed out, entering a word into Google is a quick way to see if you have the right spelling. If it’s incorrect, Google will suggest the correct spelling instead. Additionally, if you want to get a definition of a word, you can use the “define:” operator to return definitions from various dictionaries (for example, define: parasympathetic).
3. Use Google as a calculator. Google has a built-in calculator — try entering a calculation like 110 * (654/8 + 3). Yes, your computer also has a calculator, but if you spend most of your day inside a browser, typing your calculation into the browser’s search box is quicker than firing up your calculator app.
4. Find out what time it is anywhere in the world. This one’s really handy if you want to make sure that you’re not phoning someone in the middle of the night. Just search for “time” and then the name of the city. For example, try: time San Francisco
5. Get quick currency conversions. Google can also do currency conversion, for example: 100 pounds in dollars. It only has the more mainstream currencies, though — if you’re trying to see how many Peruvian nuevos soles your dollars might buy, you’ll be out of luck.
6. Use the OR operator. This can be useful if you’re looking at researching a topic but you’re not sure which keywords will return the information you need. It can be particularly handy in conjunction with the “site:” operator. For example, you could try this search: GTD or “getting things done” site:webworkerdaily.com
7. Exclude specific terms with the – operator. You can narrow your searches using this operator. For example, if you’re looking for information about American Idol but don’t want anything about Simon Cowell, you could try: “american idol” -cowell
8. Search for specific document types. Google can search the web for specific types of files using the “filetype:” operator. If you’re looking for PowerPoint files about GTD, for example, you could try: GTD filetype:ppt
9. Search within numerical ranges using the .. operator. Say, for example, you want to look for information about Olympic events that took place in the 1950’s, you could use this search: Olympics 1950..1960
10. Area code lookup. Need to know where a phone number is located? Google will let you know where it is, and show you a map of the area, too. For example: 415

December 29, 2009

Amazing Scottish Stunt Cyclist, Danny MacAskill

Filed under: Entertainment — @ 12:10 pm

http://www.tudou.com/programs/view/Gl-2ohxaiNg/

May 16, 2006

Search Engine Optimization

Filed under: Computer — @ 8:28 am

Website Submission:
FreeWebSubmission.com

Good Resources:
SEO Chat
Search Engine Watch
Pandia
“26 steps to 15k a Day” by Brett Tabke
Search Engine Newsgroup

May 15, 2006

Spyware

Filed under: Computer — @ 2:59 pm

Free Spyware:  Spybot

Non-free Spyware: Spyware Doctor

December 7, 2005

Windows XP Remote Desktop Config

Filed under: Computer — @ 2:20 am


    On the server side,
  • In “Control Panel”, click on “System”
  • Click on “Remote” tab, select “Allow users to connect remotely to this computer”
  • In “Control Panel”, click on “Administrative Tools”
  • click on “Local Security Settings”
  • select “Local Policies” on the left panel, and select “User Rights Assignement” on the right panel
  • Select “Allow logon through terminal services”, add new user account
  • The port number for Remote Desktop is 3389


    on the client side,

  • Programs –> Accessories –> Communications –> Remote Desktop Connection

April 23, 2005

Wireless USB in Linux

Filed under: Computer — @ 6:15 pm

Friday January 21, 2005 (08:00 AM GMT)
By: Keith Winston

I needed to connect my new desktop PC wirelessly from my second floor office to my first floor network. As I started researching the options for wireless USB adapters, I realized I might have some work ahead of me. Wireless USB in Linux is still in the early stages of development. But a little searching and some trial and error led to a successful connection.

While I did not expect the configuration to be easy, I did not expect it to be especially difficult either. To be fair, a lot of the complexities have nothing to do with the USB drivers, but are more related to the device naming and mapping changes that occurred in the upgrade from the 2.4 to the 2.6 kernel.

To better handle dynamic, hotplug devices on USB and FireWire, changes were made in the 2.6 kernel to provide persistent device names. The kernel now handles device management via two subsystems called sysfs and udev. If you run a 2.6 kernel, you may notice a new virtual directory called /sys in the root of your system. The /sys directory works like /proc in that it maps directly to part of system memory. While /proc tracks kernel parameters and state, /sys tracks device names known to the system. The device names in /sys are persistent because they are based on unique hardware and bus identifiers. This allows the kernel to always assign the same name to a dynamic device, something that was not possible in the 2.4 kernel.

In the 2.4 kernel the order you plug in USB devices can affect the name that gets assigned to it. The name of a device is neither unique nor guaranteed. The sysfs subsystem in the 2.6 kernel tries to solve that problem by naming devices using a unique identifier. The result is something not very useful to humans, as the device name for my wireless USB adapter turned out to be /sys/devices/pci0000:00/0000:00:02.1/usb3/3-1/3-1:1.0. That name is not very handy to deal with, so the udev subsystem provides a mapping between the /sys device name and the more familiar device names like /dev/wlan0.
(more…)

April 14, 2005

Monster公司:美国招聘业巨兽6500万中国猎英

Filed under: Business — @ 2:26 am

在许多大城市都能看到中华英才网的广告,该公司是中国最大的招聘网站之一,专家认为,Monster付出高价,希望换取的不仅仅是一个公司,而是进入中国市场的跳板。

守候三年之后,美国最大的猎头公司巨兽(Monster)终于将手伸向了中国最大的招聘网站之一中华英才网。来自内部的消息称,4月19日,MONSTER公司将斥资5000万美元正式

收购中华英才网40%的股份。
(more…)

March 7, 2005

SourceForge.net Top 25 Projects

Filed under: Computer — @ 4:18 pm

1. Gaim https://sourceforge.net/projects/gaim Gaim is a GTK2-based instant messenger application. It supports multiple protocols via modules, including AIM, ICQ, Yahoo!, MSN, Jabber, IRC, Napster, Gadu-Gadu and Zephyr. It has many common features found in other clients, as well as many unique features.

2. eGroupWare: Enterprise Collaboration https://sourceforge.net/projects/egroupware eGroupWare is a multi-user, web-based groupware suite developed on a custom set of PHP-based APIs.Currently available modules include: email, addressbook, calendar, infolog (notes, to-do’s, phone calls), content management, forum, bookmarks, wiki

3. FCKeditor https://sourceforge.net/projects/fckeditor This HTML editor (DHTML editor), for ASP, ASP.NET, ColdFusion, PHP and JavaScript brings to the web many of the powerful functionalities of known desktop editors like Word. It works with Mozilla, Netscape and IE.

4. MinGW – Minimalist GNU for Windows https://sourceforge.net/projects/mingw MinGW: import libraries and header files for use with GCC to build native Windows applications; now with added extentions to the MSVC runtime to support C99 functionality.

5. Azureus – BitTorrent Client https://sourceforge.net/projects/azureus Azureus is a powerful, full-featured, cross-platform java BitTorrent client.
(more…)

Older Posts »

Powered by WordPress