Tuesday 9 February 2016


Modern Tennis Rackets 

Life has always been beautiful. The invention of zeros and ones have changed the scene of electronics in present age. Life now depends in ample on binaries. Digitization has invaded in almost every sphere of our lives. Let in education, parenting, business, housing, research, medical science, engineer and sports and activities. We will look at how rackets in tennis have become modern. They have in them latest tech. They have crystals which can produce electricity when scratched. 



No, no, no please don't look at her minis.
The tennis racket which she is holding is exceptionally modern.
It has a chip which is connected to Piezoelectric Crystals which can convert mechanical energy into electric energy and vice versa.


 
So, when her racket smashes a ball, instead of vibrating and 

cancelling the force it returns back all of the force to the 

tennis ball. Making it easy to make the ball go in desired 

direction. Piezoelectric crystal gets charged when it receives

vibrational force or when it is scratched.It expands 

here basically. The electricity so produced is sent to the chip 

and the chip resend the electricity to the piezoelectric 

crystal, making it to shrink and which also makes racket to 

bounce back in the opposite direction of force. It helps the 

player get more control on the game.



Thanks and keep hardworking !!!


Ashumeet Mitter

Tuesday 2 February 2016

MVC


MVC

MVC is a powerful software developing design pattern.


MVC Architecture is a three tier architecture, something like PL-BAL-DAL, which is linear but has three layers. Unlike PLBALDAL, MVC is triangular. The path which connects the different separation of concerns is triangular in MVC. We have to understand what does separation of concern means by the way, before going any further.

Nowadays, the software has to have a lot many things, there are basically three things, the part which will be facing the user of the software, for example, dash board. There are so many ways one can develop this part. The page we get after typing www.google.com in address bar is the presentation logic.

The second part is the business logic which will be operated by the presentation logic, business logic is the actual part of processing, there are thousand of languages which have been invented to code just this part, for example, c#, c, c++ and many more. They can code mathematics, decision making, looping, calling a function and converting some code to machine level etcetera. Whatever happens between pressing the Google's search and search result is the business logic.

And the third part is database access layer, which persists the data so generated by the business logic by interacting with presentation logic. Our gmail account details are memorized by gmail. This phenomenon is the Data access part. 

So, any software not only google, if follows such a pattern then it is said to have followed a three tier PLBALDAL pattern. Each of these three things are termed as concerns, when we try to develop any software.

Earlier we used to code each and every part in just single place and by single language. But as the software users are increasing in numbers, the data is increasing exponentially. We just have to visit facebook.com , there we could see the flood of data of every genre. When things get huge, it is better to divide it. When problem is big, it is advisable to divide it into smaller parts. So, separation of concern is basically division of similar looking logic into one whole logic. The look and feel is divided into PL, the working area is BAL and the memorizing the outcome to DAL  as because it was becoming huge, very huge like almost uncountable lines of code.

MVC is invented to divide further the PL into three parts, namely MODEL, VIEW and CONTROLLER.

We get confuse, it is not like DAL and BAL, which would have data and business logic, the Model and View are only concerned about the Presentation logic.
It is the separation of concerns which would divide the colour and design from a painting. The person who would be responsible in uniting colour and design would be doing it dynamically, and that person is known as Controller.
View would only be holding the designs and the colour would be stored in model and Controller will decide which design has to be painted with which colour. 
It might be possible that a particular design would not look good in a colour, the situation would get worse, when we cannot change the colour or suppose we have purchased the design which has come in red colour factory fitted, so in this case we would have to order new design painted in the colour we want. This is tightly coupled or tightly depended on each other.
 In software development, there is no such relief than a chunk of code is heavily loosely coupled. Think about the Google doodle, they update it on every occasion,try to imagine, if they would have glued some doodle then what problems they would have to face while putting some other in its place. It is loosely coupled.
Similarly, when we want the things to behave as loosely coupled in Presentation logic, we implement the MVC design pattern.
Lets understand in terms of website development.
The HTML content of the web page is the View but the data held by the html elements would be not glued directly into them.It would be stored in Model.

During the run time, based on what page and what data, a user has requested, the controller would visualize and glue it immediately onto a view and hand it over to the user in the form of a webpage.
Unlike previous versions[PLBALPAL], where the data of the presentation logic has to be tightly coupled with the data being given to BL by DAL to PL.

MVC is an attempt to decouple the Presentation from its logic.The request is taken by the Controller. The View and Model would never know each other in MVC directly. They don't get into conversations and sharing things. It is the duty of Controller to map Model's contents to a Veiw's content into one Presentation and this is the only time when they come to know about each other.
In  desktop application apps also like the software developed using Windows Presentation Foundation[WPF] which follows MVVM pattern which is almost same like MVC. The Controller would be the first person to get connected, it could literally be a controller or some part which behaves like a controller. In MVVM the VM part behaves like a controller. It attaches the data to view, hence, VM stands for View Model.

Therefore, MVC is invented get a better hold on the presenation part of a software which also makes testing more easier to do. Testing of the Presentation Logic is tedious task, indeed but through MVC is easier than ever.

Thanks and keep harworking!!

Ashumeet Mitter

BigInteger C#


 BigInteger

No more depending on inbuilt data types or custom types for creating more of a tightly coupled to a requirement, resulting in loose coupling.


In BigInteger data type, there is no upper or lower limit. It is user defined structure. The data holding capacity is as much as the space in Stack. BigInteger is structure hence it is  a value type. The constructor would define take the upper limit as argument. It supports all the numeric data types including double, decimal and byte arrays.


So, instead of ,
           int a = 0;

// error 
a = Int32.MaxValue + 200;

we can use
BigInteger myInt = new BigInteger(Int32.Max+200);

Thanks and keep hardworking!!


Ashumeet Mitter
  

Monday 1 February 2016

I am with you.


"I am with you" by Avril Lavigne



 "I don't know who you are 
but i am with you."

The beautiful line from the song "I am with you", by world famous Singer Avril Lavigne is not ordinary.
This sentence holds the Theory of Everything. 
The space would know where to act and react. Everything in this universe is held together by an Intelligent Force, which means, it is the same force which has held electrons in some kind of path around neutron and proton in an atom. The smallest unit of cosmos is intelligent space and biggest unit is intelligent space, only. The difference in size is comparable when this intelligence force manifest itself in different forms The distance between our two fingers stretched holds the entire organ of the intelligent force.We can not perceive it but if it does not remain around us we would simple be turned into some kind of nothingness. One inch space would have entire algorithms of cosmos's sustenance. It is like starting where we would come back. It is like starting from a point to come back to the same point once reached. It is not linear but circular, as evolution is also involved, it makes energy to behave as concentric circles.Where you cannot see, is the place of everything. Our 24 senses which are designed to map our individuality with the individuality of the cosmos and it is the simplest form to explain but to understand it in more depth, we have to take the intelligent form to a place where it becomes indispensable to our [living race] survival. It is because of space that we are, otherwise we are nothing. The 24 senses are few of the devices to understand this intelligent force in very familiar way. Things get tough when we have "free will", the most advanced concept. We have brain which is independent and has free self  or will but it has to react to the action rendered by the intelligent force. Our free self is because of the intelligent force but it does not interfere into our personal free will. It behaves as a guiding post or a lamp, it just let us know what is there but it does take interest in interacting with what is there.
We[human race] are always with this intelligent force or in other words, we are because of the algorithms of the intelligent force.

So, when Avril Lavigne says, "I don't know who you are", it is the truth of the cosmos, we cannot know the intelligent force by our 24 senses. Intelligent force is also personified as Creator or GOD or in fact, it is God who is the intelligent force and as because everywhere there is intelligent force, which means God is everywhere, our DNA is God. But we cannot perceive him. It requires some special powers like raising the Kundalees.

She[Avril Lavigne] is referring to somebody, a guy, who is also a manifestation of the intelligent force in other words he is also as Godly as she herself or we ourselves. Her imagination is the real fact, which  she does for creating somebody out of nothing. But she knows the manifestation only , in fact we could only perceive him in the manifested form. His spirituality is hard to understand because it requires special powers .

The continuation is "I am with you". We would not generally perceive the intelligent force. But we can know that we are with Him and more of because of Him. She according to the lyrics, wants to be with Someone who she does not know. It is what which has been going on since light years. We are with Somebody whom we do not know. We live and die without knowing the Person with Whom and because of Who we are living. She through her lyrics wants to explain the theory of everything as far as my interpretation is concerned.

"I don't know who you are but I am with you."

"I" is the manifestation of IF[Intelligent Force] but it does not know who "I" is in totality, we just know around 20 to 30% of who we are. "I" does not know itself and at the same time it does not know other self as spiritual level as because, it the same unknown stuff from Whom all the "I" s are made. But, "I am with you" is  "I" is always with the intelligent force.

 "I" who does not know whom "I" is but always "I" is with him which is Him, like myself, who is Myself.

Thanks and keep hardworking !!!

Ashumeet Mitter