Developer's Note

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

Wednesday, April 29, 2015

Chrome unable to load Google sites

Recently I had been facing problem loading Google sites such as its search engine, Gmail, Youtube, etc.

It is either take extra ordinary long time to load, or just failed with `ERR_QUIC_PROTOCOL_ERROR`.

I did a search and found I am not alone, and below are the solution [1]:

  1. Open a new tab in Chrome, and type `chrome://flags/` into address bar, then press Enter.
  2. Search for `Experimental QUIC protocol`
  3. Disable it.
  4. Restart Chrome. Done.
It had been about a week, and the error never happen again.


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.