Về prompt engineering
@Author: damminhtien
@LastUpdate: 07/03/2023
Prompting engineering xuất hiện trong khoảng < 2 năm gần đây như là một kỹ năng mới trong tương lai mà mọi người đều cần học và giỏi nó. Với sự phát triển mạnh của khoa học hàn lâm và marketing về các ngôn hình ngôn ngữ lớn
(Large Language Model - LLMs), kỹ thuật prompting lại càng trở n...
Build your own front-end library
@Author: damminhtien
@CreatedAt: 10/07/2021 📆
A front-end UI library is a collection of reusable components and styles that are used to build user interfaces. By using a UI library, developers can save time and effort by reusing existing components instead of building everything from scratch.
Building a front-end UI library based on R...
Question for code review
@Author: damminhtien
@LastUpdate: 30/03/2021
Questions to ask yourself when conducting a code review
Code review plays an vital role in software development pipeline. Although in the modern day this work is more easier and automate with the support of a lot of CI tools, reviewer have to know extractly what the purpose of pull requests...
Python concurrency
@Author: damminhtien
@LastUpdate: 27/12/2020
Python concurrency
Concurrent mechanism in Python (key features from Python Cookbook)
As we know, concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the final outcome.
Concurrency...
Understanding Higher-Order Components in ReactJS
@Author: damminhtien
@CreatedAt: 07/01/2020
@LastUpdate: 07/12/2020
1. Intro and definition
In office website of ReactJS introduce a pattern called High Order Component (HOC for short). A higher-order component (HOC) is an advanced technique in React for reusing component logic. HOCs are not part of the React API, per se. They are a ...
Learning to optimize ReactJS app by avoiding redundant re-render
@Author: damminhtien
@CreatedAt: 07/10/2019
@LastUpdate: 04/01/2020
Writing ReactJS code to run can be easy but writing ReactJS code efficiently is more difficult. While better performance will lead to better UI, UX; React API provides massive clever techniques to minimize the number of costly DOM operations required to update the int...
Increasing the amount of inotify watchers
@Author: damminhtien
@LastUpdate: 16/11/2019
Sometime you code on VSCode editor and get troubles with the limit of watchers in linux, the error seem like “Unable to wathc for file changes
in this large workspace”. The content below will help you debug :)
TDLR;
How to
If you are not interested in the technical details and only want t...
Useful packages for developer - A highlight list packages you must install on Ubuntu
@Author: damminhtien
@LastUpdate: 16/11/2019
1. Up arrow on keybroad to search bash history
Reference this link
Open your .bashrc file:
sudo gedit ~/.bashrc
Add 2 line of code at end of this file:
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
Activate them:
source ~/.bashrc
Done :D
2. Install ‘thefuck...
Ubuntu starter-pack for Computer Vision
@Author: damminhtien
@LastUpdate: 16/11/2019
This tutorial for Ubuntu 18.x and computer with Nvidia GPU, install tensorflow-gpu and opencv.
It require you must install specific version of Cuda, CuDnn to use GPU power. Find more on this link.
Let’s start!
1. Install anaconda
# Download Anaconda from it's official website:
http...