Tag Archives: java

Restful services in Java

Over the years there have been different methods of for communicating between heterogeneous systems.  Each of these methods have to deal binary messaging.  Some of the different protocols that have been used are as follows. Remote procedure calls (RPC) Distributed … Continue reading

Posted in programming, Setup From Scratch | Tagged , , | Comments Off on Restful services in Java

Evolution of LED Lighting – hardware and tools

Flashback I wanted to buy home automation electronics, nothing really fancy just a WiFi controller for a led strip.  When shopping for things like this Pay attention.  I saw something that spoke about WiFi and was really quite cheap so I … Continue reading

Posted in programming, Setup From Scratch | Tagged , , | Comments Off on Evolution of LED Lighting – hardware and tools

fun with XML – JAXB and arrays

In part I of my JAXB example I briefly described some of the annotations required to turn normal Java objects into XML files with JAXB. To expand on the xml examples from my previous post, I will be taking a number … Continue reading

Posted in programming | Tagged , | Comments Off on fun with XML – JAXB and arrays

fun with XML – a JAXB example

Full disclosure, I am not J2EE expert so my descriptions may be a bit off.  However, using JAXB is just to powerful to ignore.  The first part of this topic is pretty basic, while the second part is a bit … Continue reading

Posted in programming | Tagged , | Comments Off on fun with XML – a JAXB example

making more than jar files with Ant

In a previous post, making jar files with Ant,  I briefly covered the creation of a Ant script that would compile the Java source files and then create jar file from them. It was a really neat example of how with … Continue reading

Posted in programming, Setup From Scratch | Tagged , , | Comments Off on making more than jar files with Ant

compiling and making jar files with Ant

When I first saw Java I was surprised at exactly how embarrassingly simple it was to compile a program. Well, with the caveat that the file or files are all in the same directory. javac *.java When the number of … Continue reading

Posted in programming | Tagged , | Comments Off on compiling and making jar files with Ant

getting the most out of your computer – threading

Flashback to 2002 Technology is amazing.  Pretty much since personal computers were created the speed of their processors have been increasing at almost a linear rate of doubling in speed every two years.  This is awesome but it is also … Continue reading

Posted in programming | Tagged , , | Comments Off on getting the most out of your computer – threading

better logging than printf – using log4j – part III

Log4j is a very convenient tool to have in your programming arsenal.  This is true even if only the very basic functionality is being used.    The basic functionality of log4j2 was covered in my previous example. To be honest, … Continue reading

Posted in programming | Tagged , , | Comments Off on better logging than printf – using log4j – part III

better logging than printf – using log4j – part II

However, Just like with computers, cars and women there is always a faster, bigger, or better model on the horizon. Version 1.2 of log4j has reached its end of life on August 5th 2015 but there is a version 2 … Continue reading

Posted in programming | Tagged , , | Comments Off on better logging than printf – using log4j – part II

better logging than printf – using log4j – part I

The old way Log files or debugging can be done using print statements.  It is a very rudimentary way to see some of your internal variables or to have a log of how the program run went. This printf sample … Continue reading

Posted in programming | Tagged , , | Comments Off on better logging than printf – using log4j – part I