Skip to main content

Posts

And my world stops rotating

I enjoyed using the site…. pity I will not be using it anymore. Just read about what happened, after my friend told me. And did he have that stupid grin on his face (the one which says “I told you so”). Had painstakingly collected all those links… and many of them related to the “language for the passionate” (JavaScript).     …………… I don’t even have a backup in an OPML file.   It will not be easy getting back all those links :’(   This is the worst week of my life!!!!!!!     This post relates to the current home page at http://ma.gnolia.com/  

A neat quote

"We are all subjects to the fates. But we must all act as if we are not," said the witch, "or die of despair".                                                                  -- An excellent snip from the book "Northern Lights" by Philip Pullman

Algo for getting the number of days in a month

I can’t speak about what I do in office. (ok, not yet). But I need to write something. So here goes:     A “small” algo to retrieve number of days in a month. Don’t ask me it s efficiency (modulus is never fast , an alternative would be something similar to isInt function ):     /// January = 1, February = 2 and so on. /// year will be used only if month = 2 function daysInTheMonth(var monthNumber, var yearNumber) {                 // if February, and year is divisible by 4 but not divisible by 100, return 28. Else return 28.                 // since years which are divisible by 100 should not be leap years                 if(monthNumber == 2)  { return (yearNumber%4 ==0 && yearNumber...

A different side of Warren Buffet - An article

There are some articles which I usually skim thru, and read only the interesting parts.   But here is an article which is not only well written, but also indicates that there are things other than money to think about.   Do read this: http://www.time.com/time/business/article/0,8599,1843839,00.html   Waiting to read the book,