I choose WPF as my first Windows-based App Framework in 2025

Windows Presentation Foundation (WPF) was born in November 21, 2006. At that time i was a “child” who only know use VB.NET to creat old fashion GUI Application. At that time I prefer find a app than creat one by my-996-self.Not crazy about coding. The Beginning The meaningful time is about 2016.Microsoft released Universal Windows Platform(UWP) Framework,coder can code one sample to publish in Windows 10 destop/Windows 10 mobile/XBoxOne. I was so attracted to learn UWP by Channel 9’s video.I learned how to use XAML to design an interface/space and studied .NET syntax. From compiling a simple calculator to run on my Windows 10 PC and my Lumia phone, to flashing Windows 10 IoT on a Raspberry Pi and running my self-built local network media server—those were wonderful times.Back then, in China, platforms like NetEase Cloud Music were among the first to support the UWP framework, bringing countless surprises to users. Unfortunately, we, the 1%, still lost in market. ...

2025-03-20 · 2 min · 407 words

Deploy Moonglade Blog System Manually on Linux Server

Beginning Hello there! Recently, I’ve been thinking about moving my blog system from WordPress/GitHub Pages to a more reliable environment. My friend Edi Wang mentioned that his Moonglade Blog System can be deployed without Azure, and I’ve been interested in his blog system for a long time. So, I decided to start my 996 deployment. Environment Setup: A server (Windows/Linux; I chose a Vultr VPS with Ubuntu 24.04 LTS x64 for this guide) A domain with properly configured DNS pointing to your server An already set-up database(Means ctreat database,tables can be automatically creat by Moonglade) Some Tips: Sever chosening :You can opt for an Oracle ‘Always Free’ cloud instance for the Linux server, but the firewall settings can be quite complex.If u r looking for a cheap but reliable vps,try vultr with my aff.I recommend a 1 CPU, 1 GB RAM server for $5/month, which I’ve tested and found adequate for this system. Database & Domain : Moonglade supports multiple database systems (Microsoft SQL Server, MySQL, PostgreSQL. Please Check this link FYI). Database setup is not covered in this guide. The same applies to domain registration and DNS configuration. Why not Dockers :as my saids in title,an reliable environment. Building Soucre Code : Using the Release Version is highly recommended; avoid using the master branch. Setp to setp deployment Get code and Build project download the latest “Source code(zip)” in https://github.com/EdiWang/Moonglade/releases in a Linux/Windows environment.I strongly recommend that you start compiling from the source code. Because every time I use the version compiled by github, strange problems will occur. ...

2024-09-01 · 6 min · 1189 words

使用.Net搭配EF Core记录你城市的天气

项目简述 这个项目是我在学习.Net Core编程的时候用到的简单例子,整体就是通过Get请求获取某地区的天气信息,经过json反向序列化后写入到数据库中存储起来。通过.net6的EntityFramework我们可以很优雅地为这个小项目进行CodeFirst的设计(沿用杨中科老师的一个观点:“关系型数据库对程序员来讲只是一个存放数据模型的媒介,理想状态下程序员不用关心数据库的操作。”)这个项目将会用EntityFramework进行数据库的CURD操作,任务目标: ...

2023-12-08 · 7 min · 3053 words