Thursday, September 13, 2007

The issue of Adam's Bridge or Ram Sethu

A new issue has been cropping up in India around the historic Adam's bridge or Ram Sethu between Southern India and Sri Lanka. There was a myth (?) that to fight off an evil King Ravana, Lord/King Rama and his army built a floating bridge over the ocean. That myth seemed right when NASA took some pictures and found a similar structure submerged in water. Indian government however has been working on a new maritime route for past few years which will require to destroy "that" structure. Archaeological Survey of India has given a new statement recently that on Historic grounds existence of Lord Rama can not be established. The books like Valamiki Ramayana and Tulsidas' Ramcharit-Manas can not be considered as historic artifacts. I am not sure what can be considered a historic artifact? Geographically, story of Rama has spanned from North to all the way to Southern India. The temples and other places of evidence found are so interconnected that its highly impossible that this being mere an imaginative story. The numbers could be wrong. It may not be even a bridge or not built around the same era, or a natural extension of the Earth mass, even the concept of a "Year" could be wrong but I don't think there should be any question regarding the existence of an Aryan King Rama which Hindus consider an Avatar of Vishnu. We should be dealing with these issues the other way round though. Instead of asking if Rama existed, prove that he did not. If can not then the beliefs of millions of people should be respected. Destroying the structure will not negate the importance of Rama in Indian social and religious lives but keeping it will only strengthen it. And besides, don't give the political parties an opportunity to make this a national issue.

Monday, September 10, 2007

Single liners

1. If Barack does not succeed then Romney has already won.
2. Want a BMW? Get your car detailed. You can keep your dreams alive this way.
3. Its better to struggle with technology than with products.
4. If you call a Horse a donkey and a Mule a horse, what would you call an ass?
5. I even tried with the jar twice in the CLASSPATH.
6. Don't keep the bread runners unfed.
7. If your Dog wants to say something then listen to him.
8. If he was that stupid why was he elected twice?
9. Dye Osama dye.
10.Don't tip your manager for his/her work. He already earns more than you do.

Saturday, September 08, 2007

The irony of Osama's videos

The numerous videos released by Osama in past 6 years have gone down from Horror documentaries to Comic skits. From "Oh My Gosh, he released a new Threat" his messages have transformed to "What the heck is he saying now?" or "Darn is he still alive?". His new call for Americans to convert and relating it to the Iraqi war is not only ridiculously insane but hysterically funny. I am not sure if he asked the 19 of his terrorists to count the number of Muslims in the WTC before realizing their heinous crime. Somebody please tell him, the combined earnings of NFL and NBA players of Muslim faith is far more than the GDP of most of the countries his organization operates from. The only irony is even after six years of 9/11 and billions of dollars spent, he has still managed to buy a shit load of magnetic tapes, a video camera and a few packs of hair dye.

Thursday, September 06, 2007

Coherence Contd.. Querying Cache

One of the features of Coherence is that it provides a "Queryeable" data structure. So if you followed my last blog you already know how to populate data in a Cache. A Cache is typically like a Database table and only one "type" of values should be stored. Even though a Cartesan product can be implemented (Storing two types of data in the same table) but should be avoided. Assuming the Cache service is running and has data in it, the following class shows how to use Filters to make a Query. It is important that the Cache does have data in it and not expired before the query can be run against it.


package com.ezduck.coherence;

import com.tangosol.net.NamedCache;
import com.tangosol.net.CacheFactory;

import com.tangosol.util.Filter;
import com.tangosol.util.filter.LikeFilter;

import java.util.Map;
import java.util.Set;
import java.util.Iterator;

public class QueryCache {

private static NamedCache nCache;

static {
nCache = CacheFactory.getCache("Name");
}

public QueryCache() {
}

public static void main(String[] args) {
QueryCache queryCache = new QueryCache();
// -- Look for Names which starts with A
Filter filter = new LikeFilter ("getName", "A%");
Set set = nCache.entrySet(filter);

Iterator iter = set.iterator();
while (iter.hasNext()) {
System.out.println ("Val: " + ((Map.Entry)iter.next()).getValue().toString());
}

}
}


And Thats it!

Tuesday, September 04, 2007

Hamare Hockey mein Chhakke nahi hote

A must watch movie for Bollywood lovers - "Chak de India"

Monday, September 03, 2007

CPI, Please explain

After opposing the Indo-US nuclear deal, the CPI and its isotopes are now opposing a joint Naval exercise in the Bay of Bengal with the Quad members which includes India, US, Japan and Australia along with Singaporean presence. Now, Could CPI explain this action? Why do their nerves get ticked when it comes to China? Do they report to 1450 Kms west or 3200 Kms North? And for their own records, just a few months back India and China conducted a joint naval exercise.

Sunday, September 02, 2007

Problem with Google's algorithm

Here is a Google Ad that appears on my Blog on Barack Obama. The Ad is exactly opposite and demeaning to what I write about him. All of my blogs on Obama has mostly praises and appreciations with some constructive criticism on him. So, instead of similar sentiments, what does the automated Google Ad show? "Obama exposed!". Is their Grammar analysis tool all screwed up? I think their Researchers are missing the point with counting words and index driven popularity rankings. They are efficient in analyzing single Sentences but seems failing miserably on how Sentences join to create one Sentiment. How difficult is to implement the following?


Read the text (Like the blog(s))
Find the Subject (Like a Person)
Break the text in individual sentences
Create Two maps - Positive and Negative
Analyze each Sentence, Rank the words and fill the maps.
Look for words like "All I said", "Aforementioned", "Contrary to what I said", etc
and add a weight to the Map entries.
Count the entries in the map.
If one is higher than the other by 80%, then find a Positive Ad or vice-versa.