This Is Me:-

Phlegmatic wannabe...!! Don't mess up too badly with your role in the world, or you'll always turn up as a villain....

Sunday, October 31, 2010

He said it all!!

"Say "So'ham, So'ham" whatever comes. Tell yourself this even in eating, walking, suffering. Tell the mind this incessantly—that what we see never existed, that there is only "I". Flash--the dream will break! Think day and night, this universe is zero, only God is. Have intense desire to get free."


                                                                                           --swami vivekanand

Sunday, October 24, 2010

Solved!!!

Here is a logic puzzle from Discrete Mathematics and Its Application by Kenneth H Rosen. Its very easy, and can be solved straight away by reasoning but the reason for which i am mentioning it here is that for the first time in life I could figure out the formal way of writing it in the language of propositional logic and solving it on that basis. :-)

Here it goes:

"An island has 2 kinds of inhabitants, knights, who always tell the truth, and their opposites, knaves, who always lie. You encounter 2 people A and B. What are A and B if A says "B is a knight" and B says "The two of us are opposite types"?"
Solution:-
p: "A is a knight"
q: "B is a knight"
Here 'p' and 'q' are propositional statements that can have true and false values.
now we have following four propositional statements from the above puzzle:
p --> q           ( "if p then q" ie. if A is a Knight then B is a Knight as A had specified the same and he tells
                           the truth being a Knight.)
q --> !p          ( "if q then !p" ie. if B is a Knight then A is a Knave as B says they are of opposite types and
                           tells the truth being a Knight)
!p --> !q         ( "if !p then !q" ie. if A is a Knave then B is a Knave as A was lying about B)
!q--> !p          ( "if !q then !p" ie. if B is a Knave then A is also a Knave as B was lying that they are of
                          opposite types)

Now with these if we make a truth table for each:

p q !p !q p-->q q-->!p !p-->!q !q-->!p
T T F F T F T T
T F F T F T T F
F T T F T T F T
F F T T T T T T

This is the truth table.
Now as we can see except for the last case we dont have any other case in which all the 4 conditions can be True simultaneously hence, without much ado I can declare that
p is False and q is False to make all 4 conditions hold true simultaneously.
That is, A is a Knave and B is a Knave as well :-)

Friday, October 8, 2010

Keeping my cool!!!

Hi This is me!
The phlegmatic wannabe!!
Today was one of the worst days of my life. All the unexpected things happened today. Somehow, me, my team mate and my team lead dint lose our cool. But I know we are standing at the edge of the cliff right now, one strong breeze can throw us to any side of it. And I am praying that it throws us back to where we were earlier.
Every month our Unix Scripts that load the data into the datawarehouse run in the first week. We need to monitor them constantly and in case we find few scripts not working properly we have to fix the problem and re-run those.
Our clients send us their data regarding various plans (they are offering to their employees, customers etc.). We load this data in our datawarehouse after the ETL process. This ETL and loading is done by our scripts. This time due to several issues with server our jobs dint run properly and left us in a dilema. We were not at all sure if things have gone alright. We began with a strategy and somewhere down the line after three days of fixing we began to realize that our datawarehouse was probably getting short of data, i mean data was not there. We maintain 3 years of history data in our datawarehouse and all of that was deleted by some mishappening which we weren't able to figure out at all.. Some how we were assuming that it was the fault of the server migration and all but when we took the matter upto our team lead, he came and we began to explore about the probable causes.
All of a sudden, he opened one file that had few sql queries in it. We were using it to delete unwanted and incorrect data for last 2 days. The queries looked like this:

delete from prsn_clnt_afltn where clnt_id in (01834) and btch_cyc_id = 120 and em_modl_id = 0 or em_modl_id is null;


this is just one of those queries in that file out of 39. That means, in all, data was being deleted from 39 tables and that too all of that. I saw that query and was shell shocked. I knew after an instant glance that this is the one deadly query that has caused havoc for our work and jobs. I told my team lead that I was sure that was our fault even though he was not confirm yet. But I was sure coz I could see that "or" part hanging alone.
Had the query been:


delete from prsn_clnt_afltn where clnt_id in (01834) and btch_cyc_id = 120 and (em_modl_id = 0 or em_modl_id is null);


every thing would have been all fine. And we would have been cherishing our life as always. But this careless fault has given us the lesson of our lives. I dont know how the things are going to be and how will my team lead solve the problem but I know its time to wake up!! Somehow I feel very sorry for my hardworking team mate Gagandeep sir. Hez one gem, hez really one of the most respectable people around me. And best part hez a master in his own right, but coz of this mistake that we came across he also looked tired of it all.
Well, thanks to udit, ankush and sumit sir who made our life easier by cracking jokes (our very own PJs and GJs) and making the moments a bit lighter. I really love the way god sent these people into my life. I know we all wont be togather for eternity but I would  like to say these guys have got me back to my own.

We also had one Ashutosh sir in our team, an extremely intelligent, decent, caring and fun loving person. He had left hewitt only 3 weeks ago, and we are sure had he been here everything would have been going fine, as ryt now most of the load is coming onto Gagan sir who is taking a great care of it but still in chaos mistakes are bound to happen, and the server migration, database bounces etc had caused but ulimate chaos for us.

Hopefully it all will soon become fine, and we will be on track again. But till then fingers crossed, just wishing for the best :D

Sunday, October 3, 2010

Here comes the Result!!!!

You hurt the innocents, you trust the fakes,
You never feel sorry for your mistakes,
You break the hearts, affront the weak,
You think the righteous is a freak,
You are the slave of pleasures and wants,
You mock the rightful, make faces and taunts,
Time isnt kind, as it pretends,
You wont be spared to make amends.



You'l cherish the moments but not for long,
You'l have no blessings to be strong,
You'l fall apart, when people leave,
You'l have no way, except to grieve,
You'l want to get some hope and peace,
but wont let you live, your atrocities,
As the return of your deeds descends, 
You wont be spared to make amends