#
#TIL Set your Content-Type header correctly when sending #ActivityPub messages. #Lemmy will 404 on any inbox if the header is not correct (actually just if it doesn't start with application/
Personal Blog about anything - mostly programming, cooking and random thoughts
#TIL Set your Content-Type header correctly when sending #ActivityPub messages. #Lemmy will 404 on any inbox if the header is not correct (actually just if it doesn't start with application/
https://lemmy.zip/post/25528333
Burning the planet faster than Zuck has ever seen.
https://programming.dev/post/21133764
Stop actively looking for "things to program". Spend time in other hobbies than programming and eventually you will stumble over problems you can solve with programming.
If you want to build games, maybe build clones of games you like, but start simple! Build Tetris, not World of Warcraft.
https://programming.dev/post/21199936
I've tried this quickly and you can use pango markup to change the text color in the label.
Here is a snippet with a label and a button that changes the text color from blue to red.
let label = Label::builder().label("<span foreground=\"blue\">Blue text</span>").build();
label.set_use_markup(true);
tool_box.append(&label.clone());
let button = Button::builder().label("Change").build();
button.connect_clicked(move |button| {
println!("Moved");
label.set_label("<span foreground=\"red\">Red text</span>");
});
tool_box.append(&button.clone());
I've finally found the energy to implement a simple cutout export for #DungeonPlanner.
With this feature done I finally bumped the version to 0.1.0 :)
I've been using it without wishing for any new features, so don't expect any bigger changes in the near future.
https://github.com/H4kor/dungeon-planner/releases/tag/v0.1.0
I've implemented a search function for owl-blogs (and therefore my blog).
The current #AI hype shows the deep disregard of some people for craftsmanship.
They don't say it out loud but I read a lot of variations of "nobody really wants to write code, you want to build application" or "nobody wants to draw, you want to create art" in the last months.
#owlblogs doesn't have any user documentation yet. I want to change this but am conflicted between two approaches.
Setup a typical documentation system (e.g. mkDocs) and document everything there.
Integrate the documentation into the software, adding help pages served beside the blog.
Some crawlers try to use the (non-existing) #Mastodon API of my blog, since my blog supports #ActivityPub.
Most don't send a User-Agent or use the generic user-agent of the library they use.
"/api/nodeinfo"
"/api/v1/config"
"/api/v1/directory?limit=1"
"/api/v1/instance"
"/api/v1/instance/activity"
"/api/v1/instance/domain_blocks"
"/api/v1/instance/peers"
"/api/v1/streaming/public"
"/api/v1/timelines/public?limit=100"
"/api/v1/timelines/public?limit=40"
"/api/v3/federated_instances"