Thursday, February 21, 2013

View Outputformat "json" issue

I got problem with "Outputformat=json" for view. In the case of "!" sign presence in a view column, it wrapped to "\!". That is incorrect for canonical JSON.

I use JSON for HTML output, so I fix it by replacing "!" to it's HTML code "!".

To fix - place simple formula in to the column value:
@ReplaceSubstring(HTMLinList;"!";"!")


Friday, February 8, 2013

Dive in to ace

We use HTML templates in our project. Unfortunately there is no ability to good editing this templates in the IBM Notes client


I dig around a little and found a cool thing - ace - that help us a lot.
So, xPages, ace, jQuery  and few hours of work:



Monday, February 4, 2013

Light reader of www.alexa.com rank

Alexa is a good site to check you rank, unfortunately it's does not store statistic for the sites that have less than 100,000 rank.

You could buy account, for store such statistic for you own site.

Sometime you need to look for the statistic of your competitors, that are lower than 100,000.

I create a little program that allow you to gather statistic for any site that is on the www.alexa.com.

You need to put URL in to the properties file, run program and look in to the resulting json.

input example

url.1=http://www.alexa.com/siteinfo/championselect.net
url.2=http://www.alexa.com/siteinfo/elohell.net
url.3=http://www.alexa.com/siteinfo/lolcounter.com
url.4=http://www.alexa.com/siteinfo/lolcounterpicks.com
url.5=http://www.alexa.com/siteinfo/counterlol.org
url.6=http://www.alexa.com/siteinfo/picklol.net
url.7=http://www.alexa.com/siteinfo/counterpicker.com

result example

{
  "http://www.alexa.com/siteinfo/championselect.net" : "10,546",
  "http://www.alexa.com/siteinfo/elohell.net" : "16,323",
  "http://www.alexa.com/siteinfo/lolcounter.com" : "16,487",
  "http://www.alexa.com/siteinfo/lolcounterpicks.com" : "462,863",
  "http://www.alexa.com/siteinfo/counterlol.org" : "4,722,060",
  "http://www.alexa.com/siteinfo/picklol.net" : "7,679,714",
  "http://www.alexa.com/siteinfo/counterpicker.com" : "12,461,834"
}