Skip to main content

Posts

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,  

Here s an old one

Some years back we found a flash video known as EPIC 2014. After a real long time I again decided to watch that all over.   In case you have not seen, see : http://epic.makingithappen.co.uk/   Also they have a sequel with some corrections, called as EPIC 2015.     Enjoy maadi!!!!  

AI - My Thoughts - 2

So one of the points I pointed in the previous post was “We need a single point of entry for all the data which is flowing from you to the outside world”.   Consider Google, which provides the following -           they have a Orkut, social networking site, thru which they have a list of your close friends (It would be pretty simple to ask you how you know that person), so they understand what kind of relationship you have with your friends. -           they provide you a mail service, so they know whom you contact most/least often. -           They have your chat (talk), so they know whom you communicate instantly with. (this + the social networking site’s scrap feature) -           The OpenSocial was initiated which allowed sharing friends info (of course it could not be ...