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

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

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

    ann
    冰是沒有未來的,因為它的永恒
    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. 設置vnc server的訪問密碼
    [ann@ecdev1 ~]# vncpasswd

    3. 執行vncserver,第一次執行后會生產一些配置文件

    4. 修改/home/ann/.vnc/xstart(如果無此文件,就運行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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要:

    SQL like子句的另一種實現方法,速度比like快


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

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

      閱讀全文
    posted @ 2010-05-04 12:58 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: #!/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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 1.備份表中的數據


    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. 創建表

    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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 一.linux 監控數據庫活動
    $ 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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 1、對于第一種重復,比較容易解決,使用

    select distinct * from tableName

      就可以得到無重復記錄的結果集。

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

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


      閱讀全文
    posted @ 2010-02-08 16:22 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要:
    1. 用命令行創建新的project
    #>: play new test

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

    2. 導入eclipse
    >play eclipsify test
    打開eclipse 在import 就ok了.

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

    posted @ 2010-02-01 13:38 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要:
    intellj 編碼設置 ,project編碼設置 這兩個編碼必須統一。
    例如: intellj設置的是系統默認的編碼gbk,而project是utf8。

      閱讀全文
    posted @ 2010-01-15 18:04 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 按照我寫的目錄結構來放置。
    下載地址:
    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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: Bulk close all in lucene2.9.1 issues.   閱讀全文
    posted @ 2010-01-14 16:06 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 找到啟動用戶目錄
    比如是/home/hudson/下面
    .hudson/nodeMonitors.xml 加入


    false


    false



      閱讀全文
    posted @ 2010-01-12 13:22 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要:

    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中設置該參數



    org.mortbay.jetty.Request.maxFormContentSize

    -1閱讀全文
    posted @ 2010-01-12 11:09 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 地址:http://code.google.com/apis/chart/  閱讀全文
    posted @ 2010-01-12 10:33 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 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 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 同步的集合類Hashtable和Vector,以及同步的包裝器類Collections.synchronizedMap和Collections.synchronizedList,為Map和List提供了基本的有條件的線程安全的實現。然而,某些因素使得它們并不適用于具有高度并發性的應用程序中――它們的集合范圍的單鎖特性對于可伸縮性來說是一個障礙,而且,很多時候還必須在一段較長的時間內鎖定一個集合,以防止出現ConcurrentModificationExceptions異常。

    ConcurrentHashMap和CopyOnWriteArrayList實現提供了更高的并發性,同時還保住了線程安全性,只不過在對其調用者的承諾上打了點折扣。ConcurrentHashMap和CopyOnWriteArrayList并不是在您使用HashMap或ArrayList的任何地方都一定有用,但是它們是設計用來優化某些特定的公用解決方案的。許多并發應用程序將從對它們的使用中獲得好處。

    總結:在多線程并發情況下,為了避免ConcurrentModificati  閱讀全文
    posted @ 2010-01-07 18:04 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要:

    數據庫服務器,應對是高并發的訪問,每天都有大量的讀寫刪除操作。因此,時間一長服務器的內存就耗盡,數據庫的占的空間也很大。為了應對這個情況,我制定兩個常用的維護操作。

    一、注重日常清理(VACUUM;)。因為有大量的更新(update)"刪除(delete)操作,會有大量的空間需要釋放。

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

    語法結構;

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

    FULL ------選擇"完全"清理,這樣可以恢復更多的空間, 但是花的時間更多并且在表上施加了排它鎖。
    FREEZE ---------選擇激進的元組"凍結"。
    VERBOSE --------- 為每個表打印一份詳細的清理工作報告。 <  閱讀全文
    posted @ 2010-01-07 15:55 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: grails 升級到1.2.0 版本之后需要注意的

    1.默認的webserver是tomcat.
    如果想切換為jetty。grails uninstall-plugin tomcat
    grails install-plugin jetty

    2. 有了很多標準的規范,比如 :
    1). 必須放入
    標簽之內。
    2).urlmap中 "/test_$guid?"(controller:"test",action:"list")
    "/" (controller:"index",action:"list")
      閱讀全文
    posted @ 2010-01-05 16:55 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: CREATE INDEX 在指定的表上構造一個名為 index_name 的索引。索引主要用來提高數據庫性能。但是如果不恰當的使用將導致性能的下降。

    PostgreSQL 為從索引提供 B-tree,R-tree,hash(散列) 和 GiST 索引方法。 B-tree 索引方法是一個 Lehman-Yao 高并發 B-trees 的實 現。R-tree 索引方法用 Guttman 的二次分裂算法實現了標準的 R-trees。 hash(散列)索引方法是 Litwin 的線性散列的一個實現。 用戶也可以定義它們自己的索引方法,但這個工作相當復雜。
    如果出現了 WHERE 子句,則創建一個部分索引。 部分索引是一個只包含表的一部分記錄的索引,通常是該表中比其它部分數據更有用的部分。

    在 WHERE 子句里用的表達式只能引用下層表的字段,但是它可以使用所有字段,而不僅僅是被索引的字段。 目前,子查詢和聚集表達式也不能出現在WHERE里。

    索引定義里的所有函數和操作符都必須是immutable,(不  閱讀全文
    posted @ 2009-12-22 10:00 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: java -cp "./WEB-INF/lib/*:./WEB-INF/classes" bran.RestaurantCenterJettyStarter  閱讀全文
    posted @ 2009-12-22 09:47 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 一個登錄用戶在頁面訪問的時候如何充分利用 cache?

    頁面靜態化的一個大問題是登錄用戶訪問頁面如何靜態化。 例如首頁, 大部分的頁面內容需要緩存但是用戶登錄后的個人信息是動態信息, 不能緩存。 那么如何解決這個"頁面部分緩存"問題?

    現有的方案是利用 SSI - Server Side include.

    Nginx SSI 實現是 http://wiki.nginx.org/NginxHttpSsiModule

    這里最關鍵的就是靜態文件可以包含一個動態的網頁的 URL.

    這里有一篇文章對這個問題進行了深入的討論:

    http://jimmyg.org/blog/2009/ssi-memcached-nginx.html

    文章用了 memcache. 我關心的是 SSI 和 Nginx 自身的 cache 的協同工作。


    模塊分析:

    1. http://hi.baidu.com/langwan/blog/item/  閱讀全文
    posted @ 2009-12-22 09:35 冰是沒有未來的,因為它的永恒| 編輯 收藏
         摘要: 一 . Adding Brokers to a Conventional Cluster

    1. To Add a New Broker to a Conventional Cluster Using a Cluster Configuration File
    1).Add the new broker to the imq.cluster.brokerlist property in the cluster configuration file.
    2).Issue the following command to any broker in the cluster: imqcmd reload cls
    3).(Optional) Set the value of the imq.cluster.url property in the new broker’s instance configuration file (config.properties) to point to the clu  閱讀全文
    posted @ 2009-12-22 09:32 冰是沒有未來的,因為它的永恒| 編輯 收藏

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

    主站蜘蛛池模板: 插B内射18免费视频| 黄页网站免费观看| 伊人久久亚洲综合| 九九全国免费视频| 亚洲综合色区在线观看| 一本久久A久久免费精品不卡 | 亚洲人成色777777精品| 免费看美女裸露无档网站| 亚洲国产日韩精品| 国产精品视频免费一区二区三区| 精品久久久久久亚洲精品| 成人黄软件网18免费下载成人黄18免费视频 | 99亚洲男女激情在线观看| www.亚洲色图| 久久免费国产精品一区二区| 亚洲精品美女在线观看| 丁香花免费高清视频完整版| 亚洲成熟丰满熟妇高潮XXXXX| 免费在线精品视频| 成全高清在线观看免费| 亚洲高清中文字幕| 日韩精品免费一区二区三区| 男女交性无遮挡免费视频| 国产v亚洲v天堂无码网站| 黄页网站免费观看| 一区二区三区AV高清免费波多| 亚洲成色www久久网站夜月| 手机在线看永久av片免费| 国产精品亚洲专区一区| 久久久久久a亚洲欧洲AV| 女人毛片a级大学毛片免费| 一级毛片aaaaaa视频免费看 | 亚洲一区二区三区亚瑟| 亚洲国产成人久久综合区| 中文字幕在线观看免费视频| 亚洲成在人线在线播放无码| 亚洲另类激情综合偷自拍图| 成人免费无码视频在线网站| 一区二区在线视频免费观看| 亚洲人成黄网在线观看| 国产成人亚洲精品91专区手机|