Sunday, June 21, 2015

How to enable compression on Tomcat?

Problem Statement: My web page is loading very slow.
Solution: Check out the reason for the same on Pagespeed insights tool from google here

The most probable solution which is offered today for Mobile and Desktop is to enable compression.
And if you are using Tomcat then this is a cake wake.

Here is how to enable compression on Tomcat:
1. Go to the path where you have installed Tomcat i.e cd tomcat/conf
2. Open server.xml and search for the pattern :
<Connector URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1"
               redirectPort="8443" />

3. Change this to :
<Connector URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1"
               redirectPort="8443" />

4. That's it. Now restart tomcat and check out the page speed again using google tool to analyse it.

I am working on Pentaho systems which uses tomcat server and got the solution from

Monday, June 1, 2015

Hide files in Pentaho User Console

Hello Friends,

There are situations when you need to hide the files generated by Pentaho.
Pentaho by default generates three types of files to be displayed in Pentaho User console:

.cda - The data access file, which is of no use to business user
.cdfde - Framework File, again of no use to be business user
.wcdf - Dashboard file, which you most likely need to keep
Use case: When you give a multiple dashboards to business user, he should be able to see only the dashboard files. Something like the image below:

To achieve this go as admin -> browse files -> select a file -> click on properties -> hidden

To show the hidden files, go as admin, click on Menu-> show hidden files as show: