Skip to main content

Posts

Showing posts from October, 2011

Basic Linux Commands

mkdir - make  directories Usage mkdir [OPTION] DIRECTORY Options Create the DIRECTORY(ies), if they do not already exist.  Mandatory arguments to long options are mandatory for short options too.  -m, mode=MODE  set permission mode (as in chmod), not rwxrwxrwx - umask  -p, parents  no error if existing, make parent directories as needed  -v, verbose  print a message for each created directory  -help display this help and exit  -version output version information and exit cd - change directories Use cd to change directories. Type cd followed by the name of a directory to access that directory.Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below. mv- change the name of a directory Type mv followed by the current name of a directory and the new name of the directory.  Ex: mv testdir newnamedir pwd - print working directory will show you the ful...

Backup and Restore MySQL Database Using mysqldump

mysqldump is an effective tool to backup MySQL database. It creates a *.sql file with DROP table, CREATE table and INSERT into sql-statements of the source database. To restore the database,  execute the *.sql file on destination database. 1. Backup a single database # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql e.g. mysqldump -u root -prium mydatabase > mydumpfile.sql The sugarcrm.sql will contain drop table, create table and insert command for all the tables in the sugarcrm database. Following is a partial output of sugarcrm.sql, showing the dump information of accounts_contacts table: -- -- Table structure for table `accounts_contacts` -- DROP TABLE IF EXISTS `accounts_contacts`; SET @saved_cs_client     = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `accounts_contacts` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) default NULL, `account_id` varchar(36) default NULL, `date_modified` ...

org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor

I got this error, when I deployed my web application on tomcat and click on the app link HTTP Status 500 -  type Exception report  message  description The server encountered an internal error () that prevented it from fulfilling this request.  exception  org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor  org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  root cause  java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be ca...

org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor

When I try to connect to login a Web Application deployed on Tomcat, I receive the following error Cannot load  JDBC  driver class 'com.mysql.jdbc.Driver'. DEBUG [http-8080-1] (MysqlDAOFactory.java:120) - createConnection from uk.co.rantandrave.dao.mysql.Mysql_UserCredentialDAO:selectFirstUserCredentialWithUsernamePassword ERROR [http-8080-1] (Mysql_UserCredentialDAO.java:415) - Exception thrown creating record User Credential org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)         at uk.co.rantandrave.dao.daofactories.MysqlDAOFactory.createConnection(MysqlDAOFactory.java:141)         at uk.co.rantandrave.dao.mysql.Mysql_UserCredentialDA...

Text Analytic Tools

Reverb-1.0 This tool extracts events from text, an event being a verb with associated  noun phrases. Essentially, the tool is meant to extract interesting facts from a given text (who did what, to whom, when, etc). Below is an example of its output: The counter service         was excellent on          both occasions The staff                          were served in             a friendly manner

BI usage in Banking

BI usage in Banking BI usage in Banking Business Intelligence tools are being used by banks for historical analysis, performance budgeting, business performance analytics, employee performance measurement, executive dashboards, marketing and sales automation, product innovation, customer profitability, regulatory compliance and risk management. Let us take a look at some of these applications. Historical Analysis (time-series) Banks analyse their historical performance over time to be able to plan for the future. The key performance indicators include deposits, credit, profit, income, expenses; number of accounts, branches, employees etc. Absolute figures and growth rates (both in absolute and percentage terms) are required for this analysis. In addition to time dimension, which requires a granularity of years, half year, quarter, month and week; other critical dimensions are those of control structure (zones, regions, branches), geography (countries, states, districts, towns), area (r...