Welcome to my blog !


Nodejs, How to Convert xml to CSV| Javascript

January 1, 0001 ·  1 min read

Nodejs Application First, Let’s create a nodejs applicaiton using npm init command npm init npm init -Y T This command creates nodejs application with all default values Next, Install @wmfs/xml2csv depedency to applicaiton using below command npm install xml2csv --save This adds depdency in package.js as follows "dependencies": { "xml2csv": "^1.0.1" } How to Convert XML to CSV in Nodejs...

How to get current epoch timestamp in javascript

January 1, 0001 ·  2 min read

In this post, You will learn multiple ways to get current epoc timestamp in javascript. epoch time is Unix style in milli seconds since 01/01/1971, that means it returns long number in milli seconds, This is epoch time or unix timestamp Javascript provides Date object provides date and time related things. Note: Javascript runs on client and server side. When you are dealing with date and time related values, You will not get correct results as these are dependent on client machines....

How to count the number of instances of a class in java?

January 1, 0001 ·  2 min read

This is an short tutorials on how to count number of instances/objects of a class in java. An object of a class can be created using new keyword in java. an object is an instance of an class. A class can have multiple objects. How do you count the number of objects/instance of a class in java? static is global scope can be created and accessed by all object of an class....

How to Convert Number to String or String to Number example in typescript

January 1, 0001 ·  5 min read

Did you face the situation where you want to parse number to string or string to number in typescript? During the development of angular/typescript based projects, I got many situations that are a result of writing this blog post. Number and String are basic Inbuilt primitive datatypes in typescript programming language. Every developer is already aware of these types. The number holds numeric values, String holds a group of characters enclosed in double or single quotes....

How to configure Character Encoding in Maven

January 1, 0001 ·  2 min read

Sometimes, java files compiling with maven or building war file get encoding error as described below. File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! maven character encoding source not working maven read the source code for building and installing artifacts, So It should define the character encoding to read and write files of different encoding types- ASCII, UTF-8 or UTF-16 maven uses default encoding of running platform, i....