Docker is a platform for developers and sysadmins to develop, deploy, and run applications with containers. The use of Linux containers to deploy applications is called containerization. Containers are not new, but their use for easily deploying applications is
Ensure you’ve installed Docker already by the command:
Run a docker image
docker container run httpd:2.4
Note: while httpd is the image name, “2.4” is the version of this image
Continue reading “[Docker] Basic commands”
What is index?
An index is a data structure that optimizes searching and accessing the data. It’s like an index at the back of a book. Indexing is one of the ways that will optimize your database searching and access is having indexes on the columns that you usually access the table using it. Continue reading “[MySQL] Indexing table”
EXPLAIN is one of the most powerful tools at your understanding and optimizing troublesome MySQL queries. However, many developers rarely make use of it. In this blog post, I would like to share what the output of
EXPLAIN can be and how to use it to optimize your schema and queries.
Continue reading “[MySQL] EXPLAIN the Queries”
Task queues are used as a mechanism to distribute work across threads or machines. The task is appended to the queue that calls task queue. Dedicated worker processes constantly monitor task queues for new work to perform.
Celery communicates via messages, usually using a broker to mediate between clients and workers. To initiate a task the client adds a message to the queue, the broker then delivers that message to a worker.
A Celery system can consist of multiple workers and brokers, giving way to high availability and horizontal scaling.
Continue reading “Celery – Introduction”
In Linux, Cron is a daemon/service that executes shell commands periodically on a given schedule. Cron is driven by a crontab, a configuration file that holds details of what commands are to be run along with a timetable of when to run them.
Continue reading “Setup crontab file”
Use virtualenv to create isolated Python environments. Run the following command in your shell to install virtualenv
pip install virtualenv
create an isolated environment with the following command:
Continue reading “[Django – Blog Application] – P.1 – Setup environment”
BLockchain là gì?
- Blockchain là một công nghệ giống cơ sở dữ liệu, là một hình thức lưu trữ hồ sơ và giao dịch. Mọi thứ hầu như đều có thể lưu trữ trên blockchain
- Công nghệ blockchain loại bỏ sự cần thiết của một đơn vị trung gian, cho phép mọi người giao dịch trực tiếp với nhau.
- Hàng tỷ người trên thế giới không tin vào các đơn vị trung gian như ngân hàng, chính phủ và hệ thống pháp luật trong việc thực hiện giao dịch cũng như lưu trữ hồ sơ.
- Bitcoin là hệ thống xây dựng trên nền tảng Blockchain.
Continue reading “[Đọc sách] BLOCKCHAIN”
The author must trust and respect the reviewers enough to be receptive to their comments. Similarly, the reviewers must show respect for the author’s talent and hard work. Reviewers should thoughtfully select the words they use to raise an issue, focusing on what they observed about the product. Saying, “I didn’t see where these variables were initialized” is likely to elicit a constructive response, whereas “You didn’t initialize these variables” might get the author’s hackles up.
Continue reading “[Đọc sách] Effective Code Reviews”