Developer's Note

// shall I write some keywords here to boost search engine ranking?

Saturday, October 05, 2013

Set Transfer Encoding of Attachment for Axis2

When sending SOAP request with attachment, Axis2 handle the attachment via Axiom, and the default transfer encoding for binary file are binary.

In order to change the transfer encoding to something else, we will utilize the org.apache.axiom.attachments.ConfigurableDataHandler instead of the usual javax.activation.DataHandler.

Below is the sample code:

Wednesday, June 13, 2012

Axis2 + Rampart: Generate Nonce and Created when Plain Text Password was Used

Axis2 support WS-Security via Apache Rampart module. I had develop the SOAP client based on tutorial : UsernameToken Authentication with Rampart

However, the default implementation of Apache Rampart will not generate Nonce when plain text password was used.

After some google, I found this page talk about a configuration called "addUTElements".

So below are the modified configuration fragment:


Saturday, April 07, 2012

MySQL Random Words Based on Lorem Ipsum Text

Below is a MySQL function that create random text based on 100 words from Lorem Ipsum text.

Saturday, November 05, 2011

Revert to the old Google Reader? Let's enhance the new one

IMHO, The redesign of Google Reader to integrate with Google+ do not impress me.

I am agree with the review of ex-Product Manager of Google Reader. The space allocated for reading is just too small, and I personally like the light blue theme than the current grey scale page.

I failed to google any workable way to restore the old Google look and feel. However, I found the ways to enhance the Google Reader (for Firefox).

Below is the original new Google Reader look and feel:


Below is the modified look and feel:


Below are the steps:
1. Install Greasemonkey plugin
2. Install script "Google Reader - Compact Design" (this script make interface more compact thus give you more space to read)
3. Install Stylish plugin
4. Install user style "Google Reader Revert" (to get back the light blue theme)

So far this 2 scripts do not conflict with each other. Feel free to try.

Saturday, March 19, 2011

JQuery UI: Datepicker with Month and Year only

This can be done by hiding the calendar via some CSS trick: