Profile for zlatko

Header for zlatko
Avatar for zlatko
Display name
Panic In The Darkroom
Username
@zlatko@social.zlatko.dev
Role
admin

About zlatko

Bio

According to some, I'm avant-garde ;)

I try to stick to software development and engineering topics, often related to application development, but I also shitpost random stuff, occassionally about photography, (usually not more then) react to politics or economics.

My website is https://zlatko.dev but I less completely-infrequently post a photo or two to my photo gallery https://photos.zlatko.dev.

I also used to post at https://pixelfed.social/zlatko, and https://programming.dev/u/zlatko, and I'll occassionally swipe here and there.

Stats

Joined
Posts
2415
Followed by
162
Following
328

Recent posts

thoughts on self-hosting and motivation to create Toggle visibility

Since mastodon.technology shut down, I am self-hosting my own fedi instance. I have been playing with some fedi software in the last few years, but this time I'm pretty into it, I wrote and published a tool for backing it up, I picked up on my long-forgotten attempt to make a worse fediverse frontend, but to my own liking, I even started making my own game which is totally unrelated to this. I guess fiddling with CLI and servers and stuff got me into liking these things more again.

Open thread at this post
Some random rolleplaying stuff Toggle visibility

I had a fun #gurps session on Saturday evening. I've joined this campaign that is now partially online, the first two sessions I was a bit... uncertain. It's a huge world created over 40ish years of that GM's experience, campaigns and writing. But this Saturday I finally felt like fully jumping in, even into things I don't understand, and I totally liked it :)

I have played _some_ gurps and #dnd ages ago, so I'm happy to jump back in!

Open thread at this post

This should be an interesting week over at 52frames.com: wabi Sabi. Wikipedia says it is:

"According to the Stanford Encyclopedia of Philosophy, wabi may be translated as "subdued, austere beauty," while sabi means "rustic patina."[5] Wabi-sabi is derived from the Buddhist teaching of the three marks of existence (三法印, sanbōin), specifically impermanence (無常, mujō), suffering (苦, ku) and emptiness or absence of self-nature (空, kū). "

Now off to photograph something impermanent and absent of self-nature that suffers.

#52frames #photography

Open thread at this post
birdsite meta that i don't get Toggle visibility

I know a lot of people have shitty experience on twitter. But I don't know how come _everyone_ has to have it badly. Personally I manage who I follow, and I try to disable all "don't show suggestions from x" and a few similar things, and it's mostly tech news, which is why I have an account there in the first place.

Granted, I don't have as much time any more so I'm mostly here, but once a week I log in to twitter and ...nothing serious, just people tweeting about tech.

I assume not being a target of abusers and idiots helps, but I keep thinking a lot of people are just yelling "twitter bad! mastodon good!" with no real reason or understanding.


#birdsite #meta

Open thread at this post

I created a small backup helper for my #gotosocial instance:

gitea.zlatko.dev/zlatko/gts-backup

I can use it directly with npm (you probably shouldn't, it's not very well tested):

npx gts-backup -p @zladuric/gts-backup -s /mnt/my-instance -d /mny/backup -u zlatko and it will copy the database, and all the media uploaded by me to the backup location.

In theory (and practice, as I've just tested), you can make that copy, point your GTS data volume to the new location, and things just keep working.

(#npm package here: www.npmjs.com/package/@zladuric/gts-backup)

Warning: unsafe, untested plus zero tests, and I have no idea if I'll ever write more code there. But maybe it'll inspire a proper backup tool somewhere down the line.

The problem I tried to solve with just regular GTS backup is you pull a lot of remote media, so backup of all that (unless you're running a "super serious" server) makes no sense and is exensive.

In light of social.zlatko.dev/@zlatko/statuses/01GJAMRC6AH9JS4F9VZFPF3GW5, I'm sorry, y'all :)

CC @gotosocial

Open thread at this post

Ubuntu 20.04 to 20.04 seems significantly more involved then os upgrades on Fedora, and between earlier Ubuntu upgrades. At least that's how I am remembering them. I assume it's at least partially because some stuff, like Firefox, now want to be snaps?

Grr I wish I could easily switch this laptop to Fedora.

#fedora #ubuntu
#linux #releaseUpgradeRant

Open thread at this post
Fediverse and selfhosting meta: I find that doing something stupid often makes us feel happy. Toggle visibility

I find that doing something stupid often makes us feel happy.

Steps to be stupid:

1. Be your own social network provider (host your own gotosocial instance)
2. Mess up a few attempts and end up with dangling 5 GB of files taken.
3. Try to remove the extra files to no avail, since they're not in the last instance of your database.
4. Well, find all the files you did NOT post yourself, and any other files older then one day.
5. Do it by this SQL in your db browser: CREATE TABLE files_to_remove as select file_path from media_attachments join accounts on accounts.id = media_attachments.account_id where account_id not in (select id from accounts where username like '%zlatko%') and media_attachments.created_at > '2022-10-21 17:12:02.997912+00:00'
6. now export that table to json.
7. Now in node_repl read up that json file.
8. Execute this: errors = 0; files.forEach(f => { try { fs.unlinkSync(f.file_path); } catch {errors++;} })
9. Find out that you only have hosted 30ish thousand federated photos, and you had about 10,000 extra from a previous attempt.
10. Don't worry, they're all gone now, even if the thumbnails aren't.


I love self-hosting shit. And big props to @gotosocial for making a straightforward table structure.

#gotosocial #selfhosted #fediverse #sysadmin #sqlite

Open thread at this post