How to install golang on Raspberry PI
How to install golang on Raspberry PI. Example using apt-get and using the latest binary available.
GET/POST request with HttpURLConnection in Java
How to send GET and POST requests using standard HttpURLConnection class from Java. Simple examples for both methods.
ISO8583 financial transaction message format
Introduction to ISO8583 financial transaction message format. Parts: message type indicator, one or more bitmaps and data elements.
How to prepare a Windows Java Development Machine
How to prepare a Windows Java Development Machine using Eclipse, NetBeans, Ant, Maven, MySQL, MongoDB, GIT, SVN.
How to get free disk space in Java
How to get free disk space in Java using File.getFreeSpace()
, File.getTotalSpace()
and File.getUsableSpace()
.
How to create Generic Object Pool in Java
In a application you can have resources that are limited or time consuming to create a new one. e.g. a connection to a database, a new thread. A solution is to create a the limited resource once and reuse it. To address this problem the object pool pattern was introduced. The object pool design will have the mechanism to create a new object to keep the objects and to destroy the objects if necessary.