Tuesday, June 26, 2012

Live! Google I/O On Air.

Google I/O On Air!

Sunday, July 3, 2011

Google new UI: The cool calendar create button

News about Google+ is everywhere. People are surprised with the Google+ clean user interface and the new color theme. At first I was taken a back by the black toolbar on the top of Google search page, but after seeing the calendar new interface I clearly see the whole theme and the role of the black toolbar with the new color scheme. What I am excited about is the new "Create" button of the Google Calendar. The color goes well with the black toolbar as well as the gray header and the coolest thing is that, it is an actual button. Actual button because it emboss subtly when you hover on it and it depress subtly when you click on it. It looks clean, elegant and really feels like button, unlike those in Amazon and Yahoo mail which look like a dud.


Friday, March 18, 2011

IE 9 still fails the ACID 3


As you can see, with all those IE 9 Microsoft promotion, its still fails the ACID 3 test. Image above shows IE9 acid 3 test against Google Chrome

Wednesday, October 28, 2009

JDOM: String XML Tree to Element

Converting XML Tree in String to JDOM Element


There would be case that a given string that is in xml structure needs to be inserted into an existing DOM.
i.e.
<INFO>
<CREATED-BY>Someone</CREATED-BY>
<CREATED-DATE>YYYY-MM-DD HH24:MI:SS</CREATED-DATE>
</INFO>


For this scenario you need to use SaxBuilder and StringReader :
String str = "<INFO><CREATED-BY>Someone</CREATED-BY><CREATED-DATE>YYYY-MM-DD HH24:MI:SS</CREATED-DATE></INFO>";

StringReader reader = new StringReader(str);
SAXBuilder builder = new SAXBuilder();
Document document = builder.build(reader);
Element element = document.getRootElement();



Now, you can have the element variable to be added as content to other Document