Posts

Showing posts from May, 2020

Learning of Docker concepts

Image
Docker is a container management service. The keywords of Docker are develop, ship and run anywhere. The whole idea of Docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere.Docker is container based technology and containers are just user space of the operating system.In Docker, the containers running share the host OS kernel. When we can use Docker? Docker is a basic tool, like git or java, that you should start incorporating into your daily development and ops practices. Use Docker as version control system for your entire app's operating system Use Docker when you want to distribute/collaborate on your app's operating system with a team Use Docker to run your code on your laptop in the same environment as you have on your server Use Docker whenever your app needs to go through multiple phases of development (dev/test/qa/prod) Features of Docker : Docker has the ability to reduce the size of deve...

Extraction of Metadata from an image file using Tika library in a Pega function

Image
I have learned a new java library called  “Tika” and this is an open source used to detect the language, MIME detection, Parsing of data, extraction of metadata. This library has 3 jars mainly used to support various functionalities from Tika mentioned below. For more details, you can google it. 1) org.apache.tika.jar 2) tika-core-1.6.jar 3) tika-parsers-1.6.jar Brief idea on Tika library and the features: Extract the metadata from an image file stored in the server path (ServiceExport) in my V84 PE: Wrote a simple java code in the Pega function to get the file name (Car.jpg) from an activity call to return the metadata using Tika library logic. The function returns a String of all the metadata associated to that image file. For now, I showed that metadata in a Show-Property method from the activity call. To perform this whole exercise, I have installed all the Tika jars in my PE before I start this exercise. Note...