Configure redirection to website endpoint on AWS S3 and CloudFront

I had created this website hosting on the custom domain ( and separated the main domain ( from this page. I liked to redirect access to the main domain to the custom domain automatically (the main reason for it is to pass the validation process of Google Adsense). 1. S3 : Redirect configuration on Website endpoint Amazon S3 > Buckets > Properties > Static Website Hosting > Edit Static website hosting: Enable Hosting type: Redirect request for an object Host name: (your bucket address or personal domain) Protocol: https After “save” configuration, the pagenshows bucket website endppoint at static website hosting section.

Restart Core Audio

When CPU or memory usage on your mac are increased by Core Audio daemon, restarting it may work. Environment macOS Catalina 10.15.7 Problem Sometime, your Mac (especially with intel CPU) slows down and a fan is noisy. You can check it by activity monitor or top command; you may found coreaudiod runs with the high usage of CPU and memory resources by 5% or more CPU occupation. Core Audio is the digital audio infrastructure of iOS and OS X.

Alter a sqlalchemy table by Alembic

For adding a column to existing table created by sqlchemy, I used the Alembic migration tool. Environment MacOS Catalina 10.15.7 Python 3.9.7 SQLte3 3.28.0 sqlalchemy 1.4.23 alembic 1.7.7 Problem As per a document of sqlalchemy, While SQLAlchemy directly supports emitting CREATE and DROP statements for schema constructs, the ability to alter those constructs, usually via the ALTER statement as well as other database-specific constructs, is outside of the scope of SQLAlchemy itself

Windows11 (Parallels) | Change parallels windows password

Environment Parallels Desktop (for Mac Pro Edition) 17 Windows 11 Problem When installing windows update on parallels, login password is required. Solution 1. check UUID On terminal, run prlctl list --all command and check UUID. 1 2 3 $ prlctl list --all UUID STATUS IP_ADDR NAME {1cf4xxxx-xxxx-xxxx-xxxx-36bfccxxxxxx} running - Windows 11 2. set password Set new password by prlctl set command. 1 $ prlctl set {uuid} --userpasswd {Windows Login User Name}:{New Password} After running the command, you will see a message saying authentication tokens updated successfully, then you can login to windows by the new password.

Maven project basic

This is a note for starting maven project from creating project to running application with configuration for external library dependencies. Environment Mac OS Monterey 12.0 Java 17.0.1 2021-10-19 LTS Apache Maven 3.8.3 1. Generate project structure 1 mvn archetype:generate -DartifactId=multiplication-client -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false This generates project structures as below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 log4j-sample ├── pom.