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

MySql Query Optimization Tips

Here you can find some tips to optimize slow queries that have been useful to me.... 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

Use project as dependency of a web Project in Eclipse

With Eclipse you can use a source project and compile directly into a web project. Every time you change your dependency project a new Jar will be stored in your web project build path. This is very convenient if you are developing libraries for web projects.... Read More

Quick MySQL commands and examples plus JDBC and JSP examples

Here is a list of my most frecently used MySql Commands and examples... Read More