Welcome to my blog...
... Most articles were written in Vietnamese (I come from Vietnam 🤗), sometime in English, sometime in both! 🤑
Go to "Dev" section to read articles about Tech, IT, Design and Devevelopment in general 😄
Fixing bug is hard, so sometime I note down the challenge I encountered here 😘
"Essay" is where I write crazy things. Don't care about it 😹
Sometime I note down some "Tips" about Programming in general. Hope they can help you 🚀
"Misc" is about trivial stuffs: game-review, poems, my quick notes, my paintings, etc 🎨
Want to know who the hell am I? Visit About 😚
You can visit my Github or my Portfolio to know more about my Project 😎
Author: Son Nguyen Hoang
Word: 938
Language: English
Created On: 10 Mar 2025
Short writing to de-mystified complicated Csharp concept and keywords
Csharp is crazy powerful, however, I have trouble in understanding its delegate and delegates’s implementation, including Action, EventHandler, Func. Therefore, this post is written to summarized all of these. I would give each the definition and some analysis. A. Delegate Delegate is simply a reference to a method. The example that gives the best illustration on the application of delegate is a UI Button. Whatever framework, engine or libraries you use, the UIButton you create must have the ability to trigger callback method. ...
Posts
Author: Son Nguyen Hoang
Word: 2377
Language: English
Created On: 28 Mar 2025
AI art challenges traditional notions of originality and creativity. As technology reshapes artistic production, a new perspective on art and ownership emerges are required.
Just a few days ago, OpenAI released a new image-generation model. This time the model shook the internet again. Social media and the internet quickly got flooded with meme and images generated from the new AI model. Most of them are classic memes but remade in the style of Ghibi movie or casual photos filtered in the same style. The quality of them is very good. Some might say this is the best image-generation model so far. Although images filtered in Ghibi style now take over the internet, the model has much more capability. It’s not hard to find other versions of real-life photos filtered in South Park style (another famous cartoon series), or simply do image modification job that real-life graphics designer often does: like replace human face, change objects in the photo, etc. … ...
Posts
Author: Son Nguyen Hoang
Word: 3312
Language: English
Created On: 20 Jan 2025
Documents and study note for classic leetcode array & hashing problem
Finally I solved all other problem in “Array & Hashing” section of Neetcode. Here is a quick breakdown of solution. Begin with “Encode & Decode” string. Encode & Decode String Design an algorithm to encode a list of strings to a single string. The encoded string is then decoded back to the original list of strings. Please implement encode and decode Analysis & Solution The first approach would be to divide the string by a special character. However, given that the prerequisite clearly states that each string can be anything in UTF-8. No special character is safe to use. Then, I thought about using a hashmap that store every character, their frequency and position. But then it no helpful when decoding the long hashmap into seperate string. I got lost in the mindset to transform the string into something else, pure numeric or some shit like that. ...
Posts
Author: Son Nguyen Hoang
Word: 478
Language: English
Created On: 13 Mar 2025
A flow of development when you are doing Unity project and build custom framework at the same time
Motivation I encountered a funny problem when coding a Unity Game. To increase the reusability while making game, I also develop a Framework. This framework would be an Unity Package. The thing is that the GAME itself also relies on the framework, which basically mean that I cannot modify and update the framework directly. So, what is the work arround? Problem Statement Foundation The game is refered as FAW (Codename) The framework is SysiphusFramework. I am NOT the only one working at the game. Because of the, SysiphusFramework exists as a UnityPackage that is added to Unity Project through git url By doing so, the framework itself is part of the game (inside FAW Folder). However, it now stays in Library (not Assets folder), thus we cannot modify it So, as a developer who are making the framework, how to edit it? Solution Ideas The logic is to create a DEFINITION (in Unity Editor). In the Editor, we now refer the DEFINITION as USE_GIT_FRAMEWORK. If USE_GIT_FRAMEWORK existed, then the project would remove the package from the library. Developers of the package now would have to clone the actual git repository of the framework into the project (into Assets folder) to make update. ...