intellij plus tomcat plus maven

Deploy a web application from the command line by using Tomcat Maven Plugin

This is a common scenario.
We are working in a company with many software developers and every developer is using the IDE of his preference.
So let’s say that we are working on the same web application but we want to be able to deploy the application from the command line without the need of knowing how to setup an application server inside a specific IDE.…

Continue Reading 0
Vaadin logo

Vaadin Framework

Vaadin framework is a java web framework for building web applications rapidly.
The final outcome is really nice and the coding style resembles java swing.
You can even find a recent comparison of the most popular java web frameworks here.

So in this article we will see how we can build a vaadin web application using IntelliJ Idea Ultimate 13 ide from Javabrains.…

Continue Reading 2

Spring Aop (Part 1)

Spring is an open source application framework and IoC (inversion of control) container for the Java platform.
More details and a detailed explanation of IoC or Dependency Injection (as IT community decided to call it) can be found in this article by Martin Fowler.

In this article I want to talk about how spring uses AOP (Aspect-oriented programming) to inject cross-cutting code (before, after or around existing methods) to a spring project.…

Continue Reading 0

Run Arch-Linux from a flash drive

Many users have a single operating system installed at their laptops and they don’t want to risk loosing their job by installing a second operating system (especially these users that rely on one single internal hard drive).
So here is a way to install a popular linux distribution called arch-linux , on a usb flash drive.

The complete guide for arch linux beginners is located here : Beginners’ Guide

This guide is great but here what you should do to run arch-linux completely from an external flash drive.…

Continue Reading 0

NetBeans tips

NetBeans is a really great tool that can help on the rapid development of Java Web Applications or Java Desktop Applications, with a great community and many fans (mostly Java Developers).

This article discusses upon a specific flow that I have found, that seems to be a bug inherited from earlier versions of Netbeans IDE.

The NetBeans IDE version used for this article is NetBeans IDE 7.1 Java EE.…

Continue Reading 0

A great tool called ‘Regular Expressions’

The simplest way to use regular expressions is when we search for a single word.

For this article , we’ll use the command line tool called ‘egrep’ (egrep is available for many systems, like DOS, Windows, MacOS and Unix)

So let’s say that we have a file called article1.txt like this :



We want to search for the word ‘ERP’.…

Continue Reading 0

Perl tips

– Variable Interpolation

This is a classic between many programming languages.

When we use a double quoted string, for every variable that we put inside the string , we get variable’s value as part of the output when we execute our script.

For example :

#script1 use 5.012;
my $name = "Stavros";
print "My name is $name\n";

script1 output –>  My name is Stavros


On the other hand , interpolation doesn’t happen with single-quoted strings, for example :


#script2 use 5.012;
my $name = "Nick";
print 'My name is $name\n';

script2 output –> My name is $name\n

Here both the variable name and the newline character are printed in the screen, so they are not interpolated by Perl.…

Continue Reading 0

Mac OS Lion 10.7.2 memory problems

As I was working using firefox I noticed the appearance of the well known ‘beach ball’ that shows that the operating system is struggling to acquire resources.

Immediately I ran Activity Monitor to see what is going on.

Here is the table with the processes that I’ve got after running Activity Monitor Utility:

(The picture was taken by using that Mac OS capture utility – press command + shift + 4)



Before stopping running applications


Then I stopped all running applications and ran again Activity Monitor to check the memory usage.…

Continue Reading 1

Custom sorting in python

A classic way in python to sort a list is by using the sort() function.

For example if we have a list

>>> x = [3, 8, 4, 2, 9]

…we can use sort() like this…

>>> x.sort()

>>> x

[2, 3, 4, 8, 9]


As you can see our list is now sorted.

This function works with strings too.…

Continue Reading 0