Wednesday, 26 August 2015 - We spread your word! – It is an effort to provide digital space to Small/Medium/Big Businesses and Service providers. This website aspire to become local online directory of India. It aims to cover all hook and corner of the country.

Below template explain in detail how one can stick their great work  themselves and alternatively how we can help them by sticking it.

Twitter: @epracharakCOM  

Please Like Facebook Page

How you can help?
  • ·        If you have good internet facility- Why not help your local area shops and service by putting their ads on Its FREE.
  • ·        Help your town/Village/City local shops and service achieve greater reach.

Visit epracharak & spot your local area shop!!! Click 

Satender Kumar Mall
Twitter : @satenderiiit
Facebook Page:

Wednesday, 5 August 2015

Part 2: Hindu Traditions & Scientific Reasons Behind it !!

This blog is continuation of Part 1: Hindu Traditions & Scientific Reasons Behind it !!. Following are few more commonly practice tradition which will compel you to think that our ancestor were far intelligent and logical in their approach then we currently are:-

6. Worship of Peepal tree

The origin of peepal tree can be traced back to the times of Indus Valley Civilization (3000 BC - 1700 BC) in the Mohenjo-Daro city. The peepal is also closely linked to Krishna. In the Bhagavad Gita, he says:
Among trees, I am the ashvattha.”
The peepal is also sacred to Buddhists, because the Buddha is believed to have attained enlightenment under it. Hence it is also called the Bodhi tree or ‘tree of enlightenment‘. ‘Peepal’ tree ‘exhales’ or produces oxygen even at night. It generates so much oxygen in one minute which is enough for approx 1000 living creatures.
Apart from mythological importance, Peepal tree medicinal benefits is high. The leaves of peepal tree is used in treating eye pain, constipation, jaundice, relief from asthma, nose bleeding etc. The Ayurveda use of peepal tree click here.

7. Applying Tilak on forhead

It is a usual practice in every household to apply tilak on forehead. Actually the forehead is the area where the Ajna chakra is said to be located. So, when the tilak is applied this chakra gets automatically activated. It prevents loss of energy from the body and improves concentration.

8. Ringing the bell in temple while entering.

Temple bells are made up of a mix of various metals like cadmium, zinc, lead, copper, nickel, chromium and manganese. The proportion in which each metal is mixed to create a temple bell is the science behind it. Each of these metals is mixed in such a way that when the bell is rung, each metal produces a distinct sound that creates unity of your left and right brain. Therefore the moment you ring the bell, it produces a sharp and long lasting sound which lasts for about seven seconds. The echo of the sound from the bell touches your seven healing centres or chakras of the body. So, the moment the bell is rung, your brain goes blank for a few seconds and you enter a stage of trance. In this state of trance, your brain becomes extremely receptive and aware.

9. Applying Mehendi on Hands.

Mehendi is decorative as well as mehendi is a powerful medicinal herb. Weddings are usually stressful, especially for the bride. Applying mehendi helps to cool down the nerves as mehendi has cooling properties. Hence mehendi is applied on hands and feet of the bride, covering all the nerve endings.

Satender Kumar Mall
Twitter : @satenderiiit
Facebook Page:

Friday, 17 July 2015

Management lesson from Gita (a Hindu scripture) - Part 1

Bhagawad Gita is popularly known as Gita. It is Hindu scripture whose background is Mahabharata-an Epic. The philosophy of Gita should not be viewed only from spiritual prospective but also as a guide in developing managerial effectiveness. This is relevant for people of all faiths. It does not ask anyone to alter or transform their current believe/faith but does encourages to adapt the lesson for their professional benefits.

Let’s take a look one at a time: -

(Do your work without thinking of its fruits!)

A popular verse of the Gita advises "detachment" from the fruits or results of actions performed in the course of one's duty. Being dedicated work has to mean "working for the sake of work, generating excellence for its own sake." If we are always calculating the date of promotion or the rate of commission before putting in our efforts, then such work is not detached. It is not "generating excellence for its own sake" but working only for the extrinsic reward that may (or may not) result.

Three stone-cutters were engaged in erecting a temple. As usual a H.R.D. Consultant asked them what they were doing. The response of the three workers to this innocent-looking question is illuminating.
 'I am a poor man. I have to maintain my family. I am making a living here,' said the first stone-cutter with a dejected face.
 'Well, I work because I want to show that I am the best stone-cutter in the country,' said the second one with a sense of pride.
 'Oh, I want to build the most beautiful temple in the country,' said the third one with a visionary gleam.

Their jobs were identical but their perspectives were different. What Gita tells us is to develop the visionary perspective in the work we do. It tells us to develop a sense of larger vision in one's work for the common good.

To be continue....


Satender Kumar Mall

Twitter : satender.iiit

Facebook Page:

Wednesday, 1 July 2015

Part 1: Hindu Traditions & Scientific Reasons Behind it !!

This blogs is dedicated to my young friends who have heard about many Hindu traditions but fail to convenience themselves or unaware of reasons why they exists and its significance to our day to day life. 

In that context this blog will prove to be useful as well as they will feel proud and realized, why India was knowledge hub in ancient time.

1. To Greet termed as "Namskar" : We join both Palms together

 Joining both hands ensures joining the tips of all the fingers together; which are denoted to the pressure points of eyes, ears, and mind. Pressing them together is said to activate the pressure points which helps us remember that person for a long time. And, no germs since we don’t make any physical contact!

2. Sitting On The Floor & Eating

The tradition is not about simply sitting on floor and eating, it is regarding sitting in the “Sukhasan” position and then eating. Sukhasan is the position we normally use for Yoga asanas. When you sit on the floor, you usually sit cross legged – In sukhasana or a half padmasana  (half lotus), which are poses that instantly bring a sense of calm and help in digestion, it is believed to automatically trigger the signals to your brain to prepare the stomach for digestion.

3. Why We Pierce Ear

Indian physicians and philosophers believe that piercing the ears helps in the development of intellect, power of thinking and decision making faculties. Talkativeness fritters away life energy. Ear piercing helps in speech-restraint. It helps to reduce impertinent behavior and the ear-channels become free from disorders.

Wednesday, 3 June 2015

Changing face of India

This blog is dedicated to display changing face of India. Though this does not take away the fact that we Indian have to work more to alleviate our country from its worst enemy poverty. We should be proud of our heritage culture and long surviving civilization. 

It will also help to some extent to those Indian who have settled abroad  but leave no opportunity to curse Indian system without even caring to devote time or penny toward its improvement. But this could be due to loneliness depression the abroad offers to its settlers apart from the best of best of world goodies.

Char-Minar in HydraBad

Chennai-Marina Beach

Delhi-Agra Yamuna-Express-Way

Heart of India’s IT Capital – Banglore

Highways in Chennai


Kashmir The Paradise on Earth

Kolkata – India’s Old and Joyful Capital


Lotus Temple-Delhi




Sabarmati Riverfront Ahmadabad


Satender Kumar Mall

Twitter : satender.iiit

Facebook Page:

Monday, 4 May 2015

The Best of Chanakya Niti!

Chanakya, who was also known by the name of Kautilya and VishnuGupta was a one of the pioneer in economics, strategist and warfare. He lived between from 350 -283 B.C. He was advisor and Prime Minister of Emperor Chandragupta. He was also associated with university of Takshilla (located in today Pakistan). Chanakya was known in west as “Indian Machiavelli”. He has written books named Arthashastra and Chanakya Niti.

Amazing fact about Chanakya:-

  •                   He was born with full set of teeth.

The best of Chanakya Niti:-

ü    There is some self-interest behind every friendship. There is no friendship without self-interests. This is bitter truth.

ü    The world’s biggest power is the youth and beauty of women.

ü    The biggest guru-mantra is: Never share your secret with anybody. It will destroy you.

ü    There is no present and future of the lazy.

ü    The mere trickle of the tiny drops of water can fill the pitcher. The same way we must keep on collecting knowledge, dharma and money.

ü    Treat your kid like a darling for first five years. For the next five years, scold them. By the time they turn sixteen, treat them like a friend. Your grown up child are your best friends.

ü    A man is great by deeds, not by birth.

ü   Learn from the mistakes of others , you can’t leave longer enough to make them all yourselves!!. 

Something interesting......


Satender Kumar Mall
Twitter : satender.iiit
Facebook Page:

Friday, 17 April 2015


Key Challenges

Majority of application are being built or under consideration to be built on service oriented architecture which encourages decoupling of components and services. This integration project usually grows in size considering its basic feature to allow/encourages change to absorb new functionality or enhancement to existing one.

In a project the issue is about the approach related to variable creation across the code base. What can we do to minimise variable scattering and group the similar candidate variables together so that its reusability can be enhanced in line as objects?  What different we can do to streamline and create sustainable uniformity so that readability, validation, type safety and code maintainability can be enhanced?

Problem Solver

Since Java is open source and new artifacts and patterns constantly gets added or improved. So to solve one problem it is highly possible that there exist 10 different ways and workaround. To solve above stated problem the team decided to choose MicroType among other available options.

When to create & use a MicroType

One of the negatives of MicroType is the overhead of creating them for values that ultimately pass straight through the system.  If a new service has 50 values coming in on the request, then there is a cost to developing 50 new MicroType.  It is highly likely that the some of the values already have had MicroType defined, in which case it’s probably worth creating those, but equally there are probably some new values that haven’t been defined as MicroType.  Creating one for each value will be excessive if they are not used.

I would use the following rule of thumb to decide when and when not to create a MicroType

·         If one already exists then there is no harm in creating a new one ( one object extra is not going to harm anyone)
·         If a java type is used in any method in the domain service – replacing the java type with our own protects us from changes to that type
·         If a java type is used in an if condition eg
o   e.g.  int fraudScore = 72; if (fraudScore > 90) – This warrants a FraudScore MicroType with a method isOverFraudLimit
·         If you have a list or map or some other data structure that needs a ‘home’
·         If a request variable is identified as a system pass through variable, then a MicroType isn’t required

MicroType benefits

It enables easy validation, attract common behaviour, provide type safety, make code more readable and easy to maintain. Microtypes are also immutable.

Example 1- Java is a typed language, and providing a MicroType gives us a single representation of a domain/middle layer integration concept. It solves the issue of primitives-obsession.

public abstract class MicroType {

    public String toString() {
        return ToStringBuilder.reflectionToString(this);

    public boolean equals(final Object that) {
        return EqualsBuilder.reflectionEquals(this, that);

    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);


public class ProductAccountNumber extends MicroType {

    private final String value;

    ProductAccountNumber(final String productAccountNumber) {
        this.value = productAccountNumber;

    public String getValue() {
        return value;


No one can mistake this for anything other than a ProductAccountNumber; if this was just a String then we are then reliant on the variable name informing us of its purpose.  But this variable name could be accountNumber, which can be interpreted as product account number, bank account number, credit card account number etc.  So providing a MicroType gives a single meaning throughout the code whereas relying on variable names does not.  If we have a badly named MicroType, then a simple rename in eclipse changes all references, throughout codebase, not so the case for variable names. 

Example 2
MicroType provide a place for common behaviour.

public class Day extends MicroType {

    private final DateTime dateTime;

    Day(final DateTime dateTime) {
        this.dateTime = dateTime.withTimeAtStartOfDay();

    public boolean isWeekend() {
        final int dayOfWeek = dateTime.getDayOfWeek();
        return dayOfWeek == DateTimeConstants.SATURDAY || dayOfWeek == DateTimeConstants.SUNDAY;

    public DateTime getDateWithoutTime() {
        final LocalDate localDate = new LocalDate(dateTime.getMillis());
        return localDate.toDateTimeAtStartOfDay();

    public Day addDays(final int days) {
        return new Day(dateTime.plusDays(days));

    public Day minusDays(final int days) {
        return new Day(dateTime.minusDays(days));

    public boolean isAfter(final Day day) {
        return getDateWithoutTime().isAfter(day.getDateWithoutTime());

    public boolean isSame(final Day compareDay) {
        return getDateWithoutTime().equals(compareDay.getDateWithoutTime());

    public boolean isBefore(final Day day) {
        return getDateWithoutTime().isBefore(day.getDateWithoutTime());

    public boolean isSameOrAfter(final Day compareDay) {
        return isSame(compareDay) || isAfter(compareDay);



The Day MicroType which contains methods such as isWeekend(), isSame(Day day).  Any other Day type logic would naturally fit onto here, rather than being all over across the codebase. 
The second point is that method now become more descriptive as rather than passing in a (which could includes time), we are now passing in a Day reference which perfectly describes what it does “isSame(Day)”. 
Day currently wraps org.jodatime.time.Datetime.  At some point in the future we may wish to move to Java 8’s new java.time.LocalDate.  We now only need to do this in one place, rather than exposing Joda DateTime throughout the codebase, we have minimised our dependencies.

Benefits in general

·        A MicroType is in essences simply a Wrapper class similar to Boolean, or Integer wraps a Boolean or an int, but they represent concepts in our business domain.  They don’t have to extend MicroType.  But doing so create a convenience for ToString, Equals and HashCode.  A MicroType is really an object that wraps a single java object or primitive.

·         Ideally a MicroType should be created at the edges of an application, i.e. in the endpoint or in the adapters / gateway.  This minimised impacts when a variable changes type in a wsdl or when a gateway /adapter is found to represent a type differently to what we expect.

·         Ideally a domain will only ever need to use domain model objects and MicroType for all method parameters, loops and if tests.


getAccounts(ProductAccountNumber) is better than getAccounts(String) as the MicroType version communicates better what is needed to getAccounts.  Also some American services represent ProductAccountNumber as an int where as others represent it as a String.  Not using a MicroType means that we either need to do a int to String conversion or provide an overloaded method to getAccounts.

·         It will be much easier to implement the Null object pattern if required if we first have MicroType in place.

·         Common if tests can be pushed down into the MicroType ( e.g. Day.isSame(Day))

·         Lists, Maps or other collections benefit from becoming MicroType.    By wrapping a list and implementing Iterable, we can now use our MicroType in a For loop, without exposing the fact that it is a list, meaning that if we wanted to change this to a map, or a Set at some point in the future then we can easily.  It also provides a central place to ‘manage’ that list, so if a filter for the list was required and then it would naturally fit on this object. 

Few benefits on Unit Test

As MicroType contains toString(), HashCode(), Equals() there is no needs to write unit test in order to meet 100% tests pass mark. Again this is for test purposes in order that we can use Assert.assertThat(productAccountNumber,  We can now create a expectedProductAccountNumber which is a different instance, but has the same value. But Feel free to implement your own equals, hashCode, and toString on the specific MicroType as and when the methods are used, or when you believe there is a problem. This is just a convenience for testing and not an enforced doctrine

MicroType disadvantage

It is obviously a subjective things as in some area it can provide great benefits, in other it can prove to be pointless.


Thank You!
Satender Kumar Mall

Twitter: satenderiiit