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…

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…

QuickTip – Command aliases with package.json for meteor projects.

Hello guys, this quick tip will show you how to create command aliases with package.json for meteor projects. Right now I’m working in a project that has different mup.json (Meteor up – mup) to deploy in different environments such production and homolog. We have different settings.json for each environment, settings for production are different from development…