Saturday, June 15, 2019

Mummy's Pav Bhaji

1. Grate four carrot, and some ginger. Chop two capsicum, some cabbage, five tomatoes. Take some peas.
2. Take some oil and ghee. Add chopped capsicum, cabbage and grated carrot. Add salt and a pinch of turmeric. Add a glass of water and cover the lid.
3. After the veggies have been cooked properly, add ginger paste and tomatoes. Add red chili powder, pav bhaji masala. Let it cook for sometime covered.
4. Mash everything after it is cooked. Add 5 mashed boiled potatoes to it. Add lemon and some more masala according to the taste. Add coriander on top of it. You can serve with chopped onions on top.

Friday, June 7, 2019

Rice Kheer

1. Take very less ghee and saute rice in the ghee for a while.
2. Bring milk to boil in a separate pan, and add the sauted rice.
3. Let it boil for sometime, when it is cooked, add Sugar, powdered cardamon and clove.
4. You can add roasted almonds, cashew as well in the kheer after it is cooked.

Friday, April 19, 2019

Kullu Manali & Shimla - May 2018

It was our first anniversary and we had to go somewhere!! Sushil, Priyanka, Nitish and I decided the place to be the very famous old Shimla-Manali, to beat the summers of Hyderabad. What can be more relaxing than to be on a hill-station during the summer season of India. Thanks to the corporate world, where we cannot take more than a week holiday! So, it was a short trip again, two days in Manali and two days in Shimla. It was worth every penny there. The mountains, early morning view, river all the way along the journey and the pahadi's! It stole my heart.

The journey started on 30th from Hyderabad to Chandigarh via Delhi. We reached Delhi at midnight and checked in into a hotel next to the airport.

1st May, morning we had a flight to Chandigarh. Once we reached Chandigarh, the cab was waiting for us at the airport. We had booked a package from Antilog Vacations.
We started our trip to Manali. On the way to Manali we had breakfast (yum aloo paratha) at Haveli.. then lunch (which was okaish) at some random dhaba kinda on the way. We saw
Padoh river on the way.

On the way there was a long bridge on which we walked and clicked pictures.


We did river rafting on the way. The view was amazing. It was chill.







Finally we reached our hotel - snow villa. Had amazing north Indian dinner and walked in the area nearby to view the night chill scenes.



2nd May,2018: We woke up in the middle of the mountains, could see the snow-peaked mountains. It felt like Switzerland.



After having breakfast at the hotel itself, we headed towards the Solang Valley. On the way to Solang Valley, we saw lot of apple trees which did not start bearing the fruit though. The view on the way was awe-struck and serene.

We took an ATV to reach to the top of the Solang Valley. You can choose horses or simply walk up. Walking up is not a good option, as it is far and lot of ATVs and horses on the way would disturb.



We did some sports activities there, like crossing the river etc.
                                      

We proceeded to visit few more places which were in the package like mentioned below:
Nehru Kund,Kothi, Solang Valley (World Famous For Adventure Sports Activity) and up to Gulba/Hadimba devi Temple and Click Pics under pine trees/Vashit Hot Water & Old Shiva Temple /Club House/Tibetan Monastery/The Manali Mall Road.

We took a ropeway further from Solang Valley to reach further heights where people were doing paragliding etc.

We visited the mall road in the late evening and proceeded to take rest for the day.

3rd May, 2018: We were all set to start for Kufri. Took horses to Kufri.

We did not find any snow there. On the top of the mountains, after reaching there, we saw an old Shiva temple, and the view was good.  We proceeded towards Shimla.

On the way, we found lot of Minchy's shop and stopped to buy few sharbats and pickles.


We reached Shimla and visited the mall road. I fell in love with the mall road. We spent the entire evening there, roaming and having good food.

 

4th May, 2018. We proceeded to come back to Chandigarh. We had a flight from Chandigarh to Hyderabad the next day.

























Tuesday, March 19, 2019

Baked Baati in microwave

1. Take 1 cup wheat flour and 1/3rd cup besan. Add 1-2 tsp of ghee, pinch of eating soda, salt, mirchi powder, haldi, ajwain and saunf. Knead the dough little hard with minimum amount of water required.
2. Let it rest for 20-30 mins.
3. Preheat microwave for 5 mins in Grill mode.
4. Make round dough and press it from top to flatten it little. Perpare 7- 8 such dough.
5. Put grill stainless steel cooking rack on the turntable plate and  put the doughs.
6. Grill it for 5 mins and turn up the opposite sides. If it was otg we din't had to toggle the sides.
7. Again for 2-3 mins grill it and see if it is baked properly.
8. Now in a cauldron, heat some ghee in it enough for the baati to submerge.
9. Shallow fry it till the color comes out pretty well and is consistent.
10. Ta-da yum baati is ready.

Saturday, March 9, 2019

Interview Preparation

Array --> simple array, array rotation, stack, queue using two array, tree representation of array, preorder ,inorder traversal using array, searching and sorting array, in-place search sort, array for doubly ended queue, Hash table using array,
 concurrent hash table using array.

 LinkedList  --> Linkedlist traversal, binary search in linked list, tree conversion , cycle detection in dll, random pointer.

 Tree --> different tree,  inoorder, preorder, post order traversal  and their properties, tree creation from array , linked list. Different tree operation like ancesortor, predecessor, level order traversal

 Graph - BSF, DSF, Djkestras, max min cut problem, cycle detection, back edge,

 Hash table --> Different hash algorithm, Distributed hash algorithm, different collision resolution technique, consistent hashing

 Distributed system  -- problem with distributed system, message queue,  communication within node, concept of ACID transaction, CAP theorem, shared file system.

 Database - sql vs No sql when to use and why. simple sql queries, ACID property, distributed database, sharding vs partition sharing, Key value data base, document database. case study elastic search

 Operating System --> OSI layer, process synchronization , different problem with their solution(producer -consumer/ dining philosopher), deadlock detection prevention, thread, process, memory management,memory allocation , os bootstraping, bios loading. How
 .net environment work on top of OS . fragmentation, segmentation, virtual memory technique.

 Networking  - OS layers,how different protocol work tcp, http, ssl,ftp, ajax technology.

 Pipeline and code deployment cycle-- docker image, how Microsoft binary are created.

 Testing - load testing, integration testing, unit testing, different stage of testing( beta, gamma , prod..).. code monitoring, clod based monitoring system,  what to monitoring, post deployment works.

 ====================================

 Problem solving  from geekfor geek, practice 100 popular question from leet code and then on paper, try to come up with all the test case on paper
 https://github.com/mission-peace/interview

 watch tushar roy youtube channel for design and coding video

 go through groking design interview https://www.educative.io/collection/5668639101419520/5649050225344512?authorName=Design%20Gurus

 Go through design interview approach for Gaurav sen videos https://www.youtube.com/watch?v=zaRkONvyGr8

 ==================================================================================================


 Go through the design article  like https://github.com/checkcheckzz/system-design-interview

 Start with small start up.. then try for big dream companies













Tuesday, January 8, 2019

Focus for 2019!

Be happier. Be healthier. Be the best, better than the rest. Be smarter, faster, richer, sexier, more popular, more productive, more envied, and more admired. Travel more, make more friends, try things that you never have and feel the thrill of it. Take an action now.  

You need to train your mind to focus on the positives and look forward to it. Be hopeful. Don't get disappointed by things that didn't happen. Cry for it and get over with it. Deal with it. Don't feel miserable. You would love it when you come to know ,why the things did not happen, for a good reason. Have no regrets. Things which are happening now is because it is leading it you what you will have in future. I have started believing in these things. And it does work!!

Make sure you excel in your current role...sort of become irreplaceable in whatever you do.




Thursday, November 15, 2018

MCQ Coding Questions

How to invoke constructor in Servlets.
Using servlet Container
By Init() method
Can’t invoke
None of the above.

Which method retrieves the body of the request as binary data.
None of the above
request.getInputStream()
response.getInputStream()
New InputStream()

3What is the output of below program?

public class StringDemo {
    public static void main(String args[]){
        // The line below this gives an output
        // \u000d System.out.println("comment executed");
    }
}
Compile Exception
comment executed
Empty
The line below this gives an output

4What is the result of this program.

public class Demo {
    public static void main(String args[]){
        System.out.println(3*0.1 == 0.3);
    }
}
True
False
Compile time error
Runtime error

5Output for below program

class A {
    static int i = 1111;
    static
    {
        i = i-- - --i;
    }
    {
        i = i++ + ++i;
    }
}
class B extends A
{
    static
    {
        i = --i - i--;
    }
    {
        i = ++i + i++;
    }
}
 class Demo
{
    public static void main(String[] args)
    {
        B b = new B();
        System.out.println(b.i);
    }
}
0
9
6
15

6What is the output of below code

try {
  File file = new File("path");
  FileInputStream fis = new FileInputStream(file);
  String s = "inside";
} catch (FileNotFoundException e) {
  e.printStackTrace();
  System.out.println(s);
}
Inside
Path
File not found exception
Compilation error

7What exception will be thrown by Double.parseDouble(null)
NumberFormatException
NullPointerException
ArithmeticException
DivisionByZero

8Select a commonly used runtime exception
NumberFormatException
NullPointerException
ArrayIndexOutOfBoundException
FileNotFoundException

9The regular expressions \d mean
Range of digits (0-9)
Range of digits (1-9)
A single digit
A Non digit

10Way to split string by new lines without empty lines is
String.split("\\r?\\n")
String.split("[\\r\\n]+")
String.split("[\\r\\n] ")
String.split(System.getProperty("line.separator"))

11Which of the below statement is true about LinkedList
to access an element in the middle, it has to search from the beginning of the list
Its elements can be accessed directly by index
adding or removing an element needs to move existing elements
None of the above

12What is the output of below code
String str = "abcd";
String repeated = StringUtils.repeat(str,3);
abcdabcdabcd
abcdabcdabcdabcd
abcd
abc

13What is the output of below code

String str = "Sep 17, 2013";
Date date = new SimpleDateFormat("MMMM d, yy", Locale.ENGLISH).parse(str);
System.out.println(date);
Tue Sep 17, 13
Tue Sep 17, 2013
September 17 00:00:00 EDT 2013
Tue Sep 17 00:00:00 EDT 2013

14Predict the output of following Java program?

class Test {
  int i;
}
class Main {
   public static void main(String args[]) {
     Test t;
     System.out.println(t.i);
}
Runtime error
Compile error
Garbage value
0

15What is the output of the following program ?

Class Test {
    public static void main(String[] args) {
        Test obj = new Test();
        obj.start();
    }
    void start() {
        String stra = ”do”;
            String strb = method(stra);
        System.out.print(“: ”+stra + strb);
    }
    String method(String stra) {
        stra = stra + ”good”;
        System.out.print(stra);
        return“ good”;
    }
}
dogood : dogood
dogood : dodogood
dogood : gooddogood
dogood : dogoodgood

16When we implement an interface method, it must be declared as:
Friend
Public
Protected
Private

17Output of following Java program?

class Main {
    public static void main(String args[]) { 
             System.out.println(fun());
    }
    int fun()
    {
      return 20;
    }
}
Garbage value
0
Compile error
20

18What is the output of below code

class Test {
public static void swap(Integer i, Integer j) {
      Integer temp = new Integer(i);
      i = j;
      j = temp;
   }
   public static void main(String[] args) {
      Integer i = new Integer(10);
      Integer j = new Integer(20);
      swap(i, j);
      System.out.println("i = " + i + ", j = " + j);
   }
}
 i = 10, j = 20
 i = 20, j = 10
i = 20, j = 20
i = 10, j = 10

19Predict the output
class Main {
    public static void main(String args[]) { 
            System.out.println(fun());
    } 
    static int fun(int x = 0)
    {
      return x;
    }
}
0
Garbage value
Compile error
Runtime error

20Predict the output of the following program.

class Test
{
    public static void main(String[] args)
    {
        StringBuffer a = new StringBuffer("geeks");
        StringBuffer b = new StringBuffer("forgeeks");
        a.delete(1,3);
        a.append(b);
        System.out.println(a);
    }
}
gsforgeeks
gksforgeeks
geksforgeeks
Compilation error
Bottom of Form

My mumma's best matar paneer