How To Force SSL for Tomcat with AWS ELB in Front

The problem You have an awesome Java app that is growing like crazy and you need to be on top of it. You will start spawning servers to scale horizontally and putting a reliable balancer in front. AWS ELB is a good one but it will not solve all your needs out of the box. ...

Track Functionality Usage With Splunk

I have been playing lately with Splunk and let me tell you… WOW! Awesome tool. You can have N servers forwarding logs to a main server where you can search using SPL to query all over those inputs. Here I will demostrate how to make a simple stat usage of your website that you can ...

How To Use GSON To Parse Dates for MongoDB

Working with MongoDB is really cool. Is easy to setup and use any API in pretty much any programming lang out there. When you work in Java like me you will have a few challenges. First of all what I hate from Java and love from NodeJS is the dynamic creation of objects using directly ...

How to mount a serial USB in linux

First of all you have to check if the device is connected to the system lsusb The output will be something like Bus 002 Device 006: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse Bus 002 Device 005: ID 046d:081b Logitech, Inc. Webcam C310 Bus 002 Device 004: ID 046d:0a0b Logitech, Inc. ClearChat Pro USB Bus ...

How to re-size a virtual box disk

I found today that my windows vm in ubuntu was completely out of space. I tried to find some resize option in the UI but I was unable to find anything. So reading the doc for the command line I found this: cd /your/path/vm/ VBoxManage modifyhd mydisk.vdi --resize 50000 The size that you specify is ...