zhao-sun.com

August 23, 2010

Chinese Characters in WordPress

Filed under: Computer — blogadmin @ 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!

May 16, 2006

Search Engine Optimization

Filed under: Computer — blogadmin @ 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 — blogadmin @ 2:59 pm

Free Spyware:  Spybot

Non-free Spyware: Spyware Doctor

December 7, 2005

Windows XP Remote Desktop Config

Filed under: Computer — blogadmin @ 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 — blogadmin @ 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…)

March 7, 2005

SourceForge.net Top 25 Projects

Filed under: Computer — blogadmin @ 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…)

January 13, 2005

10 ways to pay back the open source community

Filed under: Computer — blogadmin @ 1:27 am

Tuesday January 11, 2005 (02:00 PM GMT)
By: Ankit Malik

You run GNU/Linux. You play games on it, surf the Net, write documents, and edit pictures, and all for free, thanks to the multitudes around the world who contribute to the open source movement. Now it’s payback time — time to give back to the global fraternity giving you so much. Here are 10 ways you can help right now.

1. Thou shalt speak thy native language

Software worldwide is translated into a plethora of languages, yet some regions remain overlooked. Help create an indigenous version. Select a Unicode font, choose a bilingual dictionary, and translate. You can start with a small project and then move on to higher levels.

2. Thou shalt post bugs

No software is perfect. In spite of the developers’ best efforts, glitches appear. Some may be specific to your distro or platform. The next time you encounter a bug, post it at the developers’ Web site in the application’s bug tracking system or mail it direct to the developers. Time consuming? Maybe, but it’ll go a long way toward improving the software.

3. Thou shalt love thy neighbour as thyself
(more…)

January 9, 2005

Backing up your MySQL data

Filed under: Computer — blogadmin @ 12:15 am

Monday December 27, 2004 (08:00 AM GMT)
By: Mayank Sharma

If you have ever pulled your hair out in frustration over data loss, no doubt the word ‘backup’ has special meaning in your life. Databases offer a nice way to catalog data, but with the amount of data being trusted into MySQL databases these days, the after-effects of an unwise DROP DATABASE command, an unlucky system crash, or a failed hand-edit of the table structure are catastrophic and can be unrecoverable — unless you have a backup to restore from.
(more…)

December 13, 2004

Killing the Five Myths Against Linux

Filed under: Computer — blogadmin @ 12:32 pm

By Mark Rais, author of the new book Linux For the Rest of Us 2nd Edition.

Over the past few years, I have tried to focus almost exclusively on helping small companies and inquisitive users move to Linux. I realize that much of the hesitation to apply Linux in the business and home setting extends from five core myths. Yes, it¡¯s true that some people hesitate because they adore their Windows environment. But most users I have worked with tend to shy away from trying out Linux simply because they believe a myth.

In response to their concerns, and because more and more new and inquisitive users desire to try Linux but remain hesitant, I document these core five myths and put an end to the shameless ritual of attacking something that works.
(more…)

December 12, 2004

jakarta-tomcat-connectors, Apache-Tomcat connector

Filed under: Computer — blogadmin @ 4:27 am


    The jakarta-tomcat-connectors binary download doesn’t work as expected.So, I download the src and build myself.

  • install jakarta-tomcat-4.1.24. download http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/bin/jakarta-tomcat-4.1.24.tar.gzand install it.

  • installi httpd-2.0.47.tar.gz. download http://www.apache.org/dist/httpd/httpd-2.0.47.tar.gz and install it.

  • go http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/, and download file jakarta-tomcat-connectors-4.1.24-src.tar.gz

  • untar jakarta-tomcat-connectors-4.1.24-src.tar.gz

  • go under jakarta-tomcat-connectors-4.1.24-src/util/, run “ant”

  • go under jakarta-tomcat-connectors-4.1.24-src/coyote/, run “ant”

  • go under jakarta-tomcat-connectors-4.1.24-src/http11/, run “ant”

  • go under jakarta-tomcat-connectors-4.1.24-src/jk/, run “export CLASSPATH=/usr/local/jakarta-tomcat/common/lib/servlet.jar” and “ant”

  • under jakarta-tomcat-connectors-4.1.24-src/jk/, edit build.xml, comment out the line ““, and run “ant native”. This will build .so files for apache2. (It mayfail, but all the necessary .so are built already.)

  • copy jakarta-tomcat-connectors-4.1.24-src/jk/conf/workers2.properties to /usr/local/apache2/conf/, and add the following at the end in workser2.properties file:

    [uri:/examples/jsp/*]
    info=Example webapp in the default context.
    context=/examples/jsp/*
    debug=0

    [uri:/examples/servlets/*]
    info=Example webapp in the default context.
    context=/examples/servlets/*
    debug=0

  • copy jakarta-tomcat-connectors-4.1.24-src/jk/build/jk2/apache2/mod_jk2.so to /usr/local/apache2.0.46/modules/

  • copy jakarta-tomcat-connectors-4.1.24-src/jk/build/jk2/jni/libjkjni.so to /usr/local/apache2.0.46/modules/

  • edit /usr/local/apache2/conf/httpd.conf, add the line:

    LoadModule jk2_module modules/mod_jk2.so

  • start Tomcat and Apache, “apachectl -k restart”

  • try with http://localhost/examples/, and make sure that jsp and servlet files are working

Older Posts »

Powered by WordPress