Latest from the blog

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

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

Struts2 with Annotations Json and Datatables Example

This example uses Struts2 with annotations to provide a Datatable with JSON.... 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

How to find a string in files in linux Ubuntu

Here there some console commands I use to find files recursively in linux Ubuntu. The commands used are mainly grep and find.... Read More

How to Create a Task(or Cron Job) in Tomcat Example

To do this you can take advantage of schedulers such us quartz, but it you don't need anything as powerful as that you can create a new thread that starts when the server starts.... Read More