List all sites a particular user is member of in Alfresco 5

We have seen similar requirements many times. How do i find all the sites a particular user is a member of? One way is to write a SQL query with joins on the alf_ tables in the database. But Alfresco advises against hitting the data base directly. Instead we can use webscripts that are provided by Alfresco to get the information we need quickly.

Continue reading

How to shutdown/restart Windows server VM

Many times we have used Linux or Windows based VM’s (Virtual Machines) and we tend to install software to try out something. Particularly on Windows VM’s you may have to restart the VM for the changes to take effect. But most of often when the VMs are provisioned, the ‘Shutdown’ or ‘Restart’ menu items are not enabled or visible.  How else could one restart the VM without having to contact support and wait for some one to help?

Continue reading

Enable email plugin for Logstash

Logstash comes with a bunch of plugins for input, filter and output processing pipelines. When monitoring logs using a platform like ELK the most requested feature is email notifications in case of sever error conditions or issues.  There are many options to enable sending emails using custom python scripts, Elastic watcher, elastalert, etc.

Continue reading

Spring Boot Essentials

As you have seen so far, Spring boot takes care of a lot of the boiler plate configurations required to setup a Spring application that we would have to do otherwise and helps us to get to the application coding part asap.

To do that, Spring boot has 4 tricks up its sleeve that it uses to accomplish what it does.

Continue reading

Spring Boot – Actuator setup

Spring Boot actuator provides useful metrics regarding your application like health, configurations, error pages, version information, etc. Setting up and using an Actuator in Spring Boot could not be easier than adding the correct dependency in the pom.xml file and using the appropriate url to access the metric information.

Continue reading