分类: Document

  • Free File Management Utility

    Win & Linux:

    FreeFileSync

    DoubleCmd

     

    Win:

    WinMerger

  • 中银国际在线行权平台

    BOCI Online Platform (All in Hong Kong Time) 中银国际在线行权平台(以下均为香港时间)

    Cash Exercise (24-hour)
    现金行权 24小时)

    Cashless Exercise (20-hour)
    非现金行权(20小时)

    Order Time
    下单时间

    Trade Day
    交易的执行日

    Order Time
    下单时间

    Trade Day
    交易的执行日

    T Day 00:00 ~ 15:30
    于当日00:0015:30之间下单

    T Day
    交易于当日执行

    T Day 00:00 ~ 16:00
    于当日00:0016:00下单

    T Day
    交易于当日执行

    T Day 15:31 ~ 23:59
    于当日15:3123:59之间下单

    T+1 Day
    交易顺延一个工作日执行

    T Day 16:01 ~ 20:00
    于当日16:0120:00下单

    Do Not Accept Online Transactions
    在线行权系统不接受下单

    T Day 20:01 ~ 23:59
    于当日20:0123:59下单

    T+1 Day
    交易顺延一个工作日执行

  • Delete spam wordpress comment by script

    bash tool to delete spam or un-approved comment in WordPress:

    http://dl.dropbox.com/u/45095875/wp_comment_v1.sh

    where:

    WP_DIR is the directory where WordPress instaled.

    Call WP_del_SPAM_Comment to remove spam comments

    Call WP_del_UA_Comment to remove un approved comments.

     

     

  • Install Alfresco 3.4 on debian

    # Install open office in headless mode

    apt-get  install   openoffice.org-headless

     

    # Install imagemagick

    apt-get install imagemagick

     

    # Build swftools from source code

    apt-get install build-essential

    wget http://www.swftools.org/swftools-0.9.2.tar.gz

    apt-get install libjpeg62-dev libfreetype6-dev libpng3-dev libt1-dev libungif4-dev

    tar xvfz swftools-0.9.2.tar.gz

    cd  swftools-0.9.2

    ./configure –prefix=/opt/local/swftools

    make

    make install

    apt-get remove –purge libjpeg62-dev libfreetype6-dev libpng3-dev libt1-dev libungif4-dev

     

    # Install tinymce

    apt-get install tinymce

     

    # Install Sun JVM6 from non-free repository

    apt-get install sun-java6-jdk

     

     

    # Install tomcat6

    apt-get install tomcat6  tomcat6-admin

    /etc/init.d/tomcat6 stop

     

    Creating standard Tomcat6 directory layout

    mkdir /opt/tomcat   

    cd /opt/tomcat   

    ln -s /etc/tomcat6/ conf   

    ln -s /usr/share/tomcat6/bin/ bin   

    ln -s /usr/share/tomcat6/lib/ lib   

    ln -s /var/lib/tomcat6/webapps webapps   

    ln -s /var/log/tomcat6/ logs

     

    # Creating a Tomcat admin user by add the following line into /opt/tomcat/conf/tomcat-users.xml

    <user name=“ADMIN_USERNAME” password=“ADMIN_PASSWORD” roles=“admin,manager” />

     

    # Creating directory for alfresco in tomcat

    mkdir -p /opt/tomcat/shared/classes

    # Add the following content into  file of  /opt/tomcat/conf/catalina.properties

    shared.loader=${catalina.home}/shared/classes,

     

    #Install and config mysql for Alfresco

    http://blog.zhenglei.net/2011/12/9/alfresco_mysql.html

     

    #Install AlfrescoCommunity 3.4e

    http://blog.zhenglei.net/2011/12/9/alfresco_mysql.html





     

     


  • Access Google docs

    Add following URL address in c:windowssystem32driversetchosts

     

    209.85.147.109 pop.gmail.com
    209.85.147.109 smtp.gmail.com
    66.102.7.19 mail.google.com
    209.85.225.101 docs.google.com
    74.125.227.2 docs.google.com
    74.125.227.2 docs0.google.com
    74.125.227.2 docs1.google.com
    74.125.227.2 docs2.google.com
    74.125.227.2 docs3.google.com
    74.125.227.2 spreadsheets.google.com
    74.125.227.2 spreadsheets0.google.com
    74.125.227.2 spreadsheets1.google.com
    74.125.227.2 spreadsheets2.google.com
    74.125.227.2 spreadsheets3.google.com
    209.85.225.102 groups.google.com
    74.125.127.139 spreadsheets.google.com
    74.125.127.100 services.google.com
    74.125.127.100 writely.google.com
    74.125.127.100 sites.google.com
    209.85.225.104 reader.google.com
    74.125.127.101 calendar.google.com
    74.125.39.99 chrome.google.com
    74.125.39.99 clients2.google.com

  • Map Alfresco Site as window xp drive

    Download and install netdrive (WebDav client of windows XP ) from:

    http://www.netdrive.net/      (or other site:  download.cnet.com)

    Launch the netdrive with the following config parameter:

    Site URL or IP:   http://192.168.127.88/alfresco/webdav

    Port:                 your tomcat server port  (8118 for me)

    Server Type:     webdav

  • Install Alfresco on Ubuntu 10.10

     

    Install

    wget http://dl.alfresco.com/release/community/build-3835/alfresco-community-4.0.b-installer-linux-x64.bin

    sudo chmod 55 alfresco-community-4.0.b-installer-linux-x64.bin

    sudo ./alfresco-community-4.0.b-installer-linux-x64.bin

    Advanced setting:

    Locationl:  /opt/alfresco

    Database Server Port: 5434

    Web Server Domain:  doc.zhenglei.net

    Tomcat Server Port:         8118

    Tomcat Shutdown Port:   8119

    Tomcat SSL Port:              8120

    Tomcat AJP Port:              8121

    FTP port:                          8122

    RMI port:                          50500

    Sharepoint Port:               7070

    Install as service:             Yes

    OpenOffice Sevice Port:   8100

     

     

    Launch Alfresco

    /opt/alfresco/manager-linux-x64.run

     

    Modify Alfresco Global Properties

    alf_data parameter identifies the location of alfresco data store, where all the documents will be stored. Make sure this is pointing to an absolute path.

       cat /opt/alfresco/tomact/shared/classes/alfresco-global.properties

     

    Using ubuntu default  openoffice

       Modify ooo.exe property of /opt/alfresco/tomact/shared/classes/alfresco-global.properties:

    ooo.exe=/usrlib/openoffice/program/soffice.bin

    jodconverter.officehome=/usr/lib/openoffice

     

    Using ubuntu default  ImageMagick

    img.root=/usr

     

     

     Change alf_data location:

        Modify /opt/alfresco/tomact/shared/classes/alfresco-global.properties

        Copy /opt/alfresco/alf_data/* to the new location:

    cp -r /opt/alfresco/alf_data/*   /data/alfresco/

     

    Launch java with command line option:

    All global properitie can be change with java command line option:

    Just set environment variable JAVA_OPTS, eg:

       export JAVA_OPTS=-Ddir.root=/data/alfresco

     

     

     

     

     

  • Install OpenKM on Ubuntu 10.10

    Install leptonica:

    http://www.leptonica.com/source/leptonica-1.68.tar.gz

    tar xvfz leptonica-1.68.tar.gz

    ./configure

    make

    sudo make install

    sudo ldconfig

     

    Install  Tesseract

     

    Install swftools

     

    Install OpenKM

    cd /opt

    wget http://downloads.sourceforge.net/project/openkm/5.1/OpenKM-5.1.7_JBoss-4.2.3.GA.zip

    tar xvfz OpenKM-5.1.7_JBoss-4.2.3.GA.zip

    Modify OpenKM.cfg

    #system.ocr=/usr/bin/cuneiform
    system.ocr=/usr/local/bin/tesseract
    #system.openoffice.path=/usr/lib/openoffice
    system.openoffice.path=/usr/lib/openoffice
    #system.imagemagick.convert=/usr/bin/convert
    system.imagemagick.convert=/usr/bin/convert
    #system.swftools.pdf2swf=/usr/bin/pdf2swf
    system.swftools.pdf2swf=/usr/local/bin/pdf2swf
    #system.antivir=/usr/bin/clamscan
    system.antivir=/usr/bin/clamscan
    hibernate.dialect=org.hibernate.dialect.HSQLDialect
    hibernate.hbm2ddl=create
    #application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp

  • Install swftools on ubuntu 10.10

    wget http://www.swftools.org/swftools-2011-10-10-1647.tar.gz

     sudo apt-get install libfreetype6-dev

    sudo apt-get install libgif-dev

    cd swftools-2011-10-10-1647/

    ./configure

    make

    sudo make install

    sudo ldconfig