java

Functional Programming

Because of the success of my article on java closure, I have decided to write another article on functional programming. In the last year functional programming is waving back to us, for a lot of reason. Let’s summarize the facts: Functional programming is based on the core concept of pure function. The main advantages of …

Functional Programming Read More »

Why your IoC container could be a pain for you, young Padawan

Inversion of Control (IoC) is a very good idea. But as the clever Joel Spolsky  noted, sometimes you need to be a super-natural hero to use it: … I try not to be judgemental (HAHA!), but I think that people who use IoC containers are (A) very smart and (B) lacking in empathy for people …

Why your IoC container could be a pain for you, young Padawan Read More »

CScharpizzati

Nei mesi passati ho avuto l’opportunità di lavorare come software architect per un progetto basato su .NET e C#. Da molti anni non bazzicavo in ambito Microsoft, e quindi è stata una utile palestra. Ho pensato di scrivere questo piccolo manuale per sviluppatori java con la ventura di dover diventare… C#-enabled.

SearchBlox is now available as a FREE product with no limitations. | Lucene Search Solution – SearchBlox

On November 12, 2010 SearchBlox  announced the availability of SearchBlox Search Software as a completely FREE product.   I took a look to SearchBlox on a  complex project, and I suggest you to give it a try. It is a good solution for small sites, and it is powered by Lucene. Google Mini has a …

SearchBlox is now available as a FREE product with no limitations. | Lucene Search Solution – SearchBlox Read More »

lambdaj

How many times have you read or written the same two or three lines of code that frequently seem to go together, and even though they operate on different objects, feel like the same thing? And how often these repetitions involve some sort of collections iteration or more generically manipulation? These repetitions in the code …

lambdaj Read More »

Proxy NTLM

Spesso capita di dover scaricare file al di fuori del browser: per esempio per installare software o per consentire ai propri programmi python/java/curl di effettuare delle azioni programmatiche Se avete problemi con i proxy Microsoft (cosa abbastanza comune, vista la diffusione), su Internet trovate una soluzione: Cntlm Authentication Proxy vi consente di avere un proxy integrato …

Proxy NTLM Read More »

Axis 1.x payload debug

When using Axis to send data to a web service, you can set the logger level on org.apache.axis.transport.http.HTTPSender to DEBUG to see what’s going on.  Anyway be careful: the system will produce a lot of logs, so use it only in developement mode!  Here’s a sample in log4j.properties:  log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG log4j.logger.org.apache.axis.client.Call=DEBUG log4j.logger.org.apache.axis.client.AxisClient=DEBUG log4j.logger.org.codehaus.xfire = DEBUG  The last …

Axis 1.x payload debug Read More »

Closure in Java: fast and nice!

Working for two very important Banks, I have the need to play with Closure in Java. I have a lot of trouble looking at a good description of the subject, until I read a post on StackOverflow. I have decided to re-cook this subject, adding a my specialized Example also. Let’s start!

Mastering clusters of Unix machines part2: the right tools

After working with unix for years, we noticed it is difficult to get a very uniform approach to unix management. Often different Linux distributions share very little, configuration is different every time. Worst, some good unix tools (like cron, syslog, etc) can be used in a distributed environment, but are very difficult to configure, very …

Mastering clusters of Unix machines part2: the right tools Read More »