Fred

  • 3 Posts
  • 36 Comments
Joined 1 year ago
cake
Cake day: March 1st, 2024

help-circle

  • FredtoProgrammer HumorCGNAT version 2
    link
    fedilink
    arrow-up
    5
    ·
    20 days ago

    Well the “one address” bit sure :) but given the scale supported by CGNAT systems today, I don’t think being able to support an entire country behind a single cluster is that far off. At which point the difficulty becomes “is the 100.64.0.0/10 block big enough”? Or maybe they’re using DS-lite for the hauling from private network to the NAT.


  • While exploring solutions, I use f or ffto mean “follow-up/to-squash” and a to mean logically separate. Sometimes other (additional) short abbreviations to know where to move, squash, and edit the changes to.

    I recently discovered git commit --fixup=abcd1234: it will make a new commit with a message of fixup! <message from abcd1234>. (It’s the only special thing that flag does: a specially formatted commit message, which you can craft yourself if you remember the spelling of the fixup! marker.)

    When you later rebase, git rebase --interactive --autosquash will automatically mark that commit to be a fixup of abcd1234.

    magit for emacs has shortcut for creating a fixup commit selecting the previous commit, I’m sure other interfaces do too.

    I guess my commit descriptions get better with project lifetime

    I’ve found that too, which I think is because as the project matures, you’re more likely to make fixes or contained features, as opposed to regular “change everything” as you explore the design in a young project.



  • Fredtolinuxmemes@lemmy.worldSuperior ping
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    1 month ago

    This is the behaviour of inet_aton, which ping uses to translate ASCII representations of IPv4 addresses to a 32 bit number. Its manpage: https://man7.org/linux/man-pages/man3/inet_aton.3.html

    It recognizes the usual quad decimal notation of course, but also addresses of the form a.b.c or a.b, or in this instance, a, with is taken to be a 32bit number.

    Each part can also be written in hex or octal, with the right prefix, such that 10.012.0x800a is as valid form for 10.10.128.10.

    Not all software use inet _aton to translate ASCII addresses. inet_pton for instance (which understands both v4 and v6) doesn’t


  • Inside the lambda expression you can have a comprehension to unpack the keys list to get the same sort of uplet as your “manual” example, like this:

    >>> items = [{"core_name": "a", "label": "b"},{"core_name": "c", "label": "d"}, ]
    >>> keys = ["core_name", "label"]
    
    >>> tuple(items[0][k] for k in keys)
    ('a', 'b')
    
    >>> sorted(items, key=lambda d: tuple(d[k] for k in keys))
    [{'core_name': 'a', 'label': 'b'}, {'core_name': 'c', 'label': 'd'}]
    

  • Would some battons (like that: https://www.wickes.co.uk/Wickes-Redwood-PSE-Timber---44-x-44-x-2400mm/p/9000281515, or possible smaller depending of the profile of your table), fixed to the underside of the gaming top so that they’re leaving a negative image of the fixed table top? That way, once installed, the gaming top can’t slide around. That would only work well in my mind if the gaming top is a single piece.

    Edit: with that idea, minimal length of the gaming is that of the table plus two thicknesses of the baton you’d use, ie. more than the 20mm you seem to have in mind. Maybe, maybe not an issue.

    For the cover, I’d consider a felt with a waterproof backing, although I don’t have a specific material in mind. If you don’t add felt, I’d soften the angles of the MDF.








  • We’re a couple months later, I ended up doing a second small project, this time I used half tung oil half orang oil, and adjusted my technique: wiped with a clean rag after application, and I think the room was warmer them last time.

    Got better results, more even and it didn’t take 2+ weeks for the first coat to cure (more like a few days).

    Thanks for the advice 🙂



  • Besides Journal not being available on non-Linux, there are a could of reasons for using syslog: it can log to a remote server for instance. Journal does have a remote logging capability, but at best you have to run two log sinks in parallel, at worse it’s a non starter because everything that’s not a Linux box (network routers, VMware hosts, IDS appliances) can’t speak to it

    Another is fine filing and retention. With syslog you can say things like “log NOTICE and above from daemon XYZ to XYZ.log and keep 30 days worth; log everything including DEBUG to XYZ-debug.log, keep no more than 10MB”. With Journal you rotate the entire log or nothing, at least last I looked I couldnt find anything finer. There are namespaces, but that doesn’t compowe, the application needs to know which log goes into which namespace