Wednesday, March 28, 2012

VMWare extend boot partition

i. Open up a command prompt and issue the following command: vmware-vdiskmanager -x 12GB “Windows Server 2003 Standard Edition.vmdk” where 12GB is the desired size of the expanded volume.

ii. Mount harddisk with another image.

iii.

Wednesday, January 18, 2012

SVN Installation on Fedora

References:
http://www.if-not-true-then-false.com/2010/install-svn-subversion-server-on-fedora-centos-red-hat-rhel/

Friday, October 28, 2011

Fedora install tomcat 6

yum install tomcat6 tomcat6-admin-webapps tomcat6-webapps
chmod g+x /usr/share/tomcat6/logs
chmod g+x /etc/tomcat6
chmod g+x /usr/share/tomcat6/webapps/
chmod g+x /usr/share/tomcat6/temp
chmod g+x /usr/share/tomcat6/work
chmod g+x /var/cache/tomcat6
chown -R tomcat:tomcat /etc/tomcat6/Catalina
chmod g+x /var/lib/tomcat6/

Ok. Now try start tomcat again:
service tomcat6 restart
Open browser: http://localhost:8080/

Sunday, October 9, 2011

How to list the files installed by a yum package

If you don’t have repoquery you’ll need to install it first:

% yum install yum-utilsThen you can run it like so:

% repoquery --list *package*repoquery writes the list of files for the specified package to standard output. For example, to see the files installed by the nmh package, use:

% repoquery --list nmh
/etc/nmh
/etc/nmh/MailAliases
/etc/nmh/components
/etc/nmh/digestcomps
/etc/nmh/distcomps
...

#Referenced from http://cimarron-taylor.appspot.com/html/0901/090107-yum.html

YUM command

yum gets the list of packages from repository /etc/yum.repos.d

install additional repository into top folder
- wsget *.repo

Saturday, April 16, 2011

JavaServlet\WebService Security Constraint

Reference: http://blogs.sun.com/monzillo/entry/web_xml_security_constraints_best

Thursday, April 14, 2011

Javascript Get browser\OS version

*** browser\other version ***



Ref: http://www.webdeveloper.com/forum/archive/index.php/t-127667.html

*** OS version ***

// This script sets OSName variable as follows:
// "Windows" for all versions of Windows
// "MacOS" for all versions of Macintosh OS
// "Linux" for all versions of Linux
// "UNIX" for all other UNIX flavors
// "Unknown OS" indicates failure to detect the OS

var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

document.write('Your OS: '+OSName);

Ref: http://www.javascripter.net/faq/operatin.htm

Others: https://developer.mozilla.org/En/Browser_Detection_and_Cross_Browser_Support