So there comes the day when you finally have to serve an image, pdf or excel report generated by a portlet or, more elegantly, by a Spring controller backing a portlet. At a first take this may seem impossible since the markup produced by a portlet is embedded in the markup (i.e. HTML) of all … Continue reading Liferay diaries: Serving resources from a portlet with Spring
Author: George Georgovassilis
A view of youhavedownloaded.com
I worte the following piece a while ago for a webzine but it never got published, so here it is. A new website which tracks users' download habits in file sharing networks was announced this week sending shock waves through the Matrix for its potential of revealing highly sensitive private data, stirring once more … Continue reading A view of youhavedownloaded.com
Compact mockito: shorter answer notation
[Update 2014.10.08] The code is now on github. If you value brevity in tests like I do then maybe you would agree that mockito's doAnswer statements contain much boilerplate. That is certainly not mockito's fault but rather a result of java's inflexible syntax. When testing, i.e. GWT code one will frequently find the need to … Continue reading Compact mockito: shorter answer notation
Automatically starting an SSH tunnel in Ubuntu
As I am a frequent guest in public WLANs I spent some time looking into ways to connect safely to both the corporate network and the rest of the internet while enjoying the amenities of a cafés' or hotel's wifi. Because of its simplicity and universal availability I like SSH tunnels which are easily set … Continue reading Automatically starting an SSH tunnel in Ubuntu
Ensuring JUnit test suite contains all tests
While cleaning up today one of my projects I found a JUnit test that was not part of a test suite and never was executed. 'Never again' I say and here is how: a test suite that scans base packages for tests. The particular code: Is tailored to the specific project's needs Compares the tests … Continue reading Ensuring JUnit test suite contains all tests