<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    小小

    IT
    數據加載中……

    2008年9月27日

    ORACLE中字符串split的一種方法

    一種方法是用函數:這里轉帖網上摘抄的一個函數

      CREATE OR REPLACE TYPE str_split IS TABLE OF VARCHAR2 (4000);

      CREATE OR REPLACE FUNCTION splitstr(p_string IN VARCHAR2, p_delimiter IN VARCHAR2)

      RETURN str_split

      PIPELINED

      AS

      v_length   NUMBER := LENGTH(p_string);

      v_start    NUMBER := 1;

      v_index    NUMBER;

      BEGIN

      WHILE(v_start <= v_length)

      LOOP

      v_index := INSTR(p_string, p_delimiter, v_start);

      IF v_index = 0

      THEN

      PIPE ROW(SUBSTR(p_string, v_start));

      v_start := v_length + 1;

      ELSE

      PIPE ROW(SUBSTR(p_string, v_start, v_index - v_start));

      v_start := v_index + 1;

      END IF;

      END LOOP;

      RETURN;

      END splitstr;

      這里提供另外一種方法,tbw利用oracle的正則相關函數實現:

      select dbms_lob.substr(regexp_substr('abc,def,ggg,1,2,3,4,5', '[^,]+', 1, x.n)) as player_guid

      from dual a, (select rownum n from dual connect by rownum < 100) x

      這里利用了函數 regexp_substr和connect by

      其中rownum < 100 會連接限制split的次數 '[^,]+'為split拆分的正則表達式,這里為【,】逗號

      上面sql語句結果是:

      abc

      def

      ggg

      1

      2

      3

      4

      5

    posted @ 2010-02-24 05:22 小小it 閱讀(3171) | 評論 (0)編輯 收藏
    sql語句實現循環添加1000個數據

    select * from ausertable order by userid;

      commit;  //執行 結束

      1:最近剛開始用oracle 數據庫,很多東西都不怎么懂,要在tbw賬號表添加 1000個賬號,找了一些資料,經過測試可以使用,開始 我吧語法 都跟SqlServer  里面的混了,花了一個上午的時間,下面就是測試的數據的代碼:特別注意的是:'01'||to_char(i)這里 一直meiyo

      DECLARE

      i number:=0;

      BEGIN

      for i in 1..100 loop

      insert into AUSERTABLE(USERID,USERPID,USERNAME)

      values('01'||to_char(i),'8','武漢');

      dbms_output.put_line(i);

      end loop;

      END;

    posted @ 2010-02-24 05:21 小小it 閱讀(856) | 評論 (0)編輯 收藏
    教你如何Oracle數據導入

    學習Oracle時,你可能會遇到Oracle數據導入問題,這里將介紹Oracle數據導入問題的解決方法,在這里拿出來和大家分享一下。Oracle數據導入實用程序(Import utility)允許從數據庫提取數據,并且將數據寫入操作系統文件。imp使用的基本格式:imp[username[/password[@service]]],以下例舉imp常用用法。

      1. 獲取幫助

      imp help=y

      2. 導入一個完整數據庫

      imp system/manager file=bible_db log=dible_db full=y ignore=y

      3. 導入一個或一組指定用戶所屬的全部表、索引和其他對象

      imp system/manager file=seapark log=seapark fromuser=seapark imp

      system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)

      4. 將一個用戶所屬的數據導入另一個用戶

      imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy

      imp system/manager file=tank log=tank fromuser=(seapark,amy)

      touser=(seapark1, amy1)

      5. 導入一個表

      imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)

      6. 從多個文件導入

      imp system/manager file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4)

      log=paycheck, filesize=1G full=y

      7. 使用參數文件

      imp system/manager parfile=bible_tables.par

      Import the sample tables used for the Oracle8i Database Administrator's

      Bible. fromuser=seapark touser=seapark_copy file=seapark log=seapark_import

      8. 增量導入

      imp system./manager inctype= RECTORE FULL=Y FILE=A

      Oracle數據導入導出imp/exp就相當于oracle數據還原與備份。exp命令可以把數據從遠程數據庫服務器導出到本地的dmp文件,imp命令可以把dmp文件從本地導入到遠處的數據庫服務器中。 利用這個功能可以構建兩個相同的數據庫,一個用來測試,一個用來正式使用。

      執行環境:可以在SQLPLUS.EXE或者DOS(命令行)中執行,DOS中可以執行時由于 在oracle 8i 中 安裝目錄\ora81\BIN被設置為全局路徑,該目錄下有EXP.EXE與IMP.EXE文件被用來執行導入導出。oracle用java編寫,SQLPLUS.EXE、EXP.EXE、IMP.EXE這兩個文件有可能是被包裝后的類文件。SQLPLUS.EXE調用EXP.EXE、IMP.EXE所包裹的類,完成導入導出功能。
    轉載:http://www.mengbu.com/  地址:http://www.mengbu.com/news/56/

    posted @ 2010-02-13 01:58 小小it 閱讀(664) | 評論 (0)編輯 收藏
    iis rewrite 規則收集整理 精華 推薦!

    轉載請注明來源:楓子整理并發布于:http://www.imfeng.com/iis-rewrite-rules-collect-isapi-rewrite/

    二級域名:
    RewriteCond Host: (?!/.|www|ww)(.*).gongluela.com
    RewriteRule (.*) http/://www.gongluela.com/$1$2 [I,R]

    防盜鏈:
    ISAPI_Rewrite的httpd.ini內容寫的是下面內容,如果你也遇到盜鏈的困擾,建議可以參考一下:

    RewriteCond Host: (.+)
    RewriteCond Referer: (?!http://(?:www\.gongluela\.com|www\.imfeng\.com|www\.goboyo\.com|www\.soso\.com|www\.google\.com|cache\.baidu\.com)).+
    RewriteRule .*\.(?:jpg|kmz|kml|zip) /block.gif [I,O]

    注釋:第二行里面的域名是允許鏈接圖片的網站列表,目前我允許我自己的兩個站和另外bloglines、zhuaxia、google、baidu這四個網站引用我站文件,其他網站的引用被禁止。

      第三行是禁止引用的文件類型,包括jpg圖片、Google Earth的kmz和kml、zip文件。當然,還可以增加其他類型,比如gif、rar等,因為我站沒有那些文件,所以沒有添加上去。

    下面是轉載的一點文章,特轉給帥哥看的。

    發這個幫助文件是因為在給朋友設置主機的時候發現他們的ISAPI Rewrite的設置都有些不正確,有些甚至阻礙了站點的正常運行。就把官方自帶的英文幫助粗略的翻譯了一下。大家可以自由使用和轉載。但轉載時如果你愿意請注明是 藍色 翻譯的版本。

    ===================
    ISAPI Rewrite 配置簡介:

    在NT/2000/XP和2003平臺上,ISAPI Rewrite在系統帳戶下射入INETINFO進程與 IIS 以共存模式過濾器運行。所以系統帳戶應該給予對ISAPI- REWIRITE DLLS Internet匿名訪問組 可讀可執行權限 和所有的 HTTPD。INI 文件可讀權限,還應該給予系統帳戶對于所有包括 HTTPD。INI 文件的文件夾的可寫權限,這將允許產生 HTTP。 PARSE。ERRORS 日志文件,來記錄配置文件語法錯誤。對于PROXY模塊也需要額外的權限,因為它將運行于連接池或HIGH-ISPLATED 應用模式,IIS帳戶共享池和HIGH-ISOLATION池應被給予對RWHELPERE。DLL的可讀權限。缺省情況下IWAM-《計算機名》被用于所有的池,在相應的COM+應用設置中應借助COM+ADMINISTRATION MMC SNAP-IN建立池帳戶

    配置文件格式化:

    配置文件分為兩種: GLOBAL(服務器全局模式)和 INDIVIDUAL(站點獨立設置模式)文件,GLOBAL(服務器端全局模式)配置文件應該被放在ISAPI-REWRITE 安裝目錄中,名為 httpd.ini 。這個文件可以通過開始菜單的快捷方式訪問和配置,這個文件里面的映射規則為全局規則,將針對所有站點起效。INDIVIDUAL(站點獨立設置模式)配置文件應該被放在虛擬站點的根目錄內,也被命名為httpd.ini文件,這里面應該放置針對站點的映射配置設置,只針對被放置的虛擬站點有效。兩種類型的 httpd.ini 都是標準的windows ini 文件。所有的映射規則應該被放置在 [ISAPI_Rewrite] 之后。之前的文件文本將被忽略。
    HTTPD.INI文件示例

    [ISAPI_Rewrite]

    # This is a comment

    # 300 = 5 minutes

    CacheClockRate 300

    RepeatLimit 20

    # 設置其他人沒有下載 httpd.ini 和 httpd.parse.errors 文件的權限

    RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]

    # Block external access to the Helper ISAPI Extension

    RewriteRule .*\.isrwhlp / [F,I,O]

    # 配置規則

    RewriteCond Host: (.+)

    RewriteCond 指令

    Syntax:(句法) RewriteCond TestVerb CondPattern [Flags]

    這一指令定義一個條件規則,在 RewriteRule 或者 RewriteHeader或 RewriteProxy指令前預行RewriteCond指令,后面的規則只有它的,模式匹配URI的當前狀態并且額外的條件也被應用才會被應用。

    TestVerb

    Specifies verb that will be matched against regular expression.

    特別定義的動詞匹配規定的表達式

    TestVerb=(URL | METHOD | VERSION | HTTPHeaderName: | %ServerVariable) where:

    URL – returns Request-URI of client request as described in RFC 2068 (HTTP 1.1);

    返回客戶端在RFC2068中描述的需求的Request-URI

    METHOD – returns HTTP method of client request (OPTIONS, GET, HEAD, POST, PUT, Delete or TRACE);

    返回客戶端需求(OPTIONS, GET, HEAD, POST, PUT, Delete or TRACE)的HTTP方法

    VERSION – returns HTTP version;

    返回HTTP版本

    HTTPHeaderName – returns value of the specified HTTP header. HTTPHeaderName can be any valid HTTP header name. Header names should include the trailing colon “:”. If specified header does not exists in a client’s request TestVerb is treated as empty string.

    返回特定義的HTTP頭文件的值

    HTTPHeaderName =

    Accept:

    Accept-Charset:

    Accept-Encoding:

    Accept-Language:

    Authorization:

    Cookie:

    From:

    Host:

    If-Modified-Since:

    If-Match:

    If-None-Match:

    If-Range:

    If-Unmodified-Since:

    Max-Forwards:

    Proxy-Authorization:

    Range:

    Referer:

    User-Agent:

    Any-Custom-Header

    得到更多的關于HTTP頭文件的和他們的值的信息參考RFC2068

    ServerVariable 返回特定義的服務器變量的值 。例如服務器端口,全部服務器變量列表應在IIS文檔中建立,變量名應用%符預定;

    CondPattern

    The regular expression to match TestVerb

    規則表達式匹配TestVerb

    [Flags]

    Flags is a comma-separated list of the following flags:

    O (nOrmalize)

    Normalizes string before processing. Normalization includes removing of an URL-encoding, illegal characters, etc. This flag is useful with URLs and URL-encoded headers

    RewriteRule 指令

    Syntax: RewriteRule Pattern FormatString [Flags]

    這個指令可以不止發生一次,每個指令定義一個單獨的重寫規則,這些規則的定義命令很重要,因為這個命令在應用運行時規則是有用途的

    I (ignore case)

    不管大小寫強行指定字符匹配(http://www.chnjc.com/),這個FLAG影響RewriteRule指令和相應的RewriteCond 指令

    F (Forbidden)

    對客戶端做反應,停止REWRITING進程并且發送403錯誤,注意在這種情況下FORMATSTRING 是無用的并可以設置為任何非空字符串。

    L (last rule)

    不應用任何重寫規則在此停止重寫進程,使用這個FLAG以阻止當前被重寫的URI被后面的規則再次重寫

    N (Next iteration)

    強制REWRITINGENGINE調整規則目標并且從頭重啟規則檢查(所有修改將保存),重啟次數由RepeatLimit指定的值限制,如果這個數值超過N FLAG將被忽略

    NS (Next iteration of the same rule)

    以N標記工作不從相同的規則重啟規則規則進程(例如強制重復規則應用),通過RepeatLimit指令指定一個反復實行某一規則的最大數目,

    P (force proxy)

    強制目的URI在內部強制為代理需求并且立即通過ISAPI擴展應付代理需求,必須確認代理字符串是一個有效的URI包括協議主機等等否則代理將返回錯誤

    R (explicit redirect)

    強制服務器對客戶端發出重定向指示即時應答,提供目的URI的新地址,重定向規則經常是最后規則

    RP (permanent redirect)

    幾乎和[R]標記相同但是發布301HTTP狀態而不是302HTTP狀態代碼

    U (Unmangle Log)

    當URI是源需求而不是重寫需求時記載URI

    O (nOrmalize)

    在實行之前標準化字符串。標準化包括URL-ENCODING,不合法的字符的再移動等,這個標記對于URLS和URLS-ENDODED頭是有用的

    CL (Case Lower)

    小寫

    CU (Case Upper)

    大寫

    RewriteHeader directive

    Syntax: RewriteHeader HeaderName Pattern FormatString [Flags]

    這個指令是RewriteRule的更概括化變種,它不僅重寫URL的客戶端需求部分,而且重寫HTTP頭,這個指令不僅用于重寫。生成,刪除任何HTTP頭,甚至改變客戶端請求的方法

    HeaderName

    指定將被重寫的客戶頭(http://www.yaopinwang.org/),可取的值與 RewriteCond 指令中TestVerb參數相同

    Pattern

    限定規則表達式以匹配Request-URI,

    FormatString

    限定將生成新的URI的FormatString

    [Flags]

    是一個下列FLAGS的命令分隔列表

    I (ignore case)

    不管大小寫強行指定字符匹配,這個FLAG影響RewriteRule指令和相應的RewriteCond 指令

    F (Forbidden)

    對客戶端做反應,停止REWRITING進程并且發送403錯誤,注意在這種情況下FORMATSTRING 是無用的并可以設置為任何非空字符串。

    L (last rule)

    不應用任何重寫規則在此停止重寫進程,使用這個FLAG以阻止當前被重寫的URI被后面的規則再次重寫

    N (Next iteration)

    強制REWRITINGENGINE調整規則目標并且從頭重啟規則檢查(所有修改將保存),重啟次數由RepeatLimit指定的值限制,如果這個數值超過N FLAG將被忽略

    NS (Next iteration of the same rule)

    以N標記工作不從相同的規則重啟規則規則進程(例如強制重復規則應用),通過RepeatLimit指令指定一個反復實行某一規則的最大數目,

    R (explicit redirect)

    強制服務器對客戶端發出重定向指示即時應答,提供目的URI的新地址,重定向規則經常是最后規則

    RP (permanent redirect)

    幾乎和[R]標記相同但是發布301HTTP狀態而不是302HTTP狀態代碼

    U (Unmangle Log)

    當URI是源需求而不是重寫需求時記載URI

    O (nOrmalize)

    在實行之前標準化字符串。標準化包括URL-ENCODING,不合法的字符的再移動等,這個標記對于URLS和URLS-ENDODED頭是有用的

    CL (Case Lower)

    小寫

    CU (Case Upper)

    大寫

     

    要重移動頭,FORMAT STRING模式應該生成一個空字符串,例如這一規則將從客戶請求中重移代理信息

    RewriteHeader User-Agent: .* $0

    并且這一規則將把OLD-URL HEADER 加入請求中。

    RewriteCond URL (.*)RewriteHeader Old-URL: ^$ $1

    最后一個例子將通過改變請求方法定向所有的WEBDAV請求到/WEBDAV。ASP

    RewriteCond METHOD OPTIONS

    RewriteRule (.*) /webdav.asp?$1

    RewriteHeader METHOD OPTIONS GET

    RewriteProxy directive

    Syntax: RewriteProxy Pattern FormatString [Flags]

    強制目的URI在內部強制為代理需求并且立即通過ISAPI擴展應付代理需求,這將允許IIS作為代理服務器并且重路由到其他站點和服務器

    Pattern

    限定規則表達式以匹配Request-URI,

    FormatString

    限定將生成新的URI的FormatString

    [Flags]

    是一個下列FLAGS的命令分隔列表

    D (Delegate security)

    代理模式將試圖以當前假冒的用戶資格登陸遠程服務器,

    C (use Credentials)

    代理模式將試圖一在URL或基本授權頭文件中指定的資格登陸遠程服務器,用這個標記你可以使用http://user:password@host.com/path/ syntax 作為URL

    F (Follow redirects)

    缺省情況下ISAPI_Rewrite 將試圖將MAP遠程服務器返回的重定向指令到本地服務器命名空間,如果遠程服務器返回重定向點到那臺服務器其他的某個位置,ISAPI_Rewrite 將修改這一重定向指令指向本服務器名,這將避免用戶看到真實(內部)服務器名稱

    使用F標記強制代理模式內部跟蹤遠程服務器返回的重定向指令,使用這個標記如果你根本不需要接受遠程服務器的重定向指令,在WINHTTP設置中有重定向限制以避免遠程重定向循環

    I (ignore case)

    不管大小寫強行指定字符匹配

    U (Unmangle Log)

    當URI是源需求而不是重寫需求時記載URI

    O (nOrmalize)

    在實行之前標準化字符串。標準化包括URL-ENCODING,不合法的字符的再移動等,這個標記對于URLS和URLS-ENDODED頭是有用的

    CacheClockRate directive

    Syntax: CacheClockRate Interval

    這個指令只在GLOBAL配置內容中出現,如果這個指令在SITE-LEVEL內容中出現將被忽略并把錯誤信息寫入httpd.parse.errors 文件

    ISAPI_Rewrite caches每次在第一次加載時配置(http://www.mshuba.com/),使用這個指令你可以限定當一個特定站點從緩存中清理的不活動周期,把這個參數設置的足夠大你可以強制 ISAPI_Rewrite 永不清理緩存,記住任何配置文件的改變將在下次請求后立即更新而忽略這個周期

    Interval

    限定特定配置被清理出緩存的不作為時間(以秒計),缺省值3600(1小時)

    EnableConfig and DisableConfig directives

    Syntax:

    EnableConfig [SiteID|"Site name"]

    DisableConfig [SiteID|"Site name"]

    對所選站點激活或不激活SITE-LEVEL配置或者改變缺省配置,缺省SITE-LEVEL配置不激活,這個指令只出現在GLOBAL配置內容中

    SiteID

    Numeric metabase identifier of a site

    Site name

    Name of the site as it appears in the IIS console

    不用參數使用這個命令將改變缺省配置到ENABLE/DISABLE配置進程

    例子

    下面例子將使配置僅作用于ID=1(典型是缺省站點)名字是MY SITE的站點

    DisableConfig

    EnableConfig 1

    EnableConfig”My site”

    下邊例子將激活名稱為SOMESITE配置因為它分割設置重載了缺省設置

    EnableConfig”Some site”

    DisableConfig

    EnableRewrite and DisableRewrite directives

    Syntax:

    EnableRewrite [SiteID|"Site name"]

    DisableRewrite [SiteID|"Site name"]

    對所選站點激活或不激活重寫或者改變缺省配置,缺省重寫配置激活,這個指令只出現在GLOBAL配置內容中

    SiteID

    Numeric metabase identifier of a site

    Site name

    Name of the site as it appears in the IIS console.

    不使用參數這個命令將全部激活或者不激活

    RepeatLimit directive

    Syntax: RepeatLimit Limit

    這個指令可以出現在GLOBAL和SITE-LEVEL配置文件中,如果出現在GLOBAL配置文件中竟改變GLOBAL對于所有站點的限制,出現在SITE-LEVEL配置中竟只改變對于這個站點的限制并且這個限制不能超過GLOBAL限制

    ISAPI_Rewrite在實行規則時允許循環,這個指令允許限制最大可能循環的數量,可以設置為0或1而不支持循環,

    LIMIT

    限制最大循環數量,缺省32

    RFStyle directive

    Syntax: RFStyle Old | New

    Configuration Utility

    ISAPI_Rewrite Full包括配置功用(可以在 ISAPI_Rewrite 程序組中啟動),它允許你瀏覽測試狀態并輸入注冊碼(如果在安裝過程中沒有注冊),并且調整部分與代理模式操作相關的產品功能,UTILITY是由三個頁面組成的屬性表

    Trial page允許你瀏覽TIRAL狀態并輸入注冊碼(如果在安裝過程中沒有注冊)

    Settings page

    這頁包含對下列參數的編輯框

    Helper URL

    這個參數影響過濾器和代理模塊之間的聯系方式,它即可以是以點做前綴的文件擴展名(如 .isrwhlp)也可以是絕對路徑,

    第一種情況下擴展名將追加在初始請求URI上并且代理模塊竟通過SCRIPT MAP激活,缺省擴展名isrwhlp在安裝進程中加在global script map 中,如果你改變這個擴展名或者你的應用不繼承global script map 設置你應該手動添加向script map 所需求的入口。這個應該有如下參數

    Executable: An absolute path to the rwhelper.dll in the short form

    Extension: Desired extension (.isrwhlp is default)

    Verbs radio button: All Verbs

    Script engine checkbox: Checked

    Check that file exists checkbox: Unchecked

    我們已經創建了一個WSH script proxycfg.vbs ,可以簡單在一個a script maps中注冊,她位于安裝文件夾并且可以在命令行一如下方式運行

    cscript proxycfg.vbs [-r] [MetabasePath]

    Optional -r 強制注冊擴展名

    Optional MetabasePath parameter allows specification of the first metabase key to process. By default it is “/localhost/W3SVC”.

    要在所有現存的 script maps 中注冊你可以以如下命令行激活 script

    cscript proxycfg.vbs -r

     

    第二種情況下你應該提供一個URI作為’Helper URL’的值(http://www.gongluela.com/),你也應該map 一個 ISAPI_Rewrite的安裝文件夾作為美意個站點的虛擬文件家

    注意:根據顧客反應,IIS5(也許包括IIS4)對長目錄名有問題。所以我們強烈推薦使用短目錄名

    Worker threads limit

    這個參數限制在代理擴展線程池中工作線程數,缺省為0意味著這個限制等于處理器數量乘以2

    Active threads limit

    這個參數限制當前運行線程數,這個數量不可大于”Worker threads limit”. 缺省0意思是等于處理器數量

    Queue size 這個參數定義最大請求數量,如果你曾經看到Queue timeout expired” 信息在 the Application event log中你可以增加這個參數

    Queue timeout

    這個參數定義你在內部請求隊列中防止新請求的最大等待時間,如果你曾經看到Queue timeout expired” 信息在 the Application event log中你可以增加這個參數

    Connect timeout

    以毫秒設定代理模塊連接超時

    Send timeout

    以毫秒設定代理模塊發送超時

    Receive timeout

    以毫秒設定代理模塊發送超時

    About page.

    It contains copyright information and a link to the ISAPI_Rewrite’s web site.

    Regular expression syntax

    這一部分覆蓋了 ISAPI_Rewrite規定的表達句法

    Literals

    所有字符都是原意除了 “.”, “*”, “?”, “+”, “(”, “)”, “{”, “}”, “[", "]“, “^” and “$”.,這些字符在用“\”處理時是原意,原意指一個字符匹配自身

    Wildcard

    The dot character “.” matches any single character except null character and newline character

    以下為句法

    Repeats

    A repeat is an expression that is repeated an arbitrary number of times. An expression followed by “*” can be repeated any number of times including zero. An expression followed by “+” can be repeated any number of times, but at least once. An expression followed by “?” may be repeated zero or one times only. When it is necessary to specify the minimum and maximum number of repeats explicitly, the bounds operator “{}” may be used, thus “a{2}” is the letter “a” repeated exactly twice, “a{2,4}” represents the letter “a” repeated between 2 and 4 times, and “a{2,}” represents the letter “a” repeated at least twice with no upper limit. Note that there must be no white-space inside the {}, and there is no upper limit on the values of the lower and upper bounds. All repeat expressions refer to the shortest possible previous sub-expression: a single character; a character set, or a sub-expression grouped with “()” for example.

    Examples:

    “ba*” will match all of “b”, “ba”, “baaa” etc.

    “ba+” will match “ba” or “baaaa” for example but not “b”.

    “ba?” will match “b” or “ba”.

    “ba{2,4}” will match “baa”, “baaa” and “baaaa”.

    Non-greedy repeats

    Non-greedy repeats are possible by appending a ‘?’ after the repeat; a non-greedy repeat is one which will match the shortest possible string.

    For example to match html tag pairs one could use something like:

    “<\s*tagname[^>]*>(.*?)<\s*/tagname\s*>”

    In this case $1 will contain the text between the tag pairs, and will be the shortest possible matching string.

    Parenthesis

    Parentheses serve two purposes, to group items together into a sub-expression, and to mark what generated the match. For example the expression “(ab)*” would match all of the string “ababab”. All sub matches marked by parenthesis can be back referenced using \N or $N syntax. It is permissible for sub-expressions to match null strings. Sub-expressions are indexed from left to right starting from 1, sub-expression 0 is the whole expression.

    Non-Marking Parenthesis

    Sometimes you need to group sub-expressions with parenthesis, but don’t want the parenthesis to spit out another marked sub-expression, in this case a non-marking parenthesis (?:expression) can be used. For example the following expression creates no sub-expressions:

    “(?:abc)*”

    Alternatives

    Alternatives occur when the expression can match either one sub-expression or another, each alternative is separated by a “|”. Each alternative is the largest possible previous sub-expression; this is the opposite behaviour from repetition operators.

    Examples:

    “a(b|c)” could match “ab” or “ac”.

    “abc|def” could match “abc” or “def”.

    Sets

    A set is a set of characters that can match any single character that is a member of the set. Sets are delimited by “[" and "]” and can contain literals, character ranges, character classes, collating elements and equivalence classes. Set declarations that start with “^” contain the compliment of the elements that follow.

    Examples:

    Character literals:

    “[abc]” will match either of “a”, “b”, or “c”.

    “[^abc] will match any character other than “a”, “b”, or “c”.

    Character ranges:

    “[a-z]” will match any character in the range “a” to “z”.

    “[^A-Z]” will match any character other than those in the range “A” to “Z”.

    Character classes

    Character classes are denoted using the syntax “[:classname:]” within a set declaration, for example “[[:space:]]” is the set of all whitespace characters. The available character classes are:

    alnum Any alpha numeric character.

    alpha Any alphabetical character a-z and A-Z. Other characters may also be included depending upon the locale.

    blank Any blank character, either a space or a tab(http://www.xbszgs.com/).

    cntrl Any control character.

    digit Any digit 0-9.

    graph Any graphical character.

    lower Any lower case character a-z. Other characters may also be included depending upon the locale.

    print Any printable character.

    punct Any punctuation character.

    space Any whitespace character.

    upper Any upper case character A-Z. Other characters may also be included depending upon the locale.

    xdigit Any hexadecimal digit character, 0-9, a-f and A-F.

    word Any word character – all alphanumeric characters plus the underscore.

    unicode Any character whose code is greater than 255, this applies to the wide character traits classes only.

    There are some shortcuts that can be used in place of the character classes:

    \w in place of [:word:]

    \s in place of [:space:]

    \d in place of [:digit:]

    \l in place of [:lower:]

    \u in place of [:upper:]

    Collating elements

    Collating elements take the general form [.tagname.] inside a set declaration, where tagname is either a single character, or a name of a collating element, for example [[.a.]] is equivalent to [a], and [[.comma.]] is equivalent to [,]. ISAPI_Rewrite supports all the standard POSIX collating element names, and in addition the following digraphs: “ae”, “ch”, “ll”, “ss”, “nj”, “dz”, “lj”, each in lower, upper and title case variations. Multi-character collating elements can result in the set matching more than one character, for example [[.ae.]] would match two characters, but note that [^[.ae.]] would only match one character.

    Equivalence classes

    Equivalenceclassestakethegeneralform[=tagname=] inside a set declaration, where tagname is either a single character, or a name of a collating element, and matches any character that is a member of the same primary equivalence class as the collating element [.tagname.]. An equivalence class is a set of characters that collate the same, a primary equivalence class is a set of characters whose primary sort key are all the same (for example strings are typically collated by character, then by accent, and then by case; the primary sort key then relates to the character, the secondary to the accentation, and the tertiary to the case). If there is no equivalence class corresponding to tagname, then [=tagname=] is exactly the same as [.tagname.].

    To include a literal “-” in a set declaration then: make it the first character after the opening “[" or "[^", the endpoint of a range, a collating element, or precede it with an escape character as in "[\-]“. To include a literal “[" or "]” or “^” in a set then make them the endpoint of a range, a collating element, or precede with an escape character.

    Line anchors

    An anchor is something that matches the null string at the start(http://www.jiamengku.com/) or end of a line: “^” matches the null string at the start of a line, “$” matches the null string at the end of a line.

    Back references

    A back reference is a reference to a previous sub-expression that has already been matched, the reference is to what the sub-expression matched, not to the expression itself. A back reference consists of the escape character “\” followed by a digit “1″ to “9″, “\1″ refers to the first sub-expression, “\2″ to the second etc. For example the expression “(.*)\1″ matches any string that is repeated about its mid-point for example “abcabc” or “xyzxyz”. A back reference to a sub-expression that did not participate in any match, matches the null string. In ISAPI_Rewrite all back references are global for entire RewriteRule and corresponding RewriteCond directives. Sub matches are numbered up to down and left to right beginning from the first RewriteCond directive of the corresponding RewriteRule directive, if there is one.

    Forward Lookahead Asserts

    There are two forms of these; one for positive forward lookahead asserts, and one for negative lookahead asserts:

    “(?=abc)” matches zero characters only if they are followed by the expression “abc”.

    “(?!abc)” matches zero characters only if they are not followed by the expression “abc”.

    Word operators

    The following operators are provided for compatibility with the GNU regular expression library.

    “\w” matches any single character that is a member of the “word” character class, this is identical to the expression “[[:word:]]”.

    “\W” matches any single character that is not a member of the “word” character class, this is identical to the expression “[^[:word:]]”.

    “\<” matches the null string at the start of a word.

    “\>” matches the null string at the end of the word.

    “\b” matches the null string at either the start or the end of a word.

    “\B” matches a null string within a word.

    Escape operator

    The escape character “\” has several meanings.

    The escape operator may introduce an operator for example: back references, or a word operator.

    The escape operator may make the following character normal, for example “\*” represents a literal “*” rather than the repeat operator.

    Single character escape sequences:

    The following escape sequences are aliases for single characters:

    Escape sequence Character code Meaning

    \a 0×07 Bell character.

    \t 0×09 Tab character.

    \v 0×0B Vertical tab.

    \e 0×1B ASCII Escape character.

    \0dd 0dd An octal character code, where dd is one or more octal digits.

    \xXX 0xXX A hexadecimal character code, where XX is one or more hexadecimal digits.

    \x{XX} 0xXX A hexadecimal character code, where XX is one or more hexadecimal digits, optionally a unicode character.

    \cZ z-@ An ASCII escape sequence control-Z, where Z is any ASCII character greater than or equal to the character code for ‘@’.

    Miscellaneous escape sequences:

    The following are provided mostly for perl compatibility, but note that there are some differences in the meanings of \l \L \u and \U:

    Escape sequence Meaning

    \w Equivalent to [[:word:]].

    \W Equivalent to [^[:word:]].

    \s Equivalent to [[:space:]].

    \S Equivalent to [^[:space:]].

    \d Equivalent to [[:digit:]].

    \D Equivalent to [^[:digit:]].

    \l Equivalent to [[:lower:]].

    \L Equivalent to [^[:lower:]].

    \u Equivalent to [[:upper:]].

    \U Equivalent to [^[:upper:]].

    \C Any single character, equivalent to ‘.’.

    \X Match any Unicode combining character sequence, for example “a\x 0301″ (a letter a with an acute).

    \Q The begin quote operator, everything that follows is treated as a literal character until a \E end quote operator is found.

    \E The end quote operator, terminates a sequence begun with \Q.

    What gets matched?

    The regular expression will match the first possible matching string, if more than one string starting at a given location can match then it matches the longest possible string. In cases where their are multiple possible matches all starting at the same location, and all of the same length, then the match chosen is the one with the longest first sub-expression, if that is the same for two or more matches, then the second sub-expression will be examined and so on. Note that ISAPI_Rewrite uses MATCH algorithm. The result is matched only if the expression matches the whole input sequence. For example:

    RewriteCond URL ^/somedir/.* #will match any request to somedir directory and subdirectories, while

    RewriteCond URL ^/somedir/ #will match only request to the root of the somedir.

    Special note about “pathological” regular expressions

    ISAPI_Rewrite uses a very powerful regular expressions engine Regex++ written by Dr. John Maddock. But as any real thing it’s not ideal: There exists some “pathological” expressions which may require exponential time for matching; these all involve nested repetition operators, for example attempting to match the expression “(a*a)*b” against N letter a’s requires time proportional to 2N. These expressions can (almost) always be rewritten in such a way as to avoid the problem, for example “(a*a)*b” could be rewritten as “a*b” which requires only time linearly proportional to N to solve. In the general case, non-nested repeat expressions require time proportional to N2, however if the clauses are mutually exclusive then they can be matched in linear time – this is the case with “a*b”, for each character the matcher will either match an “a” or a “b” or fail, where as with “a*a” the matcher can’t tell which branch to take (the first “a” or the second) and so has to try both.

    Boost 1.29.0 Regex++ could detect “pathological” regular expressions and terminate theirs matching. When a rule fails ISAPI_Rewrite sends “500 Internal Server error – Rule Failed” status to a client to indicate configuration error. Also the failed rule is disabled to prevent performance losses

    Format string syntax

    In format strings, all characters are treated as literals except: “(”, “)”, “$”, “\”, “?”, “:”.

    To use any of these as literals you must prefix them with the escape character \

    The following special sequences are recognized:

    Grouping:

    Use the parenthesis characters ( and ) to group sub-expressions within the format string, use \( and \) to represent literal ‘(’ and ‘)’.

    Sub-expression expansions:

    The following perl like expressions expand to a particular matched sub-expression:

    $` Expands to all the text from the end of the previous match to the start of the current match, if there was no previous match in the current operation, then everything from the start of the input string to the start of the match.

    $’ Expands to all the text from the end of the match to the end of the input string.

    $& Expands to all of the current match.

    $0 Expands to all of the current match.

    $N Expands to the text that matched sub-expression N.

    Conditional expressions:

    Conditional expressions allow two different format strings to be selected dependent upon whether a sub-expression participated in the match or not:

    ?Ntrue_expression:false_expression

    Executes true_expression if sub-expression N participated in the match, otherwise executes false_expression.

    Example: suppose we search for “(while)|(for)” then the format string “?1WHILE:FOR” would output what matched, but in upper case

    Escape sequences:

    The following escape sequences are also allowed:

    \a The bell character.

    \f The form feed character.

    \n The newline character.

    \r The carriage return character.

    \t The tab character.

    \v A vertical tab character.

    \x A hexadecimal character – for example \x0D.

    \x{} A possible unicode hexadecimal character – for example \x{1A0}

    \cx The ASCII escape character x, for example \c@ is equivalent to escape-@.

    \e The ASCII escape character.

    \dd An octal character constant, for example \10

    Examples例子

    Emulating host-header-based virtual sites on a single site

    例如你在兩個域名注冊www.gongluela.comwww.jiamengku.com,現在你可以創建兩個不同的站點而使用單一的物理站點。把以下規則加入到你的httpd.ini 文件

    [ISAPI_Rewrite]

    #Fix missing slash char on folders

    RewriteCond Host: (.*)

    RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]

    #Emulate site1

    RewriteCond Host: (?:www\.)?site1\.com

    RewriteRule (.*) /site1$1 [I,L]

    #Emulate site2

    RewriteCond Host: (?:www\.)?site2\.com

    RewriteRule (.*) /site2$1 [I,L]

    現在你可以把你的站點放在/site1 和 /site2 目錄中.

    或者你可以應用更多的類規則:

    [ISAPI_Rewrite]

    #Fix missing slash char on folders

    RewriteCond Host: (.*)

    RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]

    RewriteCond Host: (www\.)?(.+)

    RewriteRule (.*) /$2$3

    為站點應該命名目錄為 /somesite1.com, /somesite2.info, etc.

    Using loops (Next flag) to convert request parameters

    假如你希望有物理URL如 http://www.myhost.com/foo.asp?a=A&b=B&c=C 使用請求如 http://www.myhost.com/foo.asp/a/A/b/B/c/C 參數數量可以從兩個請求之間變化

    至少有兩個解決辦法。你可以簡單的為每一可能的參數數量添加一個分隔規則或者你可以使用一個技術說明如下面的例子

    ISAPI_Rewrite]

    RewriteRule (.*?\.asp)(\?[^/]*)?/([^/]*)/([^/]*)(.*) $1(?2$2&:\?)$3=$4$5 [NS,I]

    這個規則將從請求的URL中抽取一個參數追加在請求字符的末尾并且從頭重啟規則進程。所以它將循環直到所有參數被移動到適當的位置,或者直到超過RepeatLimit

    也存在許多這個規則的變種。但使用不同的分隔字符,例如。使用URLS如http://www.myhost.com/foo.asp~a~A~b~B~c~C 可以應中下面的規則:

    ISAPI_Rewrite]

    RewriteRule (.*?\.asp)(\?[^~]*)?~([^~]*)~([^~]*)(.*) $1(?2$2&:\?)$3=$4$5 [NS,I]

    Running servers behind IIS

    假如我們有一個內網服務器運行IIS而幾個公司服務器運行其他平臺,這些服務器不能從INTERNET直接進入,而只能從我們公司的網絡進入,有一個簡單的例子可以使用代理標記映射其他服務器到IIS命名空間:

    [ISAPI_Rewrite]

    RewriteProxy /mappoint(.+) http\://sitedomain$1 [I,U]

    Moving sites from UNIX to IIS

    這個規則可以幫助你把URL從 /~username 改變到 /username 和從 /file.html 改變到 /file.htm. 這個在你僅僅把你的站從UNIX移動到IIS并且保持搜索引擎和其他外部頁面對老頁面的連接時是有用的

    [ISAPI_Rewrite]

    #redirecting to update old links

    RewriteRule (.*)\.html $1.htm

    RewriteRule /~(.*) http\://myserver/$1 [R]

    Moving site location

    許多網管問這樣的問題:他們要重定向所有的請求到一個新的網絡服務器,當你需要建立一個更新的站點取代老的的時候經常出現這樣的問題,解決方案是用ISAPI_Rewrite 于老服務器中

    [ISAPI_Rewrite]

    #redirecting to update old links

    RewriteRule (.+) http\://newwebserver$1 [R]

    Browser-dependent content

    Dynamically generated robots.txt

    robots.txt是一個搜索引擎用來發現能不能被索引的文件,但是為一個大站創建一個有許多動態內容的這個文件是很復雜的工作,我們可以寫一個robots.asp script

    現在使用單一規則生成 robots.txt

    [ISAPI_Rewrite]

    RewriteRule /robots\.txt /robots.asp

    Making search engines to index dynamic pages

    站點的內容存儲在XML文件中,在服務器上有一個/XMLProcess.asp 文件處理XML文件并返回HTML到最終用戶,URLS到文檔有如下形式

    http://www.mysite.com/XMLProcess.asp?xml=/somdir/somedoc.xml

    但是許多公共引擎不能索引此類文檔,因為URLS包含問號(文檔動態生成),

    ISAPI_Rewrite可以完全消除這個問題

    [ISAPI_Rewrite]

    RewriteRule /doc(.*)\.htm /XMLProcess.asp\?xml=$1.xml

    現在使用如同http://www.mysite.com/doc/somedir/somedoc.htm的URL進入文檔,搜索引擎將不知道不是somedoc.htm 文件并且內容是動態生成的

    Negative expressions (NOT

    有時當模式不匹配你需要應用規則,這種情況下你可以使用在規則表達式中稱為Forward Lookahead Asserts

    例如你需要不使用IE把所有用戶移動到別的地點

    [ISAPI_Rewrite]

    # Redirect all non Internet Explorer users

    # to another location

    RewriteCond User-Agent: (?!.*MSIE).*

    RewriteRule (.*) /nonie$1

    Dynamic authentification

    例如我們在站點上有一些成員域,我們在這個域上需要密碼保護文件而我們不喜歡用BUILT-IN服務器安全,這個情況下可以建立一個ASP腳本(稱為proxy.asp),這個腳本將代理所有請求到成員域并且檢查請求允許,這里有一個簡單的模板你可以放進你自己的授權代碼

    現在我們要通過配置 ISAPI_Rewrite 通過這個頁面代理請求:

    [ISAPI_Rewrite]

    # Proxy all requests through proxy.asp

    RewriteRule /members(.+) /proxy.asp\?http\://mysite.com/members$1

    保護圖片 防止盜鏈
    Blocking inline-images (stop hot linking

    假設我們在http://www.mysite.com/下有些頁面調用一些GIF、jpg、png圖片,不允許別人盜鏈引用到他們自己的頁面上,因為這樣大大增加了服務器流量。
    當然我們不能100%保護圖片,但我們至少可以在得到瀏覽器發出的HTTP Referer header的地方限制這種情況,因為這個可以判斷是否我們自己的站點調用了我們自己的圖片。

    [ISAPI_Rewrite]

    RewriteCond Host: (.+)

    RewriteCond Referer: (?!http://\1.*).*

    RewriteRule .*\.(?:gif|jpg|png) /block.gif [I,O]

    注:ISAPI_Rewrite分精簡(Lite)和完全(Full)版.精簡版不支持對每個虛擬主機站點進行重寫,只能進行全局處理.不過對于有服務器的朋友,精簡版也就夠啦.精簡版下載地址:http://www.helicontech.com/download/,就是那Lite Version (free)啦。

    posted @ 2010-02-04 03:31 小小it 閱讀(1250) | 評論 (0)編輯 收藏
    一路讀心情小記

    一路讀心情小記

    轉載:小說一路讀:http://www.yiludu.cn/

        想起友人說起,他愿意花很多錢去買回一年的青春。我想我并不愿意過多地徘徊于生澀年華之中。我那些已逝的年青時代,于同齡人而言,顯得那般無力與蒼白。很多時候,我甚至害怕回憶。害怕面對記憶中那個內心填滿頹靡的少女,徘徊在無人的十字路口,試圖讓自己找一個出發點,卻跌跌撞撞了好些時候。那些活在自我世界里的時間,把一個本應芬芳的年華,變得萎靡。讓我同樣想起了生活在北京的一個文友。她把大把大把的青春全耗在了北京郊區租住的小平房里,每天在昏暗的屋內用纖細的指頭敲著一個又一個虛構卻唯美的生活故事。文字落幕,回到現實生活中的她卻得依靠香煙來麻醉自己。而誰都不知道這樣一個女人,其實她最大的夢想僅僅是當一個木匠。就像魔杰座唱的那樣所以她說自己也是失敗的。因為青春的日子過得不著夢想的邊際。或許,沒法深入到文海中央只能徘徊于潛水灣的所謂的文人們,就只能打著愛好寫作的旗號招搖。而在旁人的眼中,這些人其實是瘋子。當然,這瘋子,也包括我。否則,收錄文學怎么會在看了“不繁華的旅途是孤寂且無聊的”這樣一句話后,便很不信邪的又給自己制造了一個理想。將來,我要拉著我的王子,背著畫板和筆記本去荒蕪人煙的燎原跋涉,去幽靜古老的小鎮徒步,而小鎮的街頭有流浪歌手在唱著蘇打綠的小情歌……
      
      正所謂的理想,應該也就是想想罷了。回到現實生活當中,因受臺風的影響,感覺這個城市今年的秋天來得有點早。

    posted @ 2008-10-12 04:04 小小it 閱讀(146) | 評論 (0)編輯 收藏
    兩只小羊一點收錄文學

    兩只小羊一點收錄文學

    轉載:收錄文學http://www.sluwx.cn/

    鄉政府響應上級號召搞對口扶貧,黨委秘書艾妮左想右想花一百元買了兩只小山羊。兩只小山羊一公一母,毛茸茸的。艾妮把兩只小山羊拴在一條繩上,牽到了包扶的李老漢家。

      李老漢用一種怪怪的眼光看了看愛妮,以為他是用UUSee網絡電視呢?無聲的接過兩只小羊。李老漢并不老,只是胡子長了些相貌老了些,人其實才五十出頭。李老漢從來對鄉政府的扶貧工作就不配合,但絕不反抗。比方早些年政府號召大家種藥,李老漢硬是不種。鄉政府工作人員親自給他種上,李老漢不管不問,后來地荒的成了亂墳岡。再比方說,鄉政府號召大家搞袋料香菇,他把柴禾弄好放在院子里,就是不粉碎。不粉碎就裝不成袋料,裝不成袋料他的任務就完不成。結果政府就免費給他粉碎,并裝上了袋。可再來檢查時,李老漢的袋料還是原樣----李老漢把袋料蒸過了,但就是不點菌。類似這樣的事發生在李老漢身上的還有幾起。鄉政府總結了,李老漢的行為類似于印度獨立時的甘地,搞的是不合作運動。

      愛妮包扶李老漢,收錄文學還是真動了腦筋的。李老漢總不至于把兩只小羊放在圈里活活餓死吧!

      其實李老漢還有幾只羊,可就是繁殖不起來。愛妮送李老漢兩只羊,這次他沒有向以前那樣不合作。把兩只小羊侍弄的精神煥發,膘肥體壯,子孫成群。李老漢想,這群羊是我的了,我風里來雨里去的,如果愛妮來要羊,就把兩只長大了的羊給她。可是,沒有過幾天,他的想法就發生了變化。為什么給她兩只羊?羊是我喂大的還她兩只小羊就不錯了。可是又過了幾天,他的想法又發生了變化,為什么還他兩只小羊,他的兩只小羊不是我喂,早就死了。

      鄉政府離城遠,還翻山。艾妮在一次出差時車翻人亡。

      艾妮一死,李老漢開始還有點傷悲。可不久他就高興起來了一路讀著一部小說。愛妮一死,就不會要羊了。

      艾妮的丈夫在一個陽光明媚的早上來到了老李的家。此時的李老漢今非昔比,羊群里的已經一百多頭了。艾妮的丈夫遞給李老漢一只香煙:“當年愛妮送給你的兩只羊,是她自己花錢買的,我想看看那兩只小羊……”

      李老漢抽著艾妮丈夫發的黃金葉,拿眼斜瞅著艾妮的丈夫說:“你家艾妮送過我兩只羊嗎?”

      李老漢干脆脖子一歪:“想要我的羊?沒門!就是掏錢也不賣給你!”

      李老漢放出了狗,艾妮的丈夫撒腿就跑,可狗的速度好像比他更快,他只好加快速度……

      后來,鄉書記對李老漢說,艾妮的丈夫是來給你的羊圈消毒的,你怎么放狗咬人呢?

    posted @ 2008-10-12 04:04 小小it 閱讀(173) | 評論 (0)編輯 收藏
    國內博客營銷是如何的

    本來這篇準備寫幾個博客營銷做的比較好的案例,不過欣欣提醒我說除了廣告商之外,部分博客的不認真對待是更主要的問題,因此我這里從參與話題廣告的博客的角度再談一談自己的一些看法。

           在我所見的話題廣告文章中,的確有部分用戶只是敷衍了事,比如把廣告的相關介紹抄上,然后隨便寫兩句無關痛癢的評價了事。我在上一篇文章中強調廣告主應該努力去與博客交流與對話,不過前提是建立在博客認真了解并使用相關產品,表達自己獨到的見解與觀點之后。只有這樣,廣告主與博客之間的交流與對話才有產生的條件。那怎么成為一個合格的參與話題廣告的博客,個人覺得應該注意以下幾點:

    1、選擇自己感興趣的廣告。不用接受一個自己毫不了解的廣告然后無病呻吟一番,那樣不但你寫著不舒服,讓你的讀者看著也不舒服。

    2、認真了解與使用產品。至少你應該看看產品的 FAQ,幫助文檔,了解該產品到底有些什么功能與特點,然后試用每一項功能。因為只有這樣,你的評論才是有價值的。

    3、寫文章之前先用搜索看看其他人怎么說。當然這并不是要求每一個博客都有獨到的見解,不過當你盡可能多的了解其他人的評論,對自己的評論質量也是有幫助的。

    4、按照廣告要求完成文章。其實這一點是很多博客忽視的,比如加相關的申明圖片和鏈接,達到字數要求等等,而最終導致文章得不到通過。永遠記住,你參與的是一場商業活動,既然參與,你就得遵守游戲規則。

           博客與廣告商應該做的我都說到了,那讓我們再來看看夾在中間的 Feedsky 做得怎樣。前段時間 Feedsky 對所有參與話題廣告的博客進行了重新定價并開始收取 50% 的手續費,很多定價降低的博客表達了強烈的不滿,特別是那些數據很高,唯獨在 Feedsky 中訂閱數很少的博客影響最大。

           我在前面提到廣告商不要關心博客營銷中的點擊數據,而要重視與博客的交流與對話。從另一方面講,博客的各項數據不應該成為對博客定價的唯一標準。廣告商需要的是一個典型的用戶,有見解的用戶,能提供有價值意見的用戶,而對產品的傳播是次要的。而 Feedsky 應該將博客在每次參與話題廣告中的表現加入到定價的考慮因素之內,而且權重要高才行。簡單點說,就是寫得好的,不管博客的其他數據怎樣,定價會越來越高;寫得差的,即便博客其他數據高,定價也會調低。而 Feedsky 已經投放了不少的話題廣告,相信在這一點上也是有條件做到的。

           我始終都是看好話題廣告的,不過這需要在這條關系鏈上的各方共同完善,哪一個環節出了問題影響都會很大。當然以上不管對廣告商、博客還是 Feedsky 提出的意見都是個人不成熟的看法,如有不妥之處,還請大家多多指證。

    轉載:UUSee下載http://www.uusee5.org.cn/

    posted @ 2008-10-12 04:03 小小it 閱讀(1058) | 評論 (0)編輯 收藏
    魔杰座和玫瑰的年華

    魔杰座和玫瑰的年華

    當少年站在河邊,魔杰座河水仿佛流逝的時光。而他看見了一路讀http://www.yiludu.cn/)的影子,它們不斷被沖刷和更改,直至變成一首首精致的詩風干在岸上潮濕的季雨里。

      當少女站在香樟樹下,夏天仿佛她的戀人。而她看見了未來的影子,它們在斑駁的樹蔭下一直蔓延,直至消散在那漸遠的單車和白色的襯衣里。

      對于每一個我所喜歡的歌手,他們的歌都會在我的腦海里形成一種幻覺。水木年華給我的幻覺便是這樣的一個男孩和女孩的組合。他和她構成了我們的象征,他們是一幅畫,一幅清晰素描著我們青春那水中與樹下的往事的圖畫,讓所有人有所念亦有所傷。而在此后不斷的深入里,水與木這兩種不同的元素便緊緊地在意識里結合,從未有過半點的分離。

      水木年華的歌總是帶著很強的畫面感,屬于干凈淳樸的那種,于是所有的歌便成了一個個短小而豐富的故事,短小的是篇幅,豐富的卻不僅僅只是一個過程,更有這個過程里的情感。最早接觸他們的一首歌是《愛春秋》——“我摘一朵帶著露水的玫瑰花/要送給我最愛的她”。這種信手拈來的唯美絕非一個不具備詩人氣質的藝術家所能達到。在這里,我更愿意把玫瑰理解成青春的心事,嬌嫩而高貴,只配為心愛之人所擁有。正如他們之前的《一生有你》——“多少人曾愛慕你年輕時的容顏,可知誰愿承受歲月無情的變遷”。在那年,水木年華憑借這首歌完美地將葉芝的詩用流行元素加以詮釋,也因此喚醒了多數青年內心卡徒酒吧http://www.katu98.cn/)的舊夢。

    來源:魔杰座-周杰倫新專輯魔杰座 http://www.imfeng.com/post/mojiezuo.html

    posted @ 2008-09-27 03:14 小小it 閱讀(151) | 評論 (0)編輯 收藏
    主站蜘蛛池模板: 免费看又黄又爽又猛的视频软件| 国产精品亚洲二区在线观看 | 国产精品久免费的黄网站| 不卡一卡二卡三亚洲| 色婷婷六月亚洲婷婷丁香| baoyu777永久免费视频| 国产l精品国产亚洲区在线观看| 麻豆亚洲AV永久无码精品久久 | 2021精品国产品免费观看| 亚洲最大激情中文字幕| www免费插插视频| 五月婷婷亚洲综合| 美国毛片亚洲社区在线观看| 国产成人高清精品免费软件| 亚洲人成色4444在线观看| 免费看国产成年无码AV片| 久久乐国产综合亚洲精品| 国产精品视频永久免费播放| avtt天堂网手机版亚洲| 桃子视频在线观看高清免费完整| 亚洲精品91在线| 91香蕉成人免费网站| 亚洲最大无码中文字幕| 我要看WWW免费看插插视频| 亚洲欧美日韩一区二区三区| 免费鲁丝片一级观看| 无码天堂亚洲国产AV| 国产免费观看黄AV片| 国产猛男猛女超爽免费视频| 亚洲国产成人精品青青草原| 无码欧精品亚洲日韩一区夜夜嗨 | 亚洲色最新高清av网站| 亚洲另类少妇17p| 88xx成人永久免费观看| 国产精品久久久久久亚洲影视| 亚洲级αV无码毛片久久精品| 久久99九九国产免费看小说| selaoban在线视频免费精品| 亚洲人配人种jizz| 亚洲精品蜜桃久久久久久| 亚洲第一成年免费网站|