Skip to main content

Posts

Showing posts from February, 2008

Thank you, my wife!

I am writing this - limiting myself to what I trust is our tradition and taking what I believe is the best of it. Thinking of the various relationships that exist in our lives, I tried to say what could be the best of relationship that I can get from a person belongs to the other sex. Without thinking anything I could easily restrict myself with just three: friend, wife, and mother. Though I thought it is unfair to ignore a friend, I prefer to escape by giving the neither pure nor fully poisoned culture of ours as a reason. It wasn't as tough as I had imagined - between wife and mother, I find I can easily choose wife as the best - especially when I see my life in its full length - And fortunately I have not asked "Whose love is the best?". My wife is the one who brought me back to the family life. Me: an average young man who believed and enjoyed the pleasures that are outside the family life and I hoped to continue that forever. I trusted no one as I trusted m

Silly Mistakes (Technically?)

There could be too many, I am listing few of them. Of course, they are not as obvious as shown below, especially when they go multiple levels of method/function calls. Split: (Java) I should have read the docs properly. Code: String[] data = { "Phil;45678910;", "Alex;45678910;45678911"}; for(int i=0; i< datasplit =" data[i].split(" i="0;" datasplit =" data[i].split("> Parse Int: (JavaScript) Strange? The date component doesn't work properly for August and September. ( I used parseInt(monthField). Code: alert(parseInt("07")); // 7 alert(parseInt("08")); // 0 alert(parseInt("0xA")); //10 Thank God, I know number systems! Key Words: (JavaScript) The following script throws an error. Absolutely correct? Code: var ZDBExport = function() { this.export = function(arg1, arg2) { // do export } } And realised "export" is a keyword in javascript. It allows the signed script to export its properties