Category Archives: snippets

Code snippets. Short, helpful advices.

[Java] Hibernate + MySQL + UTF-8 how-to

If you wonder how to configure your Hibernate to cooperate with MySQL using UTF-8 character encoding – you are in the right place. The problem you may suffer from: you are using other languages than English in your web application … Continue reading

Leave a comment

[Windows 7] Freezing Gnuplot 4.4.4

Recently I had to use my favourite plot program (Gnuplot) under Windows 7 operating system. After downloading the newest version of Gnuplot 4.4.4 (file gp444win32.zip from http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.4/ ) I found it not working, which made me sad. Error reproduction: 1. Open … Continue reading

Leave a comment

[Java] Spring Roo – webapp in 5 minutes!

Simple web application created and deployed in 5 minutes? Now it’s possible with Spring Roo – SpringSource rapid application development framework. An example: you wants to create application that keeps data of your clients and you don’t need nothing more. … Continue reading

Leave a comment

[Unix] MultiTail – extended version of tail -f

Sometimes there is a need to track more than 1 file using tail -f. You can simply type but results might be inappropriate to your needs. The output will be something like: What to do when you don’t want those … Continue reading

Leave a comment

[Unix] Basic usage of tar tool

In this article I would like to describe basic options of tar tool – Tape ARchive. The most common use of it includes using gzip compression to achieve tarball of *.tar.gz format. Basic compression: Basic decompression: Options explain: x – … Continue reading

Leave a comment