Why a blog?

Hello there! Today just inspired by a post where I was referenced by Camila hope she doesn’t get mad because I’m revealing her name lol at dev4devs blog, I would like of first thank her for the mention and then say few words about why starting a blog. Well, the motivations can be the most different…

Optimizing images using ImageJ

In this quick tip I’ll show how to optimise images on the fly using ImageJ, looks simple but it took some time because of the input stream creation after the optimisation. I googled it but all the codes that I found were producing empty OutputStreams, until I finally realise that I could use ImageIO to produce the…

Copying dependencies with Maven

In a previous post I put here how to create fat jars using Maven, now Let’s see how to copy the necessary dependencies, setup the classpath and execute the jar without unpacking any of the dependencies. To do this we’ll need two plugins : maven-jar-plugin maven-dependency-plugin maven-jar-plugin is the one that will create and configure…

MongoDb with Spring Data

Using spring-data to access MongoDB in Java is quite interesting since the primary goal of Spring Data project is to make it easier to use and it does 🙂 Maven configuration. That’s the configuration that I used for this simple sample. Notice that I used maven-assembly-plugin do create a fat jar and execute it as a…

Docker bash completion

Today I’ll write down here my configurations to get Docker bash completion working, looks like a simple thing but I saw some difficulties to get it done properly here and there so. 1# Install Homebrew

2# Install bash-completion and wget

3# Update your .bash_profile or .bashrc to execute bash_completion when you open a new…