Upgrade to WordPress 2.5

Posted by admin on March 31st, 2008 filed in Misc
Comment now »

This site is upgraded to WordPress 2.5 without any problems.

I spend 2 minutes to upgrade WP through Dreamhost One-Click install and then update simple tag plugin.

The theme I use here is still compatible with WordPress 2.5.

Related posts


Dreamhost’s One-Click

Posted by David on February 6th, 2008 filed in WebHosting
1 Comment »

Just upgrade this Blog through the Dreamhost panel.

It is very simply by using Dreamhost’s One-Click installation to upgrade.

Use Saving code G2SAVING when sign up Dreamhost, you can save $50 and get 1 extra FREE lifetime domain registration.

Related posts


CherryBlossom theme v0.1 release

Posted by David on December 29th, 2007 filed in WordPress
1 Comment »

I said I would make the free spring theme of WordPress, Cherry Blossom.

Even a little bit later, late release is better than no release.

The CherryBlossom theme needs some plugins. Shown as below:

Platform: WordPress v2.3.1

Plugins:

Akismet 2.1.3

All in One SEO Pack 1.4.3.9

Google XML Sitemaps 3.0.2.1

Simple Tags 1.2.4

Recent Posts 2.3.6

cherryblossom screenshot

Package Download here:

cherryblossom v0.1

Cost

This theme is free to use, but I appreciate if you could link back to me. Feel free to modify the theme any way you want, and let me know, if you use it on your blog. This theme is licensed under a Creative Commons License.

The plugins needed are packed into the downloadable file above.

After you download the theme, you’ll need to extract it to your /wp-content/themes/ directory and activate the theme from within your presentation panel.

And copy the folders of /plugin/ in your /wp-content/plugins/. Active these plugins and config them as the following screenshot.

Read the rest of this entry »

Related posts


htaccess file

Posted by David on December 24th, 2007 filed in Linux
Comment now »

.htaccess file is very important in the Apache server.

The real name of this file is Apache’s directory-level configuration file .

There are three major usages of .htaccess.

  1. Authorization, authentication: .htaccess files are often used to specify the security restrictions for the particular directory, hence the filename “access”. The .htaccess file is often accompanied by an .htpasswd file which stores valid usernames and their passwords.
  2. Customized error responses: Changing the page that is shown when a server-side error occurs, for example HTTP 404 Not Found.
  3. Rewriting URLs: Various server-side PHP scripts use .htaccess to rewrite “ugly” URLs to shorter and prettier ones.

The authorization can restrict the right of access to different directory or by different user right.

Customized error page is also very important for the site which want to provide better user experience.

Rewriting URLs, is used so popularly on all kind of PHP drived programs, such as WordPress.

More detailed usage of .htaccess, please go to Apache Tutorial, and Httpd wiki.

Related posts


Let php engine handle html as php

Posted by David on December 16th, 2007 filed in Linux
Comment now »

I have a site full of the html file. Later I added some php code into these html files. I don’t want to change the URL from .html to .php. It is not SEO friendly.

So, I would like php engine can handle html same as php.

Edit .htaccess file in the root.

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

That’s all.

Related posts


JavaScript Classes Comparison

Posted by admin on December 11th, 2007 filed in JavaScript
Comment now »

There are more and more JavaScript Classes in front of programers. To choose one of the suitable is very important.

Let me list some of them here: jQuery, Ext, MooTools, Prototype, YUI.

Remy Sharp has gone through the jQuery and Prototype frameworks, which are probably the two closest to each other, and has done a side by side comparison of the frameworks by showing you how similar things work on both.

The presentation looks into the utility functions, selectors, DOM manipulation, DOM walking, events, Ajax transport, and browser detection.

There is also other posts tell something about:
Mootools beats jQuery and Ext for AIR
jQuery vs. Prototype: OO JavaScript with or without training wheels
3 reasons why I use jQuery

Related posts


Common SSH Commands - Linux Shell Commands

Posted by David on November 23rd, 2007 filed in Linux
Comment now »

We’ve put together some of the more frequently used SSH commands or linux shell commands, and organized them by name so you can easily find a command, their description and how to use it. This guide will continue to be updated and should not be considered a complete list of SSH commands or linux shell commands, but commands, we found, often used. If you would like to add to this guide, please email us and let us know.

Common SSH Commands or Linux Shell Commands,
ls : list files/directories in a directory, comparable to dir in windows/dos.
ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file.

cd : change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory
cd ~ : go to your home directory
cd - : go to the last directory you were in
cd .. : go up a directory cat : print file contents to the screen

cat filename.txt : cat the contents of filename.txt to your screen

chmod: changes file access permissions
The set of 3 go in this order from left to right:
USER - GROUP - EVERONE

0 = — No permission
1 = –X Execute only
2 = -W- Write only
3 = -WX Write and execute
4 = R– Read only
5 = R-X Read and execute
6 = RW- Read and write
7 = RWX Read, write and execute

Usage:
chmod numberpermissions filename

chmod 000 : No one can access
chmod 644: Usually for HTML pages
chmod 755: Usually for CGI scripts

Read the rest of this entry »

Related posts


SnowMountain theme v0.1 release

Posted by David on November 20th, 2007 filed in WordPress
3 Comments »

This is my first attempt at a free Wordpress theme, and I really enjoyed making this and hope to make some more themes which I can put up for downloading. If you like this theme and would like to drop me a line, you can do so by leaving a comment.

About SnowMountain

SnowMountain is a theme true to my slogan; simple and lightweight.

SnowMountain 0.01

Download

SnowMountain thene v0.1

After you download the theme, you’ll need to extract it to your /wp-content/themes/ directory and activate the theme from within your presentation panel.

Cost

This theme is free to use, but I appreciate if you could link back to me. Feel free to modify the theme any way you want, and let me know, if you use it on your blog. This theme is licensed under a Creative Commons License.

Related posts


New theme applied on SSR center

Posted by David on November 14th, 2007 filed in WordPress
Comment now »

This theme is designed specially for Self Study Reference Center by G2Soft.Net.

The name of theme is SnowMountain, version 0.01.

SnowMountain 0.01

Related posts


strpos()

Posted by David on May 26th, 2007 filed in PHP
1 Comment »

Using the strpos() function

The strpos() function is used to search for a string or character within a string.

If a match is found in the string, this function will return the position of the first match. If no match is found, it will return FALSE.

Let’s see if we can find the string “world” in our string:

<?php
echo strpos(”Hello world!”,”world”);
?>

The output of the code above will be:

6

As you see the position of the string “world” in our string is position 6. The reason that it is 6, and not 7, is that the first position in the string is 0, and not 1.

Related posts