Hibernate Speedest introduction

In this article I will introduce you to Hibernate 3 persistence framework.
This article is worth to read, because give you a very fast track to Hibernate; I have used this tool for the past six years, when only the good 2.x series was out of there.
Then I have the lucky of training two teams on two different and big projects, with a “zero time” to teach them hibernate.
So I decided to put here my advices, hints, tips and tricks, for the rest of the guys around the World.

Continue reading “Hibernate Speedest introduction”

Designing Interfaces with Balsamiq

In the last seven months I have the need of sketching a bunch of interfaces, but I cannot find a valid tool. I was a Software Architect of a big huge project, busy also on other smaller projects as project manager.

I need a rapid way to sketch use cases, to pass them to a very young team.

Web interfaces are not easy to design, and we was in a very weird situation: the team was forced to use DAOs, with no O/R mapping tool. So I need also to map some interfaces to a database model, to help them building the model and the view classes

After some search, I ended up with MS Visio.

MS Visio is great, but too difficult to use, doing training is hard and so I must discourage its use.
Worst, Visio costs a lot, and it is not included with the standard MS-Office Tools.

Visio offers only WinXP look&Feel, which is not the best for designing agnostic web interfaces.

Thank you to a friend of mine, I have the discovered the BalsamIQ Mockup project.
Let’s see why it is a so good solution.

Continue reading “Designing Interfaces with Balsamiq”

Postgres performance tuning

After a bit of work, I have managed to optimize the performance of my Postgresql Server.

I have spent a saturday morning digging around postgresql, using the fantastic komodo editor, and I am happy with the final solution.

I followed  some suggestion on power PostgreSQL site, and now my postgres is blazing fast. For small needs, tuning postgres is easy as working with MySql.
And with postgres you get for free Transaction and PL/SQL without the need to do extra configuration or tuning or your database.

The major trick is extending  the shared_buffer, and tuning the max_connections, trying to reducing it to the minimum

For tuning max_connections, remember, for instance,  10 max connections can be able to serve about 100 concurrent “real” users; this metric is not valid for robot like wget robot or similia, which generate much more traffic.

Anyway is not difficult to get a fast PostgreSQL installation “out of the box”, and the resulting database is very robust.

better unix life2

If you need to work on cluster, is nice to have syncronized terminals to send the same commands in parallel.

Is it also doungerous, so do some test before sending a bunch of vi commands!

On Unix, a cheap and fast solution is Kde “konsole” which has such option.

Look under “View/Send input to all Sessions” menu and try it out.  I was happpy with version 1.6.6 of konsole.
I am not a fan of “xterm variants”, but konsole looks great.