home.social

#prefix — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #prefix, aggregated by home.social.

  1. Search Bash history by prefix using Alt+Up/Down. Add 2 lines to ~/.inputrc and jump straight to matching commands—no plugins, no restart.

    Full guide here: ostechnix.com/search-bash-hist

    #Bash #History #Prefix #Bashtips #Linuxtips #Linuxhowto #Linuxbasics #Linuxcommands #Linux

  2. Погоди переезжать на дешёвую модель: считаем effective cost с учётом кэша В сообществе часто пишут о том что KV-cache hi...

    #ai #нейросети #context-engineering #prompt-engineering #openai #anthropic #gemini #tokens #prefix #caching

    Origin | Interest | Match
  3. Shell tip: `${var%suffix}` removes the shortest matching suffix. `${var%%suffix}` removes the longest. `${var#prefix}` and `${var##prefix}` work the same for prefixes. Mnemonic: # comes before % on the keyboard. #Linux #SystemAdministration #SysAdmin

  4. net/netip в Go 1.25

    Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня это удобно закрывается стандартным net/netip : компактные value-типы, корректный парсинг адресов и портов, работа с зонами, проверка принадлежности сетям и быстрые операции без лишних аллокаций. В статье рассмотрим этот пакет подробнее.

    habr.com/ru/companies/otus/art

    #golang #Go #Addr #AddrPort #Prefix #IP #IPv4 #IPv6 #CIDR

  5. net/netip в Go 1.25

    Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня это удобно закрывается стандартным net/netip : компактные value-типы, корректный парсинг адресов и портов, работа с зонами, проверка принадлежности сетям и быстрые операции без лишних аллокаций. В статье рассмотрим этот пакет подробнее.

    habr.com/ru/companies/otus/art

    #golang #Go #Addr #AddrPort #Prefix #IP #IPv4 #IPv6 #CIDR

  6. net/netip в Go 1.25

    Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня это удобно закрывается стандартным net/netip : компактные value-типы, корректный парсинг адресов и портов, работа с зонами, проверка принадлежности сетям и быстрые операции без лишних аллокаций. В статье рассмотрим этот пакет подробнее.

    habr.com/ru/companies/otus/art

    #golang #Go #Addr #AddrPort #Prefix #IP #IPv4 #IPv6 #CIDR

  7. net/netip в Go 1.25

    Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня это удобно закрывается стандартным net/netip : компактные value-типы, корректный парсинг адресов и портов, работа с зонами, проверка принадлежности сетям и быстрые операции без лишних аллокаций. В статье рассмотрим этот пакет подробнее.

    habr.com/ru/companies/otus/art

    #golang #Go #Addr #AddrPort #Prefix #IP #IPv4 #IPv6 #CIDR

  8. Shell tip: `${var%suffix}` removes the shortest matching suffix. `${var%%suffix}` removes the longest. `${var#prefix}` and `${var##prefix}` work the same for prefixes. Mnemonic: # comes before % on the keyboard. #Linux #SystemAdministration #SysAdmin

  9. 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:
    networkmanager.pages.freedeskt

    [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.

    #ipv6 #slaac #dyndns #hostid #prefix

  10. 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:
    networkmanager.pages.freedeskt

    [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.

    #ipv6 #slaac #dyndns #hostid #prefix

  11. 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:
    networkmanager.pages.freedeskt

    [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.

    #ipv6 #slaac #dyndns #hostid #prefix

  12. 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:
    networkmanager.pages.freedeskt

    [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.

    #ipv6 #slaac #dyndns #hostid #prefix

  13. 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:
    networkmanager.pages.freedeskt

    [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.

    #ipv6 #slaac #dyndns #hostid #prefix

  14. Gah - I'm running out of #emacs #prefix bindings. Which deserves the "C-c C-l" binding?

  15. 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

  16. @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.

  17. UUID 的 UX

    在「The UX of UUIDs (unkey.dev)」這邊看到的紋章,原文在「The UX of UUIDs」。

    裡面有不少是有幫助的建議,像是第一個建議是把 UUID 裡面的 - 拿掉,這樣對於 copy 比較方便 (畢竟沒有大多數人應該是 copy UUID,不會是念出來?)。

    第二個建議是加上 prefix,這點不一定侷限在 UUID,只要是 token 上面都很適合。這個在不少系統上應該都有看過,像是 GitHub 的 token,或是 AWS 的 token 都算是這類。

    文章裡面沒有提到,但這個建議也可以幫助你在 CI 上設

    blog.gslin.org/archives/2024/0

    #Computer #Database #Murmuring #Network #Software #WWW #database #db #experience #id #key #prefix #primary #user #uuid #ux

  18. From 19 Dec: SSH protects the world’s most sensitive networks. It just got a lot weaker - Enlarge / Terrapin is coming for your data.Aurich Lawson Getty Images Sometim... arstechnica.com/security/2023/ #authentication #biz-&-it #encryption #features #prefix-truncation-attack #security #ssh

  19. so instead of “ten five”, 15 is written as “nine six,” i.e. “tet vav.” The letter tet represents /t/, and the letter vav represents /v/, /w/, /u/, and /o/, so the combination tet-vav is pronounced “tu."

    b' (also #be, #bi) /bə/ (Hebrew) = prepositional noun #prefix roughly equivalent to "in", "at", and "with"

    7/

  20. Hallo liebe Benutzer:innen der #JBL #PartyBox 310, die sich schonmal darüber geärgert haben, dass #mp3 nur alphabetisch abgespielt werden und #Playlisten ignoriert werden. Ich habe einen #LiveHack mit #Python gefunden, der die Dateien zufällig sortiert und mit einem nummerischen #Prefix sortiert. Ist ganz easy und sollte mit jedem #OS funktionieren.

    👇

    eldshort.de/e76bt4

  21. Hallo liebe Benutzer:innen der #JBL #PartyBox 310, die sich schonmal darüber geärgert haben, dass #mp3 nur alphabetisch abgespielt werden und #Playlisten ignoriert werden. Ich habe einen #LiveHack mit #Python gefunden, der die Dateien zufällig sortiert und mit einem nummerischen #Prefix sortiert. Ist ganz easy und sollte mit jedem #OS funktionieren.

    👇

    eldshort.de/e76bt4

  22. An excellent description of the mystery of the "ver-" prefix in #deutsch

    The meaning of #German #Prefix "ver" - The 1 Core Idea

    'ver' is the most common prefix in German and there seems to be no logic to it. In this article, we'll discover its one core meaning and what we can do with it.

    yourdailygerman.com/german-pre

  23. CW: bot example syntax, longish

    @flancian like instead of just #command it would be cool to be able to resolve that to a specific set of commands/actions that the bot would be able to parse. sort of what I was working on during the workshop, using profile metadata fields as link resolvers for shortnames, or using the command parlance above be like

    ```
    @\bot #prefix
    wikibot: +pypy:wiki_postbot.commands
    ```
    to refer to commands in a PyPI package and then
    ```
    @\bot @jonny:wikibot #commandName
    ```

  24. #route48 it's bit annoying that the first nice :0: #IPv6 #network which can be also part of :: omission is used for #routing. Yet I changed #prefix from /64 to /126 and released rest of the address space for other #interfaces.
  25. #prefix : to put or fix before, or at the beginning of, another thing

    - German: die Vorsilbe, voranstellen

    - Italian: prefisso

    - Portuguese: prefixo

    - Spanish: prefijo

    ------------

    Learn programming in your language @ wordofthehour.org/r/programmin