trace!("TheBestTvarynka") – Telegram
trace!("TheBestTvarynka")
205 subscribers
221 photos
2 videos
6 files
321 links
Blog: https://tbt.qkation.com
Author: @TheBestTvarynka

Let's trace my journey
Download Telegram
trace!("TheBestTvarynka")
I am trying to do my small genealogy research when I have spare time.
Genealogy research continues 😉

I already have a lot of family-related photos. At some point, I needed a simple software to tag people on photos and then show a person's photos on their page.

I did not find the existing plugin, so I decided to write my own. Over the last three evenings, I vibe-coded this little plugin: https://github.com/TheBestTvarynka/photo-tagging (there are demonstration screenshots in the README.md)
Please open Telegram to view this post
VIEW IN TELEGRAM
trace!("TheBestTvarynka")
Genealogy research continues 😉 I already have a lot of family-related photos. At some point, I needed a simple software to tag people on photos and then show a person's photos on their page. I did not find the existing plugin, so I decided to write my own.…
How it works:
1. You manually add tags to photos using the built-in tagger (1st image).
You can open tagger from the file context menu (Tag people option). (2nd image).
2. Every tag is linked to some note. In my case, every note represents a person.
3. Add the following code block to see the person's photos inside the note:
```tagged-photos
```

The plugin automatically resolves photos assigned to the current person (3rd image).

All tags are saved inside JSON file. By default, the JSON file is located in the photo-tags.json at the root of the vault. You can change it in the plugin settings.
trace!("TheBestTvarynka")
Instagram requires full Photos and Videos permission just allow you to take a screenshot 💩💩💩
Why do so many apps like to detect screenshots? What are they? Banks/password managers/authenticators/what?

Stop spying on me and start doing your job properly 🤬
Please open Telegram to view this post
VIEW IN TELEGRAM
4👍1
Redditor creates working anime QR codes using Stable Diffusion. (hn discussion)

😍😍😍

Wow. I love the idea and it looks amazing 🤩. The article is 2.5 years old. So, I think now it's possible to create even more beautiful QRs.

And yes, I know. In some cases with the wrong scale, the scanner can fail to recognize. But look how cute they are 😊
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🤯2😨2🔥1
I nuked my blog...and then recreated it again 😁 ➡️ https://github.com/TheBestTvarynka/tbt/pull/26

FYI: My blog is built using the Zola static site engine and Abridge theme.

I updated the zola package on my machine and found out that the blog won't build with a new zola version. I tried to fix it, but I was unsuccessful. Even more, I used the outdated Abridge theme, which was installed incorrectly in 2023 (when the blog was created).

So, I decided to just nuke the blog, init the zola project from scratch, and install the Abridge theme. After that, I copied posts (I am so glad they are just MD files).
Also, I now understand the concepts of templates and shortcodes better. Previously, I used them without understanding and hoped for the best.

The domain is the same; all previous valid URLs should still be valid.

Can you spot the design changes/new features? 😼
Please open Telegram to view this post
VIEW IN TELEGRAM
3
https://github.com/rust-lang/rust/pull/141295 merged 5 days ago 🤩

TL;DR:
Allow if let guards in match expressions.

Example from the PR:
match cmd {
// Pay attention to `if let Some()` here:
Command::Run(name) if let Some(first_char) = name.chars().next() && first_char.is_ascii_alphabetic() => {
todo!()
}
_ => {
unimplemented!()
}
}
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥5
Флудилка тваринки, його намагання писати пет-проєкти, щось досліджувати, чи просто займатися фігньою.

Я замучився кидати однакові повідомлення в 3 різних чати. Буду кидати сюди: @tbtpm_dev. Можливо комусь буде навіть більш цікаво ніж основний канал 🤪.
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Kai Ren 🌸
Ну Deref це в базовому мінімумі абстракція по смарт-вказівнику. Якщо тобі треба оперувати & то юзаєш Deref, якщо &mut то DerefMut відповідно.
Трохи в ширшому сенсі це абстракція також по “is a” відношенню. І хоча Deref-based inheritance вважається анти-паттерном в комʼюніті мови, сама std не гнушається подібного піходу для String -> str чи Box -> &[].

AsRef / AsMut - це зазвичай твій дефолтний вибір для абстракції щоб отримати референс з будь-чого, не важливо, що там, смарт-пойнтер, “is a” тип, що завгодно, небо, чи аллах навіть.
Але по дефолту AsRef не має impl<T> AsRef<T> for T, і автори типів майже завжди його не додають руками для свого типу, тому для input поліморфізму воно далеко не завжди заходить.
В твоєму випадку воно теж би підійшло, щоб абстрагуватись по &Node / &mut Node. Але як і з Deref, ти тут не отримуєш owned варіанту.

Borrow - це приблуда яку зробили в основному для зручного АПІ контейнерів в std (і не тільки). Воно має інший набір бланкет імплів ніж AsRef щоб якраз залітати зручно під цей кейс, і ти міг умовно лукапити значення у хешмапі як по owned значенню ключа, так і по любому пойнтеру на нього. Borrow слід використовувати саме в подібних кейсах, продовжуючи традицію.
align[v] = root[v] = root[w];


Even if your PL supports that, please, do not use it! It confuses me a lot every time.
💯1
I defeated my wife at Carcassonne (table game). Today I sleep on the couch.
I have nothing to regret 😌
Please open Telegram to view this post
VIEW IN TELEGRAM
😁9🗿21🍾1
Лабораторна миша
Коли я чую, що людина 2000-го року народження, то перше бажання - купити їй іграшку. Трохи згодом розумію, що це я вже став дуже дорослим, а діти нульових - це сучасна молодь. Коли я чую, що якась студентка розривала найсильніші команди на світових математичних…
(src)

💔 (я живу на вулиці Юлії Здановської).

Я дуже радий, що вулиці перейменовують на честь видатних українців 😌❤️

Рекомендую також прочитати пост, який я реплайнув. Там усе про Юлію Здановську, що вам потрібно знати.
Please open Telegram to view this post
VIEW IN TELEGRAM
😢9👍2
https://blog.rust-lang.org/2026/03/05/Rust-1.94.0/

Notable changes:
🟡 https://doc.rust-lang.org/stable/std/primitive.slice.html#method.array_windows has been stabilized
Rust 1.94 adds array_windows, an iterating method for slices. It works just like windows but with a constant length, so the iterator items are &[T; N] rather than dynamically-sized &[T].

🟡 Cargo config inclusion
🟡 TOML 1.1 support in Cargo
🟡 https://doc.rust-lang.org/stable/std/primitive.slice.html#method.element_offset has been stabilized
Returns the index that an element reference points to.


There are other changes, but they are not very interesting to me.

Oh, wait. {f32|f64}::consts::{EULER_GAMMA, GOLDEN_RATIO} have been added. I think we seldom need these values but it's fun to see that they present in std 😁
Please open Telegram to view this post
VIEW IN TELEGRAM
Let's play a game. You are given the following command:
echo aaa > data.blob

Then you open data.blob in hex and guess file bytes. What you will see after executing this command in CMD/PowerShell/Bash?

After executing the command in the PowerShell you will get:
ff fe 61 00 61 00 61 00 0d 00 0a 00

🤯 TIL that PowerShell automatically encodes output in UTF16. The first two bytes are marker bytes that mean UTF16LE. Next we have UTF16-encoded aaa\r\n.

CMD:
61 61 61 20 0d 0a

CMD does not encode in UTF16 but also writes a space (0x20) after the "aaa". File bytes are equal to the aaa \r\n string.

Bash:
61 61 61 0a

The bytes above correspond to the aaa\n string.

I hate all these shells except bash. Don't get me wrong, it does not mean I love bash. I just hate it less than any other shell.
Don't you dare to write about the fish shell in comments 😁

#til
Please open Telegram to view this post
VIEW IN TELEGRAM