Sunday, May 9, 2010

edgar mobile

front end can be
1. an iphone app, gphone app, blackberry app, kindle book, nook book, or any other mobile reading device.
2.web browser such as IE, FF. depending on what client is, show different layout for that browser so it gives good comfortable user experience.

--however, to make money, any front end will display ad. because ar/10k is free, u just cannot make money from selling the front end

back end
1. read xbrl from sec
2. save into db.
3. serve the reading request from front end
4. registration service so user can save their reading and seamless switch among any device.

java, tomcat, mysql

Wednesday, April 21, 2010

java email cut off

deleting all non-ascii and control char will fix the problem - this assume you expect English only input.

String truncated = mailBody.replaceAll("[^\\p{ASCII}]", "").replaceAll("\\p{Cntrl}", "");