Wednesday 7 April 2010

Traffic Rules and regulations.

I had a chance to spend some six months in London. I just saw the roads and traffic regulations and kind of public transport system they got is really excellent. (Though the British used to complain about delay in metro train). It is an state of the art infrastructure they developed.

Well it is almost 5 years since i have been here in Chennai. Like most of the IT guys, coming from far remote area almost to the south end of India, The temple city Tiruchandur.(Which I always proud about). I am driving in Chennai roads in almost 4 years now. What all I could see is corrupted traffic police, impatient people with lots of traffic violations, dusty roads. I had traveled on buses and trains with full of crowds and school kids& elders are struggling to get in to the bus.

What i could do? Now my first focus will be on developing infrastructure. But how far you can do? Building more fly-overs? Though i like fly overs concept it wont be a permanent solution for the crises. more and more fly overs more and more traffic. Now what is the solution??

The solution is really to establish a mass transport systems like metro train. I feel it should be done 10 years before itself. For instance if you could able to connect T-Nagar RS to Pondi bazzar station, it is really an easy way of transport. We need connect each and every corner of the city via metro train. Not just beach to tambaram. It will directly reduce the use of buses and that will reduce the load of roads with buses. If we can provide better rail transport means we could reduce the use of cars and bikes that saves the environment also.

Now we reduce the load on roads, How we can restrict corrupted traffic police and signal violations. I noticed on the UK roads all the signals covered with cameras and inter connected with a control room. I recently studied an article it says an australian cum indian company find a solution to read bike license numbers. I would install a camera along with the number board reader. Now if any one find violated of the traffic rules automatically a point will be reduced from his licence. If he lost 5 points his licence will be canceled and can't take again.

That can be used to monitor the performance of the traffic police and their bonus will be integrated along with that. If these things are automated people can't take anything easy that they can corrupt police and escape.

:) ---- Ananth.P

endeca enterprise search engine

Endeca is a enterprise wide search engine that supports navigational search and make search faster, Quicker and efficient manner. The Endeca operate like all our relevant data with different tables are mapped together and cooked up by endeca in a single flat file.

Endeca has three major components. They are like,
1. Endeca Information Transformation Layer (ITL)
2. Endeca MDEX Engine
3. Endeca presentation API.

The diagram below explains how different components interact together.




The ITL has an Content Acquisition System (CAS) which is responsible for reads your raw source data and manipulates it into a set of Endeca MDEX Engine indices.

The MDEX Engine loads the indices generated by the indexing
component of the Endeca Information Transformation Layer. After the
indices are loaded, the MDEX Engine receives queries from the Endeca
Presentation API, executes them against the loaded indices, and returns
the results to the client Web browser.

The Endeca Presentation API provides the interface to the MDEX Engine.
The API is responsible for querying the MDEX Engine and manipulating the
results. Endeca Presentation API has their own .NET and JAVA client libraries and it all so have supports web services based queries so that it can be implemented in anu languages.

Friday 2 April 2010

java object creation static factory method

Many of you aware of static factory method which is a simple static method returns an instance of the class. An example like public static Boolean valueOf(boolean yourVal). No let me explain some of the advantages of using static factory method.

Some of the advantages:

1. When ever we invoke a constructor like Emp emp = new Emp() it creates an object. But using static factory method like Emp emp = Emp.getInstance() (Consider getInstance() is a static method which return type is EMP object) will always returns single Emp object no matter how many times we called them.

2. We could create any number of static methods with different names like getCar() return car object, getBreak() returns break object, But constructors have the constraints like should have the class name as their name. So we might need to differentiate using the parameter (using method overloading) which is good but on the readability point of view it will confuse.


So all good what about disadvantages. yah it has a main disadvantages,

Since we have all static methods naturally the constructor will be private. So we can't really extends the class. Some of the object orientations might me lost.