Skip to content
Sandny Blog
  • Home
  • Java
  • JavaScript
  • AWS
  • Embedded
  • About
Java 13 features Java

Java 13 (JDK 13) -The New Features

  • November 18, 2019December 19, 2019
  • by Coder Kai

Java Development Kit (JDK) 13, the latest version of standard Java, is now available and release with some new features of,

1. Switch Expressions

This is one of the preveiew language feature defined in java 13.

Java 13 extends the previous Java 12 Switch Expressions by adding a new yield keyword to return a value from switch expression.So breaks syntax is no longer compiled in Java 13, it uses yield instead.

Read more “Java 13 (JDK 13) -The New Features” →

Java

Java 13 Switch Expressions

  • November 17, 2019November 20, 2019
  • by Coder Kai

This is another preview language feature defined in java 13. Java 13 extends the previous Java 12 Switch expressions by adding a new yield keyword to return a value from switch expression. So break syntax is no longer compiled in Java 13, it uses yield.

As traditional switch statement, there are many break statements make it unnecessarily verbose and hard to debug errors.

Read more “Java 13 Switch Expressions” →
Docker

Nginx Load Balancer with docker for nodejs services

  • November 3, 2019December 11, 2019
  • by Coder Kai

Nginx Load Balancer with docker has become a fine recipe for managing services in closed systems. Although services like Kubernetes provide container orchestration, sometimes architecturally it could be an overkill. In this example, I will be showing how to use docker services using Nginx load balancer.

Nginx Load Balancer with docker

Read more “Nginx Load Balancer with docker for nodejs services” →

JavaScript

Create React App Using npx

  • November 3, 2019November 11, 2019
  • by Coder Kai

Here we are discussing creating react app using npx create-react-app. npx comes with npm 5.2 and higher.

Prerequisite: You need to install Node >= 8.10 on your machine.

Creating an app using npx command

npx create-react-app my-app

create-react-app set up the main structure of the application.

Important: If you previously installed create-react-app using npm, uninstall before using npx. Because npx always refer the latest version of libraries.

Read more “Create React App Using npx” →

JavaScript

Difference Between npx and npm

  • November 2, 2019November 3, 2019
  • by Coder Kai
  • npm – Javascript package manager
  • npx – Execute npm package binaries ( a tool for executing node packages )

npx comes bundled with npm version 5.2+.

npm

If you want to run a package using npm, you must specify that package in your package.json file and install a package locally on a project:

npm install package-name

npx

npx is a npm package runner.

Read more “Difference Between npx and npm” →

JavaScript

Simple Tab View Using react-tabs

  • October 28, 2019November 3, 2019
  • by Coder Kai

This article will guide you on how to create a simple tab component using the react-tabs library.

Install react-tabs using

yarn add react-tabs    why yarn ?

Basic Example 1

Read more “Simple Tab View Using react-tabs” →

Use Dynamic Segments Routing in Ember 2.0 JavaScript

The Common Errors that beginner React Developers Make

  • October 24, 2019July 4, 2021
  • by Coder Kai

1. React Must Be in Scope

Let’s assume we are creating “helloWorld.jsx” like below, you can see there is a compilation error display as “’React’ must be in scope when using JSX react/react-in-jsx-scope.”

const element = <h1>Hello World!</h1>
export default element;


This happens due to “React” import necessary in JSX file.The React library must also always be in scope from JSX code. To overcome this error “import React from “react”;” must be added into the file as follows.

Read more “The Common Errors that beginner React Developers Make” →

How to enable preview feature in Java 13 with maven. Java

Enable the Preview Feature in Java 13 with Maven

  • October 8, 2019November 28, 2019
  • by Coder Kai

Preview Feature

A preview feature or VM feature is a new feature of the Java SE Platform.

This article shows you how to use –enable-preview to enable the preview features in Java 13 with maven.

To use preview features in your programs, you must explicitly enable them in the compiler and the runtime system. Because this feature disabled by default.If not, you’ll receive an error message that states that your code is using a preview feature.

Read more “Enable the Preview Feature in Java 13 with Maven” →

AWS Ingress ALB with EKS AWS

How to use AWS Ingress ALB with EKS

  • August 15, 2019December 11, 2019
  • by Coder Kai

Overview

Kubernetes has multiple services to facilitate the pod orchestration within the cluster. What we are discussing here is on how to use the AWS Ingress ALB with EKS without using the traditional Load Balancer Service

Kubernetes services and ingress

Read more “How to use AWS Ingress ALB with EKS” →

FCM Push Notification with React Native FCM

How to setup FCM Push Notification with React Native…

  • March 11, 2019March 11, 2019
  • by Coder Kai

If you are new to firebase and FCM this article will be useful to setup FCM Push Notification with React Native application. We will be using react-native-firebase(doc: https://rnfirebase.io/docs/v5.x.x/getting-started) module to retrieve token for the push notifications.

Prerequisites

First, create the Firebase account and download the google-services.json file from the console.

  1. Access your firebase account and go to the project settings from the top gear icon.
    Read more “How to setup FCM Push Notification with React Native App” →
Frequent errors with Apollo Client Apollo Client

Query definition in GraphQL and frequent errors with Apollo…

  • February 18, 2019March 11, 2019
  • by Coder Kai

Query definition in GraphQL is will be something you know now but not mastered. If you were going through the pages to troubleshoot frequent errors with Apollo Client which makes no sense, this post might help. First, the reason to create this post is,

  1. Most of the error logs are not descriptive and makes no clue on where the real error is.
  2. There can be so many different mistakes in coding the queries and difficulty in keeping on track of it.

And most importantly if I get into a trouble again, I can refer this 😉 Read more “Query definition in GraphQL and frequent errors with Apollo Client” →

OCaml data structures OCaml

OCaml Data Structures

  • January 25, 2019January 18, 2020
  • by Coder Kai

Ocaml has predefined data structures of tuples, arrays, and lists. There are also mechanisms for defining your own data structures, such as records and variants. In this article, we will discuss about list and tuple.

1. List

List can be define as [ element 1 ; element 2 ; element 3; … ].

Read more “OCaml Data Structures” →
OCaml OCaml

OCaml

  • January 24, 2019January 18, 2020
  • by Coder Kai

OCaml is a functional language, the main implementation of the Caml programming language created in 1996. OCaml uses to build prototypes of production systems. Facebook, Docker, Bloomberg like well-known companies are now using OCaml to quickly adapt to changing market conditions and go from prototypes to production systems with less effort.

What is Functional Language?

Read more “OCaml” →
Why did Facebook pick OCaml? OCaml

Why did Facebook pick OCaml?

  • December 18, 2018January 18, 2020
  • by Coder Kai

Facebook developed Flow, Hack, Infer, Pfff, and Reason using OCaml. And 50 % of the web version of Facebook Messenger has converted to Reason which lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml.

Due to the functional behaviour of OCaml, it helps to quickly adapt changing market conditions and go from prototypes to production systems with less effort.

Read more “Why did Facebook pick OCaml?” →
GraphQL Web App with AWS Amplify and IAM Authentication AppSync

AppSync GraphQL Web App with AWS Amplify and IAM…

  • September 24, 2018September 25, 2018
  • by Coder Kai

Howdy! In this tutorial going to create an AppSync GraphQL Web App with AWS Amplify and IAM Authentication using Cognito User Pools. The reason behind this is, if you are creating an web app quickly, the AWS AppSync, Mobile Hub, DynamoDB will come with all the equipments that you need to scale it. So this is such an attempt but um not using the aws amplify cli to create since I would like to know what my configurations looks like when it comes to web. The App will be a react app to quickly show how its done.

Read more “AppSync GraphQL Web App with AWS Amplify and IAM Authentication” →

Query records for a list of keys in GraphQL AppSync

Query records for a list of keys in GraphQL…

  • September 3, 2018
  • by Coder Kai

If you are using AppSync GraphQL you must be familiar with the queries with filters. In fact, when you are creating a new type structure, AppSync provides default filters to scan an object in your data source. But how can you query records for a list of keys in GraphQL? Unfortunately, it is not defined in the default filters.

My basic requirement is like this

Query records for a list of keys in GraphQL Read more “Query records for a list of keys in GraphQL AppSync AWS using VTL” →

aws graphql with lambda AppSync

How to mutate AWS GraphQL using AWS Lambda

  • August 26, 2018September 5, 2018
  • by Coder Kai

Recently, I had to create a AWS Lambda trigger for the AWS DynamoDB table events. The tricky part on this thing was to mutate AWS GraphQL using AWS Lambda with this DynamoDB event. The reason was I wanted all the clients which were subscribed to GraphQL to get this event with modified data.

aws graphql trigger example - mutate AWS GraphQL using AWS Lambda Read more “How to mutate AWS GraphQL using AWS Lambda” →

Use AWS GraphQL for react native app AppSync

Use AWS GraphQL for React Native Message App

  • June 28, 2018September 3, 2018
  • by Coder Kai

Recently I came up with a react native app which needs to integrate AWS GraphQL. Its actually provided with AWS App Sync and a very convenient way if you want a quick pub-sub. The problem was I had to do mutations as a background asynchronous process and wanted to update the app state from that. When I went through the documents I found the AWSAppSyncClient which is an Apollo Client. Although it was promising the react native examples were more focusing towards react or react-native Components which was really making a mess. Read more “Use AWS GraphQL for React Native Message App” →

JavaScript

How to use antd components without the whole library

  • February 26, 2018August 29, 2018
  • by Coder Kai

Recently I got the opportunity to use DatePicker of antd library https://ant.design/components/date-picker/ for a react.js project. It was really cool to use that until I found it was using the whole antd library to import this single antd components. It wasn’t right and there was a solution introduced by the antd team. I just blogged it for anyone who will find it interesting. Read more “How to use antd components without the whole library” →

modular approach to create API Express.js

A Modular Approach to create API using Express.js and…

  • November 5, 2017August 26, 2018
  • by Coder Kai

In this post, I would like to share a Modular Approach to create API generated with express.js. The modular approach which discussed here is having a module which can perform each and every task relevant to the API. It has following features. Read more “A Modular Approach to create API using Express.js and Node.js” →

Posts navigation

1 2 3

Categories

  • android 3
  • Apollo Client 1
  • AWS 7
    • AppSync 5
    • EC2 1
    • EKS 1
    • Route53 1
  • AWS Amplify 1
  • Docker 1
  • Embedded 1
  • EmberJS 1
  • FCM 1
  • Godaddy 1
  • GraphQL 3
  • ios 1
  • Jasper 1
  • Java 10
    • Java 11 1
    • Java 14 1
  • JavaEE 2
  • JavaScript 32
    • Express.js 4
    • Javascript Guide 3
    • Node.js 1
    • react-native 4
    • React.js 15
    • Typescript 1
  • Kubernetes 1
  • machine learning 1
  • Maven 2
  • OCaml 3
  • react-native 4
  • ReactJS 3
  • sass 1
  • Server 6
  • spark 1
  • Ubuntu 4
  • Uncategorized 1
  • webpack 2

Recent Comments

  • ChesterCurdy on Create React App Using npx
  • RitaNasy555 on Difference Between npx and npm
  • megaword on The Common Errors that beginner React Developers Make

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

  • May 2022 1
  • December 2021 1
  • August 2021 1
  • July 2021 6
  • June 2021 3
  • February 2021 1
  • July 2020 1
  • December 2019 5
  • November 2019 6
  • October 2019 3
  • August 2019 1
  • March 2019 1
  • February 2019 1
  • January 2019 2
  • December 2018 1
  • September 2018 2
  • August 2018 1
  • June 2018 1
  • February 2018 1
  • November 2017 2
  • October 2017 5
  • September 2017 1
  • June 2017 1
  • May 2017 10
Sandny Blog space
Theme by Colorlib Powered by WordPress