Tìm hiểu về WebSocket

WebSocket là gì ? Websocket là một công nghệ giao tiếp hai chiều (full-duplex) trên giao thức HTTP , cho phép việc gửi và nhận dữ liệu giữa client và server để tạo một kết nối theo thời gian thực . Giao thức này không sử dụng HTTP mà thực hiện nó qua TCP. Mặc dù…

Read More

Self host a supabase and build a chat app with it

PART 1. SELF HOST SUPABASE 1. What’s supabase Supabase is an open-source alternative to Firebase. It provides a suite of tools for building scalable and secure web and mobile applications, including authentication, real-time database, and storage. Supabase is built on top of open-source technologies, and it aims to provide an easy-to-use platform for developers that…

Read More

Mysql remote connection ubuntu

For a remote database setup since MySQL must be able to listen for an external IP address where the server can be reached. To enable this, open up your mysqld.cnf file: sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf It will look like this: . . . lc-messages-dir = /usr/share/mysql skip-external-locking # # Instead of skip-networking the default is now to listen only on…

Read More

Detect text on image using tess4j library on linux

Tesseract OCR library is the best way to detect text on image. Let’s start with Java spring boot project. – Step 1: Download template spring boot project on: https://github.com/habogay/spring-boot-gcp – Step 2: Install tesseract otc: sudo apt-get install tesseract-ocr – Step 3: create environment in tool (I use eclipse): TESSDATA_PREFIX=/usr/share/tesseract-ocr/tessdata/ – Step 4: Use Tesseract: String…

Read More