Skip Navigation

User banner

𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍

@ sxan @midwest.social

Posts
19
Comments
1389
Joined
4 yr. ago
 
               🅸 🅰🅼 🆃🅷🅴 🅻🅰🆆. 
     𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 𝖋𝖊𝖆𝖙𝖍𝖊𝖗𝖘𝖙𝖔𝖓𝖊𝖍𝖆𝖚𝖌𝖍 
                            

  

Ceterum Lemmi necessitates reactiones

  • I hate admining PostreSQL, and groan when some app I want to use requires it. Don't get me wrong: in a corp environment where someone else is responsible for backup/restore and permissions, pgsql > *. Tooling for it is great. It has every feature. But if I have to maintain it myself, I'll chose a single file to copy and back up every time: sqlite FTW.

  • So I was digging around in this again, and either vhs has always downloaded chromium or it's new behavior, but it now means I won't use vhs any more. Which is troublesome because, while there are a bunch of terminal recorders, none are scriptable in the way vhs is.

    vhs only records commands, not the output. It means that the simple text files can be manually edited, but also that they can be committed to a vcs and replayed. If the programs used change their outputs, vhs replay will capture the new behaviors. This is what makes it useful for updating screenshots and demos; most other tools I've looked at (including asciinema) records both input and output, and are therefore useless in a CI environment for updating screenshots. There are three programs which can work like vhs (more or less), and two more which are useful for limited applications. I haven't yet verified which of these work headless.

    • console2svg can record, play, and generate animations. It's a C# program, but it's in AUR as a -bin so it's not too bad
    • terminal-shot looks like it can also record and play back; it's npm, and I'll only install npm in locked-down containers, which adds a level of complexity
    • terminalizer - looks like it does everything; nodejs
    • termframe - runs a command and takes an SVG screenshot. Scriptable, so useful for screenshots but not demo animations
    • termtosvg - records terminal interactions as SVG animations; not scriptable. You can almost script: it'll run a program and record the output, so you could write a bash script to play it back a sequence. The problem is if you're trying to play back a TUI, you need something more sophisticated than bash to handle sending keystrokes. tcl, or something; I haven't looked into this space in decades.

    Having to choose between downloading a ca 400MB Chromium blob and npm/nodejs is being between a rock and a hard place. console2svg seems the least offensive, but termtosvg is so tantilizingly close. The rest are purely "record the entire I/O"; many have the additional limitation of requiring a windowing environment, so can't be run over tty:

    • asciinema
    • menyoki
    • tty-record
    • t-rec
    • termrec + ttygif
    • terminal-shot - npm
    • svg-term-cli
    • script
    • bashcaster
  • Different use cases. VHS records your operations -- you can hand-craft a VHS script. asciinema records the result (both I and O). VHS scripts can be re-run; they're useful for projects in that you can put a vhs script in a repo as part of a build process and automatically regenerate screenshots and videos during the build process. asciinema requires you to manually record new videos.

    There's overlap, for sure, and asciinema is easier for purely recording some terminal where you're winging it, and then sharing it out; vhs is better for writing repeatable demos. Both are great pieces of software.

  • commandline @programming.dev

    ANN: ostui v1.1.1, an OpenSubsonic TUI

    sr.ht /~ser/ostui/
  • If it was me (@piefed.zip), I didn't change anything. I used the same character always had - it was the Icelandic thorn, provided by my mobile keyboard. I wasn't even aware of the replacement feature until those release notes.

    I'm curious about why it was appearing that way. Granted, I used Piefed with three different devices around this time: a desktop, where thorn was an X compose character; Android, where it was from the Icelandic character set; and a Linux phone where I modified the keyboard and added thorn from the Unicode character on the Thorn Wikipedia page. I suppose one or more of those could have been from different code point blocks.

    I've switched over almost entirely to Piefed by now, but piefed.zip being offline at the moment has me back on my non-Thorn Lemmy account.

  • commandline @programming.dev

    CLI-based bookmark manager, based on indexing visited sites and search-engine-like queries?

  • Huh. All that work, just for little ol' me? Gosh, I'm humbled. I didn't even know that was going on.

    I do try to limit thorn to my piefed account. Sometimes habit tricks me to using it on Midwest.Social, but that's entirely accidental.

  • Huh. tar tf and unzip -l. I'm not sure I'd even bother to write a shell function to combine them, much less install software.

    Zips just exploding to files is so common, if you just mkdir unzpd ; unzip -d unzpd file.zip it's going to be right nearly all of the time. Same with tarballs always containing a directory; it's just so common it's barely worth checking.

    You write the tools you need, don't get me wrong. This seems like, at most, a 10-line bash function, and even that seems excessive.

     bash
        
    function pear() {
    case $1 in
      *.zip)
        unzip -l "$1"
        ;;
      *.tar.*)
        tar tf "$1"
        ;;
    esac
    }
    
      
  • No, not on porpoise.

  • I have no idea! It seems to be the human material. Have you ever heard of a solution? I can be aware of it and resist it, but what I hate is that instinctive, negative impulse, and I don't think wishing it away is going to help.

  • I'm lucky. I live in a place where stonecrop is native, and it grows like a weed. Except it doesn't spread (quickly), and I love the look.

    We had some landscaping done and they moved some stonecrop and forgot to move one back. it wasn't even planted; it just grew right there where they'd left it!

    Great plants.

  • Also, biological monsters would overheat very fast.

    That's why they tend to breath fire n stuff.

    Old Godzilla movies got it right. He did look like he was walking on the moon. Not bouncing, but he probably had atrophied muscles from being in the water all the time.

    Poor guy. Overheated and tired, no wonder he was grumpy!

  • Sometimes it do be like that

  • 🖖

  • That's brilliant. The thumbnail spoils it.. at least, it shows me the punchline.

  • I don't know why; it just popped into my head. Maybe because the float would just make snacking easier for the sharks?

    Edit: because my home server insists on rewriting all image URLs to proxy requests through that server, and it often breaks things. I gotta re-home.

    https://files.catbox.moe/6awpqm.gif

  • Ok, so preface: this isn't about you. Your comment just coalesced something I've been ruminating about recently.

    I wish we, as humans, didn't have this knee-jerk tenancy to make everything a zero-sum competition. Vi vs EMACS. x86 vs ARM. Windows vs Mac vs Linux vs FreeBSD. C vs Go vs Rust vs Clojure vs JavaScript. Arch vs the world.

    It really is a zero-sum game, with real consequences. If your favorite distro becomes unpopular enough, it might die, and then you have to give up something you love. Windows winning the OS market for decades meant countless people had to suffer using Windows because the company they worked for mandated it. If I crusade for V(lang) enough, it might become popular enough for jobs to open for it.

    The downside is that we're constantly fighting against diversity, and that's bad.

    I suffer from this as much as anyone, and I hate that my first impulse is to either tear down "the opposition", which at some point is nearly everyone, or schadenfreude.

    "It is not enough that I succeed, but that others should fail." It can't be healthy.

  • I miss the days when every package came with a man page.

    Every respectable package; don't come at me, pendants.

  • groan

  • I can think if plenty of situations where system time is

    • Optional
    • Unreliable
    • And even potentially disallowed by the user

    In fact, if you don't set up your containers right, the system time is almost always wrong.

  • RISC-V @lemmy.ml

    RISC-V and micro kernel synergy

  • Lemmy @lemmy.ml

    Crossposting improvements

  • commandline @programming.dev

    ANN: tjot v0.0.5, a terminal renderer for djot

    hg.sr.ht /~ser/tjot
  • commandline @programming.dev

    Rook v0.3.0, a secret service backed by a KeePass v2 DB

  • Ask Lemmy @lemmy.world

    In how many languages can you count to 10?

  • Ask Lemmy @lemmy.world
    Locked

    Invisibly locked posts?

  • Selfhosted @lemmy.world

    Self-hosted SSO

  • commandline @programming.dev

    correcthorse, in 27 lines of bash

  • Golang @programming.dev

    Go generics: can I do this?

  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    Bipedal forehead-aliens rate, per series

  • commandline @programming.dev

    Rook v0.2.0, a secret service backed by a KeePass v2 DB

    sr.ht /~ser/rook/
  • commandline @programming.dev

    stmps: a TUI client for your *sonic server

  • Selfhosted @lemmy.world

    What's currently (2024) the best self-hosted alternative for a Facebook Wall type of user experence?

  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    Lower Decks & the curse of ending too soon

  • commandline @programming.dev

    Rook v0.1.3, a secret service backed by a KeePass v2 DB

    sr.ht /~ser/rook/
  • Golang @programming.dev

    Rook, a secret service backed by Keepass 4.x kdbx

    sr.ht /~ser/rook
  • commandline @programming.dev

    Rook, a secret service backed by Keepass 4.x kdbx

    sr.ht /~ser/rook