Wednesday, March 24, 2010

Sexual Revolution - Right to live

Two days back Supreme Court(SC) made a revolutionary judgment by saying living together before marriage and pre-marital sex is in no way an offence. So what does this mean to the Indian Society?

What does right to live mean - right to act/live freely.In that sense how to live, with whom to live, where to live are individual decisions. If a man and women decides to live together what ever may be the reasons, they should have the right to do so and this exactly what SC said about. We have to wait and see if it will have a positive effect on the society.

I think "Sri Rama Sena" will have something to say about this?

Tuesday, March 23, 2010

IPL - Two new franchises

Two new franchises entered IPL - Rendezvous sports and Sahara got Kochi and Pune teams. Both of them together bid for more than 3000 crore rupees while the whole of IPL franchises costed less than 3000 crores 2 years ago. Money is always good for any sport and cricket is no exception - IPL can create huge infrastructure in India and can attract and create opportunities for Indian youth.

Though cricket is not a premiere sport in Kerala, it is well established as sporting destination. This new franchise can bring in about a lot of change to cricket in Kerala. It's economy mainly depends on tourism, but with IPL lots of money will be pumped into kerala's economy. Pune another city which is mostly overshadowed by Mumbai as a cricket hub have lots of people who are mad about cricket. All these b-grade towns/cities can pull crowd to the grounds and can be groomed as venues for International tests and ODI's over a longer period of time.

If we closely observe all the franchises most of them are from South and West of India - there is a lesson for northern and eastern states of Indian on how to develop their economy using sports as a medium. Finally with this huge amount of money thrown into IPL, can we safely say our economy is progressing? It seems so, after all cricket reflects the life around us.

Tuesday, June 24, 2008

How to cope with tough economic times

Happened to read a blog on how to cope with tough economic times and thought it might be useful for you,

By now, not many people need a reminder that times are getting tougher. Unfortunately, I believe it is going to be much worse before it gets better. We did not arrive at this moment overnight, nor, as our Finance Minister insists, due to unforeseen circumstances. It was a perfectly predictable sequence of events that led to the present inflationary mess, and since our diagnosis of the root cause is all wrong, most of the attempted remedies are going to make the situation worse.

So what we can we do? Here are some rough guiding principles. I hope things won't be as bad as I say, but it is still worth being prepared.

1. No IT professional should assume that their paychecks will grow the way they grew in the past 4-5 years. It is possible for paychecks to stagnate, even fall.

2. No IT professional should assume his or her job is perfectly safe. This industry will likely witness layoffs. There are way too many "make work" projects, and I hear repeatedly of people sitting on the bench for months. We recently interviewed a candidate from a big name firm, who has not even been given a computer, after 8 months on the "job". Instead, he is asked to spend time in the library, improving his knowledge. I also heard of people whose managers tell them "Look, I don't have enough work myself, so why are you bothered?"


3. Prices of essential commodities will likely increase even further. Stagnating wages, sluggish job market and rising prices will make for a miserable time. The best way to conquer this is to cut down non-essential expenses. If you are the type of person who absolutely, positively have to replace that cell phone every 6 months, even every year, rethink your priorities in life. This is not to say you have to become a sanyasi(n), but it is a useful practice to start living on less. I assure you, it is fairly easy to train yourself to be frugal, if you set your mind to it.

Start finding ways of enjoying life without spending a lot of money. For example, watch a movie at home with friends, rather than blow money at Mayajaal. Eat with friends - but preferably do it at home, with each person bringing one item. I learned all of these as a PhD student on a stipend. You can enjoy life just as much, without spending all that much money.

4. Cut down on driving - combine trips, pool together with friends. It will cut down your stress level, keep you safer, and also cut down expenses.

5. Pay down your debts first. Reducing debts is always good, but it is essential to face a downturn well.

6. Wedding expenses: I know this is a major source of spending for many of us here. If you are a man, unilaterally tell the bride's family to go easy on wedding expenses. Be a real man, offer to share the expenses. Most importantly, restrain your own family from demanding the moon - like that ultra-super-expensive music band for reception, that super-premium caterer and so on. Yes, it takes some guts, but this is a good time to display it. Your future wife will appreciate it.

If you are a woman, insist on a simple wedding with your groom. If a guy lacks the guts to accept it, reject him. You will save yourself a life-time of trouble with a coward. Remember that there is a shortage of girls, because of the fairly widespread practice of aborting female fetuses, so you actually have leverage. Use it wisely.

7. After repaying debts, if you have savings, buy some gold as a hedge, particularly when gold prices dip. Not necessarily gold jewelry, because that may be overpriced, but gold coins & bars. Gold is a hedge against government making a total mess of things, which, alas, is very likely.

Gold should not be thought of as an investment - it is a way to safeguard your savings from being destroyed by inflation. Gold prices can also fall, so do not buy gold with borrowed money - that would be very stupid. Instead, think of gold as an insurance policy.

8. Those of you who come from rural places, and have an agricultural background, think about buying a few acres of farm land, provided you do not overpay for it. This advice only applies if you actually have someone who can take care of it, and actually farm it. If it costs Rs 15 lakhs an acre, it is not farm land, it is speculation. Do not get deluded with "Velachery land costs 20 crores per acre, and in my village it is only 20 lakhs an acre, so it is a bargain". That is stupid thinking. I would buy only at 1-3 lakhs per acre - at which price you can actually eke out a profit from agriculture, if you are careful.


Thursday, August 30, 2007

Orkut and AJAX code

I had ,of course even now , have lots of work more precisely lots of pressure these days in my team . so I had no time atleast think of posting here. Then , what triggered this post with my busy schedule always expecting me to be up there ?? Can you guess.... It's Orkut (Google aquired social comunity) .

Today morning, I just scribbled through one of the javascript communities in Orkut and in some thread I saw lots of users asking for some simple AJAX code to get started. I have jumped on the oppurtunity to make my name over there . I immediately started writing some AJAX code in bits and pieces from google and some other sources and finally arrived at some kinda output. Being satisfied with what I had done, started posting my content , to Orkut (as a reply to the thread I had mentioned) but in vain. To my sheer surprise, Orkut just don't allow more than 2048 characters to be posted as a reply for a thread. I can't even export my files to Orkut. Is there an option in Orkut I can export data to?? Surely not !!!. Then I had no other way , than posting the code in my personal blog (Thanks to Google acquired blogger) and then leaving a link to my blog in the orkut. By this time you could have understood why I had to go with this title for this post ;).

Now What's AJAX is?

AJAX - Asynchronous JavaScript and XML.
Ajax is asynchronous, this loading does not interfere with normal page loading. JavaScript is the programming language in which Ajax function calls are made. Data retrieved using the technique is commonly formatted using XML, as reflected in the naming of the XMLHttpRequest object from which Ajax is derived. hmmmmm .. you can find more here .

Code for a simple example. Ofcourse the javascript code is huge, but then, you can reuse the same code for any kind of application.

CODE:
1. test.jsp

Enclose the below javascript code with in the script tags and then write some html content to this jsp . Give a link using 'a' href tag to the javascript function call(). It should be (Remember I'm avoiding enclosing tags ) , < href="javascript:call()"> Clickthis .
Then have a DIV with id="postData" and style="display:block". DIV style="display:block" id="postData"> and close the DIV tag

SCRIPT code :

var rq = new Array();
var paramsArr = new Array();
function call()
{

getHtml('/postdata.jsp',"postData");
}

function getHtmlForForm(formElem,f, paramsObj) {
if(!paramsObj) {
paramsObj = '';
}
return getHtml(formElem.action,f, paramsObj, formElem);
}

function getHtml(url, fn, paramsObj, formElem) {
var xmlObject = null;
if( window.XMLHttpRequest ) {
xmlObject = getXmlObj(true);
} else if( !navigator.__ice_version && window.ActiveXObject ) {
//xmlObject = getXmlObj(formElem);
xmlObject = getXmlObj(true);

} else {
return false;
}

rt = rq.length
rq[rt] = xmlObject;
var paramsLen = paramsArr.length;
paramsArr[paramsLen] = paramsObj;
if (xmlObject) {
rq[rt].onreadystatechange = new Function( ' if (rq[' + rt +'].readyState==4) { ' + fn + '(rq[' + rt +'].responseText, paramsArr[' + paramsLen + ']) }');
if(formElem) {
handleForm(rq[rt], url, formElem);
} else {
rq[rt].open('GET', url, true);
rq[rt].setRequestHeader("Content-type","text/html");
rq[rt].setRequestHeader("Content-length", 0);
rq[rt].send(null);
}
}
return true;

}




//get XMLObject

function getXmlObj(formElem) {
var xmlObject = null;
if(document.all) {
var xmlObject = null;
if(!formElem) {
try {
xmlObject = new ActiveXObject('Microsoft.XMLDOM');
} catch(e) {}
}
if(xmlObject == null) {
try {
xmlObject = new ActiveXObject('Msxml2.XMLHTTP');
} catch(e) {}
}
if(xmlObject == null) {
try {
xmlObject = new ActiveXObject('Microsoft.XMLHTTP');
} catch(e) {
throw new Exception('Browser not supported');
}
}
} else {
xmlObject = new XMLHttpRequest();
}
return xmlObject;
}
function postData(result)
{
var msg = document.getElementById('postData');
msg.innerHTML =result;
showDiv('postData');
}
function showDiv(id)
{
document.getElementById(id).style.display='block';

}
//SCRIPT code ends here

2. The second JSP is the one to which we are making a ajax call and getting the content from that.

postData.jsp


Here, write some HTML code. It can be anything.


Now put both these jsp's under the same path and run the first one. Click on the link 'clickthis'. This will make a ajax call to the second jsp , fetch the content from that and show the content in the first jsp itself without the need of loading the page. Hope this helps the beginners. Please let me know if this is useful for you.

Saturday, July 21, 2007

TAJ MAHAL - TRIBUTE TO LOVE AND PASSION


The symbol for love and passion have made it again to the list of new wonders of the world.

For those who are not aware of Taj Mahal,

Taj Mahal was built by a muslim emperor Shah Jahan in the memory of his dear wife and queen Mumtaz at Agra, India. It is an expression of a 'dream', built out of white marble and standing in formally laid-out walled gardens, the Taj Mahal is regarded as the most perfect jewel of Muslim art in India.The emperor was consequently jailed and, it is said, could then only see the Taj Mahal out of his small cell window.

How many Shah Jahan's can you see in today's world ;) . I bet I will be one of them , if some xyz().. accepts my proposal ... he he.


A mention of new seven wonders of the world,
The Great Wall (Perseverance & Persistence) - China

Petra (Engineering & Protection) - Jordon

Christ Redeemer (Welcoming & Openness) - Brazil

Machu Picchu (Community & Dedication) - Peru

Chichén Itzá (
Worship & Knowledge) - Mexico

The Roman Colosseum (
Joy & Suffering) - Italy
The Taj Mahal (Love & Passion) - India











Friday, July 13, 2007

Yahoo - May I Suggest


Yahoo, one of the leading Web search providers have releasd their suggest search feature. I have tested this out and it's working pretty well. But, it’s sad that Yahoo always seems to be late to the party, because it's been a while Google released their suggest search with this and Y 's suggest is a bit slow compared to that of G 's.

What does this account for you?? Here is my piece,

  • For SEO operations its really useful. It is perhaps a way to find relavant keywords even better.
  • It will help people, search faster and more effectively.

When it's competition, you have to be right up there with your innovation . Hoping to see yahoo catch up with google.

Note: Yahoo's suggest search is not present in country specific yahoo sites .

Thursday, July 12, 2007

ZOHO Meeting : Create Meeting - Share Desktop and Chat

I have come across some Web conferencing application (Zohomeeting.com) recently , it is from the zoho suite of office appications. Zoho Meeting lets each member view (zoom in/out) and remotely control the host’s desktop, chat, add participants, email the host, and view meeting details. Chat is handled with Zoho chat (Hope to see VOIP capability in this area) . I'm really impressed with this , for the simple reason because NO Installations required from my part and setting up a meeting is as easy as 3 mouse clicks from my end. Well, here is a learning for all, make it simple for the user , he will surely love it and spread the word ! . It's me right now . I have had altleast 2 meetings a day for about a week now , with my friends in different parts of India and it worked just perfect. You can learn more from here, or here



Some of the pros and cons of zoho meet I have come across,

Pros:
  • Absolutely Free and amazingly fast
  • No Installations required
  • Setting up a meeting is very easy
Cons
  • The presenter has to be on windows.
  • Poor Control over remote(presenter's) machine. I mean , when I request for control over the remote machine, its taking loads and loads of time and integartion with zoho chat is pathetic .
Neverthless , these are still early days for Zoho and I wish them all the best.
Google