Monday, December 4, 2023

Interview preparedness

 1. What is other person looking at?

Techincal rounds - 2

G& L - Leadeship round  Veto round - you need to pass this .. 

1. Dont lie - hypothetical round - project work type - 

2. Always describe coherently with what learnign you learnt - STAR format - any situation - task - actions, result and add the learning ( even if its failure or if success more successful)

Behavioural - what you did when Manager was micromanaging

Hypothetical - imagine if manager is micromanaging 


2nd question - Super performer but very rude 


Delay hua - features cut kareneg


Jeff Sipe - Youtube channel 


Techincal round - 

Ambiguous problem - 


1. Consider all Edge cases , ask question 

2. Basic ones of data str

3. Tree and graphs are most popular 

4. Standard algo - adding node search etc 

5. Solve the problem - even if not optimal . go for brute force

6. performance is a concern - try to give the complexity of the problem. Suggest how will u do. Do u worry about your code

7. Edge case how do u handle 


Designing -

clarify clarify

1. Making the problem solved. Cut down to the feature 

2. Worry about scaling - performance 

3. Resiliency - code nai fate .. 






Design

 30 Blogs to learn 30 System Design Concepts:


1) Content Delivery Network (CDN): https://lnkd.in/gjJrEJeH


2) Caching: https://lnkd.in/gC9piQbJ


3) Distributed Caching: https://lnkd.in/g7WKydNg


4) Latency vs Throughput: https://lnkd.in/g_amhAtN


5) CAP Theorem: https://lnkd.in/g3hmVamx


6) Load Balancing: https://lnkd.in/gQaa8sXK


7) ACID Transactions: https://lnkd.in/gMe2JqaF


8) SQL vs NoSQL: https://lnkd.in/g3WC_yxn


9) Consistent Hashing: https://lnkd.in/gd3eAQKA


10) Database Index: https://lnkd.in/gCeshYVt


11) Rate Limiting: https://lnkd.in/gWsTDR3m


12) Microservices Architecture: https://lnkd.in/gFXUrz_T


13) Strong vs Eventual Consistency: https://lnkd.in/gJ-uXQXZ


14) REST vs RPC: https://lnkd.in/gN__zcAB


15) Batch Processing vs. Stream Processing: https://lnkd.in/g4_MzM4s


16) HeartBeat: https://lnkd.in/g4x7sMrF


17) Circuit Breaker: https://lnkd.in/gCxyFzKm


18) Idempotency: https://lnkd.in/gPm6EtKJ


19) Database Scaling: https://lnkd.in/gAXpSyWQ


20) Data Replication: https://lnkd.in/gVAJxTpS


21) Data Redundancy: https://lnkd.in/gNN7TF7n


22) Database Sharding: https://lnkd.in/gMqqc6x9


23) Proxy Server: https://lnkd.in/gi8KnKS6


24) Domain Name System (DNS): https://lnkd.in/gkMcZW8V


25) Message Queues: https://lnkd.in/gTzY6uk8


26) WebSockets: https://lnkd.in/g76Gv2KQ


27) Consensus Algorithms: https://lnkd.in/ggc3tFbr


28) API Gateway: https://lnkd.in/gnsJGJaM


29) Distributed Locking: https://lnkd.in/gRxNJwWE


30) Checksum: https://lnkd.in/ghNc5pfn

4 Year old gift ideas

 The following are some ideas for Christmas presents that will contribute to your child’s progress. You’ll note that most of them are very inexpensive.



Magnets

Magnifying glass or microscope

Percussion instrument

Puzzles

Books

Classical music

Children’s songs

Card games

Lego

Paints, chalk, crayons and paper

Chalk board (paint one anywhere with chalk paint)

Scissors, hole punch, stapler

Glue and materials for gluing


Lower case letters

Skates, scooter, bike

Manual egg beater and soap

Brush and dustpan, duster, sponges,

Scrub brush, funnel, tweezers, etc.

Cooking apron and utensils

Photo album

Stringing beads

Wooden shapes for patterning

Child’s desk or table and chairs

Teaching clock or watch

Food colouring and containers for

mixing (plastic gloves)

A rope (one of my favourite!)

A membership at the YMCA

Books, books, books

Santa Claus – truth or fiction?

 

 It is important to the well-being of our children for us to understand the difference between fantasy, imagination and creativity. Our confusion of these abilities can be detrimental to their progress: Fantasy: a retreat from the real world through mental conception of unreal images Imagination: a way of mentally visualizing what one has learned of reality Creativity: imagined (real) facts are presented in an original way The exercise of a child’s imagination, expressed in role playing (such as playing house or store or imitating fixing a car) is part of the child’s desire to understand these activities. Once this desire is satisfied (i.e. she really understands how), the role playing will stop. Therefore if you observe your child role playing a situation, you can help by teaching him as much as possible on that subject. Everything your child imagines, he perceives first through the senses; so the better able he is to use his senses, the more he can learn and the greater his imagination. Any activity which helps him increase his discernment by sound, sight, taste, smell or touch enlarges his store of understanding and gives him a greater scope for imagination. This, then, provides the basis for his reorganizing these facts and reproducing them creatively. No one can be truly creative without a basis of facts to organize in a creative way. Piano playing may provide us with an example. A child may sit at a piano and pretend to play good music (role playing). He is given lessons. At first he imitates, then, when he knows enough, he can reorganize what he has learned in an original way and create new music. Fantasy, on the other hand is withdrawal from reality and should not be encouraged. Children between about two and five have an intense curiosity and need to understand the world. They spend a great deal of time trying to sort out fact and fiction, and we should be careful not to confuse them. A child who doesn’t like what she learns of reality will retreat into fantasy. This should be a signal to her guardians that reality needs to become more attractive to her, so she won’t feel the need to escape. As Maria Montessori said, The teacher who tries to focus the child’s attention on something real – by making reality accessible and attractive…speaks with the voice of a trumpet to the vague mind, wandering far from the pathway of its own good. A child who spends a lot of time with cartoon fantasies or screen creations may have trouble distinguishing which of his activities are real and which are not, and he may begin to lose his attraction for reality. A child with a diet of corresponding TV shows and video games may also have trouble keeping his imagination in the real world. Such children, when they first come to school, often do a lot of wandering and have trouble focusing on the classroom materials. During this time they learn less, so their imaginations are ill-equipped for creativity because it has a more limited base on which to build. Eventually most are turned on by the classroom materials. And as much as we hate to admit it, and much as we would like to preserve their illusions, for those who celebrate such occasions, teaching our children that Santa Claus, Elf, the Easter Bunny or witches, dragons and fairies are real, hinders their ability to discern reality and confuses their respect for us. They may all be presented as “stories” and lessons may be learned from them, but we should respect our little ones enough to tell them the truth. After the age of about six, when the child’s concept of reality is clearer, fantastic tales can be enjoyed without fear of confusion, as long as they are well-balanced with stories that help them to understand the real world. (Don’t worry! We’re not going to tell your children there is no Santa Claus. But we would encourage you to play down the fantasy, and to enjoy Santa as a make-believe figure who could teach us about the spirit of Christmas.)

Prisha French

 Comment ca va

numbers to 20,

days of the week 

directions to “levez-vous” or “asseyez-vous” lentement or vite! Christmas song in French

Monday, November 27, 2023

Management Books

 

1. An Elegant Puzzle: Systems of Engineering Management - Will Larson

2. The Software Engineer's Guidebook -  
3. Staff Engineer: Leadership beyond the management track - Will Larson

Wednesday, September 27, 2023

In Canada

1. Register with FHA since you’ll be delivering in one of the Surrey/Langley hospitals. They will call to check in and also send you an info package based on your needs

https://bestbeginnings.fraserhealth.ca/default.aspx

https://www.smartmomcanada.ca/

Free sms service that will keep you updated about what you need to know at every stage of your pregnancy

https://podcasts.apple.com/ca/podcast/pregnancy-confidential/id1084872411

Fun podcast to keep your mood light and positive looking forward to each new week in your pregnancy 🤗

Baby list 


Must haves:

- Vitamin D drops to start from birth 400IU per day

- Breast Pump : I have Madela Freestyle bought from Amazon for approx $400. We claimed $250 from insurance. You will need a prescription from the doc

- Diaper Newborn size : Huggies

- Wet wipes : Huggies

- Baby Detergent : Ivory

- Nappy rashes cream : Sudocream

- Nipple cream : Lansinoh

- Anti-colic milk bottles : Playtex Baby

- Burp clothes : 3-4

- Bibs : 4-5

- Soft Small towels : 7-8

- Hooded Bath towel : 2

- Shampoo cum body wash : Aveeno

- Body lotion/cream : Aveeno

- Massage Oil : Burt Bees

- Talc : Burt Bees

- Vicks

- Nose Frida

- Salinex

- Blanket/s

- Swaddled cloths

- Feeding pillow https://www.amazon.ca/dp/B00PC3K4V0/ref=cm_sw_r_wa_api_glt_i_W22BCBD0FSA4K5H5YWQ5?psc=1

- Bottle and nipple sterilizing : Philips Avent Microwave Steam Sterilizer

- Bottle/toy wash/detergent and brush

- Thermometer, Comb/brush grooming kit : https://www.amazon.ca/dp/B00VXMXN30/ref=cm_sw_r_wa_api_glt_i_JW76GBVQX37DMP4D7PDT

- Pillow to fill Mustard seeds : Hypo-allergenic Baby Head Shaping Pillowcase on Amazon

- Waterproof changing mats

- Nursing bras : buy a few one size bigger for initial few months

- Stroller cum Car seat 3-in-one : We bought Graco modes  parameter Huron. Keep an eye for discounts on these at babies r us, we got around 40% off on this.

- Diaper genie, with carbon filter and refills

- Bassinet (optional if you want a crib you won’t need a bassinet)

- Changing station : Ikea has an inflatable station with cover

- Crib

- Crib mattress : Dual sided infant to toddler

- Crib Mattress fitted sheets

- Bathing tub

- Countertop Drying Rack

- Clothes : Preemie : None if baby growth is normal till 34-35 weeks 

- NB : 7-8 full sleeve onesies, this can suffices from birth uptil 1.5 moths + 6-7 pajamas + 4-5 pair Mittens and socks + 2 warm jumpsuits

- 3M-6M : 10-15 Full and half sleeve mix onesies + 2 warm jumpsuits + 6-7 pair mittens + socks + 7-8 pajamas + 2-3 short pants

- Pacifier : 3-4


Optional

- Medela Safe & Dry Ultra Thin Disposable Nursing Pads

- Gripe water

- Humidifier


Form 4-6 months 

- Bottle warmer : Philips Avent Fast Bottle Warmer

- Baby food feeder pacifier 

- High chair

- Bowls

- Spoon

- Sipper

- Pouch bibs


For hospital thing to carry:

- Mom and Dad’s 2-3 set of clothes

- Extra underwear

- Sanitary Pad maxi size

- Baby 4-5 onesies, mittens, socks, toque

- Toiletries

- Snacks 

- Slippers

- Car seat

- Car seat cover incase of winters/snow


imumz prenatal exercise

Tuesday, September 26, 2023

Alaska

 December in Alaska is very beautiful.

Fly to Anchorage, explore the city.
Take the winter train from Anchorage to Fairbanks (book upfront, fills very fast) and don’t stop in denali in between.
In Fairbanks there are multiple northern light hunting tour companies which can also take you to Artic circle.
Try to stay at chena hot spring resort (it’s out of the world)
Near Fairbanks there is a small town north pole which is Santa Claus home.

Monday, September 18, 2023

Healthy foods during pregnancy for brain development

 1. Fatty fish - rich in omega fatty acids. DHA helps brain development.Low mercury options like salmon

2. Leafy greens - packed with folate. Essential for neural tube formation and cognitive growth

3. Eggs - excellent source of choline . Vital for brain cell communication and memory development.

4. Greek yoghurt - high in protein and calcium. Overall growth and neural connections

5.Berries - loaded with antioxidants and vitamins supporting brain cell protection and development.

6. Pumpkin seeds - rich is zinc which is necessary for building the structure of the brain

Saturday, June 24, 2023

Sakshi's malpua recipe

 Take equal parts of maida, Mawa and milk make a flowing consistency batter.

.

Take a pan fry in ghee take a batter in spoon and pour slowly into the ghee and fry till it's light golden brown in colour.

.

Make chasni take sugar and water equal amount melt all the sugar and give just one boil only sticky texture then add some kesar and yellow food colour and dip the fried malpua into the chasni keep it till it's absorbed.

Tuesday, May 2, 2023

Elementary schools in Surrey

 1. Cornerstone montessori - 20th Jan open house

2. Pacific Academy

3. French school Gabrielle Roy

https://www.surreyschools.ca/page/1005/how-to-apply-online - 29th Jan apply
South Point - applications for KG closed

  •  Southridge ranked #1 with a rating of 10 -- applications for KG closed on 1st Dec
  •    Diamond ranked #1 with a rating of 10 -- crescent heights applied - to fill the form
  •    Iqra Islamic ranked #19 with a rating of 9.8
  •    Star Of The Sea ranked #27 with a rating of 9.5 - apply Jan 24th
  •    Khalsa (Surrey) ranked #35 with a rating of 9.2
  •    Chantrell Creek ranked #40 with a rating of 9.1
  •    Our Lady Of Good Counsel ranked #45 with a rating of 9.0
  •    Pacific Academy ranked #73 with a rating of 8.6 -- applied
  •    Cloverdale Catholic ranked #73 with a rating of 8.6 - to visit in person
  •    Semiahmoo Trail ranked #73 with a rating of 8.6
  •    Regent Christian ranked #121 with a rating of 7.9 - applied
  •    Dr. F D Sinclair ranked #121 with a rating of 7.9
  •    Cornerstone Montessori ranked #121 with a rating of 7.9 - call and book a tour
  •    Bayridge ranked #130 with a rating of 7.8
  •    Morgan ranked #141 with a rating of 7.7
  •    G.A.D ranked #141 with a rating of 7.7
  •    Laronde ranked #153 with a rating of 7.6
  •    White Rock Christian ranked #312 with a rating of 6.7

Word Wrap Question

 /*

We are building a word processor and we would like to implement a "word-wrap" functionality.

Given a list of words followed by a maximum number of characters in a line, return a collection of strings where each string element represents a line that contains as many words as possible, with the words in each line being concatenated with a single '-' (representing a space, but easier to see for testing). The length of each string must not exceed the maximum character length per line.

Your function should take in the maximum characters per line and return a data structure representing all lines in the indicated max length.

Examples:

words1 = [ "The", "day", "began", "as", "still", "as", "the",
          "night", "abruptly", "lighted", "with", "brilliant",
          "flame" ]

wrapLines(words1, 13) "wrap words1 to line length 13" =>

  [ "The-day-began",
    "as-still-as",
    "the-night",
    "abruptly",
    "lighted-with",
    "brilliant",
    "flame" ]

wrapLines(words1, 12) "wrap words1 to line length 12" =>

  [ "The-day",
    "began-as",
    "still-as-the",
    "night",
    "abruptly",
    "lighted-with",
    "brilliant",
    "flame" ]    


wrapLines(words1, 20) "wrap words1 to line length 20" =>

  [ "The-day-began-as",
    "still-as-the-night",
    "abruptly-lighted",
    "with-brilliant-flame" ]

words2 = [ "Hello" ]

wrapLines(words2, 5) "wrap words2 to line length 5" =>

  [ "Hello" ]


wrapLines(words2, 30) "wrap words2 to line length 30" =>

  [ "Hello" ]  

words3 = [ "Hello", "Hello" ]

wrapLines(words3, 5) "wrap words3 to line length 5" =>

  [ "Hello",
  "Hello" ]

words4 = ["Well", "Hello", "world" ]

wrapLines(words4, 5) "wrap words4 to line length 5" =>

  [ "Well",
  "Hello",
  "world" ]

words5 = ["Hello", "HelloWorld", "Hello", "Hello"]

wrapLines(words5, 20) "wrap words 5 to line length 20 =>

  [ "Hello-HelloWorld",
    "Hello-Hello" ]


words6 = [ "a", "b", "c", "d" ]
wrapLines(words6, 20) "wrap words 6 to line length 20 =>

  [ "a-b-c-d" ]

wrapLines(words6, 4) "wrap words 6 to line length 4 =>

  [ "a-b",
    "c-d" ]

wrapLines(words6, 1) "wrap words 6 to line length 1 =>

  [ "a",
    "b",
    "c",
    "d" ]

All Test Cases:
          words,  max line length
wrapLines(words1, 13)
wrapLines(words1, 12)
wrapLines(words1, 20)
wrapLines(words2, 5)
wrapLines(words2, 30)
wrapLines(words3, 5)
wrapLines(words4, 5)
wrapLines(words5, 20)
wrapLines(words6, 20)
wrapLines(words6, 4)
wrapLines(words6, 1)

n = number of words OR total characters
*/

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

class Solution {
    static void Main(String[] args) {
        String[] words1 = new String[] {"The","day","began","as","still","as","the","night","abruptly","lighted","with","brilliant","flame"};
        String[] words2 = new String[] {"Hello"};
        String[] words3 = new String[] {"Hello""Hello"};
        String[] words4 = new String[] {"Well""Hello""world"};
        String[] words5 = new String[] {"Hello""HelloWorld""Hello""Hello"};
        String[] words6 = new String[] {"a""b""c""d"};
        printOutput(wrapLines(words1, 13));        
        printOutput(wrapLines(words1, 12));
        printOutput(wrapLines(words1, 20));
        printOutput(wrapLines(words2, 5));
        printOutput(wrapLines(words2, 30));
        printOutput(wrapLines(words3, 5));
        printOutput(wrapLines(words4, 5));
        printOutput(wrapLines(words5, 20));
        printOutput(wrapLines(words6, 20));
        printOutput(wrapLines(words6, 4));
        printOutput(wrapLines(words6, 1));
        
    }
    
    static void printOutput(String[] result)
    {
        for(int i= 0 ;i< result.Count(); i++) 
        {
            Console.WriteLine(result[i]);
        }
        Console.WriteLine();
    }
    
    static String[] wrapLines(String[] words, int expectedLength)
    {
        List<String> result = new List<String>();
        int count = 0;
        StringBuilder str = new StringBuilder();
       
        for(int i=0;i < words.Count(); i++)
        {            
            int lenOfEachWord = words[i].Count();
            if((count+lenOfEachWord) <= expectedLength)
            {
                str.Append(words[i]);
                str.Append("-");
                count += lenOfEachWord +1// 1 for hyphen
                //Console.WriteLine(count + " " + str.ToString());
            }
            else {
                    count = 0;
                    //Console.WriteLine(str.ToString());
                    result.Add(str.ToString().TrimEnd('-'));
                    str = new StringBuilder();
                    --i;
            }
        
        }
        result.Add(str.ToString().TrimEnd('-'));
        return result.ToArray();
    }
}

Friday, March 10, 2023

Banff Canada

 When you get to Banff, I would highly recommend that you go for easy but beautiful hikes at Johnston Canyon and Grassi Lakes near Canmore

Monday, February 27, 2023

Steps for Canada's visitor visa

 Steps for Canada visa:

  1. create an online application on IRCC website
  2. pay the fees (100+85), and schedule biometrics
  3. Get biometrics done and schedule passport stamping

PM role questions

 1. Design the world's best coffee machine

2. You're sitting next to the CEO of Indian Oil, he says that govt is planning to close down all the free-lefts in India. Should he be concerned? What's the impact on his business?

3. I want to start a startup in Home Automation area. What should I do? How should I go about it?

4. How do we solve the parking problem in hyderabad? Can we make something like airbnb for parking? that you can book parking slots? Design it completely, all features and prioritization etc


Shows for 5 year old

 peppa pig, blippi, bluey,tumble leaf, numberblocks, Thomas,sudha murthy stories, bluey

Octonauts, Leo the junior ranger, creative galaxy, super wings, dinosaur train

Deepa and Anup, Ben and holly

Thursday, February 16, 2023

Vancouver

Burnaby -

Ecole Cariboo Hill
Moscrop
Burnaby Central
Burnaby Mountain
Burnaby North
Cloverdale/Surrey -
Lord Tweedsmuri
Fleetwood Park
Ecole Salish Secondary Schools
Sullivan Heights Secondary School
Fraser Heights
Johnston Heights
Elgin Park
Semiahmoo
Panorama Ridge
Langley -
Langley Fundamental
Walnut Grove
Langley Secondary

Thursday, February 9, 2023

Singapore airport layover of 24 hours

If you get Singapore visa before hand, below are the options that can be done:
We walk around Clark quay, art gallery marina bays sands , gardens by the bay , Marina bay sands mall at night - mainly lighting at night for 3 to four hours . Don't enter any

Next morning we did universal studios and sea aquarium at Sentosa island

Morning options - sea aquarium, universal studios, jurong bird park , art gallery if you interested. 

Evening options - Marina bays sands, gardens by the bay ( lightings are good in general and go upto to midnight )


In case you plan to be at airport :

Singapore Airport is also one of the best airports in the world. It is the only destination where you can clear immigration 48 hours prior to your flight deprature so you can enjoy all there is in Singapore. Here are a few things to keep in mind at the airport with a strategy in terms of timing:


1) Clear immigration at Singapore


2) Proceed to the Jewel, it is at the Airport, but will require a skytrain to get there. 


3) Start off at the Walking Net. Tickets are 18.90 and 13.90 for adult/child respectively. It should be a "fun" walk. Or, you could go to the Bouncing Net, which is 24.90/19.90 respectively. Both are open till 10pm at Canopy Park (Level 5)


4) A HSBC Rain Vortext Light and Sound Show (requires crossing immigration at the Singapore Jewel at the Airport). It is the world's tallest indoor waterfall and there will be a lgiht show at 10.30pm for free which should not be missed


5) Take a walk around the Shiseido Forest Valley, open 24 hours


6) Proceed through Singapore Immigration and take a train to Terminal 1


7) Head to the Cactus Garden, a rooftop garden highlighting more than 100 species of Cacti


8) Head back to Terminal 3 (your flight will leave from T3, in 99% of the situations), and proceed to the Butterfly Garden, a 24 hour garden with over 1000 tropical butterflies


9) Relax in the lounge before headed to your flight.


As an FYI, if you ever find lounge food quite limiting (in Singapore options for vegetarians are limited) there will always be a 24 hours food court. Just ask any of the lounge staff and I"m sure they will guide you as necessary.


Keep in mind, lounge acess is for you and +1 guest. The second guest will be chargeable

2) As an Indian Citizen, with a Canadian PR, you are allowed to enter Singapore for up to 96 hours. If you choose to do so, I have added a Singapore Arrival Card. 

3) You will have access to three lounges during your stay. I have information online to suggest that lounge access will be limited to ~3 hours for Priority Pass lounges, so with the three lounges, you should be well taken care of. I would recommend the following strategy:


1) Marhaba Lounge from 9pm to 12mn (they close at 12mn) [After Passport Control, find the escalator on the right - between Louis Vuitton and DFS. Proceed up to Level 3, and the lounge is located opposite Singapore Food Street]


2) Ambassador Transit Lounge (12mn to 2.30am) [Departure Transit Hall, Level 3. Located at the east/north end of Terminal 3 next to the Butterfly Garden. Access via escalator or lift located near the B gate corridors, and next to Wines and Spirits by DFS. Located close to the Ambassador Transit Hotel]


3) SATS Premier Lounge (2.30am to 5.30am) [After Immigration Control, turn left. Take the escalator beside Shilla Cosmetics Duty Free up to the lounge entrance on Level 3.].


The SATS Premier Lounge is the best of the three lounges, hence I recommend using them the last.

Thursday, January 19, 2023

Layering in Canada winters

For 2-3 degrees, a proper snow jacket with down filling and snow pants is more than enough. Infact, you can make him wear a normal jacket as well (water proof) in that weather. T-shirt and pants inside. Gloves (snow gloves) and beanie (wool cap), one pair of socks and snow boots if he wants to walk or play in the snow. Snow boots only when there is snow on the ground, not otherwise

From -5 Upto -15 my son wears a full sleeve Tshirt, fleece jacket and down jacket on top and pants and snow pants at the bottom.

For -16 to -25, a full sleeve Tshirt, a sweater, a hoodie and snow jacket on top. Bottom fleece pants (fleece on the inside) and jeans and snow pants.

Below -25 it's a thermal top, woolen Tshirt or fleece shirt (fleece inside), hoodie and snow jacket with thermal bottoms, jeans or fleece tracks and snow pants at the bottom. In this weather he'd be wearing 2 pairs of socks. A normal pair of socks inside and the regular feet warmers over those

Beanie and gloves remain standard for all weather. For below -25 he woolen gloves under the normal gloves.

Victoria Canada Trip

 Victoria city to do and must have  1. Parliament building  2. Waterfront  3. Mini sea-bus at waterfront  4. Fisherman wharf   5. Museum (op...