Skip to content
Sandny Blog
  • Home
  • Java
  • JavaScript
  • AWS
  • Embedded
  • About
SSL Websocket using Nginx Proxy Express.js

SSL Websocket proxy with Nginx for Graphql Subscriptions

  • May 12, 2022May 12, 2022
  • by Coder Kai

GraphQL has become the most used API framework to use in mobile and web platforms. Often we come with instances where we need to run these services behind a proxy server like Nginx to co-exist with other services. In this tutorial, you will find how to configure your SSL certs with the WebSocket server in order to

Read more “SSL Websocket proxy with Nginx for Graphql Subscriptions” →
Change python version correctly JavaScript

Python is not setting correct path in mac os

  • December 18, 2021December 18, 2021
  • by Coder Kai

If you recently installed python and its not setting latest path you may need to use following method to install python correctly in unix systems. Most of the users intend to create symlinks replacing python 2 with python 3 and its not a proper way to switch the versions. For that you can use pyenv and change desired python version easily.

Read more “Python is not setting correct path in mac os” →
optimize React.js load time JavaScript

How to optimize React.js app load time using react…

  • August 1, 2021August 1, 2021
  • by Coder Kai

Often React.js applications could grow larger and could be taking more time to load the content. React team offered a very useful technique to lazily load the bundled content without bundling it all together with the main bundle. This will optimize the load time and show the content without taking much time to load the content fully.

Read more “How to optimize React.js app load time using react lazy” →
String.lines() Java

How to convert a string into a stream of…

  • July 29, 2021August 1, 2021
  • by Coder Kai

Java 11 adds a few new methods to the String class – isBlank, lines, strip, stripLeading, stripTrailing, and repeat. Let’s see how we can make use of the String.lines().

Read more “How to convert a string into a stream of lines using String.lines() method in Java 11” →
dismiss dropdowns when pressed on background with React.js JavaScript

How to use IntersectionObserver to detect the position in…

  • July 11, 2021July 29, 2021
  • by Coder Kai

When working with web we often need to animate or reveal html elements by detecting the scroll position. One such example would be to display a container for a state variable and scroll. The IntersectionObserver is a useful interface to achieve such functionality.

Read more “How to use IntersectionObserver to detect the position in React” →
Minimum supported Gradle Version android

Minimum supported Gradle version is 7.0. Current version is…

  • July 5, 2021July 13, 2021
  • by Coder Kai

This issue happens when your gradle version mismatched with the classpath or other libraries you are using in the android project. For android, Flutter and react native developers will face this issue when you are updating libraries or frameworks.

Read more “Minimum supported Gradle version is 7.0. Current version is 6.5” →
dismiss dropdowns when pressed on background with React.js JavaScript

How to dismiss dropdowns when pressed on background with…

  • July 4, 2021July 11, 2021
  • by Coder Kai

React components offer many advantages to break the code and implement web features. But when it comes to some features it could bit difficult to make it work. One such problem would be to listen to document click events and making the changes to components like dismissing dropdowns when pressed on the background.

Read more “How to dismiss dropdowns when pressed on background with React.js” →
Javascript guide Strings JavaScript

03. Javascript Guide – Strings

  • July 3, 2021August 1, 2021
  • by Coder Kai

Every programming language has strings that represent a set of characters. Javascript strings have some properties which are unique to the language. This guide covers these properties and important facts when using strings.

Read more “03. Javascript Guide – Strings” →
How to fetch data with useEffect JavaScript

How to fetch data with useEffect

  • July 2, 2021July 2, 2021
  • by Coder Kai

React hooks have been very promising solution for most of the coding issues that React framework had in old days. But for novice developers, it could be hard to understand. Especially if you are moving from old react to new. One of the main problem is how to fetch data with useEffect in a proper way.

Read more “How to fetch data with useEffect” →
add styles to stripe elements JavaScript

How to add styles to stripe elements without using…

  • June 29, 2021June 29, 2021
  • by Coder Kai

Stripe is a great way to make payments for your web or mobile platforms. Being a full service payment platform, Stripe also gives you a variety of SDKs to implement your backend and frontend code with the best compliance options. In this tutorial you will learn how to add styles to stripe elements if you don’t want to use existing styles of the card input.

Read more “How to add styles to stripe elements without using CardElement” →
Typescript JavaScript

How to use Typescript with arrays

  • June 28, 2021July 11, 2021
  • by Coder Kai

Array is used to store a sequence of elements as references. When declaring typescript array, the type of the elements should be defined in its syntax.

Read more “How to use Typescript with arrays” →
how to optimize react-native map view JavaScript

How to optimize react-native map views

  • June 26, 2021June 27, 2021
  • by Coder Kai

React native always has been quite painful when it comes to performance compared to a native application. Today we will focus on increasing the performance and how to optimize react-native map view which has many pegs or markers.

Read more “How to optimize react-native map views” →
debounce with react hooks JavaScript

Avoid multiple clicks using debounce with react hooks

  • February 16, 2021June 20, 2021
  • by Coder Kai

Why debounce with react hooks? We all come across that one button users keep on pressing until the data is loaded. Without guarding your code with every sort of if conditions, you can guard this by debouncing. For multiple tap scenarios, you can either propagate the event at the first tap/click or the last one.

Read more “Avoid multiple clicks using debounce with react hooks” →
How to avoid NullPointerException in Java Java

How to avoid NullPointerException in Java

  • July 7, 2020July 13, 2021
  • by Coder Kai

Most of the developer’s idea is null checks makes the code less understandable and less reliable. Tony Hoare, who invented null references, calls them “a billion-dollar mistake”.

Read more “How to avoid NullPointerException in Java” →
react-native heap limit allocation android

Android/iOS React-native heap limit allocation failed error

  • December 30, 2019January 8, 2020
  • by Coder Kai

When you are building your react native Android app, you may encounter the error: heap limit Allocation failed.

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Read more “Android/iOS React-native heap limit allocation failed error” →
The new features in Java 14 Java

JDK 14 – The new features in Java 14

  • December 27, 2019December 27, 2019
  • by Coder Kai

Recently, Java changed its release cycle more rapidly. JDK 13 released on September 2019 and JDK 14 is scheduled for a production release on 17 March 2020. The features targeted to JDK 14 as follows,

1. Pattern Matching for instanceof

Java instanceof operator is used to test whether the object is an instance of the specified type. With Java 14 instanceof operator enhance to the pattern matching as bellow,

Read more “JDK 14 – The new features in Java 14” →
androidx fileprovider android

AndroidX ClassNotFound Exception: “android.support. v4.content .FileProvider”

  • December 19, 2019December 23, 2019
  • by Coder Kai

This was an issue that was occurring after the migrating with new Androidx migration. The root cause was the android.support.v4.content.FileProvider was not provided in the latest android support library.

To debug this error you will have to see the adb log with the command

adb logcat
Read more “AndroidX ClassNotFound Exception: “android.support. v4.content .FileProvider”” →
Numbers inJavascript JavaScript

02. Javascript Guide – Numbers

  • December 15, 2019July 3, 2021
  • by Coder Kai

Numbers in Javascript

The numbers in Javascript has many subtle things to understand it fully. In this section, we are going to discuss the following points.

  1. What are the numbers in Javascript and memory representation.
  2. Number wrapper.
  3. Arithmetics.
  4. Points to remember when coding.
Read more “02. Javascript Guide – Numbers” →
Introduction to Javascript JavaScript

01. Javascript Guide – Introduction to Javascript

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

Introduction to Javascript and the language

In this introduction to Javascript, we are going to discuss the following points.

  1. Javascript, the language
  2. Early Javascript
  3. Characteristics
  4. Tools
Read more “01. Javascript Guide – Introduction to Javascript” →
How to host GoDaddy domain with AWS EC2 AWS

How to host GoDaddy domain with AWS EC2

  • November 23, 2019November 23, 2019
  • by Coder Kai

Many newbies find AWS and domain providers such as GoDaddy confusing to connect. But it is not a difficult task and you can host GoDaddy domain with AWS EC2 instantly.

To connect AWS with the domain we will have to use a service called Route53 (53 refers thee TCP/UDP port 53 for DNS serving). And also there won’t be any direct way to do without this service. You can use any AWS public gateway provider such as EC2, ELB, S3 to serve your website or server to the public domain you have on GoDaddy. The AWS usually charges about .51 USD per month to maintain this zone entry as well.

Read more “How to host GoDaddy domain with AWS EC2” →

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

  • business ideas in india on Why did Facebook pick OCaml?
  • 🀍 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅,Π½Π° вашС имя прислали ΠΏΠΎΠ΄Π°Ρ€ΠΎΠΊ. ΠŸΡ€ΠΎΠΉΠ΄ΠΈΡ‚Π΅ Π½Π° ΠΎΡ„ΠΈΡ†ΠΈΠ°Π»ΡŒΠ½ΠΎΠΌ сайтС -> https://forms.yandex.ru/cloud/62eb57d564ec315321db0d93/?hs=3d3ce69809307e4b15fc10abe242a643& 🀍 on How to optimize react-native map views
  • Bobby on AppSync GraphQL Web App with AWS Amplify and IAM Authentication

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