RSSAmplifier

Blog

phqb

http://RSS feed ↗4 posts

Latest posts

woodsim short 15/07/2026

An attempt to implement 2D terrain destruction (Vietnamese)

Thỉnh thoảng tôi tìm những bài toán trong lập trình mà có thể mô tả trong 1 câu, vừa fun khi giải quyết, vừa dễ dàng kiểm tra kết quả, để giải quyết cho vui. Một trong những lý do tôi làm vậy là tôi nhớ đến 1 câu nói trong bài viết nào đó tôi từng đọc. Câu nói có đại ý là phần lớn vấn đề trong lập trình (cụ thể là backend) là xử lý chuỗi ký tự. Tất nhiên câu này không hề đúng, vấn đề ở chỗ phải…

drill straight holes in wood end-grain without a jig

I was trying to drill straight holes in wood end-grain to make dowel joints. So I bought this jig Source: AliExpress But my wood plank's end-grain is too small for this jig to be stable. I tried to hold the jig with my hand (It's dangerous, do not try this) but the drill bit is still jiggle. Desperately, I used another straight wood plank as a reference to eyeball the drill bit along left-right…

Decorate a generated method in Go

I'm using github.com/tinylib/msgp to add marshal/unmarshal code to my structs. Some of my structs have pointer alias. So I have to ignore the alias via msg:"-" and assign it to its source after unmarshaling. But assigning aliases after each unmarshal call is repetitive and prone to errors. After hours of frustration, I devised a simple and so obvious trick to eliminate assigning alias at…