Skip to main content


Showing posts from June, 2007

Swapping two variables without using a third

I came across an interesting algorithm ... the normal way how programmers swap values between two variables is by using a temporary third variable ... temp = x, x = y, y = temp. An interesting trick can actually do the same process without having to use a third variable, and this is done by using the XOR operator. Below I am showing how this can be done in java:

public static void main(String[] args) {
int x = 15;
int y = 20;
System.out.println(x+" "+y);
x ^= y;
y ^= x;
x ^= y;
System.out.println(x+" "+y);

Try it out !

Worth noting on the radar ... O3Spaces

A product called O3Spaces Workplace is gaining momentum in the collaboration software field. The product is being positioned as a direct competitor to MS SharePoint Office Server focusing on document management and collaboration. The open edition should be available at some point during 2007 both on Windows and Linux platforms. From the available demos and documentation it surely seems to be an excellent competitor for SharePoint bringing in as well nice integration with OpenOffice tools. For further info (and even a vmware image demo) you can find more info at

Setup for my development environment

Finally I managed to find the time to complete a proper setup at home. As my server I used Ubuntu 7.04 as a base to host my Glassfish app server, Postgres and other utils. Mainly i use it as a deployment box and for my development i still use my Netbeans on my XP laptop managing all the rest through ssh/psftp over wireless access mainly. Compared to other distributions i found Ubuntu extremely easy to install and driver recognition is one of the best i have ever seen compared to other Linux distributions. Surely sudo and apt-get commands make life extremely easy to install and setup services. In conjunction with the autodeploy function on Glassfish this makes the deployment of war/ear files really easy ... anyways really happy with the environment, the plan is to soon start exposing some utilities from my linux box over the net, will keep you posted.

Lacking creativity ...

Yesterday I visited MCAST since I was one of the judges examining student programming projects. What really struck me is the fact that the majority of projects, although technically sound, didn't really explore any new areas or ideas ... a situation of more of the same. Would have expected much better from young students who were given free hand on the topics or areas to focus on. Although not a teaching expert myself, i think that it is highly important that teachers and the teaching model itself introduce creative thinking methods as part of the IT students curriculum.

SOA, is it a fad?

Now that we have nearly finished our first SOA project using Sun Microsystems JCAPS platform we have some hands-on feel of this latest trend. Being our first project it definitely took more time than expected to deliver the solution (apart from busted weekends) when compared to traditional development approaches, especially when looking at the new rapid application development environments such as Netbeans 5.5.

The main advantage we experienced is that by adopting such a solution the end user benefits from a single desktop environment, something that in large organizations can be quite rare in practice. From a technical perspective an SOA solution introduced a standard enterprise platform that can act as the main backbone for application development, transaction management and standard interfacing across multiple heterogeneous backend systems.

Our experience so far has showed that SOA has to be seen as a long term strategic decision which can prove to be quite challenging to show immedi…

Java Certifications

Now that I completed my final MSc assignments for this year I am a bit relieved for the summer holidays. I am planning to take this opportunity to start working again on upgrading my Sun Java Certifications. As usual the certifications go into a level of detail in several areas that one doesn't really necessarily use all in practice, so it takes some time to fiddle around the sometimes tricky questions. Wish me luck!


Just returned from a Tech event in Tripoli, Libya. Was impressed with the changes the country went through since my last visit over a year ago. Road infrastructure, buildings, restaurants, airport, etc all gave me signs of improvement, surely a country developing at quite a fast pace. I also happened to meet with some guys from the Linux Community Group from Tripoli pushing Ubuntu and Opensource software in the region ... amazed with their interest and vibrant activity ... all the best!!

My first time in Athens

A couple of weeks ago I had to travel to Athens for a week. It was my first time to visit Greece. During my visit I attended for a number of meetings at SunMicrosystems offices in Athens, but obviously i still found some time to go around the area ... the Acropolis and the market is something surely not to miss! ... and some quite nice restaurants

Finally! My Blog

Been some time since i had thought of creating my blog, but as usual time is a limited one dimesion ... but finally i managed to create one. Hope to create some interesting content ...