News from October, 2008

  2008/10/01
Victoria's Secret an authority on HTTP protocol
Last changed: Oct 01, 2008 10:24 by Arun Batchu
Labels: search

...according to MSN Live Search. Actually Bath and Body Works is one better. Surprised, I used Google to query - and I got less colorful results back - pretty much what I wanted.

Posted at 01 Oct @ 10:16 AM by Arun Batchu | 0 Comments
  2008/10/02
Changed font on the site
Last changed: Oct 02, 2008 02:32 by Arun Batchu
Labels: confluence, css, font

If you noticed, the font "family" has changed to the one used by New York Times - I like its Typography which uses a Serif font. Its a hack but will do for now since it is a one word change.

In the default-theme.css file in your confluence directory, change the "helvetica" font-family css rule to "Georgia" ....should look like this:

font-family: Georgia,serif;

Posted at 02 Oct @ 2:25 AM by Arun Batchu | 0 Comments
  2008/10/20
Code Quality Checking in eXist
Last changed: Oct 20, 2008 16:22 by Arun Batchu
Labels: pmd, exist, intellij, idea

I was reviewing eXist documentation today. Ran into an article on how you can check for code quality using the http://pmd.sourceforge.net/ . What struck me was that you can express the checking rules in Java as well as XPath. The reason I am excited about the latter style is because recently I have been realizing that XPath has precise and very concise expressive power.

Since OO classes exhibit an inherent inheritance either through Type hierarchy or composition, I have been wondering lately about using XPath bindings to query static code (Java) ; this has been particularly true in recent projects when reviewing code using IntelliJIdea's very effective code analysis system - I felt a "realtime" Java Static code query system using XPath would be cool! I am very glad someone else did the work for me! I am thinking of getting the book : http://pmdapplied.com by the author of the codebase.

What a small world: eXist, XPath, Java, IntelliJIdea!

Posted at 20 Oct @ 4:22 PM by Arun Batchu | 0 Comments
  2008/10/27
Formatting a number in Orbeon XForms
Last changed: Oct 27, 2008 13:28 by Arun Batchu
Labels: orbeon, xforms

If you want to format a number such as 8988981.00 to look like 8,988,981.00, you would do it like this:

  • Works in <xf:input> element too (according to documentation)
  • Works only with 'ref' attribute and does not work with 'value'
Posted at 27 Oct @ 1:03 PM by Arun Batchu | 0 Comments
Calculating big decimals in Orbeon
Last changed: Oct 28, 2008 23:22 by Arun Batchu
Labels: orbeon, xforms, error, tip, workaround, calculate

Discovered what appears to be a problem in calculating big decimals (greater than 1,000,000 ). I have a requirement where the total is a sum of all line items.

Each of the $ amounts on the line items is an xs:decimal . The sum is also a decimal. When the sum is greater than 1,000,000, [Orbeon] seems to store the result in an exponential format (e.g. 1.000000E6). This representation is invalid for an xs:decimal (the pink background is a style applied to invalid fields).


I solved the problem by casting the result back into a decimal:
- XPath to the rescue.


Now it looks the way it is desired:

Posted at 27 Oct @ 2:05 PM by Arun Batchu | 0 Comments

October 2008
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Oct 02, 2008
Oct 27, 2008