跳到主要內容

發表文章

目前顯示的是 11月, 2009的文章

Installation of Subversion Server and Client on Windows Platform

1. Download Subversion latest version 2. Download Tortoise (Subversion Client) Latest version The latest version of the software has been downloaded in the folder Steps for Server Part 1. Install the server and install the Tortoise client on the Server computer (The reason to install Tortoise client on the server computer is because Tortoise client can help you to create and manage repository in the server computer and you can forget about the admin command of subversion server. Note that the newest version of Tortoise only uses file based repository and does not use BD format repository. The file based repository is recommended by Tortoise and community. 2. Create Repository in server using command line svnadmin create "m:\svn_repos or Using Tortoise Right click the m:\svn_repos directory and select create repository here 3. Run the Server. By the following command.(Assume subversion is installed at c:\subversion\) c:\subversion\bin\svnserve.exe --daemon --r...

Winzip AES with Java

Component for using Java to make a winzip AES compatible function is rare. I only find winzipaes from. The example code is minimal. We experience a situation recently that we need to implement Winzip AES functionality in an rather old project, which is using JDK1.3. Key points We use winzipaes from http://code.google.com/p/winzipaes/ Because we will use it in a rather old project, we changed the source code of winzipaes to make it support jdk1.3. Officially they do not have such version We change the source code of its dependent third party component bouncycastle bcprov-jdk13-144.jar http://www.bouncycastle.org/ Basically we just add zipaes to precede all of its original packages so that it does not collide with the earlier bouncycastle package we are using in the main projects. We add a class to support normal zip operation in the prototype Usage version 0.9 Usage 1): zipaes encrypt source zipfile password 2): zipaes decrypt zipfile dest password...

SFTP/SSH in JAVA

It is relatively hard to find code examples in Internet regarding SFTP and SSH in java. Here I have written an example to demonstrate its usage. Key points I make use of J2SSH v0.2.2 The demonstration program is capable of acting as a ssh mini shell run a batch of simple sftp commands stored in a specified file run a batch of simple ssh command stored in a specified file (not yet finished) Remark: Please note that the crew who made J2SSH has already totally rewritten all of its functions and make it available at commercial market Please do test the speed of the prototype before you decide on whether to use this package. We have tested that it is generally at least 10% slower than sftp version in Unix. Usage Application :Sftp/SSH client Author :Edmund Ng last update :2009-11-05 versi...