Latest from the blog

Proxy Balancer Session for Apache in Ubuntu 14 Example

This example shows how to make a simple balancing for multiple instances using Apache balancer in Ubuntu 14.03 and Apache 2.4. Three tomcats in session configuration will be used. The Apache Balancer will always send all requests to the same server as long as it has the same session cookie. If one of the tomcats is shut down it will redirect to another cluster member server without sending any error messages to the client.... Read More

How to get the linux distribution information from Java

There are many ways of getting the linux distribution in Java. Here you can find some examples that may suit your needs.... Read More

Struts2 with Annotations Json and Datatables Example

This example uses Struts2 with annotations to provide a Datatable with JSON.... Read More

Java Simple Proxy Server with Sockets Examples

In these examples you can find different ways of creating simple proxy socket servers. This can be useful to you for a number of reasons:... Read More

How to capture HTTP traffic with NGREP in Ubuntu

Ngrep is a tool that allow us to capture HTTP traffic. Root permissions are needed to use it and install it.... Read More

Cron jobs. Move or delete old files in ubuntu every day. Examples

Go to folder cd /etc/cron.d to create cron jobs that will be run every day. Create a file and write the desired cron sentence.... Read More

Java Pdf to Tiff Example

This example uses the ICEpdf open source library to read a PDF and turn it into TIFF images.... Read More

MySql Query Optimization Tips

Here you can find some tips to optimize slow queries that have been useful to me.... Read More