Thursday 31 December 2015

2015, a memory

When one chapter ends, other begins. Sometimes ending hearts but beginning of other worth the pain. Here it comes the last day of 2015, time to say good bye to the another chapter of life. After all the year was full of memories.
Dear 2015 it was nice to spent time with you, you brought a lot changes in life personally and professionally. You added another lesson how to stand firm in adverse circumstances and grew up an attitude of never giveing up. The best from you was to bringing up some amazing people in my life.
Here is the list of the idiots who amazes every time when they are around.




Akshay and Akshya the two brilliant geeks, one is Peter Baelish(right one) of our group who knows every technical aspect without him we could be losing the real test of roaming and learning. And the other one is Lord Varys(left one). No one can beat him if it come to witty comebacks and entertaining people.  This duo is never separable. A great helping hand personally and professionally.



A pro bro,the Jorah Mormont of the group, who speaks very less but when speaks only about pro things. The man who made Uber a Knagal (:P). A passionate traveler, eater and many more. A great skill of restaurant selection. No matter how much debt he has, never stops himself from buying a new gadget.


The mother of the dragons(group members), our Khalisi. The die hard caring lady.If you start late for home she will call you 10 times to make sure you reach home safely. She has restriction, can't survive outside after 10 PM (:P). A lady who will beat you out of hell if you make mistake in front of her.
A great friend who shares almost everything and you  have to  listen her, you have no option (:P).






The Brienne of Tarth, one of the strongest ladies I have met, deals with situation firmly. Full of fantasies. Travels miles to balance her professional and personal life. A great inspiration for those who easily give up. Learn't many things from you my lady.




The Queen Margery, a cute, charming, angelic, stunning, magnificent lady. Attracts people's attention when stands with. An professional beater, expert pincher. A born hungry, who wants to eat such a thing which she herself can't explain. A silent observer who notices each and everything around.

Thank you 2015 to bring in such a amazing people in my life. These are the people who makes my life easy when it seems difficult.
With the hope of amazing journey ahead, signing off..
Bbye 2015.

Saturday 19 December 2015

About Me


Name : Sarfraz, most of my colleagues call me surf or some times surf-excel (Daag Achhe Hain).
Born and brought up in India, a country full of beauty and diversity, love my country more than any thing.
A Software Engineer,a die-hard coder, an avid writer, a passionate shayar, a photographer, a Romyo in search of Juliet.
Take time to gel-up, once gelled up, you will have best of me.
Love to help needy people, spending time with street/slum children. Have very sensitive heart inside which melts down easily.
A good friend who always stands together in all circumstances.
A sarcastic kid sometimes who will drive you crazy.
One who loves Family, Friends and neighbor (:P).

    Want to know more, come and meet me dude :D.

Understanding virtual function in CPP

A function declared with keyword virtual is called virtual function. Virtual functions are handy when classes are Polymorphic i.e when child class and parent classes have functions with same name.
Let's understand the problem when we don't use virtual function.

#include<iostream>
using namespace std;
class Parent{
public:
void showMe(){
cout<<"\nParent is showing!";
}
};

class Child: public Parent{
public:
void showMe(){
cout<<"\nChild is showing!";
}
};

int main(){
Parent *parentPointer;
parentPointer = new Parent();
parentPointer->showMe();//its calling Parent->showMe()//

parentPointer = new Child();
parentPointer->showMe(); //it is also calling Parent->showMe()//
return 0;
}

Output:
Parent is showing!
Parent is showing!

When we don't declare Parent class function as a virtual, compiler does early binding which means for all the direct function references compiler will replace the reference with actual address of the method.
Now let's declare the Parent class function as a virtual

#include<iostream>
using namespace std;
class Parent{
public:
virtual void showMe(){
cout<<"\nParent is showing!";
}
};

class Child: public Parent{
public:
void showMe(){
cout<<"\nChild is showing!";
}
};

int main(){
Parent *parentPointer;
parentPointer = new Parent();
parentPointer->showMe();//it is calling Parent->showMe()//

parentPointer = new Child();
parentPointer->showMe(); //Now it is calling Child->showMe()//
return 0;
}

Output:
Parent is showing!
Child is showing!

When we declare the base class function as virtual, the function call using a Parent reference, as in shown in second example, compiler does not know which method will get called at run time. In this case compiler will replace the reference with code to get the address of function at run-time.

Why do we need to use Parent class pointer, cant we just declare Child class pointer itself and call the respective function instead declaring  virtual function?

Valid question, but consider a scenario when we have a Parent class Animal and Children classes Dog, Cat, Rat, Fox etc, each one has one common function says():
Now we have a function which demonstrates how individual animal sounds which will accept Parent class point because it has to access each of it's child class function;

void animalSound(Animal *pointer){
    pointer->says();
}

If we want animalSound function to call the child class function, we need delay the binding of early binding by declaring Animal class says() function as virtual.




Wednesday 11 November 2015

The Day I got hacked

Yesterday I got a call from a lady saying that I'm from Kotak Mahindra Bank, surprisingly, she knew my name and credit card number. She said RBI's policy has been changed so we are going to change your credit card, you will get a new credit card with enhanced credit limit. We need to transfer your points which you have earned to your saving account.
Meanwhile, she out-loud my card expiry date which was incorrect, I corrected immediately (oops!!)

Now she had my card number and expiry date, next she wanted my CVV number. She said we are going to transfer the points your account, we will connect your call to Bank portal, once connected please enter your CVV number. I agreed because Kotak follows the same process when you will request a Mobile Banking Pin (Smart enough!!) .

I followed her, as soon as I entered the CVV on my Mobile's key-pad, I could hear that the system in her side repeating the entered number which never happened while requesting for Kotal mobile pin (suspected!!).

I immediately disconnected the call, and contacted Kotak Customer Care service, explained the entire story. He said sir we are not aware of any such a policy from RBI. That must be a fraud call.
As the fraud lady already had my Card details (Card Number, Expiry Date and CVV), so Customer Care Executive suggested me block the card otherwise they might make a transaction using those details. So requested her to block the card. 

After a few minutes I got two consecutive messages, one requesting for OTP (one time password), another card cancellation confirmation from Kotak.

So they already had tried transaction, the OTP system saved my ass (Thank God!!).

These fraud people are smart enough and know how to play psychological hacks to get your Bank details. They know the process followed by your Banks.

Be careful, never ever believe on these idiots. If you get any such a call before asking any details, just fuck them off. Bank NEVER will ask for any such details.

Saturday 26 September 2015

How to clear interview in core IT companies

Hellow there, want to get into the flex muscle companies. Tight your waist, take deeeep breadth, kill the procrastination, listen carefully what I'm gonna say next. Because if the follow that up, within four months, definitely you are gonna land into your dream company..

First 15 days:

Try to do these in the prescribed order and hopefully you wont feel any difficulty.
Algorithm Lectures from MIT:(15 Days).
Do coding as well which clears concept in better way.

https://www.youtube.com/watch?v=JPyuH4qXLZ0&list=PL8B24C31197EC371C

https://www.youtube.com/watch?v=HtSuA80QTyo&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb

After completion of this you will have confidence and sense of completeness of the syllabus. Solving just questions will leave a doubt that there might be something I didn't cover.

Next 15 Days:

Data Structures from UC Berkley:(15 Days)

https://www.youtube.com/watch?v=QMV45tHCYNI&list=PL4BBB74C7D2A1049C

Next 30 Days:

Now you have a better understanding data structure and algorithm, now lets do some hands on with text books of prestigious writes.

Text Books(Use when required, no need to read cover to cover)

Algorithm Design Manual By Steven Skiena

Data Structures and Algorithms by Roberto Tamassia(optional)

Books for Interview Practice:(Keep solving 5-10 questions every day, don't get stuck for more than one hour, make a target to finish in 1 month)

Elements of Programming Interviews: Adnan Aziz, Amit Prakash(Must)

Cracking the Coding Interview: Gayle Laakman McDowell(easy)

Data Structure and Algorithm Made Easy : Narsimha Karumanchi(optional, but good)

It's time to practice:

Two Must Links for Data-Structure  and Algorithm: Write code on paper as well as system. Interviews are on paper.

http://www.geeksforgeeks.org/fundamentals-of-algorithms/

http://www.geeksforgeeks.org/data-structures/

Try to do all of the questions in the above links which are not in EPI (Elements of Programming Interviews).

Believe me or not, there are no questions for Data-Structure and Algorithm outside this. At least in India. Nobody asks beyond these.

Use an excel sheet to monitor goal and progress. Setting hard targets and finishing them.

Let me know if you find anything erroneous.

Now you are confident enough, let's rock the interviews.

Friday 14 August 2015

How to rename blog title

If you have created a block with a weird name or just you want to change the title of your blog..(This happened to me :P), here is the solution how can you rename your blog title:

1. Go to your blog
2. Click on the design, on right top corner (as mentioned in the below  image):


3. In the next page click on the My blogs:



4. In the next page click on the down-arrow (mentioned below) and select Settings from drop-down list:


5. In next next page click on Edit next to the title of the blog and there you are..enjoy :)

Tuesday 4 August 2015

How to disable IDM (Internet Download Manager) fake serial key popup





Is it irritating when after every few minutes you face a pop-up saying that your IDM (Internet Download Manager) has been registered with a fake key, here is the solution to get rid of it..


  1.  Open Run (Windows + r )
  2. Type  regedit and press enter
  3. Go to HKEY_CURRENT_USER\Software\downloadManag­er
  4.  Find name CheckUpdtVM change volume 0
  5. Now ......... it gone forever, enjoy!

Sunday 3 May 2015

Bye Bye to Bhagya

Hi bhagya,
You would be wondering why didn't I write anything about you. You know what, I guess I'm a bad writer whenever I write something about people (On their farewell) they cry...cry and cry. Then suddenly I remembered Oh!!! its our Bhaagiii The Iron Lady, No emotions run around her..so let me write about you!

Very early day: You came to AXETools two months before me, We (I and Akki)didn't have access to zone and you people (you and Mina) used to sit next to the exit door. Every time we had to go outside we targeted you people. That's where our journey of Friendship started. I still remember the way you gave us look
when we're approaching you (heads down, eyes staring us and may be whispering..aa rahe hain kameene log access mangne).




And days started running ahead, roaming, outings, lunch, breakfast, working late-night, your presence made moment awesome. We'll miss that awesomeness now.

Thnkews:
Thank you to be such a great friend.
Thank you for those caring you pored on us.
Thank you to bother when I missed lunch and you kept on asking kuchh khaya k nhi..again and again..
Thank you for those time you waited for me when I used to go for Namaz(Friday) just to give me company in lunch (That really matters).
That lot more to thank but rehen de yar dost ko itna bhi kya thank you bolna :P
Reminders:
Take care of you self, keep that tiny pen always with you for your safety (if you remember that nights incident):P.
You are brave enough to fight against anyone/nything..keep that sprite up.
Most important thing take care of your MOM, that's the most important thing we have in our life, keep other things aside and always stand for her even if she doesn't need.


Signing Off:

{Look at the mirror bhagi, your eyes became wet,
 though you always pretend to be Iron lady, there is a soft hearted bhagi inside you that very people know.}

chalo wo sab to theek hai important bat: apne liye ek massst munda khoj lio aur han shadi mein hamein zaroor bulayio..waise nahi bhi bulaegi to aana to padega..Akhir dost hin hum :D

Chalo then we'll stay in touch..

bubby take care..

Yours chhota bheem.