[Docker-Compose] Django + PostgreSQL

When you need to launch multiple containers that work as a single application, it is difficult to manage with single Dockerfile. That’s why we need to use “docker compose” so that we can manage our containers from a higher level. The application that we will test is a simple Django application. The database is PostgreSQL, […]

Hadoop 101: Multi-node installation using AWS EC2

In this post, we will build the Hadoop cluster system using three EC2 instances ( one for master, two for slaves). (I will assume that you know how to use AWS. If you don’t know please check this link) To run Map-Reduce task, you need enough memory. Therefore, we will use t2.medium type instance. (If […]


[Docker] React.js + Nginx

When you deploy your React.js application through Docker, you can deploy with Nginx. The basic principle is, first build a React.js application and move the generated files to “share/nginx/html” in the container. You are just replacing the default Nginx welcoming page to your React.js application. Now you just need to run Nginx. Please check the Docker file […]


Get id, name, and class values using Javascript / jQuery

Last time, I tried to get each input value using id, name, and class. This time we will use the id to get name/class, name to get id/class and class to get id and name. (I do not remember exactly, sometimes you need them.) Declare the div first. One for using jQuery, the other for […]

Javascript replace all

In Python, if you use the replace method of string, all the relevant characters are changed, but in javascript, only the first part is changed and no further progress is made. Solution: Use a regular expression var s = “Hello World”; s.replace(‘o’,’p’); //result : Hellp World s.replace(/o/g,’p’); //result : Hellp Wprld Bonus! How can we […]