Programming Examples

Are you a Programmer or Application Developer or a DBA? Take a cup of coffee, sit back and spend few minutes here :)

Singing An Assembly via CommandLine & VS2017

Fig 01. Singning an Assembly with Visual Studio 2017

In the last article: Link, we saw how to create Key-Pair and how to store that in a container. Before reading this article, visit the link to know what is a Key File and a Key Container. Now, we will see how to sign an assembly with visual studio 2017 and command prompt. Signing an assembly is useful so that it cannot be modified by unauthorised people. Singing an assembly support deploying it in the GAC and allows versioning policy for the generated binary (Assembly).

Continue Reading →

Date Parse From String in Java

Fig 4. Get LocalDateTime From DateTimeFormatter

Sometimes, we may need to do Date Parse from a given string in java. This is useful when we want to perform any date related calculations. For example, if we want to find number of days between two dates, it will be easy to get result if variables are date type rather than string. In this example, we will see how to parse a java date from the string. We will also study about the DateTimeFormatter class.

Continue Reading →