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
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
GitHub
GitHub - TheBestTvarynka/photo-tagging: Obsidian plugin for tagging people on photos
Obsidian plugin for tagging people on photos. Contribute to TheBestTvarynka/photo-tagging development by creating an account on GitHub.
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 (
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:
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
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")
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.…
By the way, to integrate a gallery-like view I used the PhotoSwipe JS library: https://photoswipe.com/
It has almost 25k stars on GitHub (https://github.com/dimsemenov/photoswipe). And, most importantly, it was written by Ukrainian Dmytro Semenov: https://dimsemenov.com/.
I love using great products backed by Ukrainians. I feel some kind of pride or something😊
It has almost 25k stars on GitHub (https://github.com/dimsemenov/photoswipe). And, most importantly, it was written by Ukrainian Dmytro Semenov: https://dimsemenov.com/.
I love using great products backed by Ukrainians. I feel some kind of pride or something
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - dimsemenov/PhotoSwipe: JavaScript image gallery for mobile and desktop, modular, framework independent
JavaScript image gallery for mobile and desktop, modular, framework independent - dimsemenov/PhotoSwipe
❤1👍1
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🤬
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😊
Wow. I love the idea and it looks amazing
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
So, I decided to just nuke the blog, init the
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?😼
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
GitHub
feat: update Abridge theme and the blog overall by TheBestTvarynka · Pull Request #26 · TheBestTvarynka/tbt
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 t...
❤3
GitHub
Stabilize `if let` guards (`feature(if_let_guard)`) by Kivooeo · Pull Request #141295 · rust-lang/rust
Summary
This proposes the stabilization of if let guards (tracking issue: #51114, RFC: rust-lang/rfcs#2294). This feature allows if let expressions to be used directly within match arm guards, enab...
This proposes the stabilization of if let guards (tracking issue: #51114, RFC: rust-lang/rfcs#2294). This feature allows if let expressions to be used directly within match arm guards, enab...
https://github.com/rust-lang/rust/pull/141295 merged 5 days ago 🤩
TL;DR:
Allow
Example from the PR:
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 🌸
Ну
Трохи в ширшому сенсі це абстракція також по “is a” відношенню. І хоча Deref-based inheritance вважається анти-паттерном в комʼюніті мови, сама
Але по дефолту
В твоєму випадку воно теж би підійшло, щоб абстрагуватись по
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😌
I have nothing to regret
Please open Telegram to view this post
VIEW IN TELEGRAM
😁9🗿2❤1🍾1
https://www.notion.so/thebesttvarynka/319c3e52142280c789e0c96ab905f8fc
Мій відгук на аніме Ароматна квітка цвіте з гідністю (https://anitube.in.ua/5390-aromatna-kvtka-cvte-z-gdnstyu.html).
tldr:
Мій відгук на аніме Ароматна квітка цвіте з гідністю (https://anitube.in.ua/5390-aromatna-kvtka-cvte-z-gdnstyu.html).
tldr:
Маленький човник доброти у цьому штормовому океані зла😌
Please open Telegram to view this post
VIEW IN TELEGRAM
TheBestTvarynka on Notion
Ароматна квітка цвіте з гідністю 🌺 | Notion
Відгук на аніме Ароматна квітка цвіте з гідністю: https://anitube.in.ua/5390-aromatna-kvtka-cvte-z-gdnstyu.html.
Лабораторна миша
Коли я чую, що людина 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
🟡 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
There are other changes, but they are not very interesting to me.
Oh, wait.😁
Notable changes:
Rust 1.94 addsarray_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].
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
blog.rust-lang.org
Announcing Rust 1.94.0 | Rust Blog
Empowering everyone to build reliable and efficient software.
Let's play a game. You are given the following command:
Then you open
After executing the command in the PowerShell you will get:
🤯 TIL that PowerShell automatically encodes output in UTF16. The first two bytes are marker bytes that mean UTF16LE. Next we have UTF16-encoded
CMD:
CMD does not encode in UTF16 but also writes a space (
Bash:
The bytes above correspond to the
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
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
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.
#til
Please open Telegram to view this post
VIEW IN TELEGRAM