Latest from the blog

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

Handle System.err and System.out with Java Examples

In java the three main Streams stdin (standard input) , stdout (standard output) and stderr (standard output error) are handled by default by, Sytem.out and System.err respectively. Sometimes we may need to change the output according to our needs, this can be done in many ways such us using the OS to tell what stream we need to use or using java to set what streams we want to be used.... Read More

How to Override or Add a new protocol to the and changing FTP

If you use to load url and in some cases you want to add a new protocol or if you want to use another API to handle certain protocols it is possible to do it. In this example I'm overriding the FTP protocol so that it is handled by the API... Read More

Example of Jquery code Example with Autocomplete code Highlighting

With this code snippet you can create an autocomplete Jquery box that highlights the code when there is at least a match among your entries.... Read More

CommunicationsException with Java and MYSQL

I wrote this post to show I solve this exception. There are a number of reasons why this error may come up and there is not a universal solution for all cases. Perhaps your are not using the same technology as me but you can find some clues here that may help you find a solution.... Read More

Basic Example of Persistence with Java

Sometimes we may need to save our objects out of the RAM scope. The act of storing  objects outside the RAM is called persistence.... Read More

Mini Java Socket Server example

This Example shows how to create a small HTTP server using Java Sockets. It can be useful to communicate with Cron jobs, to test whether Java is working, check out HTTP communications with a specific port, see all the headers sent by the web browser, or to verify that the post data is being sent to a specific port.... Read More

Top 5 linux console applications for me

Sometimes working with console applications can be a pain in neck, luckily there are a few console applications that can really come handy.... Read More