Latest from the blog

How to handle Asterisk Calls with Java (AGI)

Java is one of the best languages to handle calls in Asterisk, in terms of speed, memory usage and security. It performs better than PHP and it's much more developed for multi-threading, data base connection and concurrency, besides you don't have the risk to produce core dumps while managing calls. With java you can create complex IVRs with much less effort than with default Asterisk Syntax.... Read More

Create a windows shortcut with Lazarus on Desktop

In this example the following features are covered.... Read More

Servlet example that forces an mp3 to be downloaded, not to be played

Sometimes we may need to use a servlet to download mp3 files or other files not to play them or reproduce them. Most browsers understand the application/force-download content type header which does the trick.... Read More

Download file from URL with Delphi or Lazarus

This example shows how to download a file using Delphi or Lazarus, the following features are covered.... Read More

Load URL with Java Sockets

This example shows how to connect to an URL using just java sockets. You may want this for a number of reasons.... 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

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 System.in, 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 java.net.URL and changing FTP

If you use java.net.URL 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 org.apache.commons.net.ftp.FTPClient API... Read More