Saturday, 18 January 2020

When will we take the matter in hand?


Not all, YES not all, but majority of we Indian still suffers from the mindset that

‘It’s not my problem’

Government should do this …should do that…

Yes, Government should do but where is our bit?


Each one of us are staring and suffering from pollution in tier1 and now tier 2 city is slipping in grip as well.

source:internet

 
We have noticed  around us (yes, we included) grabbing land 0.5 feet to 2 feet but not being forward looking enough to spare similar space and plant few trees while constructing house etc.

There are numerous sad stories of similar kind, where we can make difference and help future generation but we pretend to be smart and cover off our effortlessness. [if you have interesting stories, please comment below]

Its time running out!
We need to do something about it…..
Break our false shaky cover of fake mindset and hit the ground!

Few small stuff

1.      If we are fit and can walk, why not once a week , make group to water the plant on road dividers to ensure it grows and help us with shade and reduce pollution.
2.      If we are bit cash surplus, why not donate or install dustbins in area around us.
3.      If we present well, Let’s do presentation in school & college to motivate youngster a help us fight pollution.
4.      If we draw and paint , Let’s make the ugly wall around us soothing to eyes. Many are already doing.
5.      If we still want to complain, Let’s tweak a  bit instead and REPORT online and appropriate forum. Follow up and make it happen. [Uttar Pradesh: http://jansunwai.up.nic.in/]



Thank you!



Satender Kumar Mall
Twitter: @satenderiiit

Tuesday, 26 November 2019

Sushruta - Father of Medical Surgery

                                        
                                       Do you know?


About anesthesia -
Sushruta wrote “Wine should be used before operation to produce insensibility to pain. The patient who has been fed, does not faint, and he who is rendered intoxicated, does not feel the pain of the operation.”


Sushruta, one of the founding fathers of surgery and plastic surgery, lived in India sometime between 600 to 1000 B.C.




Sushruta developed surgical techniques for reconstructing noses, earlobes and genitalia, many amputated as religious, criminal, or military punishment. He developed the forehead flap rhinoplasty procedure that remains contemporary plastic surgical practice; also the otoplastic technique for reconstructing an earlobe with skin from the cheek. 




Sushruta Samhita (Sushruta’s compendium), one of the most outstanding treatises in Indian medical literature, describes the ancient tradition of surgery in India.



Sushruta Samhita was translated into Arabic as Kitab-Shaw Shoon-a-Hindi and Kitab-i-Susrud in the eighth century A.D on orders of the Caliph Mansur (A.D.753 -774).


Frank McDowell - mentioned in "The source book of plastic surgery"


Through all of Sushruta’s flowery language, incantations and irrelevancies, there shines the unmistakable picture of a great surgeon.

Undaunted by his failures, unimpressed by his successes, he sought the truth unceasingly and passed it on to those who followed.

He attacked disease and deformity definitively, with reasoned and logical methods.







Thank you!



Satender Kumar Mall
Twitter: @satenderiiit




Sunday, 17 November 2019

Random quotes!




People with a good sense of humor have a better sense of life.




It is easy to stand with the crowd, it takes courage to stand alone.

source:internet


Somewhere someone is looking for exactly what you have to offer.




You were born because you are going to be important to someone.


Worry less, smile more. Don't regret, just learn and grow.


Learning is a gift. Even when pain is your teacher.


Thank you!



Satender Kumar Mall
Twitter: @satenderiiit

Friday, 18 October 2019

Amazing Use of Swagger Contract YAML

REST based micro-services is current day trend to develop application over HTTP communication. 

We have choice to follow either "CONTRACT FIRST" or "CONTRACT LAST".

My personal choice is "CONTRACT FIRST". It has numerous advantages - few of them are:-


  1. Request and Response is framed upfront and Swagger (YAML) contract is developed and published for its prospective clients.
  2.  Early feedback.
  3. Quick turn-around to market.       
source:internet

Another vital benefits is that developed Swagger can reduce your micro-service development time by approx HALF.

Don't get Surprised!  Keep reading.

Follow below step in your Spring-boot project and generate controller Interface, Models etc upfront and simply focus on service logic in your micro-service.

All steps are to be incorporated in your POM.xml

1. Add path- of your swagger yaml file in project.
<properties>
<jsonFilePath>src/main/resources/dev/1.0.0/xyz.yaml</jsonFilePath>
</properties>


2. Add maven swagger codegen plugin and you are done.

<build>
    <plugins>
        <plugin>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-codegen-maven-plugin</artifactId>
    <version>${swagger-codegen-maven-plugin-version}</version>
    <executions>
        <execution>
            <id>generate-api</id>
            <goals>
                <goal>generate</goal>
            </goals>
            <configuration>
                <inputSpec>${jsonFilePath}</inputSpec>
                <language>spring</language>
                <output>${project.build.directory}/generated-sources/swagger</output>
                <apiPackage>com.abc.swagger.api</apiPackage>
                <modelPackage>com.abc.swagger.model</modelPackage>
                <invokerPackage>com.abc.swagger.invoker</invokerPackage>
                <environmentVariables>
                    <dateLibrary>java8</dateLibrary>
                    <models/>
                    <apis/>
                    <supportingFilesToGenerate>SwaggerDocumentationConfig.java,HomeController.java
                    </supportingFilesToGenerate>
                </environmentVariables>
            </configuration>
        </execution>
    </executions>
</plugin>
<plugin>
    <artifactId>maven-clean-plugin</artifactId>
    <executions>
        <execution>
            <id>clean-additional-generated-files</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>clean</goal>
            </goals>
            <configuration>
                <excludeDefaultDirectories>true</excludeDefaultDirectories>
                <filesets>
                    <fileset>
                        <directory>${project.build.directory}/generated-sources/swagger</directory>
                        <excludes>
                            <exclude>src/main/java/**</exclude>
                        </excludes>
                        <followSymlinks>false</followSymlinks>
                    </fileset>
                </filesets>
            </configuration>
        </execution>
    </executions>
</plugin>
    </plugins>
</build>

--------------------**-------------------

For details TDD and quality REST micro-services development refer course at UDEMY.com



Thank you!



Satender Kumar Mall
Twitter: @satenderiiit