Posted by Ajay
Some bits of news (good?) that has been trickling through the blogosphere is that Java is finally gonna have Closures (whooohooo). Mark Reinhold announced it was time for closures. This would probably be one giant step for Java. Having observed closures in action in Javascript and Groovy, this can definitely affect the way we see Java.
Read more…
Tags: closure, java
Posted by Ajay
Lately I have been instrumental in converting our GIS web based functionality into more modularized service based functionality. A year back, our application had a very tightly coupled custom built WMS/WFS server. Imagine being constrained to only using the client that our web application provided, imagine a rogue application that did not follow the WMS/WFS specification, thats what we had - a tightly coupled rogue. This was fine as long as we serviced just one client. But we could not hope to market our product unless we could shift to a more service oriented framework, or atleast a more modular one.
Read more…
Tags: gis, java, jersey, REST
Posted by Ajay
How it all began
It was one of those fine Wednesday mornings when my machine crashed for no obvious reason, well there was an obvious reason, it was a Windows machine. So grumbling all the way, I started contemplating life and it’s grand ironies, when I decided for better or for worse to switch over to Ubuntu. It worked great, I loved the interface, the speed, the no crashing, aptitude was my best friend. But then all of a sudden my world started crashing down in little pieces.
Read more…
Tags: virtual machine, virtualization
Posted by Ajay
I was trying to setup postgres the other day and I came across an exception “Ident authentication failed for user postgres”. This led me to look into how postgres defines it’s configuration.
The pg_hba.conf is a configuration file that provides the first level of access to postgres, providing client authentication. This file provides a gateway by defining the ip addresses that connect to a database and the databases that are available. Postgres listens for connection using unix socket. A simple netstat | grep postgres reveals the socket.
Read more…
Tags: postgres
Posted by Ajay
Our hibernate code uses two different types of functions to access the session. openSession() and getCurrentSession(). But then I have always wondered the major difference between them. Now that I realized the difference, it is time to share it with the world.
Read more…
Tags: hibernate session jpa