Open in app
Home
Notifications
Lists
Stories

Write
Chamini Prashakthi
Chamini Prashakthi

Home

Pinned

Publish S3 bucket through CloudFront and OAI

Here I’m going to explain how to serve s3 bucket through cloudfront distribution and also allow users to access the s3 bucket using only via cloudfront using origin access identity. So this user browser request s3 bucket content. Then the request go through the coudfront distribution. …

AWS

5 min read

Here I’m going to explain how to serve s3 bucket through cloudfront distribution and also allow…
Here I’m going to explain how to serve s3 bucket through cloudfront distribution and also allow…

May 20, 2021

Attribute value must be constant !!!

When I’m going to use constant as a parameter from an Enum I got this compilation error.’ Attribute value must be constant’ This is the Enum class, public enum Fruits { APPLE("A", "Apple"); ORANGE("O", "Orange"); String code; String value; Fruits(String…

Java

1 min read


Apr 3, 2020

Math.random() is not secure ? 🤔

Yes. it is! If you are using Javascript or any other JavaScript environment like NodeJs you may definitely use Math.random() as your default PRNG. PRNG -> Pseudo-Random Number Generator Actually there is no random in Math.random(). pseudorandom By definition there no random in PRNGs. They have a set of initial seed…

Nodejs

2 min read

Math.random() is not secure ? 🤔
Math.random() is not secure ? 🤔

Published in Sonar FIxes

·Mar 28, 2020

Avoid ‘return’ sonar issues in JavaScript

There is 221(maybe more than that) Javascript Sonar issues. This page shows some frequent sonar issues developers faced when using the return statement in JavaScript. 1. Functions should use “return” consistently

Java Script

3 min read

Avoid ‘return’ sonar issues in JavaScript
Avoid ‘return’ sonar issues in JavaScript

Nov 29, 2019

How to create an AWS EC2 instance

AWS is a cloud computing platform. Amazon Ec2 ->Amazon Elastic Computer Cloud First, what is the EC2 instance? An EC2 instance is a virtual server that we can run our applications in AWS infrastructure. Features of EC2 instance: provide virtual computing environments Secure login information for your instances using key…

AWS

3 min read

How to create an AWS EC2 instance
How to create an AWS EC2 instance

May 11, 2017

java script Objects (part one)

Hi, this is my 8th js tutorial which describes about the objects in JavaScript. Objects are very serious topic and we must have clear idea about objects in js for advance developments. After this object tutorial we will move on to an existing example. So let’s move on…👉 If we…

Java Script

3 min read

java script Objects (part one)
java script Objects (part one)

May 7, 2017

java script Functions

Hi, how are you people? Hope everything is going well. So today lesson is about how to create js functions and some examples on js function. We have covered basic js theories there. So here onward we will move on to some advance points.👍 Ok this is js function. We…

Java Script

4 min read

java script Functions
java script Functions

May 7, 2017

switch-case in js

OK here I will show the switch case usage of js. This is my 6th Java Script tutorial and I have followed more basics on last 5 tutorials. You can check them in blog. https://chamzzdot.blogspot.com/ Ok let’s move on. Switch statement This works like if else statement. But it is…

Programming

3 min read

switch-case in js
switch-case in js

May 7, 2017

for Loop

Figure 1 Hope now you have a little idea about this flow chart. Here if the statement is true it go inside the loop and if the statement is false it will be end. To use this for loop you have to use an initialized counter. for(count = 0; count < 10; count++){ //statements to execute when the counter is less than 10 } OK This is an simple example which use for loop to print even numbers from 0 to 10.

Java Script

1 min read

for Loop
for Loop

May 7, 2017

Variables

Hi people, this is my third js tutorial which explains about using variables with js. So, let’s move on. Before use variables we must declare variables. For that we have to use var keyword. Ex: var first_name,last_name; var age=23; var country= “Srilanka”; When we create functions in js we use…

Java Script

3 min read

Variables
Variables
Chamini Prashakthi

Chamini Prashakthi

Software Engineer

Following
  • randerson112358

    randerson112358

  • Parallell

    Parallell

  • MetaPirate Official

    MetaPirate Official

  • Danoja Dias

    Danoja Dias

  • BTSChain

    BTSChain

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable