Configurations of htaccess for Multi-Sites in Sharehost

It’s the htaccess configurations for multiple websites in sharehost. Cause sometimes you may not be able to modify apache vhosts.  

Posted in Apache | Tagged , | 1 Comment

CSS Skills

1. CSS Reset http://meyerweb.com/eric/tools/css/reset/index.html http://meyerweb.com/eric/tools/css/reset/reset.css   2. CSS Hack

Posted in CSS | Tagged | Leave a comment

Simple Wrapper of Zend Controller

My simple wrapper of Zend Controller. It has 5 features including getParam, redirector, json and flash message.  

Posted in Zend Framework | Tagged , | Leave a comment

Hypertext Transfer Protocol and PHP

Http Articles : http://www.w3.org/Protocols/rfc2616/rfc2616.html http://www.ietf.org/rfc/rfc2617.txt http://www.ietf.org/rfc/rfc1945.txt http://www8.org/w8-papers/5c-protocols/key/key.html RFC2616 Status Code Definitions Status code in PHP : http://www.php.net/manual/zh/function.header.php http://krisjordan.com/php-class-for-http-response-status-codes http://www.jonasjohn.de/snippets/php/headers.htm RFC2616 in Chinese : rfc2616_zh

Posted in Network Protocol | Leave a comment

Flow Flash AD using JavaScript and SWFObject

This article shows how to create a flow flash ad by using javascript together with swfobject. @see getScroll.js @see http://code.google.com/p/swfobject/ The ad-flow.js goes here :

Posted in Flash, JavaScript | Tagged , | Leave a comment

JavaScript Get Scroll Information

The script goes here : getScroll.js

Posted in JavaScript | Tagged | Leave a comment

Introduction to MongoDB

Installation on Windows : 1. Download and install http://fastdl.mongodb.org/win32/mongodb-win32-i386-1.6.5.zip unzip mongodb-win32-i386-1.6.5.zip to D:\mongodb 2. Create folder where database located 3. Start mongodb server 4. Web tool : http://localhost:28017/     5. Client tool for mongodb 6. Create collection called mytestdb and limit the size (in fact we must use client tool) 7. Driver for windows [...]

Posted in MongoDB | Tagged | Leave a comment

Version Control with SVN

1. Create trunk from proj_src(source code) : 2. To checkout the project : 3. Add tags and first release : 4. Generate working copies for developers, special offer or someone else : 5. When finished : 6. Delete ? 7. Merge revisions of branches into trunk 8. Revert merge

Posted in SVN | Tagged | Leave a comment

Introduction to NodeJS

1. What is node.js and what does it do? Evented I/O for V8 JavaScript. To provide a purely evented, non-blocking infrastructure to script highly concurrent programs. 2. Basic concept : blocking and non-blocking 3. Amazing Video by Ryan Dahl – Introduction to NodeJS 4. Download and install 5. Make the doc and read (optional) 6. [...]

Posted in JavaScript | Tagged , | Leave a comment