Be Hai Nguyen

Be Hai Nguyen @behainguyen

About: I have been a software develper for around 20 years. I am looking forward to work with Python. My other blogs: https://behainguyen.wordpress.com/ https://behai-nguyen.github.io/

Location:
Melbourne, Australia
Joined:
Jun 17, 2022

Be Hai Nguyen
articles - 67 total

rlox: A Rust Implementation of “Crafting Interpreters” – Scanner

I am attempting a Rust implementation of Robert Nystrom's Lox language discussed in Crafting...

Learn More 0 0Jun 14

Raspberry Pi 4B: Natively Build a 64 Bit Fully Preemptible Kernel (Real-Time) with Desktop

In this article, I present a step-by-step procedure to natively patch and build a 64-bit Fully...

Learn More 4 4Nov 3 '24

Python & MariaDB: Which Driver? An Example of Executing a Stored Procedure That Returns Multiple Result Sets

In this discussion, I explain why I prefer the Python MySQL driver, mysql-connector-python, for the...

Learn More 0 0Jul 28 '24

Python FastAPI: Implementing Non-Blocking Logging with Built-In QueueHandler and QueueListener Classes

Continuing with our Python FastAPI learning series, this post explores the implementation of...

Learn More 1 0Jul 2 '24

Python FastAPI: Integrating OAuth2 Security with the Application's Own Authentication Process

In the first post, we explore some aspects of OAuth2 authentication, focusing on the /token path as...

Learn More 13 0May 14 '24

Python: A SQLAlchemy Wrapper Component That Works With Both Flask and FastAPI Frameworks

In late 2022, I developed a database wrapper component for SQLAlchemy. Initially designed for use...

Learn More 0 0May 4 '24

Rust: Actix-web -- Async Functions as Middlewares

In the tenth post of our actix-web learning application, we added an ad hoc middleware. In this post,...

Learn More 1 0Mar 20 '24

Rust: Actix-web Daily Logging -- Fix Local Offset, Apply Event Filtering

In the last post of our actix-web learning application, we identified two problems. First, there is...

Learn More 4 0Mar 18 '24

Rust: Actix-web and Daily Logging

Currently, our actix-web learning application simply prints debug information to the console using...

Learn More 8 2Mar 13 '24

Rust: actix-web JSON Web Token authentication.

In the sixth post of our actix-web learning application, we implemented a basic email-password login...

Learn More 5 0Feb 27 '24

Rust: actix-web get SSL/HTTPS for localhost.

We are going to enable our actix-web learning application to run under HTTPS. As a result, we need to...

Learn More 3 1Feb 10 '24

Rust: actix-web endpoints which accept both application/x-www-form-urlencoded and application/json content types.

We're implementing a login process for our actix-web learning application. We undertake some general...

Learn More 1 0Jan 14 '24

Rust: retrofit integration tests to an existing actix-web application.

We've previously built an actix-web “application”, which has five (5) public POST and GET routes. We...

Learn More 2 0Dec 31 '23

Using the Redis Official Docker Image on Windows 10 and Ubuntu 22.10 kinetic.

The Redis Docker Official Image includes both the Redis server and the Redis CLI. We discuss the...

Learn More 0 0Dec 23 '23

Rust: JSON Web Token -- some investigative studies on crate jsonwebtoken.

Regarding crate jsonwebtoken, the primary question is still how to check if a token is still valid,...

Learn More 0 0Nov 20 '23

Rust: JSON Web Token -- some investigative studies on crate jwt-simple.

Via experimentations, I seek to answer the following question regarding crate jwt-simple: how do we...

Learn More 0 0Nov 17 '23

Rust: seconds since epoch -- “1970-01-01 00:00:00 UTC”.

We look at some simple seconds since epoch calculations using std::time and time...

Learn More 1 0Nov 13 '23

Rust web application: MySQL server, sqlx, actix-web and tera.

We write a Rust web application using a MySQL database. We use the already familiar crate sqlx for...

Learn More 4 0Oct 18 '23

Rust SQLx CLI: database migration with MySQL and PostgreSQL.

Database migration is the process of developing, and refactoring the application database as part of...

Learn More 17 0Oct 10 '23

Rust & MySQL: JSON serialisation of result sets retrieved using crate sqlx.

We run a MySQL stored procedure which returns a result set which has date columns. Using crates serde...

Learn More 5 0Oct 5 '23

Docker on Ubuntu 22.10: running mysql:8.0.34-debian with custom config, socket, database and log files reside on host machine.

We'll look at how to run the official mysql:8.0.34-debian image on Ubuntu 22.10, which we'll store...

Learn More 2 0Sep 22 '23

Rust & MySQL: executing MySQL stored procedures which return multiple result sets using crate sqlx.

MySQL stored procedures can return multiple result sets. In this post, we’re looking at calling such...

Learn More 2 0Sep 17 '23

Rust & MySQL: delete, insert data using crate sqlx.

We'll look at: how to delete data from and insert data into MySQL tables using crate sqlx. This post...

Learn More 5 0Sep 13 '23

Rust & MySQL: connect, execute SQL statements and stored procs using crate sqlx.

We'll discuss: ⓵ how to connect to a MySQL server, ⓶ run queries to select some data and display...

Learn More 20 1Sep 12 '23

Rust: baby step -- some preliminary look at date.

Trying to understand how date works in Rust. Specifically how to get the current local date, and how...

Learn More 4 0Sep 3 '23

Python, Flask: Railway.app deployment and Railway's Nixpacks Docker image build tool.

I've successfully deployed my Australian postcodes API project to https://railway.app. I did have...

Learn More 6 0Jul 9 '23

CI/CD #06. Jenkins: accessing private GitHub repos using SSH keys.

Using a generated public-private key pair, we set up a GitHub SSH key (public key), and Jenkins SSH...

Learn More 7 2Jun 25 '23

Ubuntu Bootable USB stick: The “elusive” 😂 “Try or Install Ubuntu” option...

My Ubuntu 22.10 no longer booted. I tried to do a reinstallation using the original bootable USB...

Learn More 0 0May 26 '23

Python: A simple web API to search for Australian postcodes based on locality aka suburb.

Using the Flask-RESTX library to implement a simple web API to search for Australian postcodes based...

Learn More 3 0May 18 '23

Python: WTForms 3.0.1 customising built-in error messages.

An approach to customise WTForms 3.0.1 built-in error messages before (possible) translation and...

Learn More 0 0Apr 29 '23