Searching for similar strings within an array or object map in Node.js
Tag: code
Using Dialogs and Prompts to build a conversational BOT on Azure
Using Dialogs and Prompts to build a conversational BOT on Azure . A bot communicates with a user via conversations. To manage conversational flow we use dialogs.
Node.js: Developing a chat bot on Microsoft Azure Portal
To develop chat bot on Microsoft Azure Portal you should have Microsoft Outlook ID and you need to login to the Azure Account and activate the free trial for next 30 days. After you have setup the Azure account he we need to go to: New > AI+Cognitive Services > Web App Bot As shown in … Continue reading Node.js: Developing a chat bot on Microsoft Azure Portal
Java-Spring or JavaScript-Node.js?
Spring Framework for Java has been around past 15 years since its initial release. Most of the web developers prefer spring to build enterprise level web apps. But since last 3-4 years the Javascript has become more popular not only in the client-side development(Angular and React) but also towards the server-side development, thanks to nodejs. … Continue reading Java-Spring or JavaScript-Node.js?
Web Development Trends in 2018 and for future!
Since the launch of the first website made by Tim Berners-Lee in 1991, the website development practice have come a long way and every year new web design and development trends are coming. Developers are becoming more agile in learning about these new trends. In 2018, we'll look at the new trends which are hot … Continue reading Web Development Trends in 2018 and for future!
Dynamic String Conversion in JAVA
Input: 2B Output: 2000000000 Code : import java.math.BigDecimal; import java.util.Scanner; public class DyanamicConversion { public static void main(String args[]){ //Scanner scan = new Scanner(System.in); String a ="2M"; String[][] conversion = {{"K","1000"},{"M","1000000"},{"B","1000000000"}}; for(int i=0;i<conversion.length;i++){ if(a.endsWith(conversion[i][0])){ BigDecimal temp = new BigDecimal(a.substring(0, a.indexOf(conversion[i][0]))); temp.multiply(new BigDecimal(conversion[i][1])); a = temp.toBigInteger().toString(); System.out.println(a); break; } } } }
Trigger an Email using AWS Lambda with the help of AWS SES
Using the Amazon Web Services to Trigger an email. Here we have used AWS SES service. Firstly you have to register senders email address in AWS SES app in AWS then after confirmation, you can use the SES service in Lambda. Node JS Code for Lambda: var aws = require("aws-sdk"); var ses = new aws.ses({ … Continue reading Trigger an Email using AWS Lambda with the help of AWS SES
Understanding Spring MVC project setup
Flow Diagram of Spring MVC Img Source: TutorialsPoint Purpose of web.xml Until Spring 3.1 the only way to configure the DispatcherServlet was with the WEB-INF/web.xml file. servlet name is dispatcher an instance of DispatcherServlet Class Will be initialized with a parameter named contextConfigLocation which contains the path to the configuration XML load-on-startup is an integer … Continue reading Understanding Spring MVC project setup
Spring MVC Project: Setup
Software Requirements Eclipse Mars 2 Java, jdk 1.6 and above Spring 4 jar files(download) Apache Tomcat 7 Step 1: Create a Dynamic Web Project(File>New>Dynamic Web Project) Step 2: Create project folder and packages as shown below Step 3: Add required Spring MVC libs Step 4: Add following code in web.xml Step 5: Add following code … Continue reading Spring MVC Project: Setup