Skip to main content

Posts

HTTPS

Why do we need HTTPS? * To prevent man in the middle attack     * When talking to router someone can intercept     * When routing to ISP someone can intercept     * When request is going to the destination internationally someone can intercept * Governments, ISPs, private companies can intercept the communication if its unencrypted * Airport wifi's hijack every request and show login page if not logged in to their network What does HTTPS help with? * Confidentiality - Keep the communication contents secret * Integrity - Making sure message is not comrpomized * Authenticity - Making sure that client is communicating with the correct server Digital certificates Certificates from certificate authorities, verify our ownership of the website so that clients can communicate safely. Digital certificate certifies the ownership of the public key by the owner of the certificate When you browse through a website through your machine, the CA signed ...
Recent posts

JSF-PrimeFaces

JSF basics Web pages can be created in facelets using the standard JSTL We can use templates We can manage resource files like stylesheets, javascripts etc using resource libraries and resource library contracts Facelets is based on xhtml To use JSF with tomcat check the following page: http://stackoverflow.com/documentation/jsf/916/getting-started-with-jsf#t=201704050012362807453 I will use MyFaces here. Will also add maven tomcat plugin ( http://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/usage.html ) to run tomcat from maven. Here is the sample project https://github.com/bhajanpreets/JSFBase/tree/v1-jsf-basic/jsf-basic To run I use "clean install tomcat:run" target We use the elements from specific xml namespace with h prefix as seen below... Usually in JSP we declare tag libraries, in JSF we use xml namespaces as done above These are the basic tag libraries in JSF HTML UI components library for various basic html componen...

Hive

Hive What is Transactional Processing? * Small data * recent data * updates data * real time * narrow scope - single data source What is Analytical Processing? * Mostly batch * Mostly old data * Mostly long running * wide scope multiple data source to give a big picture ----------- RDBMS (mostly for transactional) * Single m/c with backup, structured data, usually one source Its hard to do analytics on RDBMS Big Data (mostly for analytical using data warehouse) * distributed data, semi/unstructured, auto replication with fault tolerance, usually different source and different format Not always... * hbase is special db that can be configured for transactional processing even if its on big data * qlikview can be used for analyitial processing even if its running on a single m/c --------- Whats a Data Warehouse? Technology that aggregates data  from one or more sources for analytical processing used by long running jobs, lagged data, large data, multi s...