Hiểu trọn bộ 12-Factor App – Chuẩn thiết kế cho ứng dụng hiện đại

Làm sao để ứng dụng của bạn dễ triển khai, dễ scale, và vận hành mượt mà trên Kubernetes, Docker, hoặc cloud? Câu trả lời nằm ở 12-Factor App – một phương pháp thiết kế ứng dụng được Heroku đề xuất và ngày nay đã trở thành tiêu chuẩn ngầm cho kiến trúc cloud-native vàContinueContinue reading “Hiểu trọn bộ 12-Factor App – Chuẩn thiết kế cho ứng dụng hiện đại”

Các loại dịch vụ trung gian thanh toán

Các loại dịch vụ trung gian thanh toán theo TT39-NHNN Thông tư 39/2014/TT-NHNN hướng dẫn dịch vụ trung gian thanh toán TermDescription1/ Dịch vụ cung ứng hạ tầng thanh toán điện tử, gồm:Dịch vụ chuyển mạch tài chínhDịch vụ chuyển mạch tài chính là dịch vụ cung ứng hạ tầng kỹ thuật để thực hiệnContinueContinue reading “Các loại dịch vụ trung gian thanh toán”

Stop pip from failing on single package when installing with requirements.txt

UNIX: cat requirements.txt | xargs -n 1 pip install WINDOWS FOR /F %k in (requirements.txt) DO ( if NOT # == %k ( pip install %k ) ) REF: https://stackoverflow.com/questions/22250483/stop-pip-from-failing-on-single-package-when-installing-with-requirements-txt

Câu lệnh terminal Macos cần thiết

Ctrl+a: Di chuyển con trỏ đến đầu dòng Ctrl+e: Di chuyển con trỏ đến cuối dòng Ctrl+b: Di chuyển ngược lại một ký tự Alt+b: Di chuyển ngược lại một từ Ctrl+f: Di chuyển tiến tới một ký tự Alt+f: Di chuyển tiến tới một từ Ctrl+d: Xóa ký tự hiện tại Ctrl+w: Cắt từContinueContinue reading “Câu lệnh terminal Macos cần thiết”

Presenting a more informative error message than “No JSON object could be decoded.”

I’ve discovered that the simplejson module provides more detailed error messages compared to the built-in json module, especially in scenarios like having a comma after the last item in a list: json.loads(‘[1,2,]’) …. ValueError: No JSON object could be decoded which is not very descriptive. The same operation with simplejson: simplejson.loads(‘[1,2,]’) … simplejson.decoder.JSONDecodeError: Expecting object: lineContinueContinue reading “Presenting a more informative error message than “No JSON object could be decoded.””