Posts

Showing posts from 2016

Apache Tika + J2Html +Bootstrap + Java

Image
I was just taking a look at Apache Tika today and because of this I had a chance to brush up my HTML and Regex I used a library called J2HTML   which really made my output easier to handle, Apart from this I used Bootstrap to make my table look neater. I ended up with the below kind of look and feel  The Columns are as below  1. File Name along with the link. \ 2. File Type String  3. Metadata Table - All metadata elements pulled out by Tika 4. Categories - Basically Tags. - Right now it is very rudimentary but will improve it soon - These categories are arrived by analysing the content of the files.  Below is the code that is used to parse a file  Parser parser = new AutoDetectParser(); BodyContentHandler handler = new BodyContentHandler(); Metadata metadata = new Metadata(); FileInputStream inputStream = new FileInputStream(file); ParseContext context = new ParseContext(); Once the above code is executed. handler.toString() can be used to get

Good Code - A small walkthrough !

                  What is Good Code ? Even if I say nobody cares about your code the quality nonetheless does influence a project. Functional correctness reigns supreme, but if we put that aside what should we look at next? Cohesion and coupling are the two most significant aspects of code impacting software quality. Cohesion Cohesion is how well the bits of a module fit together. A set of functions, an interface, is considered cohesive when each function is closely related to another. For example, drawLine  and  drawCircle  are closely related and belong nicely together in a single  Draw  module. If functions differ in their behavior a module becomes less cohesive. For example,  drawLine  and  calculateBalance  don’t seem to be related at all, So putting them into the same module doesn't make any sense at all.  We can roughly measure cohesion by how simply and precisely the module can be described. Short and precise sentences are preferred to longer, verbose, an

Some Research done on EMM Solutions

Image
Enterprise Mobility Market – Market Research Analysis Transparency Market Research A recently released report from Transparency Market Research (TMR) forecasts that the global enterprise mobility market will grow at a remarkable CAGR of 24.7% from 2015 to 2022. TMR, a market intelligence firm, states that the global enterprise mobility market, which in 2014 stood at US$86.36bn , is anticipated to reach US$510.39bn by the end of the forecast period.  Radicati Worldwide revenues for the EMM market will total $1,495 million by year-end 2015. This figure is expected to grow to over $4.4 billion by year-end 2019 . This represents an average annual growth rate of over 30% in the next four years. Figure 1, shows the worldwide revenue for the Enterprise Mobility Management market from 2015 to 2019.

SAP UI5 General Coding Guidelines

The   following   blog   explains   some   of   the   coding   standards   that   should   be   followed   while   coding   for   SAP    UI 5  applications . 1. Routing   and   navigation : As   far   as   possible ,  try   to   work   with   navigation   using   component   based   routing .  Further   if   an   application   requires   more   navigation   within   split   apps   like   a   double   master   or   double   detail ,  use   the   event   bus   mechanism .  The   navigation   handling   of   the   event   bus   should   be   specific   to   that   split   app   controller   and   named   uniquely   to   avoid   multiple   listeners   for   the   same   navigation   bus . 2. Developing   views   in   application : While   it   is   not   mandatory   that   you   will   have   to   use   only   JSViews   in   all   the   applications ,  it   is   however   recommended   to   use   same   types   of   views   in   the   same   applications .  Different   types   of