Saturday, April 28, 2012

Small HTTP servers for Windows

Some mini size HTTP server software for Windows:
For nginx, if you want to add an alias which point to another location which is not under the root directory, you can put the following in the nginx.conf:

location /web {
    alias   d:/Code/nginx_web;
}
        
This means for locations http://yourhost/web, it is pointing to d:\Code\nginx_web actually.


So what about ProxyPass in nginx? I will try on it tomorrow. Keep update soon.

Thursday, April 26, 2012

Editors for MacOS

Just need some nice text editor to code, here I found some nice stuff:

For TextWrangler, if we want to add color themes to it, we can put bbedit theme files to ~/Library/Application Support/TextWrangler/Color Schemes/


Monday, April 2, 2012

CSS DropShadown in IE9

Reference http://www.useragentman.com/blog/2011/04/14/css3-text-shadow-can-it-be-done-in-ie-without-javascript/

A good way to perform text shadow in IE9:


background-color: 'white';
filter: progid:DXImageTransform.Microsoft.Chroma(Color='white')
        progid:DXImageTransform.Microsoft.DropShadow(OffX=3, OffY=3, Color='white');


The point is to make use of Chroma filter and set a proper background-color. So great!

Sync multiple git repo at once

Use the following command in Linux will do the job:  ls -d RepoNames* | xargs -I{} git -C {} pull