Callback mechanism

Hacker Rank Problem - CutTheSticks

Hacker Rank Problem - Apple and Orange...

Hacker Rank Problem - Number Line Jump...

Visitor Design Pattern by Ridit



And here goes my impromptu discussion on the Visitor Design Pattern implemented in Python...

#Enjoy...

Mediator Pattern Explained in Python,Java and C++...



Here goes the training video

Memento Design Pattern By Ridit



Here goes my video session discussing Memento Design Pattern.


Command Pattern In Python



So here goes the Class Diagram of Command Pattern.



And here is my live lecture on Command Pattern using Python.





State Design Pattern in Python




My Youtube video about State Design Pattern in Python


My study of viscosity

 

Viscosity(Definition)


Viscosity is the resistance of a fluid liquid or gas which changes its form or shape.Viscosity is the opposite of fluidity.Higher the viscosity more dense is the fluid because the molecules get more closer to each other.


Viscosity(Formula)

the formula for viscosity is F = μAu/y


There are 2 types of viscosity:


Dynamic viscosity(Absolute viscosity) and Kinematic viscosity


Dynamic Viscosity - the resistance to movement of one layer of a fluid over another


Kinematic Viscosity - If we divide dynamic viscosity by the density of the fluid we get the kinematic Viscosity.We read that blender uses kinematic for different fluids.Now as while doing an experimentation on how viscosity affects the fluidity and our test subject was my project that i did 2 years back about milk being poured on a shiva lingam.Today we swapped the milk with water and then honey to see the viscosity varying and how our simulation was successful.As you can see in the video down below:




Explanation of the experimentation:

In the first case, we used water and found that the flow is very fast and smooth. Next we used honey, which has much higher viscosity and found that the flow is highly resistant on the Shiva lingam.

So lets recall what we have learned:

1. The term dynamic viscosity and kinematic viscosity and their relationship.

2.Experimentation with fluid simulation showing how fluidity is affected by viscosity.

3.For practical purposes we use kinematic viscosity as we have found in blender.

4.Formula of the viscosity is  F = μAu/y.


The Apple Game in Python...

 

The Apple Game in Python...





You can download the whole source code from the following link


Hackerrank problem - The grading students...

 

Builder Design Pattern in C++

Singleton Pattern in C++

 

Impromptu discussion on UML class diagram...

 My impromptu discussion on UML Class Diagram