Shahid Riaz Bhatti

if(my.work == “Interesting” || my.availableTime > my.workHours) { this.blog.Post();}

How to Kill a Lion::

November 26
by Shahid Riaz Bhatti 26. November 2008 18:35

How to kill a Lion!!!  


UBL method:

Hire a lion. give him hell a lot of work and pay him government salary.Restructure his job, position, boss, collegues, designation, location every 6 months. Remove all lions above 40 from the organisation or rename them "
Goats ". If he kills 2 goats a day, give him target of killing 20 elephants a day, when there are just 10 elephants in the jungle. Lion dies of exhaustion, overkill and restructuring.

HSBC method:

Hire a lion and ask him to meow like a cat . Give him lots of ESOPs and grass to eat. He will die eventually of hope and starvation.

Citi method:

Hire the lion, make him take 14 tests and tell him that if he doesn't score 60% he will lose the job. Ask him to extract 60 kg meat out of a 40 kg goat. lion dies of the strain?

ABN AMRO method:


Hire the lion. Give him high impossible targets and expect a premature delivery of these targets. If the targets are delivered, clap for him in a townhall and if not delivered humiliate him regularly. Lion either dies of excitement or starts behaving like Tom hanks in Terminal.

MCB method:


Hire a lion, give him a salary of a cat...Show him suspense thriller "Reverse merger of your Jungle - Part III" the lion dies before joining....

StanChart method:

Hire a lion, motivate him to outshine other lions in the jungle.Load him with impractical targets and if he finds the prey ensure jackals in the jungle snatch the prey and credit lion dies in oblivion......

NIB method :

Hire a lion, load him with targets to focus on value instead of volume.Every quarter change the style and make his life miserable. If he survives in the system reward him with a hefty bonus else if he leaves profit of the bank improves along with EPS?

HBL Method:

Hire a lion and make him wonder, why he is hired.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

My Inbox

Why employee Leave Organization??

November 26
by Shahid Riaz Bhatti 26. November 2008 18:32
Every company faces the problem of people leaving the company for better pay or profile.

Early this year, Mark, a senior software designer, got an offer from a prestigious international firm to work in its India operations developing specialized software. He was thrilled by the offer.

He had heard a lot about the CEO. The salary was great. The company had all the right systems in place employee-friendly human resources (HR) policies, a spanking new office,and the very best technology,even a canteen that served superb food.

Twice Mark was sent abroad for training. "My learning curve is the sharpest it's ever been," he said soon after he joined.

Last week, less than eight months after he joined, Mark walked out of the job.

Why did this talented employee leave ?

Arun quit for the same reason that drives many good people away.

The answer lies in one of the largest studies undertaken by the Gallup Organization. The study surveyed over a million employees and 80,000 managers and was published in a book called "First Break All The Rules". It came up with this surprising finding:

If you're losing good people, look to their  manager  .... manager  is the reason people stay and thrive in an organization. And he 's the reason why people leave. When people leave they take knowledge,experienc e and contacts with them, straight to the competition.

"People leave managers not companies," write the authors Marcus Buckingham and Curt Coffman.

Mostly manager drives people away?

HR experts say that of all the abuses, employees find humiliation the most intolerable. The first time, an employee may not leave,but a thought has been planted. The second time, that thought gets strengthened. The third time, he looks for another job.

When people cannot retort openly in anger, they do so by passive aggression. By digging their heels in and slowing down. By doing only what they are told to do and no more. By omitting to give the boss crucial information. Dev says: "If you work for a jerk, you basically want to get him into trouble. You don 't have your heart and soul in the job."

Different managers can stress out employees in different ways - by being too controlling, too suspicious,too pushy, too critical, but they forget that workers are not fixed assets, they are free agents. When this goes on too long, an employee will quit - often over a trivial issue.

Talented men leave. Dead wood doesn't.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

My Inbox

Stop cyber war between India and Pakistan..

November 26
by Shahid Riaz Bhatti 26. November 2008 07:31
In response to an action by HMG, Indian script kiddie, who hacked OGRA’s website, A Pakistani Group called PCA (Pakistan Cyber Army) has reportedly hacked at least five Indian websites including http://www.ongcindia.com/ - Indian Oil and Natural Gas website.

Other websites which were hacked by Pakistanis include

http://www.syscontech.in/
http://www.iirs.gov.in/
http://www.ctram.indianrail.gov.in/
http://www.kvrtm.org.in/

PCA, who confirmed that their group knew this web-server for last two years which is hosting most of Indian Government Websites, but they never hacked it, despite it was never a big deal for them. PCA was of the view that they are not criminals and bear no bad intentions for anyone, but they could not see Pakistani websites getting hacked by Indians; so they had to hack these Indian websites.

PCA left following message on http://www.ongcindia.com/

This is a message from PCA for HMG(script_kiddies) in return to the ogra defacement.
Backoff , go read some course books else you will loose both , your name and this game.
We will literally SMOKE YOUR DOORS OFF like other groups did before.
This is just a warning to Indian authorities either
to launch inquiry against HMG or get ready for more action.
We were sleeping but not Dead.
Now Face the consequences
HAroon + HAmza + ABunasar
Naveed + Hassan
Pakistan ZindaBad

PCA asked Indian authorities to take action against HMG (the group that hacked OGRA’s website). The most notable part of this defacement is

This is just a warning to Indian authorities either to launch inquiry against HMG or get ready for more action

 

Previously, both countries remained in state of cyber war during 1997 to 2002. From Pakistan’s side the war was fought by Dr. Nuker, the founder of PHC “Pakistan Hackers Club” and MFRD, founder of G-force. These two groups were responsible for defacing hundreds of Indian websites, and broke all previous records of cyber war history. Both of the Pakistani Groups then settled issues with NEO, an Indian hacker to conclude that 5 years running Cyber war.

Update:

Saudi Based Pakistani Hackers In Action Too

KSA based Pakistani hackers said that they managed to hack very secure and sensitive websites of India as well. These include CID site of Andhra Pradesh www.cidap.gov.in , Bank Of Baroda bankofbaroda.com - One Of The BiGGest Bank Of India ! ! And aponline.gov.in

see hacked pic of CID

another pic of CID web

Bank Of Baroda Hacked

Aponline.gov.in McAfee Secure Site hacked

Hackerz Zone-h profile all Hack sites listed there with defacement mirror

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General

When to use abstract class??

November 25
by Shahid Riaz Bhatti 25. November 2008 08:38

I got the following question in a Yahoo group:

I read few articles on Abstract Classes but it is still not clear to me. What exactly an "Abstract" keyword means? In which situation to use Abstract Class?

In response to that question I wrote the following article and thought to share it.  

Abstract class:

It is a class which can not be initialized. You should make a class an abstract class when there is atleast one abstract method in your class. Abstract class can have abstract as well as non abstract method. Abstract class can not be used directly, instead you need to derive class from the abstact class. 

Difference between abstract class and an interface is that:

Abstract class can have internal member, while interface can not. Abstract class can have abstract and non-abstract method while intreface contains only the signature.

When to use abstract class:

Make a class an abstract class when there is atleast one abstract method in your class. When you want your class to be act as a base class and you dont want that object of your class could be created.

Example:

Let’s consider a very simple and basic example. We need to write two classes for

  • Lion
  • Goat

From the name of these two classes you can imagine that what these two classes are.

Common things between these two types of class are:

  1. Both types of classes have same number of Legs.
  2. Both are living creatures.

The uncommon things b/w these two is that Lion eats meats while goat does not.

Wrong Solution:

If you are asked to write classes to handle these two classes then you can do the following things:

Write two classes (i.e. Lion and Goat) with the following function along with their Implementation:

  • public void NoOfLegs()
  • public void IsLivingCreature()
  • public void DoesEatMeat()

You have achieved your solution, but it is not a good solution. Now lets write code to achieve the same thing in a different way.

A better solution: 

Write a class "Common" like this:

public abstract class common
    {
        public void NoOfLegs()
        {
            Console.WriteLine("No. of legs are: 4");
        }
        public void IsLivingCreature()
        {
            Console.WriteLine("Yes");
        }
        public abstract void DoesEatMeat();
    }

You can see that we have implemented those function which are common in Lion and Goat class, so that we can avoid to write code for these two function again in Lion and Goat class, because we will derive our Lion and Goat classes from this common class. We made the DoesEatMeat() an abstract method because Lion and Goat's behavior are differnet for this (i.e. Lion eat meat while goat does not). Here is the Lion and Goat class:

  public class Lion : common
    {
        public override void DoesEatMeat()
        {
            Console.WriteLine("Yes");
        }
    }
    public class Goat : common
    {
        public override void DoesEatMeat()
        {
            Console.WriteLine("No");
        }
    }

In the above code you can see that we derived two classes Lion and Goat from the common class and override only the DoesEatMeat according to the behavior of Lion and Goat.

We can not achieve the same thing using interface, because there is no way in interface to provide the implementation of common behaviors between two entities. So from this it should be clear that when to use interface and when to use abstract class.

The complete sample code with along with the out put is given below:

 

 

  using System;
using System.Collections.Generic;
using System.Text;

namespace WhenAbstractClass
{
    class Program
    {
        static void Main(string[] args)
        {
            Lion lion = new Lion();
            lion.NoOfLegs();
            lion.IsLivingCreature();
            lion.DoesEatMeat();

            Goat goat = new Goat();
            goat.NoOfLegs();
            goat.IsLivingCreature();
            goat.DoesEatMeat();

        }
    }
    public abstract class common
    {
        public void NoOfLegs()
        {
            Console.WriteLine("No. of legs are: 4");
        }
        public void IsLivingCreature()
        {
            Console.WriteLine("Yes");
        }
        public abstract void DoesEatMeat();
    }
    public class Lion : common
    {
        public override void DoesEatMeat()
        {
            Console.WriteLine("Yes");
        }
    }
    public class Goat : common
    {
        public override void DoesEatMeat()
        {
            Console.WriteLine("No");
        }
    }
}
 

 

Out Put: 

Copy and pase the above code in a c# console based application :)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

C# | General

Solve this

November 23
by Shahid Riaz Bhatti 23. November 2008 12:30

 

Hi, Today I got the following email from Syed Irtaza ali:

 

This will Mess With Your Head.

3 MEN GO INTO A MOTEL.

THE MAN BEHIND THE DESK SAID THE ROOM IS $30,
SO EACH MAN PAID $10 AND WENT TO THE ROOM.


A WHILE LATER THE MAN BEHIND THE DESK REALIZED
THE ROOM WAS ONLY $25,   SO HE
SENT THE BELLBOY TO THE 3 GUYS' ROOM WITH $5.

ON THE WAY, THE BELLBOY COULDN'T FIGURE OUT
HOW TO SPLIT $5 EVENLY BETWEEN 3 MEN,
SO HE GAVE EACH MAN A $1 AND
KEPT THE OTHER $2 FOR HIMSELF.


THIS MEANT THAT THE 3 MEN EACH PAID $9 FOR THE ROOM,
WHICH IS A TOTAL OF $ 27,
ADD THE $2 THAT THE BELLBOY KEPT = $29.

 WHERE IS THE OTHER DOLLAR?

 

I replied the above email like that:

 

3 men gave total of 30 $

Now the manager decides to give them back 5 $, which means that now the total fair of the room is 30$ - 5$ = 25$
Now at this point we need to decompose the distribution of the $ which is given below:

Manager = 25 $
Bellboy = 5 $
Total = 30 $ (No problem upto this point)

Now the bellboy is confused that how to distribute this 5$ among three person, so he gave 1# to each person and keep 2$ with himself.
Now check the distribution of $ among 5 stockholders

First they gave 30 $                        (Total amount is in the hand of manager)
Then Manager gave 5 $ to bellboy      (25 $ is in hand of manager and 5 # is in hand of bellboy i.e. 25$ + 5 $ = 30 $, no $ is missing yet)
Bell Boy gave 3 S$ back to the three person and keep 2 $ with himself
So distribution of $ after the final stage is:

Manager = 25$
Person A = 1$
Person B = 1$
Person C = 1$
BellBoy    = 2$.

Now sum the above $
25$ +1$ +1$ +1$ +2$ = 30$

So we can see that no $ is missing.

Conclusion:

every picture has got two side..
:)

 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

My Inbox

RecentComments

Comment RSS

Most comments

supplynflshop supplynflshop
51 comments
tiffany-bracelets tiffany-bracelets
39 comments
AVI to iPad AVI to iPad
36 comments