Thứ Sáu, 17 tháng 1, 2025

Azure Aspire hosting failed to start error

 On a beautiful day, after install new .net sdk, you suddenly can not start Aspire. The error is:Hosting failed to start       System.IO.FileNotFoundException: The Aspire orchestration component is not installed at "C:\Program Files\dotnet\packs\Aspire.Hosting.Orchestration.win-x64\8.1.0\tools\dcp.exe". The application cannot be run without it.Look into the folder "C:\Program Files\dotnet\packs", the "8.1.0" folder does not exist. Not sure if .net installing process is removed "8.1.0" package.So we have to reinstall "8.1.0" package at this folder.Step 1: open Cmd by adminstrator rightStep 2: Navigate to Aspire host projectStep 3: Run this command to install 8.1.0 package to the folder "C:\Program Files\dotnet\packs":dotnet add package Aspire.Hosting.Orchestration.win-x64...
Read More »

Thứ Hai, 13 tháng 1, 2025

How to setup certificate for localhost IIS Express

 Step 1: Clean up all localhost certificatesOpen "Manage user certificates" in the windows search box.Select all localhost certificates in the "Personal/Certificates" folder and delete them.Select all localhost certificates in the "Trusted Root Certification Authorities/Certificates" folder and delete them. Open "Manage computer certificates" in the windows search box and then do the same things.Step 2: Using the command line to re-run the setup of the SSL certificate.Run cmd as administrator. Navigate to the IIS Express installation directory, the default path is typically:        cd "C:\Program Files (x86)\IIS Express"Now execute the following command...
Read More »

Thứ Tư, 25 tháng 12, 2024

Github workflow: How to checkout the same branch on a workflow that run after another workflow complete

 I have 2 github workflows: CreateRelease and Test. The Test workflow will run after CreateRelease workflow completed. How to make sure that the Test workflow will checkout the same branch with CreateRelease workflow?Use ${{ github.event.workflow_run.head_branch }} in checkout action in Test workflow.Here's CreateRelease workflow:name: CreateReleaseon:  workflow_dispatch:jobs:  ManageVariables:    environment: 'QA Automation'    runs-on: windows-latest    steps:      - uses: actions/checkout@v4        with:          lfs: trueHere's Test workflow:name: Teston:  workflow_run:    workflows: ["CreateRelease"]    types:      - completed ...
Read More »

Thứ Hai, 16 tháng 9, 2024

Note before publish/run webgl unity on IIS server to make the game run

 Shoud go to your webgl site in IIS then add mime types:For example, after you build webgl, you have some files in the build folder:You should add: .data, .wasm... and .unityweb with type application/octet-str...
Read More »

Thứ Bảy, 20 tháng 7, 2024

How to keep motivation when doing anything

 Whenever you feel very strong motivation at first when doing something, but by the time, your motivation is gone away?Don't worry! That's normal. Everyone got the same issue with you. Let have an example. If it's the first time you learn to play piano. You are total new without any knowledge. A few first lessons, you learn musical notes, you know buttons that are represented for each note. You feel excited since you discovered new things, and it's simple and easy for you. You are enthusiastic waiting to the next lesson. But by the time, more complex and difficult technic come to you. You struggle with them. It takes you more time. And you start feeling less motivation. And finally you...
Read More »

Thứ Bảy, 24 tháng 2, 2024

Little Fox - Journey to the west - The water cave

 The monkey leaps through the waterfall and lands on a cave. It's a large cave, filled with bamboos, trees, and beautiful flowers. A stream flows through the cave, and moss covers the walls. He sees a long table with cups, plates, and bowls. A fireplace sits against one wall, and many cozy beds are present.Other monkeys stand outside, thinking the monkey is washed away by the waterfall. They moan. Suddenly, with a splash, the monkey jumps out of the waterfall, landing in front of the other monkeys. "I found a beautiful home for all of us. Come inside," he announces.The monkeys jump inside the waterfall one by one. They are very surprised and feel very interested. They fight for beds and...
Read More »

Thứ Sáu, 23 tháng 2, 2024

Little Fox - The Final Chapter: The Secret Garden - In the Garden

Mr. Craven had wandered through Europe, visiting many beautiful places, famous mountains, and Norwegian fjords. Yet, it couldn't make him better; the cloud still hung over him.One day, while hiking in a forest, he decided to rest on a carpet of moss beside a stream. He didn't know how long he had sat there, but the sunlight washed over him. As he looked around, he saw flowers blooming, birds singing, and the stream playing its gentle rhythm. And suddenly, he felt a sense of peace he hadn't experienced in a long time.That night, he slept soundly, free from nightmares for the first time in months.One day, while seated on a balcony chair in a hotel room, the moonlight bathed him in its soft glow....
Read More »