Enables Disabled Buttons – Windows Enabler

January 10th, 2010 thiamteck Posted in Utility No Comments »

Windows Enabler is a simple utility that run in system tray. It have only 1 function: enables disabled (grey out) buttons, check box, etc.

It work with most windows app, but not Java apps that run on Windows (i.e. Eclipse, Jconsole, etc)

Please be caution that enable a button do not means it enable the feature, please use it when you know exactly what you are doing.

Below is the before and after screenshoot:



AddThis Social Bookmark Button

Open Command Prompt from any folder – “Open Command Window Here”

October 8th, 2008 thiamteck Posted in Utility No Comments »

The default Windows command prompt always start from user home directory (C:Documents and SettingsUsername).

After install “Open Command Window Here”, you may right click any folder to open command prompt from there.

“Open Command Window Here” is one of the utility under Microsoft PowerToys.

AddThis Social Bookmark Button

3 ways of transform XML with XSLT

September 7th, 2008 thiamteck Posted in Utility No Comments »

XSLT (Extensible Stylesheet Language Transformation) is a XML-based stylesheet that used for transform XML from one format to another format. It generate new XML without alter the exisitng source XML.

To transform XML with XSLT, a XSLT proccessor is required. It can be develop based on API such as Apache Xalan.

But if you just want to transform a few XML, it is overkill to write a program for it. So here are a few way:

1) Most browsers have built-in support for XSLT. But it required the source XML to include a reference to the XSL with this:

<?xml-stylesheet href="example2.xsl" type="text/xsl" ?>

2) Use some XML editor such as XML Copy Editor to perfrom the transformation. This is easy but it cant be automated.

3) Use command line tool to perform the transformation. By doing this, you can automate the transformation by include it in your shell script or batch script. In Linux, xsltproc can be used:

xsltproc -o output.xml stlyesheet.xsl input.xml

In Windows, you may use Xalan-Java command line utility. The command will be something like this:
java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out

For the fans of Apache Ant, you may use the XSLT task which is one of the core task in Apache Ant.

AddThis Social Bookmark Button