Management Lesson

Disclaimer: All characters in the story are not at all imaginary. Any resemblance to person living or dying of work is purely intentional. One night when the whole world was sleeping, a thief broke into the house of a washer man. The washer man was fast asleep but the donkey and the dog were awake. The dog decided not to bark since the master did not take good care of him and wanted to teach him a lesson. The donkey got worried and said to the dog that if he doesn’t bark, the donkey will have to do something himself. The dog did not change his mind and the donkey started braying loudly. Hearing the donkey bray, the thief ran away, the master woke up and started beating the donkey for braying in the middle of the night for no reason. ...

ऑगस्ट 15, 2014 · 2 min · 383 words · शंतनू

Tao of Programming

The Silent Void Thus spake the master programmer: “When you have learned to snatch the error code from the trap frame, it will be time for you to leave.” 1.1 Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming. ...

जुलै 21, 2014 · 17 min · 3497 words · शंतनू

Unique Date

एप्रिल 27, 2014 · 0 min · 0 words · शंतनू

Fizz Buzz

Problem: Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. f = lambda x: 'FizzBuzz' if not (x%5 or x%3) else 'Fizz' if not x%3 else 'Buzz' if not x%5 else str(x) for x in range(100): print(f(x)) Fizz Buzz problem

एप्रिल 22, 2014 · 1 min · 73 words · शंतनू

Free Speech

एप्रिल 18, 2014 · 0 min · 0 words · शंतनू

Using timezone with datetime in python

>>> import pytz >>> import datetime >>> tz = pytz.timezone('Asia/Calcutta') >>> tz <DstTzInfo 'Asia/Calcutta' HMT+5:53:00 STD> >>> t = tz.localize(datetime.datetime(2014, 4, 5, 6, 7, 8, 900)) >>> t datetime.datetime(2014, 4, 5, 6, 7, 8, 900, tzinfo=<DstTzInfo 'Asia/Calcutta' IST+5:30:00 STD>) >>> t.isoformat() '2014-04-05T06:07:08.000900+05:30' Reference: Python datetime object show wrong timezone offset

एप्रिल 5, 2014 · 1 min · 50 words · शंतनू

Toot

मार्च 8, 2014 · 0 min · 0 words · शंतनू

Flowchart

डिसेंबर 25, 2013 · 0 min · 0 words · शंतनू

Translation table explaining the truth behind British politeness

What British Say What the British Mean What Foreigners Understand I hear what you say I disagree and do not want to discuss it further He accepts my point of view With the greatest respect You are an idiot He is listening to me That’s not bad That’s good That’s poor That is a very brave proposal You are insane He thinks I have courage Quite good A bit disappointing Quite good I would suggest Do it or be prepared to justify yourself Think about the idea, but do what you like Oh, incidentally/ by the way The primary purpose of our discussion is That is not very important I was a bit disappointed that I am annoyed that It doesn’t really matter Very interesting That is clearly nonsense They are impressed I’ll bear it in mind I’ve forgotten it already They will probably do it I’m sure it’s my fault It’s your fault Why do they think it was their fault? You must come for dinner It’s not an invitation, I’m just being polite I will get an invitation soon I almost agree I don’t agree at all He’s not far from agreement I only have a few minor comments Please rewrite completely He has found a few typos Could we consider some other options I don’t like your idea They have not yet decided By: Alice Philipson

डिसेंबर 22, 2013 · 2 min · 229 words · शंतनू

String Theory

नोव्हेंबर 22, 2013 · 0 min · 0 words · शंतनू