net/netip в Go 1.25
Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня это удобно закрывается стандартным net/netip : компактные value-типы, корректный парсинг адресов и портов, работа с зонами, проверка принадлежности сетям и быстрые операции без лишних аллокаций. В статье рассмотрим этот пакет подробнее.
Service:
Hin und wieder wird bei DYNDNS eine stabile Host-ID verlangt:
Linux allgemein:
man ip-token
ip token set ::3000 dev eth0
oder im NetworkManager:
https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-settings-nmcli.html
[ipv6]
addr-gen-mode=eui64
method=auto
token=::3333
Damit kommt man ohne DHCPv6 aus und die Hosts müssen nicht ihre MAC-Adresse "verraten".
Wenn jemand die äquivalenten Einstellungen für andere OS oder Tools kennt, kann ja gern damit darauf antworten.
Is Pixi + rattler-build* going to be the death of Poetry? In my limited experience so far, Pixi can do everything Poetry can do, just as easily, but has the added bonus of being language-agnostic and able to build Conda packages. Interested to hear thoughts!
*I think Prefix are working on integrating rattler-build into a `pixi build` command, and once this is finished, I don't see any advantage Poetry has over Pixi.
#pixi #PythonPoetry #prefix #packaging #python #rattlerbuild
@b0rk I often find myself writing little test functions to re-familiarize myself with scoping semantics of variables.
Going a bit further, environment management between an interactive shell session and invoked programs (and nesting environment modifications).
Not confusing, but I always forget the syntax for various parameter expansions, e.g., ${var##prefix}.
And the fact that the following works is very opaque and unexpected for me:
scp remote:/path/* ./
And commands that take commands.
UUID 的 UX
在「The UX of UUIDs (unkey.dev)」這邊看到的紋章,原文在「The UX of UUIDs」。
裡面有不少是有幫助的建議,像是第一個建議是把 UUID 裡面的 - 拿掉,這樣對於 copy 比較方便 (畢竟沒有大多數人應該是 copy UUID,不會是念出來?)。
第二個建議是加上 prefix,這點不一定侷限在 UUID,只要是 token 上面都很適合。這個在不少系統上應該都有看過,像是 GitHub 的 token,或是 AWS 的 token 都算是這類。
文章裡面沒有提到,但這個建議也可以幫助你在 CI 上設
https://blog.gslin.org/archives/2024/04/12/11744/uuid-%e7%9a%84-ux/
#Computer #Database #Murmuring #Network #Software #WWW #database #db #experience #id #key #prefix #primary #user #uuid #ux