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

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

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

    ann
    冰是沒有未來的,因?yàn)樗挠篮?/span>
    posts - 107,comments - 34,trackbacks - 0
         摘要: 1. 安裝vnc
    rpm -ivh vnc-server-4.1.2-14.el5_3.1.i386.rpm
    rpm -ivh vnc-4.1.2-14.el5_3.1.i386.rpm


    3. 設(shè)置vnc server的訪問密碼
    [ann@ecdev1 ~]# vncpasswd

    3. 執(zhí)行vncserver,第一次執(zhí)行后會生產(chǎn)一些配置文件

    4. 修改/home/ann/.vnc/xstart(如果無此文件,就運(yùn)行vncserver)
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xsta  閱讀全文
    posted @ 2010-05-19 09:49 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: I tried the Build and Deployment tool in Commerce version 7. I followed the tutorial for the same found here:
    http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.developer.doc/concepts/cdewcbdbuild.htm

    When I start the build process it extracts the projects from the CVS successfully, but while buildingarchiving the ejb jar the build fails with the following error:
    java.io.IOException: Cannot run program "D:\Programs\RAD75\SDP\runtimes\base_v7\java\jre\b  閱讀全文
    posted @ 2010-05-17 10:56 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:

    SQL like子句的另一種實(shí)現(xiàn)方法,速度比like快


    一般來說使用模糊查詢,大家都會想到LIKE
    select * from table where a like '%字符%'

    如果一個SQL語句中用多個 like模糊查詢,并且記錄條數(shù)很大,那速度一定會很慢。
    下面兩種方法也可實(shí)現(xiàn)模糊查詢:
    select * from table where patindex('%字符%',a)>0
    select * from table where charindex('字符',a)>0
    經(jīng)測試這兩種方法比LIKE速度要快。

      閱讀全文
    posted @ 2010-05-04 12:58 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: #!/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    #################################
    # application: test
    # DFILE : pid file
    # GDIR : application webapp
    # LOGDIR : logs dir
    ######################
    NAME=et-play
    TestDIR="/data/webapps/play/test"
    GDIR="${TestDIR}/test"
    PIDFILE="${TestDIR}/${NAME}.pid"
    LOGDIR="${GDIR}/logs"
    APP_USER=test
    # Timeout in seconds for the shutdown of webapps
    APP_SHUTDOWN=30 <  閱讀全文
    posted @ 2010-03-19 13:22 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1.備份表中的數(shù)據(jù)


    D:\Program Files\PostgreSQL-8.3.7\bin\pg_dump.exe -h *.*.*.* -p 5432 -U username -F c -v -f "D:\Program Files\PostgreSQL-8.3.7\bin\sss.backup" -t "\"public\".\"tablename\"" databasename

    2. 創(chuàng)建表

    CREATE TABLE tablename
    (
    id bigint,
    createtime timestamp without time zone,
    modifyname character varying(255),
    modify_date timestamp without time zone,
    modify_detail character varying(100000),
    "name" character varying(255  閱讀全文
    posted @ 2010-03-11 10:02 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 一.linux 監(jiān)控數(shù)據(jù)庫活動
    $ ps auxww | grep ^postgres

    postgres 3424 0.0 1.2 42708 26588 ? Ss Jan29 0:00 postgres: writer process
    postgres 3425 0.0 0.0 42576 1284 ? Ss Jan29 0:00 postgres: wal writer process
    postgres 3426 0.0 0.0 43364 1972 ? Ss J  閱讀全文
    posted @ 2010-02-09 15:30 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1、對于第一種重復(fù),比較容易解決,使用

    select distinct * from tableName

      就可以得到無重復(fù)記錄的結(jié)果集。

       如果該表需要刪除重復(fù)的記錄(重復(fù)記錄保留1條),可以按以下方法刪除

    select distinct * into #Tmp from tableName
    drop table tableName
    select * into tableName from #Tmp
    drop table #Tmp


      閱讀全文
    posted @ 2010-02-08 16:22 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: Well, there's second places I set the proxy on a new Linux install.
    1) in /etc/profile:
    code:


    export http_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"
    export ftp_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"

    2) in /etc/apt/apt.conf
    code:

    Acquire::http::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
    Acquire::ftp::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";


      閱讀全文
    posted @ 2010-02-02 15:16 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf
    code:

    APT::Cache-Limit 50000000;
      閱讀全文
    posted @ 2010-02-02 15:13 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:
    1. 用命令行創(chuàng)建新的project
    #>: play new test

    輸入 test(會有What is the application name?提示)
    注:一定要輸入test 否則在導(dǎo)入到eclipse中就要手動改配置文件

    2. 導(dǎo)入eclipse
    >play eclipsify test
    打開eclipse 在import 就ok了.

    如果在創(chuàng)建project時候未輸入test。
    就要手動修改test.launch文件,也就是查找,得出 E:"project"eclipse"play1 ,然后把文件中所有的E:"project"eclipse"play1替換為test
    修改前:

    posted @ 2010-02-01 13:38 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:
    intellj 編碼設(shè)置 ,project編碼設(shè)置 這兩個編碼必須統(tǒng)一。
    例如: intellj設(shè)置的是系統(tǒng)默認(rèn)的編碼gbk,而project是utf8。

      閱讀全文
    posted @ 2010-01-15 18:04 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 按照我寫的目錄結(jié)構(gòu)來放置。
    下載地址:
    http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/extras/tomcat-juli.jar
    http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/extras/tomcat-juli-adapters.jar

    tomcat6-------lib
    | |--------tomcat-juli-adapters.jar
    | |--------log4j.jar
    | |--------log4j.properites
    |
    |----bin
    |--------tomcat-juli.jar
    閱讀全文
    posted @ 2010-01-14 18:10 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: Bulk close all in lucene2.9.1 issues.   閱讀全文
    posted @ 2010-01-14 16:06 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 找到啟動用戶目錄
    比如是/home/hudson/下面
    .hudson/nodeMonitors.xml 加入


    false


    false



      閱讀全文
    posted @ 2010-01-12 13:22 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:

    Jetty's default configuration has a limitation on POST data (200000 bytes)that
    prevents Hudson from reading the Update Center data (available
    plugins). Jetty gets an error like java.lang.IllegalStateException: Form too large. To resolve this, add something like this to jetty.xml:

    Jetty 6:

    在jetty.xml中設(shè)置該參數(shù)



    org.mortbay.jetty.Request.maxFormContentSize

    -1閱讀全文
    posted @ 2010-01-12 11:09 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 地址:http://code.google.com/apis/chart/  閱讀全文
    posted @ 2010-01-12 10:33 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: server:

    package com.test.web.resources;

    import javax.ws.rs.Consumes;
    import javax.ws.rs.POST;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.MultivaluedMap;

    import org.springframework.stereotype.Component;


    /**
    * 測試
    * @author ann
    *
    */
    @Path("/test")
    @Component
    public class Test {

    @POST
    @Path("/formTest")
      閱讀全文
    posted @ 2010-01-11 17:02 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 同步的集合類Hashtable和Vector,以及同步的包裝器類Collections.synchronizedMap和Collections.synchronizedList,為Map和List提供了基本的有條件的線程安全的實(shí)現(xiàn)。然而,某些因素使得它們并不適用于具有高度并發(fā)性的應(yīng)用程序中――它們的集合范圍的單鎖特性對于可伸縮性來說是一個障礙,而且,很多時候還必須在一段較長的時間內(nèi)鎖定一個集合,以防止出現(xiàn)ConcurrentModificationExceptions異常。

    ConcurrentHashMap和CopyOnWriteArrayList實(shí)現(xiàn)提供了更高的并發(fā)性,同時還保住了線程安全性,只不過在對其調(diào)用者的承諾上打了點(diǎn)折扣。ConcurrentHashMap和CopyOnWriteArrayList并不是在您使用HashMap或ArrayList的任何地方都一定有用,但是它們是設(shè)計用來優(yōu)化某些特定的公用解決方案的。許多并發(fā)應(yīng)用程序?qū)膶λ鼈兊氖褂弥蝎@得好處。

    總結(jié):在多線程并發(fā)情況下,為了避免ConcurrentModificati  閱讀全文
    posted @ 2010-01-07 18:04 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:

    數(shù)據(jù)庫服務(wù)器,應(yīng)對是高并發(fā)的訪問,每天都有大量的讀寫刪除操作。因此,時間一長服務(wù)器的內(nèi)存就耗盡,數(shù)據(jù)庫的占的空間也很大。為了應(yīng)對這個情況,我制定兩個常用的維護(hù)操作。

    一、注重日常清理(VACUUM;)。因?yàn)橛写罅康母拢╱pdate)"刪除(delete)操作,會有大量的空間需要釋放。

    每日執(zhí)行一次VACUUM,每周訪問量低的時候執(zhí)行VACUUM FULL;

    語法結(jié)構(gòu);

    VACUUM [ FULL | FREEZE ] [ VERBOSE ] [ table ]
    VACUUM [ FULL | FREEZE ] [ VERBOSE ] ANALYZE [ table [ (column [, ...] ) ] ]

    FULL ------選擇"完全"清理,這樣可以恢復(fù)更多的空間, 但是花的時間更多并且在表上施加了排它鎖。
    FREEZE ---------選擇激進(jìn)的元組"凍結(jié)"。
    VERBOSE --------- 為每個表打印一份詳細(xì)的清理工作報告。 <  閱讀全文
    posted @ 2010-01-07 15:55 冰是沒有未來的,因?yàn)樗挠篮銃 編輯 收藏

    當(dāng)下,把心放下 放下如果是可能的,那一定是在當(dāng)下,
    不在過去,也不在未來。
    當(dāng)下放下。唯有活在當(dāng)下,你的問題才能放下。

    主站蜘蛛池模板: 又黄又爽一线毛片免费观看| 在线观看av永久免费| 亚洲色婷婷综合开心网| 婷婷亚洲综合五月天小说在线 | 亚洲一区二区三区在线网站 | 免费无码又爽又刺激一高潮| 亚洲色欲一区二区三区在线观看 | 久久福利资源网站免费看| 精品日韩亚洲AV无码| 日韩精品无码免费一区二区三区 | 亚洲欧洲日产国码久在线| 四虎免费大片aⅴ入口| 成人精品国产亚洲欧洲| 亚洲日韩精品无码专区网站| 成人电影在线免费观看| 91亚洲va在线天线va天堂va国产| 免费A级毛片无码视频| 亚洲午夜电影在线观看高清| 成年人免费观看视频网站| 羞羞视频网站免费入口| 亚洲精品乱码久久久久久蜜桃| 一区在线免费观看| 亚洲图片在线观看| 成年美女黄网站18禁免费| 青草久久精品亚洲综合专区| 亚洲中久无码不卡永久在线观看| 暖暖在线视频免费视频| tom影院亚洲国产一区二区| 国产一级淫片视频免费看| 中文字幕视频在线免费观看 | 亚洲av永久无码精品秋霞电影秋 | 亚洲videos| 亚洲一区精品伊人久久伊人| 99精品视频免费在线观看| 亚洲精品无码aⅴ中文字幕蜜桃| 亚洲一级特黄无码片| 精品国产无限资源免费观看| 久久精品熟女亚洲av麻豆| 亚洲成A∨人片在线观看不卡| 国产精品久久久久免费a∨ | a级毛片免费在线观看|