Posts about software development

Kibana proxy for AWS ECS (Fargate)

23 January 2019

One of the most annoying parts of setting up Elastic Search on AWS is the way access is configured for that service. From what i've gathered you have one of two options to protect it:

  1. Make sure it's running internally only (i.e. not internet facing and only available to the other services on the same VPC)
  2. Completely open to the internet and eventually relying (if you can make it work) on the Cognito authentication service

Typically you would, as we did, go for the path of least resistance ...

Terraform - Infrastructure as code

18 January 2019

We recently started using this outstanding devops tool called Terraform at Drover. Basically it allows us to describe how we want our environments to be and apply that "plan" automatically. It's a bit like Ansible and its playbooks concept but - IMO - does a better job at tracking what resources exist and in which state they are in.

Think about it like writing down what your environment looks like, in terms of pretty much everything (load balancing, dns, servers, networking, connectivity, ser...

JAVA vertical gradient background panel

24 January 2015

Recently i had to create a gradient background for one of the panels in our [POS application](http://inforviegas.pt/wp-content/uploads/2010/09/VOS.jpg), so i though i'd share the code.

You need to pass the top and bottom colors of the gradient and also make sure that any panels inside this one are transparent (i.e. setOpaque(false)), otherwise they will paint above it.

import java.awt.Color; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D;...

Displaying posts 1 - 3 of 62 in total