星期三, 十月 31, 2007

版友們近年來曾賣出不少高價域名 (转贴)

http://domainclub.org/showthread.php?t=18937

看的很眼馋


就我側面打聽的 結果,其實有不少版友們都私下有成交過不少高價域名,而且都是不符合一般老外所謂的好域名。例如有自創字,有中間加一橫的,有非.com的。當然這不是一 個定律,多少有運氣成份啦,但顯然域名投資還是一個有利可圖的市場。不過想靠它發大財,那大概不是我們這種業餘者能成的吧。

以下是我知道是由本站版友手上賣出去的域名:

pornstar-videos.tv 賣了一萬歐元(中間有一橫)
goodshop.org 賣了五千美元(.org的域名)
memoring.com 賣了四萬美元(不知是啥意思,顯然是自創字)
tvn.tv 一萬美元(.tv的域名)

另外還有幾筆是一萬美元、三萬美元、五萬美元和七萬美元的,而且都不是什麼單字啦,常用英文詞彙之類的,這都發生在最近一年或二年內的事。

星期二, 十月 30, 2007

最懒的鱼

在米爱粥里面看到过


海洋里有一种鱼,叫印鱼,是鱼中的懒汉。它即想涉足重洋,有不肯出一点力气,总是千方百计寻找机会依附在别的动物身上或船只的底部,进行"免费"的旅行。
    
印鱼之所以能免费旅行,主要是因为在它的头部生有一个特殊的吸盘,借以吸附在鲨鱼、鲸鱼、海龟等还中动物的腹部,有时附在船的底部,跟着它们不花分文周 游海洋。当它到了铒料丰富的场所,就离开"主人"进行新的旅行。印鱼这样做,既可以不费丝毫的力气到达丰富饵料的海域,得到美味可口的食物。有可以避免敌 人的袭击,还可以乘"主人"捕食之机捡得一些残余食物充饥。

印鱼以长在头上椭圆形的吸盘粘在别的动物的腹部而生活。
吸盘是第一背鳍变化而来,其力量可拉数十公斤的东西。
吸盘会贴在平直的地方造成真空状态,然后把排列在吸
盘上的许多板状体竖立起来,逐渐加强真空的状态,
"这些板状体上长有细小的刺,它的作用是防止从寄主身上滑下来。
平常分布在热带海域,但也会跟着寄主的移动而到寒冷的海域。




best of vim tips

# note 015 : Best of Vim Tips                                          current
------------------------------------------------------------------------------
David Rayner (zzapper) 15 Years of Vi + 3 years of Vim and still learning
21Sep04 : Last Update
  • zzapper's Tips Page
    ------------------------------------------------------------------------------
    __BEGIN__
    ------------------------------------------------------------------------------
    # searching
    /joe/e : cursor set to End of match
    /joe/e+1 : cursor set to End of match plus 1
    /joe/s-2 : cursor set to Start of match minus 2
    /^joe.*fred.*bill/ : normal
    /^[A-J]\+/ : search for lines beginning with one or more A-J
    /begin\_.*end : search over possible multiple lines
    /fred\_s*joe/i : any whitespace including newline
    /fred\|joe : Search for FRED OR JOE
    /\([^0-9]\|^\)%.*% : Search for absence of a digit or beginning of line
    /.*fred\&.*joe : Search for FRED AND JOE in any ORDER!
    /\<fred\>/i : search for fred but not alfred or frederick
    /\<\d\d\d\d\> : Search for exactly 4 digit numbers
    /\D\d\d\d\d\D : Search for exactly 4 digit numbers
    /\<\d\{4}\> : same thing
    # finding empty lines
    /^\n\{3} : find 3 empty lines
    # Specify what you are NOT searching for (vowels)
    /\c\v([^aeiou]&\a){4} : search for 4 consecutive consanants
    # using rexexp memory in a search
    /\(fred\).*\(joe\).*\2.*\1
    # Repeating the Regexp (rather than what the Regexp finds)
    /^\([^,]*,\)\{8}
    # visual searching
    :vmap // y/<C-R>"<CR> : search for visually highlighted text
    :vmap <silent> // y/<C-R>=escape(@", '\\/.*$^~[]')<CR><CR> : with spec chars
    # searching over multiple lines \_ means including newline
    /<!--\_p\{-}--> : search for multiple line comments
    /fred\_s*joe/i : any whitespace including newline
    /bugs\(\_.\)*bunny : bugs followed by bunny anywhere in file
    :h \_ : help
    # search for declaration of subroutine/function under cursor
    :nmap gx yiw/^\(sub\<bar>function\)\s\+<C-R>"<CR>
    # multiple file search
    :bufdo /searchstr
    :argdo /searchstr
    # How to search for a URL without backslashing
    ?http://www.vim.org/ : search BACKWARDS!!! clever huh!
    ----------------------------------------
    #substitution
    :%s/fred/joe/igc : general substitute command
    :%s/\r//g : Delete DOS returns ^M
    # Is your Text File jumbled onto one line? use following
    :%s/\r/\r/g : Turn DOS returns ^M into real returns
    :%s= *$== : delete end of line blanks
    :%s= \+$== : Same thing
    :%s#\s*\r\?$## : Clean both trailing spaces AND DOS returns
    :%s#\s*\r*$## : same thing
    # deleting empty lines
    :%s/^\n\{3}// : delete blocks of 3 empty lines
    :%s/^\n\+/\r/ : compressing empty lines
    # IF YOU ONLY WANT TO KNOW ONE THING
    :'a,'bg/fred/s/dick/joe/igc : VERY USEFUL
    # duplicating columns
    :%s= [^ ]\+$=&&= : duplicate end column
    :%s= \f\+$=&&= : same thing
    :%s= \S\+$=&& : usually the same
    # memory
    :s/\(.*\):\(.*\)/\2 : \1/ : reverse fields separated by :
    :%s/^\(.*\)\n\1/\1$/ : delete duplicate lines
    # non-greedy matching \{-}
    :%s/^.\{-}pdf/new.pdf/ : delete to 1st pdf only
    # use of optional atom \?
    :%s#\<[zy]\?tbl_[a-z_]\+\>#\L&#gc : lowercase with optional leading characters
    # over possibly many lines
    :%s/<!--\_.\{-}-->// : delete possibly multi-line comments
    :help /\{-} : help non-greedy
    # substitute using a register
    :s/fred/<c-r>a/g : sub "fred" with contents of register "a"
    :s/fred/\=@a/g : better alternative as register not displayed
    # multiple commands on one line
    :%s/\f\+\.gif\>/\r&\r/g | v/\.gif$/d | %s/gif/jpg/
    # ORing
    :%s/suck\|buck/loopy/gc : ORing (must break pipe)
    # Calling a VIM function
    :s/__date__/\=strftime("%c")/ : insert datestring
    # Working with Columns sub any str1 in col3
    :%s:\(\(\w\+\s\+\)\{2}\)str1:\1str2:
    # Swapping first & last column (4 columns)
    :%s:\(\w\+\)\(.*\s\+\)\(\w\+\)$:\3\2\1:
    # filter all form elements into paste register
    :redir @*|sil exec 'g#<\(input\|select\|textarea\|/\=form\)\>#p'|redir END
    :nmap ,z :redir @*<Bar>sil exec 'g@<\(input\<Bar>select\<Bar>textarea\<Bar>/\=form\)\>@p'<Bar>redir END<CR>
    # increment numbers by 6 on certain lines only
    :g/loc\|function/s/\d/\=submatch(0)+6/
    # better
    :%s#txtdev\zs\d#\=submatch(0)+1#g
    :h /\zs
    # increment only numbers gg\d\d by 6 (another way)
    :%s/\(gg\)\@<=\d\+/\=submatch(0)+6/
    :h zero-width
    # find replacement text, put in memory, then use \zs to simplify substitute
    :%s/"\([^.]\+\).*\zsxx/\1/
    # Pull word under cursor into LHS of a substitute
    :nmap <leader>z :%s#\<<c-r>=expand("<cword>")<cr>\>#
    # Pull Visually Highlighted text into LHS of a substitute
    :vmap <leader>z :<C-U>%s/\<<c-r>*\>/
    ----------------------------------------
    # all following performing similar task, substitute within substitution
    # Multiple single character substitution in a portion of line only
    :%s,\(all/.*\)\@<=/,_,g : replace all / with _ AFTER "all/"
    # Same thing
    :s#all/\zs.*#\=substitute(submatch(0), '/', '_', 'g')#
    # Substitute by splitting line, then re-joining
    :s#all/#&^M#|s#/#_#g|-j!
    # Substitute inside substitute
    :%s/.*/\='cp '.submatch(0).' all/'.substitute(submatch(0),'/','_','g')/
    ----------------------------------------
    # global command display (see tip 227)
    :g/fred.*joe.*dick/ : display all lines fred,joe & dick
    :g/\<fred\>/ : display all lines fred but not freddy
    :g/<pattern>/z#.5 : display with context
    :g/<pattern>/z#.5|echo "==========" : display beautifully
    :g/^\s*$/d : delete all blank lines
    :g!/^dd/d : delete lines not containing string
    :v/^dd/d : delete lines not containing string
    :g/fred/,/joe/d : not line based (very powerfull)
    :g/{/ ,/}/- s/\n\+/\r/g : Delete empty lines but only between {...}
    :v/./.,/./-1join : compress empty lines
    :g/^$/,/./-j : compress empty lines
    :g/<input\|<form/p : ORing
    :g/^/pu _ : double space file (pu = put)
    :g/^/m0 : Reverse file (m = move)
    :g/fred/t$ : copy lines matching fred to EOF
    :g/stage/t'a : copy lines matching stage to marker a
    :%norm jdd : delete every other line
    # incrementing numbers (type <c-a> as 5 characters)
    :.,$g/^\d/exe "norm! \<c-a>": increment numbers
    :'a,'bg/\d\+/norm! ^A : increment numbers
    # storing glob results (note must use APPEND)
    :g/fred/y A : append all lines fred to register a
    :'a,'b g/^Error/ . w >> errors.txt
    # duplicate every line in a file wrap a print '' around each duplicate
    :g/./yank|put|-1s/'/"/g|s/.*/Print '&'/
    # replace string with contents of a file, -d deletes the "mark"
    :g/^MARK$/r tmp.ex | -d
    ----------------------------------------
    # Global combined with substitute (power editing)
    :'a,'bg/fred/s/joe/susan/gic : can use memory to extend matching
    :g/fred/,/joe/s/fred/joe/gic : non-line based (ultra)
    ----------------------------------------
    # Find fred before beginning search for joe
    :/fred/;/joe/-2,/sid/+3s/sally/alley/gIC
    ----------------------------------------
    # Absolutely essential
    ----------------------------------------
    * # g* g# : find word under cursor (<cword>) (forwards/backwards)
    % : match brackets {}[]()
    . : repeat last modification
    matchit.vim : % now matches tags <tr><td><script> <?php etc
    <C-N><C-P> : word completion in insert mode
    <C-X><C-L> : Line complete SUPER USEFUL
    /<C-R><C-W> : Pull <cword> onto search/command line
    /<C-R><C-A> : Pull <CWORD> onto search/command line
    :set ignorecase : you nearly always want this
    :syntax on : colour syntax in Perl,HTML,PHP etc
    :h regexp<C-D> : type control-D and get a list all help topics containing
    regexp (plus use TAB to Step thru list)
    ----------------------------------------
    # MAKE IT EASY TO UPDATE/RELOAD _vimrc
    :nmap ,s :source $VIM/_vimrc
    :nmap ,v :e $VIM/_vimrc
    ----------------------------------------
    #VISUAL MODE (easy to add other HTML Tags)
    :vmap sb "zdi<b><C-R>z</b><ESC> : wrap <b></b> around VISUALLY selected Text
    :vmap st "zdi<?= <C-R>z ?><ESC> : wrap <?= ?> around VISUALLY selected Text
    ----------------------------------------
    # Exploring
    :Exp(lore) : file explorer note capital Ex
    :Sex(plore) : file explorer in split window
    :ls : list of buffers
    :cd .. : move to parent directory
    :args : list of files
    :lcd %:p:h : change to directory of current file
    :autocmd BufEnter * lcd %:p:h : change to directory of current file automatically (put in _vimrc)
    ----------------------------------------
    # Buffer Explorer (Top Ten Vim Script)
    # needs bufexplorer.vim http://www.vim.org/script.php?script_id=42
    \be : buffer explorer list of buffers
    \bs : buffer explorer (split window)
    ----------------------------------------
    # Changing Case
    guu : lowercase line
    gUU : uppercase line
    Vu : lowercase line
    VU : uppercase line
    g~~ : flip case line
    vEU : Upper Case Word
    vE~ : Flip Case Word
    ggguG : lowercase entire file
    # Titlise Visually Selected Text (map for .vimrc)
    vmap ,c :s/\<\(.\)\(\k*\)\>/\u\1\L\2/g<CR>
    # Uppercase first letter of sentences
    :%s/[.!?]\_s\+\a/\U&\E/g
    ----------------------------------------
    gf : open file name under cursor (SUPER)
    ga : display hex,ascii value of char under cursor
    ggVGg? : rot13 whole file
    ggg?G : rot13 whole file (quicker for large file)
    :8 | normal VGg? : rot13 from line 8
    :normal 10GVGg? : rot13 from line 8
    <C-A>,<C-X> : increment,decrement number under cursor
    win32 users must remap CNTRL-A
    <C-R>=5*5 : insert 25 into text (mini-calculator)
    ----------------------------------------
    # Makes all other tips superfluous
    :h 42 : also http://www.google.com/search?q=42
    :h holy-grail
    :h!
    ----------------------------------------
    # Markers & moving about
    '. : jump to last modification line (SUPER)
    `. : jump to exact spot in last modification line
    g; : cycle thru recent changes (oldest first) (new in vim6.3)
    g, : reverse direction (new in vim6.3)
    :changes
    :h changelist : help for above
    <C-O> : retrace your movements in file (starting from most recent)
    <C-I> : retrace your movements in file (reverse direction)
    :ju(mps) : list of your movements
    :help jump-motions
    :history : list of all your commands
    :his c : commandline history
    :his s : search history
    q/ : Search history Window
    q: : commandline history Window
    :<C-F> : history Window
    ----------------------------------------
    # Abbreviations & maps
    :map <f7> :'a,'bw! c:/aaa/x
    :map <f8> :r c:/aaa/x
    :map <f11> :.w! c:/aaa/xr<CR>
    :map <f12> :r c:/aaa/xr<CR>
    :ab php : list of abbreviations beginning php
    :map , : list of maps beginning ,
    # allow use of F10 for mapping (win32)
    set wak=no : :h winaltkeys
    # For use in Maps
    <CR> : carriage Return for maps
    <ESC> : Escape
    <LEADER> : normally \
    <BAR> : | pipe
    <BACKSPACE> : backspace
    #display RGB colour under the cursor eg #445588
    :nmap <leader>c :hi Normal guibg=#<c-r>=expand("<cword>")<cr><cr>
    ----------------------------------------
    # Using a register as a map (preload registers in .vimrc)
    :let @m=":'a,'bs/"
    :let @s=":%!sort -u"
    ----------------------------------------
    # List your Registers
    :reg : display contents of all registers
    :reg a : display content of individual registers
    "1p.... : retrieve numeric registers one by one
    :let @y='yy@"' : pre-loading registers (put in .vimrc)
    ----------------------------------------
    # Useful tricks
    "ayy@a : execute "Vim command" in a text file
    yy@" : same thing using unnamed register
    u@. : execute command JUST typed in
    ----------------------------------------
    # Get output from other commands (requires external programs)
    :r!ls.exe : reads in output of ls
    !!date : same thing (but replaces/filters current line)
    # Sorting with external sort
    :%!sort -u : use an external program to filter content
    :'a,'b!sort -u : use an external program to filter content
    !1} sort -u : sorts paragraph (note normal mode!!)
    ----------------------------------------
    # Multiple Files Management (Essential)
    :bn : goto next buffer
    :bp : goto previous buffer
    :wn : save file and move to next (super)
    :wp : save file and move to previous
    :bd : remove file from buffer list (super)
    :bun : Buffer unload (remove window but not from list)
    :badd file.c : file from buffer list
    :b 3 : go to buffer 3
    :b main : go to buffer with main in name eg main.c (ultra)
    :sav php.html : Save current file as php.html and "move" to php.html
    :sav! %<.bak : Save Current file to alternative extension
    :sav! %:r.cfm : Save Current file to alternative extension
    :e! : return to unmodified file
    :w c:/aaa/% : save file elsewhere
    :e # : edit alternative file
    :rew : return to beginning of editted files list (:args)
    :brew : buffer rewind
    :sp fred.txt : open fred.txt into a split
    :sball,:sb : Split all buffers (super)
    :scrollbind : in each split window
    :map <F5> :ls<CR>:e # : Pressing F5 lists all buffer, just type number
    :set hidden : Allows to change buffer w/o saving current buffer
    ----------------------------------------
    # Quick jumping between splits
    map <C-J> <C-W>j<C-W>_
    map <C-K> <C-W>k<C-W>_
    ----------------------------------------
    # Recording (BEST TIP of ALL)
    qq # record to q
    your complex series of commands
    q # end recording
    @q to execute
    @@ to Repeat
    5@@ to Repeat 5 times
    # editing a register/recording
    "qp :display contents of register q (normal mode)
    <ctrl-R>q :display contents of register q (insert mode)
    # you can now see recording contents, edit as required
    "qdd :put changed contacts back into q
    @q :execute recording/register q
    # Operating a Recording on a Visual BLOCK
    1) define recording/register
    qq:s/ to/ from/g^Mq
    2) Define Visual BLOCK
    V}
    3) hit : and the following appears
    :'<,'>
    4)Complete as follows
    :'<,'>norm @q
    ----------------------------------------
    # Visual is the newest and usually the BEST editting mode
    # Visual basics
    v : enter visual mode
    V : visual mode whole line
    <C-V> : enter VISUAL BLOCK mode
    gv : reselect last visual area
    o : navigate visual area
    "*y : yank visual area into paste buffer
    V% : visualise what you match
    V}J : Join Visual block (great)
    ----------------------------------------
    # Delete first 2 characters of 10 successive lines
    0<c-v>10j2ld
    ----------------------------------------
    # how to copy a set of columns using VISUAL BLOCK
    # visual block (AKA columnwise selection) (NOT BY ordinary v command)
    <C-V> then select "column(s)" with motion commands (win32 <C-Q>)
    then c,d,y,r etc
    ----------------------------------------
    # _vimrc essentials
    :set incsearch : jumps to search word as you type (annoying but excellent)
    :set wildignore=*.o,*.obj,*.bak,*.exe : tab complete now ignores these
    :set shiftwidth=3 : for shift/tabbing
    :set vb t_vb=". : set silent (no beep)
    :set browsedir=buffer : Maki GUI File Open use current directory
    ----------------------------------------
    # launching Win IE
    :nmap ,f :update<CR>:silent !start c:\progra~1\intern~1\iexplore.exe file://%:p<CR>
    :nmap ,i :update<CR>: !start c:\progra~1\intern~1\iexplore.exe <cWORD><CR>
    ----------------------------------------
    # FTPing from VIM
    cmap ,r :Nread ftp://209.51.134.122/public_html/index.html
    cmap ,w :Nwrite ftp://209.51.134.122/public_html/index.html
    gvim ftp://209.51.134.122/public_html/index.html
    ----------------------------------------
    # appending to registers (use CAPITAL)
    # yank 5 lines into "a" then add a further 5
    "a5yy
    10j
    "A5yy
    ----------------------------------------
    [I : show lines matching word under cursor <cword> (super)
    ----------------------------------------
    # Conventional Shifting/Indenting
    :'a,'b>>
    # visual shifting (builtin-repeat)
    :vnoremap < <gv
    :vnoremap > >gv
    # Block shifting (magic)
    >i{
    >a{
    # also
    >% and <%
    ----------------------------------------
    # Redirection & Paste register *
    :redir @* : redirect commands to paste buffer
    :redir END : end redirect
    :redir >> out.txt : redirect to a file
    # Working with Paste buffer
    "*yy : yank to paste
    "*p : insert from paste buffer
    # yank to paste buffer (ex mode)
    :'a,'by* : Yank range into paste
    :%y* : Yank whole buffer into paste
    # filter non-printable characters from the paste buffer
    # useful when pasting from some gui application
    :nmap <leader>p :let @* = substitute(@*,'[^[:print:]]','','g')<cr>"*p
    ----------------------------------------
    # Re-Formatting text
    gq} : Format a paragraph
    ggVGgq : Reformat entire file
    Vgq : current line
    # break lines at 70 chars, if possible after a ;
    :s/.\{,69\};\s*\|.\{,69\}\s\+/&\r/g
    ----------------------------------------
    # Operate command over multiple files
    :argdo %s/foo/bar/e : operate on all files in :args
    :bufdo %s/foo/bar/e
    :windo %s/foo/bar/e
    :argdo exe '%!sort'|w! : include an external command
    :bufdo /foo/
    ----------------------------------------
    # Command line tricks
    gvim -h : help
    ls | gvim - : edit a stream!!
    cat xx | gvim - -c "v/^\d\d\|^[3-9]/d " : filter a stream
    gvim -o file1 file2 : open into a split
    # execute one command after opening file
    gvim.exe -c "/main" joe.c : Open joe.c & jump to "main"
    # execute multiple command on a single file
    vim -c "%s/ABC/DEF/ge | update" file1.c
    # execute multiple command on a group of files
    vim -c "argdo %s/ABC/DEF/ge | update" *.c
    # remove blocks of text from a series of files
    vim -c "argdo /begin/+1,/end/-1g/^/d | update" *.c
    # Automate editting of a file (Ex commands in convert.vim )
    vim -s "convert.vim" file.c
    #load VIM without .vimrc and plugins (clean VIM)
    gvim -u NONE -U NONE -N
    # Access paste buffer contents (put in a script/batch file)
    gvim -c 'normal ggdG"*p' c:/aaa/xp
    # print paste contents to default printer
    gvim -c 's/^/\=@*/|hardcopy!|q!'
    ----------------------------------------
    # GVIM Difference Function (Brilliant)
    gvim -d file1 file2 : vimdiff (compare differences)
    dp : "put" difference under cursor to other file
    do : "get" difference under cursor from other file
    ----------------------------------------
    # Vim traps
    In regular expressions you must backslash + (match 1 or more)
    In regular expressions you must backslash | (or)
    In regular expressions you must backslash ( (group)
    In regular expressions you must backslash { (count)
    /fred\+/ : matches fred/freddy but not free
    /\(fred\)\{2,3}/ : note what you have to break
    ----------------------------------------
    # \v or very magic (usually) reduces backslashing
    /codes\(\n\|\s\)*where : normal regexp
    /\vcodes(\n|\s)*where : very magic
    ----------------------------------------
    # pulling objects onto command/search line (SUPER)
    <C-R><C-W> : pull word under the cursor into a command line or search
    <C-R><C-A> : pull WORD under the cursor into a command line or search
    <C-R>- : pull small register (also insert mode)
    <C-R>[0-9a-z] : pull named registers (also insert mode)
    <C-R>% : pull file name (also #) (also insert mode)
    ----------------------------------------
    # manipulating registers
    :let @a=@_ : clear register a
    :let @a="" : clear register a
    :let @*=@a : copy register a to paste buffer
    map <f11> "qyy:let @q=@q."zzz"
    ----------------------------------------
    # help for help
    :h quickref : VIM Quick Reference Sheet (ultra)
    :h tips : Vim's own Tips Help
    :h visual<C-D><tab> : obtain list of all visual help topics
    : Then use tab to step thru them
    :h ctrl<C-D> : list help of all control keys
    :helpg uganda : Help grep
    :h :r : help for :ex command
    :h CTRL-R : normal mode
    :h /\r : what's \r in a regexp (matches a <CR>)
    :h \\zs : double up backslash to find \zs in help
    :h i_CTRL-R : help for say <C-R> in insert mode
    :h c_CTRL-R : help for say <C-R> in command mode
    :h v_CTRL-V : visual mode
    :h tutor : VIM Tutor
    <C-[>, <C-T> : Move back & Forth in HELP History
    gvim -h : VIM Command Line Help
    ----------------------------------------
    # where was an option set
    :scriptnames : list all plugins, _vimrcs loaded (super)
    :verbose set history? : reveals value of history and where set
    :function : list functions
    :func SearchCompl : List particular function
    ----------------------------------------
    # making your own VIM help
    :helptags /vim/vim63/doc : rebuild all *.txt help files in /doc
    :help add-local-help
    ----------------------------------------
    # running file thru an external program (eg php)
    map <f9> :w<CR>:!c:/php/php.exe %<CR>
    map <f2> :w<CR>:!perl -c %<CR>
    ----------------------------------------
    # capturing output of current script in a separate buffer
    :new | r!perl # : opens new buffer,read other buffer
    :new! x.out | r!perl # : same with named file
    ----------------------------------------
    # Inserting DOS Carriage Returns
    :%s/nubian/<C-V><C-M>&/g : that's what you type
    :%s/nubian/<C-Q><C-M>&/g : for Win32
    :%s/nubian/^M&/g : what you'll see where ^M is ONE character
    :%s/nubian/\r&/g : better
    ----------------------------------------
    # automatically delete trailing Dos-returns,whitespace
    autocmd BufRead * silent! %s/[\r \t]\+$//
    autocmd BufEnter *.php :%s/[ \t\r]\+$//e
    ----------------------------------------
    # perform an action on a particular file or file type
    autocmd VimEnter c:/intranet/note011.txt normal! ggVGg?
    autocmd FileType *.pl exec('set fileformats=unix')
    ----------------------------------------
    # Retrieving last command line command for copy & pasting into text
    i<c-r>:
    # Retrieving last Search Command for copy & pasting into text
    i<c-r>/
    ----------------------------------------
    # more completions
    <C-X><C-F> :insert name of a file in current directory
    ----------------------------------------
    # Substituting a Visual area
    # select visual area as usual (:h visual) then type :s/Emacs/Vim/ etc
    :'<,'>s/Emacs/Vim/g : REMEMBER you dont type the '<.'>
    gv : Re-select the previous visual area (ULTRA)
    ----------------------------------------
    # inserting line number into file
    :g/^/exec "s/^/".strpart(line(".")." ", 0, 4)
    :%s/^/\=strpart(line(".")." ", 0, 5)
    :%s/^/\=line('.'). ' '
    ----------------------------------------
    #numbering lines VIM way
    :set number : show line numbers
    :map <F12> :set number!<CR> : Show linenumbers flip-flop
    :%s/^/\=strpart(line('.')." ",0,&ts)
    #numbering lines (need Perl on PC) starting from arbitrary number
    :'a,'b!perl -pne 'BEGIN{$a=223} substr($_,2,0)=$a++'
    #Produce a list of numbers
    #Type in number on line say 223 in an empty file
    qqmnYP`n^Aq : in recording q repeat with @q
    # increment existing numbers to end of file (type <c-a> as 5 characters)
    :.,$g/^\d/exe "normal! \<c-a>"
    # advanced incrementing
    http://vim.sourceforge.net/tip_view.php?tip_id=150
    ----------------------------------------
    # advanced incrementing (really useful)
    " put following in _vimrc
    let g:I=0
    function! INC(increment)
    let g:I =g:I + a:increment
    return g:I
    endfunction
    " eg create list starting from 223 incrementing by 5 between markers a,b
    :let I=223
    :'a,'bs/^/\=INC(5)/
    " create a map for INC
    cab viminc :let I=223 \| 'a,'bs/$/\=INC(5)/
    ----------------------------------------
    # editing/moving within current insert (Really useful)
    <C-U> : delete all entered
    <C-W> : delete last word
    <HOME><END> : beginning/end of line
    <C-LEFTARROW><C-RIGHTARROW> : jump one word backwards/forwards
    <C-X><C-E>,<C-X><C-Y> : scroll while staying put in insert
    ----------------------------------------
    #encryption (use with care: DON'T FORGET your KEY)
    :X : you will be prompted for a key
    :h :X
    ----------------------------------------
    # modeline (make a file readonly etc) must be in first/last 5 lines
    // vim:noai:ts=2:sw=4:readonly:
    # vim:ft=html: : says use HTML Syntax highlighting
    :h modeline
    ----------------------------------------
    # Creating your own GUI Toolbar entry
    amenu Modeline.Insert\ a\ VIM\ modeline <Esc><Esc>ggOvim:ff=unix ts=4 ss=4<CR>vim60:fdm=marker<esc>gg
    ----------------------------------------
    # A function to save word under cursor to a file
    function! SaveWord()
    normal yiw
    exe ':!echo '.@0.' >> word.txt'
    endfunction
    map ,p :call SaveWord()
    ----------------------------------------
    # function to delete duplicate lines
    function! Del()
    if getline(".") == getline(line(".") - 1)
    norm dd
    endif
    endfunction

    :g/^/ call Del()
    ----------------------------------------
    # Digraphs (non alpha-numerics)
    :digraphs : display table
    :h dig : help
    i<C-K>e' : enters é
    i<C-V>233 : enters é (Unix)
    i<C-Q>233 : enters é (Win32)
    ga : View hex value of any character
    #Deleting non-ascii characters (some invisible)
    :%s/[<C-V>128-<C-V>255]//gi : where you have to type the Control-V
    :%s/[€-ÿ]//gi : Should see a black square & a dotted y
    :%s/[<C-V>128-<C-V>255<C-V>01-<C-V>31]//gi : All pesky non-asciis
    :exec "norm /[\x00-\x1f\x80-\xff]/" : same thing
    #Pull a non-ascii character onto search bar
    yl/<C-R>" :
    ----------------------------------------
    # All file completions grouped (for example main_c.c)
    :e main_<tab> : tab completes
    gf : open file under cursor (normal)
    main_<C-X><C-F> : include NAME of file in text (insert mode)
    ----------------------------------------
    # Complex Vim
    # swap two words
    :%s/\<\(on\|off\)\>/\=strpart("offon", 3 * ("off" == submatch(0)), 3)/g
    # swap two words
    :vnoremap <C-X> <Esc>`.``gvP``P
    ----------------------------------------
    # Convert Text File to HTML
    :runtime! syntax/2html.vim : convert txt to html
    :h 2html
    ----------------------------------------
    # VIM has internal grep
    :grep some_keyword *.c : get list of all c-files containing keyword
    :cn : go to next occurrence
    ----------------------------------------
    # Force Syntax coloring for a file that has no extension .pl
    :set syntax=perl
    # Remove syntax coloring (useful for all sorts of reasons)
    :set syntax off
    # change coloring scheme (any file in ~vim/vim??/colors)
    :colorscheme blue
    # Force HTML Syntax highlighting by using a modeline
    # vim:ft=html:
    ----------------------------------------
    :set noma (non modifiable) : Prevents modifications
    :set ro (Read Only) : Protect a file from unintentional writes
    ----------------------------------------
    # Sessions (Open a set of files)
    gvim file1.c file2.c lib/lib.h lib/lib2.h : load files for "session"
    :mksession : Make a Session file (default Session.vim)
    :q
    gvim -S Session.vim : Reload all files
    ----------------------------------------
    #tags (jumping to subroutines/functions)
    taglist.vim : popular plugin
    :Tlist : display Tags (list of functions)
    <C-]> : jump to function under cursor
    ----------------------------------------
    # columnise a csv file for display only as may crop wide columns
    :let width = 20
    :let fill=' ' | while strlen(fill) < width | let fill= fill.fill | endwhile
    :%s/\([^;]*\);\=/\=strpart(submatch(1).fill, 0, width)/ge
    :%s/\s\+$//ge
    # Highlight a particular csv column (put in .vimrc)
    function! CSVH(x)
    execute 'match Keyword /^\([^,]*,\)\{'.a:x.'}\zs[^,]*/'
    execute 'normal ^'.a:x.'f,'
    endfunction
    command! -nargs=1 Csv :call CSVH(<args>)
    # call with
    :Csv 5 : highlight fith column
    ----------------------------------------
    # folding : hide sections to allow easier comparisons
    zf} : fold paragraph using motion
    v}zf : fold paragraph using visual
    zf'a : fold to mark
    zo : open fold
    zc : re-close fold
    ----------------------------------------
    # displaying "invisible characters"
    :set list
    :h listchars
    ----------------------------------------
    # How to paste "normal commands" w/o entering insert mode
    :norm qqy$jq
    ----------------------------------------
    # manipulating file names
    :h filename-modifiers : help
    :w % : write to current file name
    :w %:r.cfm : change file extention to .cfm
    :!echo %:p : full path & file name
    :!echo %:p:h : full path only
    <C-R>% : insert filename (insert mode)
    "%p : insert filename (normal mode)
    /<C-R>% : Search for file name in text
    ----------------------------------------
    # delete without destroying default buffer contents
    "_d : what you've ALWAYS wanted
    "_dw : eg delete word (use blackhole)
    ----------------------------------------
    # pull full path name into paste buffer for attachment to email etc
    nnoremap <F2> :let @*=expand("%:p")<cr> :unix
    nnoremap <F2> :let @*=substitute(expand("%:p"), "/", "\\", "g")<cr> :win32
    ----------------------------------------
    # Simple Shell script to rename files w/o leaving vim
    $ vim
    :r! ls *.c
    :%s/\(.*\).c/mv & \1.bla
    :w !sh
    :q!
    ----------------------------------------
    # count words in a text file
    g<C-G>
    ----------------------------------------
    # example of setting your own highlighting
    :syn match DoubleSpace " "
    :hi def DoubleSpace guibg=#e0e0e0
    ----------------------------------------
    # Programming keys depending on file type
    :autocmd bufenter *.tex map <F1> :!latex %<CR>
    :autocmd bufenter *.tex map <F2> :!xdvi -hush %<.dvi&<CR>
    ----------------------------------------
    # reading Ms-Word documents, requires antiword
    :autocmd BufReadPre *.doc set ro
    :autocmd BufReadPre *.doc set hlsearch!
    :autocmd BufReadPost *.doc %!antiword "%"
    ----------------------------------------
    # Just Another Vim Hacker JAVH
    vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
    ----------------------------------------
    __END__
    ----------------------------------------
    If you liked these please return to www.vim.org
    and vote for this tip (It does encourage me!!)
    Tip 305
    ----------------------------------------
    Please email any errors, tips etc to
    david@rayninfo.co.uk
    ----------------------------------------
    updated version at http://www.rayninfo.co.uk/vimtips.html
    ----------------------------------------
    # Information Sources
    ----------------------------------------
    www.vim.org
    comp.editors "VIM" newsgroup
    VIM Webring
    Vim Book
    Searchable VIM Doc
    VIM FAQ
    VimTips in Chinese
    ----------------------------------------
    # : commands to neutralise < for HTML display and publish
    yy@" to execute following commands
    :w!|sav! vimtips.html|:/^__BEGIN__/,/^__END__/s#<#\<#g|:/tip[f]tp/|n
    :w!|!tipftp
    ----------------------------------------

  • vim技巧—找出欲搜尋字樣的數目

    方法是:%s/pattern/&/g
    其中的pattern可以用正規表示式


    星期一, 十月 29, 2007

    最新 Google adsense 常见问题答疑

    [博主前言] 兹本人整理或转帖了一些Google adsense 常见的疑问和官方回复,希望对正在做GG广告的朋友有所帮助。有遗漏或需补充的地方,请各位朋友多多指教喔!本日志也将会及时更新。

    1. 问:我可以为adsense for search 预填搜索内容吗
       :这种情况不被允许,政策中有明确的说明。  

    2. 问:可以把竞争性的广告做为adsense的替代广告吗
       :当您的网页中只放了一组adsense 广告代码时是允许的,但是当代码多于一个时不允许将竞争广告做为adsense替代广告(因为有可能同时出现构成竞争关系) 

    3. 问:我可以透过IFRAME来投放广告吗?
      
    答:可以,但是如果选择用iframe来投放广告则展示广告的网页页中只能有1iframe来投放 adsense 广告.例如[<body style="margin:0;padding:0;">你的 Adsense 广告代码</body>]

    4. 问:我可以在使用adsense for search同时也使用其他公司的搜索代码吗?
       答:不可以,如果你要使用adsense for search则整个网站中不允许出现其他公司的搜索产品。

    5. :我的点击率高达xxx正常吗?
       :adsense广告计费与点击无关,如果您正常投放那么点击率为多少都没有关系, 但是提醒您,每当点击率意外上生的时候您应该有防范意识防止被恶意攻击,异常点击率与频繁的无效点击通常是攻击的结果.推荐您经常跟踪您的点击情况!

    6. :不小心点击了自己的广告怎么办?
       :如果是误点请放心,adsense会判断点击为无效点击.不过请杜绝这种情况的再次发生 ,adsense会根据您所在地区IP段以及您登录后台的IPcookies等等很多因素来判断点击,您的行为会被adsense察觉。

    7. :我对自己网站展示的广告感兴趣怎么办?
       :可以用Google Adsense Previrew预览工具。

    8. :Google Adsense是否允许通过JS调用广告代码?
       :目前可以使用JS调用广告,但是不能有影响广告显示和点击的设计。

    9. 问:现在是否还可以设立专门的页面对FirefoxAdSense等推介产品做广告?
       答:对功能的介绍是允许的,即使是专门的页面。但如果有鼓励,诱导,强迫用户等行为的则不允许。

    10.问:关于收益减少的问题--以前做AdSense收益挺好的,从2006 11月到20074月,但从5月开始,单价一直在降,在点击量与以前一样的情况下,收益只有原来的七分之一,请问是什么造成广告价格下降这么厉害?期待回复。
       答:如果你了解AdSense,广告价格由广告商的预算和出价决定,因此经常有所波动。据我所知,在此期间也出现过单价较大幅度上涨的情况。另外,广告单价也与广告主的满意度和投资回报率紧密相关,如果广告主满意广告联盟的投资回报率,自然会加大投入,单价就可能上升,反之亦然。

    11.问:请问下,adwordsfirefox adsense推介做广告是否允许? 因为现在用google搜一下,有好多的发布商在用awords做?
       答:目前的政策是不允许使用AdWords对推介进行推广。

    12.问:关于firefox推介问题--比如,一个用户想下载6间房视频,我推荐此用户用 firefox+扩展。请问这样推广firefox有没有问题?是否违反规定?
       答:这种做法违反 AdSense计划政策。

    13.问:请问在国内采用银行卡等其他支付佣金的方式现在有具体时间表了吗?我听说年底前AdSense 会实现多种佣金支付方式,请确认一下以上是否属实?
       :我们已经开始为实现中国大陆地区的电子支付而努力工作,但何时实现目前尚无具体的时间表。

    14.问:请问下PageRank值的多少是否会影响广告价格?
       答:PageRank值与广告单价无关。

    15.问:我的网站是个论坛,有个网友发了一篇色情的文章,GG 警告了,我把那个内容删掉了。 GG什么时候恢复我那个域名呀? 听人说GG只警告一次的,下次如果还有网友在我网站发表一篇色情文章,我的帐号是不是直接被封掉了 ?
       答:您可以发送邮件说明情况申请解封。另外,您有义务保证您的网站内容符合政策。多次警告后情况仍反复出现,我们将可能停用您的账户。

    16. 问:我曾建议Google AdSense 广告格式可以在指定的范围内调整大小,包括广告的展示量,如横幅 (468 x 60) 可以根据自己网页的位置大小调为(500 x 90)这样的,现在只展示二个广告,也可以由发布商调整为三个。这个功能官方是否会考虑。因为每个人都可以根据广告位置的大小适当调整。
        答:感谢您的建议,目前我们尚无允许发布商自由改变广告大小的计划。

    18.问:成人用品不等于成人内容,对吗?他们是有区别的吗? 正规的成人用品网站,可以放广告代码吗?我的主站是建站系统,广告代码添加在系统模板里,任何会员的网站或者商店页面,都会出现广告,但有个会员的商店是正规的成人用品网站,也要显示广告代码,有问题吗?
       答:要视具体情况而定,一般意义上的"成人用品 "不符合计划政策。

    19.问:为什么现在视频站可以放aesense了?是不是GG政策变了?
       答:计划政策从未禁止在视频类型的网站,当然,这要视视频的具体内容而定。

    20.问:是否允许对广告位加背景图片?不含诱导性的箭头等等,仅仅是美化的边框或阴影等等。虽然官方帮助里说明不可以,但在国内外,有很多网站使用这种背景图片,这个界限不太清楚。
       答:这种情况目前计划政策不允许。

    21.问:什么时候开通网上转帐?② 做GG广告最大感觉是压力大,怕账号被 K,当然决对不作弊,因为论坛上报怨声太多,使人产生怀疑GG是不是真缺少诚信。所以,建议能不能成立一个举报联盟?
       答:我们欢迎您发邮件向我们举报。如果您严格遵守政策,就不必为账户担心。

    22.问:我知道同一网站的不同渠道之间单价会互相影响,我想问一下:同一帐户下不同网站之间的价格是否会互相影响?
       答:广告价格并不会因为是同一账户而互相影响。

    22.问:由于合作的原因,在一个网页上,需要同时放我和别人即两个账号的google adsense ,可以吗?(一个页面内总数不超过 3个广告单元)
       答:可以。

    23.问:请不要以电子转帐方式支付广告费!广告费收入,按现行的法律属于劳务报酬,如果以电子转帐方式支付,需要按法律规定,超过800元部分 扣除 20%作为个人所得税上交。是这样吗?
       答:我们将按照相关的中国法律制定相关的政策。

    24.问:我5月份的钱由于没填钠税,6月份没收到,但是7 月份我帐号被K。请问5月份的钱可以收到吗?
       答:如果因为无效点击而被停用账户,我们将不再支付您的任何收入,已经支付的,我们保留追索权。

    25.问:中国大陆的太极联盟有你们的AdSenseFireFox 推广的广告,请问已经在官方有了帐户,并在太极联盟申请开通了AdSense帐户,是否违反了AdSense计划政策中"一个自然人只能有一个AdSense帐户" 的规定?最近我在另外的联盟申请的点道广告即类似于"内文广告"或者"划词搜索"的那种效果,投放到本站后却发现,点击后转向的是: http://pagead2.googlesyndication.com/pagead/iclk........这样的链接,那请问:你们是和这家网站有合作,还是这家公司在违规投放广告?
       答:太极联盟只是一个普通的AdSense发布商,我们并未与其有任何协议。如果一个发布商拥有两个账户,已经违反政策。我们并未与 www.keygate.com.cn 有任何合作。

    26.问:① 前一段时间adsense后台出现的问题,比如余额出现误差等等,没有官方解释么?②7月月的收入将于 8月 月 10 日最终确定"这个语法错误早就反映了,一直没有修复。③ 效率问题,希望可以有更快的沟通方式。
       答:① 属于系统显示错误,目前已经修复。事实上,如果您选择"所有时间",则收入为您的正确收入。② 我们将尽快改正。③ 我们一直在改进沟通效率,也欢迎您继续提出建议。目前,我们只能以邮件的方式提供常规支持。

    27.问:① 我所有的网站流量都是来源搜索引擎但是由于点击率10%左右,说我是无效点击被K。我提供了搜索日志因为流量全部来源于搜索引擎,所有目标具有强烈的针对性,但是一如冀望的 google都是机器人恢复,令人失望;②再者,我发现有一个站全部是搜索引擎,除了标题全部是google广告,现在还没K。请问:我注册一个无任何内容但是通过SEO,全部来自搜索引擎流量,全部放google 广告,这样违反规定?
       答:① 我们的回复均是人工回复。 ② 欢迎您举报违规站点。

    28.问:① 我是否可以专门制作一个网站做google推介,比如 firefox,我就做一个 firefox站点。我看百度排第一都是一个站一个页面介绍google adsense,这样是不是MADE FOR ADSENSE 。② 推介的无效点击,因为点击的都是有意向的 100点击100转化,那才是有意义点攻击 ;100点击、10个下,这个应该是无效点击;再者 google推介是安装转化给钱,因此无论点多少下都没用,不存在无效点击,是否正确?③ 推介的推广 firefox是强大功能浏览器,我推介时候介绍他的功能,其中包括他扩展、很多网友喜欢这个也是因为他有强大的扩展,刚才回答这个算违反规是违反在那里?
       答:1。已经回答。2. Google根据自己的技术判断无效点击和转换。推介和广告单元一样视为 Google广告,政策相同。3.我是说不能将你的推介和你的视频联系起来进行鼓励下载。

    29.问:有些推介2.0 的成功标准很模糊(比如注册),怎么保证推介成功就一定可以转换成功。
       答:目前尚无具体措施出台,当我们正式推出时,我们会公布一切细节。

    30.问:我做一个网站关于firefox的,全部做推介,但是因为推介过多被K,全部是直接输入网地址的 。google说产生无效点击太多,但是我转化率是50%就以这种理由被K,我相信每个站长有自己的推广方法,是否要公布自己的方法才不被K呢?
       答:Google根据计划政策判断推介行为是否适当,如果您做推介,需要仔细阅读政策,如有不明,应与AdSense小组沟通。

    31.问:我采用企业帐户还是个人帐户?
       答:通常,如果您的公司有 20 名以上员工,您应该申请企业帐户。个人发布商或企业员工少于 20 名的,则应注册个人帐户。个人帐户与企业帐户在服务或付款结构方面没有任何差别。企业帐户的付款将支付到公司名下,而个人帐户的付款则是支付到帐户持有者的收款人名下。如果您需要选择新的帐户类型,我们的专家会帮助您关闭目前的帐户,并利用您更新后的信息建立新帐户。

    最后更新日期:2007-08-28


    http://chanterlee.blog.hexun.com/12331256_d.html

    sedo dns setting

    What's the next step?
    It's very easy: Domain parking means that you simply either change
    your name servers at your Registrar (e.g. Enom, Godaddy, Network
    Solutions, Dotster, Register.com etc.), or enable URL forwarding so
    that your domain points to Sedo:
    http://www.sedoparking.com/domainname.com

    Primary Server Name: NS1.SEDOPARKING.COM
    Primary Server IP: 217.160.95.94

    Secondary Server Name: NS2.SEDOPARKING.COM
    Secondary Server IP: 217.160.141.42

    星期日, 十月 28, 2007

    美国 州名 缩写 对照

    美国的州,是指美国联邦内部的任意一个成员州。权利是在个体的州和联邦政府之间分配。在美国宪法下,联邦政府可以对明显由宪法赋予的内容立法,这就使得权利的管制中心仍然由州保留。
    由独立宣言而从英国独立的美国,刚开始的时候有13个州。州可以通过国会的批准加入联邦。
    起初的时候,没有关于州份是否可以脱离联邦的法律。但是在美国内战后,脱离联邦的行为是禁止的。

    美国各州的邮政缩写,英中文全称以及首府,按英文缩写排列:
    AL Alabama 亚拉巴马州 蒙哥马利
    AK Alaska 阿拉斯加州 朱诺
    AZ Arizona 亚利桑那州 凤凰城
    AR Arkansas 阿肯色州 小石城
    CA California 加利福尼亚州 沙加缅度
    CO Colorado 科罗拉多州 丹佛
    CT Connecticut 康涅狄格州 哈特福德
    DE Delaware 特拉华州 多佛
    FL Florida 佛罗里达州 塔拉哈西
    GA Georgia 佐治亚州 亚特兰大
    HI Hawaii 夏威夷州 檀香山
    ID Idaho 爱达荷州 博伊西
    IL Illinois 伊利诺州 斯普林菲尔德
    IN Indiana 印地安那州 印地安那波利斯
    IA Iowa 艾奥瓦州 得梅因
    KS Kansas 堪萨斯州 托皮卡
    KY Kentucky 肯塔基州 法兰克福
    LA Lousiana 路易斯安那州 巴吞鲁日
    ME Maine 缅因州 奥古斯塔
    MD Maryland 马里兰州 安那波利斯
    MA Massachusetts 马萨诸塞州 波士顿
    MI Michigan 密歇根州 兰辛
    MN Minnesota 明尼苏达州 圣保罗
    MS Mississippi 密西西比州 杰克逊
    MO Missouri 密苏里州 杰弗逊市
    MT Montana 蒙大拿州 海伦那
    NE Nebraska 内布拉斯加州 林肯
    NV Nevada 内华达州 卡森市
    NH New Hampshire 新罕布什尔州 康科德
    NJ New Jersey 新泽西州 特伦顿
    NM New Mexico 新墨西哥州 圣大非
    NY New York 纽约州 奥尔巴尼
    NC North Carolina 北卡罗来纳州 罗利
    ND North Dakota 北达科他州 俾斯麦
    OH Ohio 俄亥俄州 哥伦布
    OK Oklahoma 俄克拉何马州 奥克拉荷马市
    OR Oregon 俄勒冈州 塞勒姆
    PA Pennsylvania 宾夕法尼亚州 哈里斯堡
    RI Rhode Island 罗得岛州 普罗维登斯
    SC South Carolina 南卡罗莱那州 哥伦比亚
    SD South Dakota 南达科他州 皮尔
    TN Tennessee 田纳西州 纳什维尔
    TX Texas 得克萨斯州 奥斯汀
    UT Utah 犹他州 盐湖城
    VT Vermont 佛蒙特州 蒙比利埃
    VA Virginia 弗吉尼亚州 里士满
    WA Washington 华盛顿州 奥林匹亚
    WV West Virginia 西弗吉尼亚州 查尔斯顿
    WI Wisconsin 威斯康星州 麦迪逊
    WY Wyoming 怀俄明州 夏延

    另外还有一个直接由国会领导,独立于各州的的地区是哥伦比亚特区。这里也是国家的首都华盛顿的所在地。
    除去美国的夏威夷和阿拉斯加两个州,其余的48个州和哥伦比亚特区被称为美国本土或美国大陆。
    每一个州被分为更小的的行政区域,在大多数州被称为县或郡(英文county,但路易斯安那州的郡是parish)。一个县可能包括了几个城市和市镇,但有时候只包含城市的一部分。
    一些位于太平洋或者加勒比海的美国属地包括了:
    美属萨摩亚
    贝克岛(无人居住)
    关岛
    豪兰岛(无人居住)
    贾维斯岛(Jarvis Island,无人居住)
    约翰斯顿岛(Johnston Atoll,无人居住)
    金曼礁(Kingman Reef,无人居住)
    中途岛
    纳弗沙岛(Navassa Island,无人居住)
    北马里亚纳群岛
    帕迈拉环礁(Palmyra Atoll,无人居住)
    波多黎各
    美属维京岛
    威克岛(无人居住)

    google app login address

    Here is email from google app

    Hello,
    Thank you for contacting us.
    This is an automated response withinformation about common access
    issues facing admins.
    To access your control panel,

    please log in via https://www.google.com/a/your_domain.com. If you
    haven't logged in before, be sure to log in with the email addressyou
    used to request Google Apps. If you find that another email address
    ispre-selected on the login page, click 'Sign in as a different user'
    toenter the email address you initially provided.
    If you made a purchase via Google Checkout and have difficulty
    gettingstarted, please follow these steps:
    1. Go to http://checkout.google.com/.
    2. Log in with the Google Account you used to purchase your domain.
    3. Click on 'View Order' for the purchase of your domain.
    4. On the next page, click the link for 'To get your digital
    content,click here' (highlighted in green at the top).
    5. Select a username and password for your administrator account,
    andreview the Terms of Service.

    To reset your administrator password, click 'Forgot your
    administratorusername or password?' and be sure to log in with the
    email address youused to request Google Apps.
    If you'd like to view more troubleshooting tips,
    check out the HelpDiscussion to see what's worked for other users:
    http://groups.google.com/group/apps-discuss
    If the issue you've encountered is not included or you are
    stillexperiencing difficulties, please reply to this message, and a
    member ofour team will assist you further. Sincerely, T
    he Google Team

    星期五, 十月 26, 2007

    网站被收录了(1)

    今天我得网站

    cnbook.ccwirld.info

    在baidu上面有 1690 篇收录
    在google上只有105 条收录,

    同时提交的
    baidu 收录的要快很多
    不知道baidu后劲足不足

    Godaddy Promo Coder, Coupon Codes

    Date Posted: Apr/24/2007 10:16 AM
    Rating: +36

    So I've been looking all over the place for a list of GoDaddy promo
    code and coupon -- half the codes I'm finding are inactive, so just
    list the ones you know are working right now. (this list of coupons is
    continuously updated.)

    OYH3 - $3 off / $6.95 any .COM (renewals too... just used it)

    OYH2 - $5 off a $30 purchase

    OYH1 - 10% off whatever

    BTPS7 - 20% any order of $50 or more

    BTPS4 - 10% off anything

    chill1 - 10% off

    chill2 - $5 off $30

    chill3 - $6.95 .coms

    hash1 - 10% off

    hash2 - $5 off $30

    hash3 - $6.95 .com registration

    Also, I've been wondering if GoDaddy has any codes that reduce the
    cost of .INFO's at $.99. Does anyone know of any?

    Quick Summary
    gdbb776 was originally a 10% off code, but gave $5.99 domains, now it
    takes $2 off the cost of domains/renewals and .NET! renewals. --
    updated. now it is back to 10% off.

    goox025afc 6.95 .coms. Not sure if it works for renewals. (from Google Ad)


    Also, gdm0702 works for two .nets for $10, and LOL65 gives you 5.99
    .net buys (not renewals)

    gdm0716 5.99 .net renewal and buys, 7.95 .coms


    cjc695dom $6.95 .COM's incl/renewals - expires 9/30/2007


    here is a list of live codes

    http://livecodes.blogspot.com/

    嵌套使用JavaScript

    错误的代码:

    程序代码
    <script language="JavaScript">
    <!--
    document.write("<script src=\"urchin.js\" type=\"text/javascript\"></script>");
    //-->
    </script>

    正确的代码:

    程序代码
    <script language="JavaScript">
    <!--
    document.write("<script src=\"urchin.js\"
    type=\"text/javascript\"></scr"+"ipt>");
    //-->
    </script>

    星期四, 十月 25, 2007

    星期六, 十月 20, 2007

    ftp command reference

    指令名稱

    指令及語法功能說明

    ascii 以ASCII方式傳送文件
    bell 每完成一次文件?送傳送,提示警告音響
    binary 設定以二進制方式傳送文件
    bye 終止主機FTP傳輸過程,並退出FTP管理方式
    case 當值為ON時,用MGET命令拷貝的文件名到本地機器中,全部全部轉換為小寫字母
    cd 同UNIX的CD命令 (切換遠端目錄)
    cdup 返回上一層目錄
    chmod 改變遠端主機的文件權限
    close 終止遠端的FTP過程,返回到FTP命令狀態
    delete 刪除遠端主機中的檔案文件
    dir 列出目前遠端主機目錄中的文件.如果有本地文件,就將結果寫至本地文件
    get 將遠端主機中檔案傳送至本地主機中
    help [command] 輸出命令的解釋
    lcd 改變目前本地主機的工作目錄
    ls 同DIR
    macdef 定義命令
    mdelete 刪除一批檔案文件
    mget 從遠端主機接收一批檔案文件至本地主机
    mkdir 在遠端主機中建立目錄
    mput 將本地主機中一批檔案文件傳送至遠端主機
    open 重新建立一個新的連接
    prompt 交互提示模式
    put 將本地單一檔案文件傳送至遠端主机中
    pwd 列出目前遠端主機目錄
    quit 同BYE(離開此系統)
    recv 同GET
    rename 改變遠端主機中的檔案文件名稱
    rmdir 刪除遠端主機中的目錄
    send 同PUT
    status 顯示目前FTP的狀態
    system 顯示遠端主机系統類型
    user 重新以別的使用者名稱登入遠端主機

    用Windows批处理文件封装ftp文件下载

    http://blog.csdn.net/guanzhongs/archive/2006/01/26/588876.aspx


    这几天,工作中需要从远端ftp服务器下载并分析大量数据文件。数据文件的分析没什么可说的,就是字串解析,要说说ftp文件下载。
    要下载ftp服务器上的文件,方法有多种,如:
    1. 用Socket建立链接,然后按照FTP协议,进行命令字交互,这相当于实现一个小的ftp客户端程序;
    2. 用WinSDK中的WinINet, 里面提供了FtpGetFile这样的一系列方法,用于ftp客户端编程;
    3. 使用类似CuteFTP这样的客户端软件;
    4. 使用控制台ftp命令;

    使用cuteftp等软件,需要安装软件不说,还不便于与数据处理程序协调工作,所以不行。剩下三种方法都可以,但前两种,写程序工作量比较大,那就看看最后一个方法:使用控制台ftp命令。

    常用的ftp命令有open, user, get, mget, put, quit等,最重要一点,ftp命令(实际上也是一客户端程序)支持命令脚本,也就是他可以根据你设计的脚本进行链接和下载。
    一个简单的脚本如下:
    ----------------------------
    open theftpserver
    user admin 123456
    get thefile.dat
    quit
    ----------------------------
    将这样的脚本保存后(如down.ftp),用ftp命令直接调用即可:
    c:\blog\csdn\guanzhongs>ftp -n < down.ftp

    这样看来,使用ftp命令,结合Windows的批处理文件,完全可以把文件下载部分解决。

    还有一问题:下载的文件名是不确定的,但是ftp命令中需要指定确定的文件名。解决这个问题的方法是,在批处理文件中动态生成ftp脚本文件,然后调用ftp命令执行它。

    下面是一个例子,已经在WindowsXP下测试通过。这个例子可以接受服务器名,用户名,用户密码,下载文件名为参数,然后将文件下载到本地目录。同时记录简单的log信息。

    ----------------------------------------------------------------------------
    -- getfiles.bat
    ----------------------------------------------------------------------------

    @echo off

    rem /////////////////////////////////////////////////////////////////
    rem // guanzhong 2006-1-25
    rem // Blog :
    http://blog.csdn.net/guanzhongs
    rem // batch file for download file(s) from remote server
    rem // Command line :
    rem //  getfiles <server> <user> <password> <remotefilename>
    rem /////////////////////////////////////////////////////////////////

    if "%1"=="" goto Usage
    if "%1"=="/?" goto Usage
    if "%2"=="" goto Usage
    if "%3"=="" goto Usage
    if "%4"=="" goto Usage

    set ftpfile=getfiles.tmp
    set logfile=getfiles.log

    rem // 生成ftp下载脚本

    echo open %1 > "%ftpfile%"
    echo user %2 %3 >> "%ftpfile%"
    echo bin >> "%ftpfile%"
    echo prompt >> "%ftpfile%"
    echo mget %4 >> "%ftpfile%"
    echo quit >> "%ftpfile%"

    rem // 记录log

    echo -------------------------------- >> "%logfile%"
    date /t >> "%logfile%"
    time /t >> "%logfile%"
    echo -------------------------------- >> "%logfile%"

    rem // 下载文件
    ftp -n < "%ftpfile%" >> "%logfile%"

    rem // 删除临时脚本
    del "%ftpfile%"

    echo getfiles done! >> "%logfile%"


    goto End

    :Usage
    echo Get file(s) from the remote server, support multi get.
    echo Usage:
    echo getfiles [server user password remotefilename]


    :End


    @echo on


    ----------------------------------------------------------------------------

    上例中,批处理的第四个参数是所要下载的文件名,这个文件名与dos命令中一样,支持通配符,也就是说,这个批处理文件支持下载批量文件,如:
    c:\blog\csdn\guanzhongs>getfiles 127.0.0.1 admin 123456 *.jpg
    可以把远程目录下的所有jpg文件下载过来。

    另外,上例中ftp脚本文件中多了两行内容:
    echo bin >> "%ftpfile%"
    echo prompt >> "%ftpfile%"
    第一行是指定用二进制方式传输,也可以用ASCII方式;
    第二行是指定如果有文件覆盖时,不需要提示,这样就不会打断批处理文件的执行了。

    有了这个getfiles.bat文件,在程序中下载文件,只需要ShellExecute一下就行了。

    对于Linux系统,思路是类似的,而且Linux系统的Shell功能非常强大,能够实现更加完善的功能。


    完成上面工作,你需要了解:
    DOS/Window Console命令,及批处理脚本编写。
    控制台Ftp命令的使用。

    星期三, 十月 17, 2007

    美国城市,州,邮编,姓名,姓氏 列表

    你的城市(city)和州(state),以及邮政编码(zip code) 
    邮编   城市(city)     州(state) 
    12201  Albany       NewYork(NY) 
    30301  Atlanta       Georgia(GA) 
    21401  Annapolis      Maryland(MD) 
    21201  Baltimore      Maryland(MD) 
    35201  Birmingham     Alabama(AL) 
    14201  Buffalo       NewYork(NY) 
    60601  CHICAGO       Illinois(IL) 
    45201  Cincinnati     Ohio(OH) 
    44101  Cleveland      Ohio(OH) 
    43085  Columbus      Ohio(OH)  
    71953  Dallas       Arkansas(AR) 
    80002  Denver       Colorado(CO) 
    99701  Fairbanks      Alaska(AK) 
    19019  Philidelphia    pennsylvania(PA) 
    96801  Honolulu      Hawii(HI) 
    46201  Indianapolis    Indiana(IN) 
    32099  Jacksonville    FLORIDA(FL)      
    64101  Kansas City     Missouri(MO) 
    90001  Los Angeles     California(CA) 
    89101  Las Vegas      Navada(NV) 
    55199  Minneapolis     Minnesota(MN) 
    10001  New York      NewYork(NY) 
    70112  New Orleaans    Louisana(LA) 
    68046  Omaha        Nebraska(NE) 
    85001  Phoenix       Arizona(AZ) 
    15122  Pittsburgh     pennsylvania(PA) 
    84101  Salt Lake City   Utah(UT) 
    94203  Sacramento     California(CA) 
    92101  San Diego      California(CA) 
    94101  San Francisco    California(CA) 
    95101  San Jose      California(CA) 
    55101  Saint Paul     Minnesota(MN) 
    63101  Saint Louis     Missouri(MO) 
    98101  Seattle       Washington(WA) 
    33601  Tampa        FLORIDA(FL) 

    三,英文名字 
    英文名字分两部分,名(first name)和姓(last name),顺序和我们中国人的习惯相反,名在前,姓在后,如jim green,jim是名,green是姓 

    英文名字(first name) 
    男孩名字 (MALE) 女孩名字 (FEMALE) 
    1 Jacob     Emily 
    2 Michael    Hannah 
    3 Joshua    Madison 
    4 Matthew    Samantha 
    5 Andrew    Ashley 
    6 Joseph    Sarah 
    7 Nicholas   Elizabeth 
    8 Anthony    Kayla 
    9 Tyler     Alexis 
    10 Daniel    Abigail 
    11 Christopher Jessica 
    12 Alexander  Taylor 
    13 John Anna 
    14 William   Lauren  
    15 Brandon   Megan 
    16 Dylan    Brianna 
    17 Zachary   Olivia 
    18 Ethan    Victoria 
    19 Ryan     Emma 
    20 Justin    Grace 
    21 David    Rachel 
    22 Benjamin   Jasmine 
    23 Christian  Nicole 
    24 Austin    Destiny 
    25 Cameron   Alyssa 
    26 James    Chloe 
    27 Jonathan   Julia 
    28 Logan    Jennifer 
    29 Nathan    Kaitlyn 
    30 Samuel    Morgan


    31 Hunter    Isabella 
    32 Noah     Natalie 
    33 Robert    Alexandra 
    34 Jose     Sydney 
    35 Thomas    Katherine 
    36 Kyle     Amanda 
    37 Kevin    Stephanie 
    38 Gabriel   Hailey 
    39 Elijah    Maria 
    40 Jason    Gabrielle 
    41 Luis     Haley 
    42 Aaron    Rebecca 
    43 Caleb    Madeline 
    44 Connor    Sophia 
    45 Luke     Mary 
    46 Jordan    Amber 
    47 Jack     Courtney 
    48 Adam     Jenna 
    49 Eric     Jordan 
    50 Jackson   Sierra 
    51 Carlos    Bailey 
    52 Angel    Mackenzie 
    53 Isaiah    Gabriella 
    54 Alex     Sara 
    55 Evan     Jada 
    56 Mason    Katelyn 
    57 Isaac    Savannah 
    58 Jesus    Kaylee 
    59 Sean     Allison 
    60 Timothy   Andrea 
    61 Patrick   Catherine 
    62 Brian    Danielle 
    63 Bryce    Zoe 
    64 Nathaniel  Alexa 
    65 Chase    Christina 
    66 Juan     Ariana 
    67 Sebastian  Caitlin 
    68 Cole     Michelle 
    69 Jared    Brooke 
    70 Bryan    Kimberly 
    71 Garrett   Makayla 
    72 Steven    Shelby 
    73 Adrian    Trinity 
    74 Cody     Erin 
    75 Charles   Jade 
    76 Devin    Mariah 
    77 Eduardo   Melanie 
    78 Richard   Alexandria 
    79 Marcus    Angela 
    80 Ian     Arianna 
    81 Lucas    Jacqueline 
    82 Seth     Paige 
    83 Xavier    Faith 
    84 Dalton    Melissa 
    85 Jeremiah   Riley 
    86 Miguel    Vanessa 
    87 Blake    Ana 
    88 Edward    Isabel 
    89 Wyatt    Isabelle 
    90 Fernando   Kelly 
    91 Spencer   Marissa 
    92 Antonio   Alexia 
    93 Carson    Angelica 
    94 Gavin    Brittany 
    95 Julian    Jocelyn 
    96 Oscar    Miranda 
    97 Trevor    Mya 
    98 Tristan   Caroline 
    99 Aidan    Cassidy 
    100 Dakota   Jordyn 


    英文姓氏(last name) 
    adams 
    anderson 
    arnold 
    baker 
    bell 
    campbell 
    carter 
    cecil 
    charles 
    christian 
    dale 
    david 
    clark 
    clive 
    cook 
    duncan 
    eddy 
    edward 
    evelyn 
    fergus 
    garcia 
    gary 
    george 
    gerard 
    giles 
    green 
    griffin 
    hall 
    harris 
    hill 
    jackson 
    james 
    ja 
    joyce 
    keith 
    kirk 
    lee 
    leonard 
    leslie 
    lester 
    lewis 
    may 
    murphy 
    nelson 
    oliver 
    owen 
    percy 
    peters 
    quick 
    raphael 
    rodney 
    rose 
    rupert 
    scott 
    shelley 
    smith 
    taylor 
    tuener 
    walker 
    warren 
    williams

    星期五, 十月 12, 2007

    DELETE THE OLDER POSTS AND NEWER POSTS LINK

    To completely delete the Older Posts and Newer Posts links locate this line of  code in the Blog  Posts  widget after putting a check in the Expand Widgets Template check-box  :

    <!--  navigation -->
    <b:include name='nextprev'/>

    get rid of blogger navbar

    put following beyond </head>

    <style type='text/css'>
    #navbar-iframe {
       height:0px;
       visibility:hidden;
       display:none
       }
    </style>
      </head>

    Good Blog Example

    http://business-net-ocha.blogspot.com/

    Good Example

    星期四, 十月 11, 2007

    namedrive dns server

    ns1.fastpark.net
    ns2.fastpark.net

    星期三, 十月 10, 2007

    pycurl example: pycurl frequently used options

    c = pycurl.Curl()
    c.setopt(pycurl.VERBOSE,1)
    c.setopt(pycurl.FOLLOWLOCATION, 1)
    c.setopt(pycurl.MAXREDIRS, 5)
    #c.setopt(pycurl.AUTOREFERER,1)
    #c.setopt(pycurl.COOKIEJAR,"dasfa")
    c.setopt(pycurl.CONNECTTIMEOUT, 60)
    c.setopt(pycurl.TIMEOUT, 300)
    if proxy:
    c.setopt(pycurl.PROXY,proxy)
    c.setopt(pycurl.NOSIGNAL, 1)
    c.fp = StringIO.StringIO()
    random.seed()
    c.setopt(pycurl.USERAGENT,
    """Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
    rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7""")
    c.setopt(pycurl.URL, url)
    c.setopt(c.WRITEFUNCTION, c.fp.write)
    c.perform()

    HTTP User Agent Examples

    agence = [
        """Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7""",
        """Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)""",
        """Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)""",
        """Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6""",
        """Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5""",
        """Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)""",
        """Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727 )""",
        """Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12""",
        """Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv: 1.8.1.5) Gecko/20070713 Firefox/2.0.0.5""",
        """Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"""
        ]

    星期二, 十月 09, 2007

    汉字域名 两个词

    import string

    zz = string.split("a ai an ang ao ba bai ban bang bao bei ben beng bi
    bian biao bie bin bing bo bu ca \
    cai can cang cao ce cen ceng cha chai chan chang chao che chen cheng
    chi chong chou chu chuai chuan \
    chuang chui chun chuo ci cong cou cu cuan cui cun cuo da dai dan dang
    dao de dei deng di dia dian diao \
    die ding diu dong dou du duan dui dun duo e ei en er fa fan fang fei
    fen feng fo fou fu ga gai gan gang \
    gao ge gei gen geng gong gou gu gua guai guan guang gui gun guo ha hai
    han hang hao he hei hen heng hong \
    hou hu hua huai huan huang hui hun huo ji jia jian jiang jiao jie jin
    jing jiong jiu ju juan jue jun ka kai \
    kan kang kao ke ken keng kong kou ku kua kuai kuan kuang kui kun kuo
    la lai lan lang lao le lei leng li \
    lia lian liang liao lie lin ling liu lo long lou lu lv lve luan lun
    luo m ma mai man mang mao me mei men \
    meng mi mian miao mie min ming miu mo mou mu na nai nan nang nao ne
    nei nen neng ng ni nian niang niao nie \
    nin ning niu nong nou nu nv nve nuan nuo o ou pa pai pan pang pao pei
    pen peng pi pian piao pie pin ping po \
    pou pu qi qia qian qiang qiao qie qin qing qiong qiu qu quan que qui
    qun ran rang rao re ren reng ri rong rou \
    ru ruan rui run ruo sa sai san sang sao se sen seng sha shai shan
    shang shao she shei shen sheng shi shou shu \
    shua shuai shuan shuang shui shun shuo si song sou su suan sui sun suo
    ta tai tan tang tao te teng ti tian tiao \
    tie ting tong tou tu tuan tui tun tuo wa wai wan wang wei wen weng wo
    wu xi xia xian xiang xiao xie xin xing \
    xiong xiu xu xuan xue xun ya yan yang yao ye yi yin ying yo yong you
    yu yuan yue yun za zai zan zang zao ze zei \
    zen zeng zha zhai zhan zhang zhao zhe zhen zheng zhi zhong zhou zhu
    zhua zhuai zhuan zhuang zhui zhun zhuo zi \
    ong zou zu zuan zui zun zuo")

    i=0
    zzzz = []
    for aa in zz:
    for bb in zz:
    i+=1
    zzzz.append(aa+bb)

    print len(zzzz)
    #for zzi in zzzz: print zzi