Blog

Deploying Go Application Using EC2 and CodeDeploy

IAM - Role The IAM role for CodeDeploy is used to interact with EC2 instance(s). The one for EC2 is used to read S3. You can find the detailed instruction here: "Continuous Deployment with AWS CodeDeploy & Github". EC2 - Launch I usually prefer using…


Sort Function in JavaScript and Python

sort() is a handy function to sort elements in a list. Using the function, we can order elements in a list in ascending or descending order. Depending on a language that we use, however, we might encounter unexpected results. In this article, I…


cannot create temp file for here-document: No space left on device

When I accessed one of my EC2 instances, I found this sentence on my terminal: This did not stop my instance working, but this might bother you (like me) 😒 To solve a problem, we need to find its main cause. In my case, my instance runs cron jobs…


Running a Timer When a Tab Is Active

It should not be hard to send a request to an endpoint. From fetch to axios, there are many ways to achieve it. Using the setInterval() or setTimeout(), you can also send request(s) multiple times or after waiting for some time. However, you might…


Deploying Code on GitHub and EC2 Using AWS CodeDeploy (2)

This is the second writing about deploying a Node.js app using CI/CD tools, AWS CodeDeploy and AWS CodePipeline. The first article focuses on creating an EC2 instance and deploying a Node.js app in the instance using GitHub, CodeDeploy and…


Deploying Code on GitHub and EC2 Using AWS CodeDeploy (1)

Easy deployment using CI / CD tools helps developers and engineers focus on developing and testing their software. Tools like GitHub Actions have become quite popular, and Amazon also has developed and maintained relevant tools for AWS customers…


Deploying Static Websites With Nuxt.js on AWS S3 & GitHub Actions

GitHub Actions, AWS S3 and Nuxt.js are powerful tools to deploy a web application fast. In this article, we will see how to create, build and deploy your Nuxt.js application. By following the below steps, you can update and deploy your app within a…


A Table of Contents of AWS Certified Cloud Practitioner

Taking an AWS certification exam is one way to validate your AWS skills. Even though the certification does not cover every single part of AWS services, it provides an opportunity to have a general understanding of the design, architecture and…


Android App Crashed by React Native Maps and Firebase

Summary Using React Native which includes a JavaScript library, I can make an iOS and Android app at the same time, and it is quite useful. To develop my app, I installed the well-known packages, react-native-maps and react-native-firebase. My iOS…


Restoring A Hacked Website

A couple of weeks ago, I had a chance to restore one website that had been hacked by a hacker. Since I think it was a valuable experience experience to me, I wrote the below record in case. Problem A Wordpress website had been hacked Once a user…


Slugify In Python

Creating and using the right slug is important. Search engines often check a website's slug when they index pages, and it directly affects the overall performance of SEO. When I made additional pages for Averagenie, I was looking for a way to…


Summary of Basic Sorting Algorithms

Understanding algorithms and knowing how to use them is the key in computer science and software engineering. While we know the importance of learning algorithms, many people (including me) have a hard time doing it, and they often give up in the…


React State Management And Life Cycle - Part 2

This is a part 2 of React State Management And Life Cycle series. If you are interested more in: Initialization of state in a function and class component Update a state in a component Function component vs. class component Please check the Part 1 as…


React State Management And Life Cycle - Part 1

Last time, when I was taking a technical interview and working on a take-home test, I encountered an issue related to state management and lifecycle of React. This article is a summary of how we need to manage state in React, and life cycle in React…


Asynchronous in Javascript

Prerequisite Javascript is a single-threaded, and all codes are executed in a sequence, not in a parallel fashion. In other words, unlike other languages such as Java, there is only one thread in Javascript, and it can be blocked by an expensive…


Deploying React SPA in 10 Minutes using Azure

In this article, I would like to show how to deploy a React single page application within a short time. Microsoft is providing developers and engineers with great user experience, so I think sharing this article would help you to start your journey…


Making Single-Page App in React with Django

Creating a single page app in React is getting easier than the past. There are many readings on blogs, Stackoverflow and Github talking about making a SPA using React, and it should be sufficient in many cases. A few days ago, I have encountered a…