Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)L
Posts
6
Comments
1306
Joined
2 yr. ago

  • That's what makes it a challenge

  • Ausser du hast das Pech in einer gewissen Haftanstalt in Bayern inhaftiert zu sein. Da kommt dann die nette SIG, verprügelt dich und steckt dich erstmal nackt und blutend in Isolationshaft.

    Oder du bist leider als jugendlicher im Saarland inhaftiert. Da kann man dann schon auch mal zu Tode geprügelt werden.

    Diese Fälle gibt es leider ohne Frage. Ich würde es aber noch nicht als systematisch beschreiben, und möchte vermeiden, jede Aussage zu relativieren.

    Dazu muss man die Aussage auch im Vergleich zur geschlossenen Psychatrie sehen, denn darum ging es ja ursprünglich. Auch dort kann es zu Gewalt kommen, auch wenn die sich idR dann anders äußert.

  • eines extrem dummen Krieges, in den wir uns haben reinziehen lassen

    "Haben reinziehen lassen" ist allerdings nicht richtig. Es war ein NATO-Bündnisfall nach Artikel 5, und damit war die Lage recht eindeutig.

  • Geschlossene Psychatrie muss nicht unbedingt besser sein als Gefängnis.

    Davon abgesehen mal ein Beispiel: einer meiner Kommilitonen wurde mal nachts in der U-Bahn-Station verprügelt, weil… der Täter Bock hatte, jemanden zu verprügeln. Gab es alles auf Video, komplett ohne Anlass einfach jemanden krankenhausreif geschlagen (Täter hat allerdings nicht gewusst, dass Security in der Station war, die dann kam und eingriff).

    Es ging dann vor Gericht wohl auch relativ schnell, Täter hatte sich zwar so wie ich gehört habe sehr gepflegt angezogen, sein Anwalt wollte anscheinend die Schiene "mein Mandant ist eigentlich super nett und sozial, aber hatte halt einen Moment der Schwäche" fahren, aber Video sowie Zeugenaussagen waren recht… eindeutig.

    Warum sollte man diesen Leuten dann entgegenkommen? Oh du armer, dir hat wohl in deiner Kindheit keiner erklärt, dass man nicht einfach Leute verprügeln darf, wenn man Bock hat? Es ist ja nicht so, dass man in deutschen Gefängnissen entmenschlicht wird, das Klischee aus Ami-Filmen trifft hier nicht zu. Ich muss aber (in diesem Fall) volljährige Arschlöcher nicht mit Samthandschuhen anfassen. Respekt beruht auf Gegenseitigkeit.

  • I haven't watched the video, but maybe it wasn't in bad faith, but the author didn't know better. bash can be arcane at times, like when I open my old scripts I often have no clue what exactly is going on without comments. Substring removal comes to mind.

  • I’m not even sure what strucrued data would really mean, so I’m pretty sure it’s not useful to my usecase lol

    Probably not, but to give an easy example:

     
        
    ~> ls | where modified >= (date now) - 30day
    ╭───┬───────────┬──────┬────────┬────────────╮
    │ # │   name    │ type │  size  │  modified  │
    ├───┼───────────┼──────┼────────┼────────────┤
    │ 0 │ Downloads │ dir  │ 4,0 kB │ 4 days ago │
    │ 1 │ Musik     │ dir  │ 4,0 kB │ a week ago │
    ╰───┴───────────┴──────┴────────┴────────────╯
    
    
      

    Here, ls doesn't just return a string representing directory content as text, but a table where each file is an entry with attributes that have their own data type (e.g. size is Filesize while modified is Datetime). That's why I'm able to filter based on one of them; that part isn't part of ls, but of the shell itself. In a classic shell, this filtering would need to be handled in the originating binary in its own specific way, or you'd need to parse its output, transform it using tools like sed and awk etc. This here is a special case because ls is built into the shell; for non-builtin commands, if they offer it, you can have them output structured data as json or something else and read it into nu, like

     
        
    ~> ip -j a | from json | where {|device| $device.address? != null and $device.addr_info? != [] and $device.link_type =~ "ether"} | get addr_info.0 | select -o local broadcast scope
    ╭───┬────────────────────────────────────────┬─────────────────┬────────╮
    │ # │                 local                  │    broadcast    │ scope  │
    ├───┼────────────────────────────────────────┼─────────────────┼────────┤
    │ 0 │ 192.168.178.72                         │ 192.168.178.255 │ global │
    │ 1 │ 2001:9e8:4727:2c00:3071:91ff:fed1:9e26 │                 │ global │
    │ 2 │ fdaa:66e:6af0:0:3071:91ff:fed1:9e26    │                 │ global │
    │ 3 │ fe80::3071:91ff:fed1:9e26              │                 │ link   │
    ╰───┴────────────────────────────────────────┴─────────────────┴────────╯
    
      

    It's kind of cool, but I don't need it that often either, so I just play around with it when I feel like it.

  • I’m glad you mentioned nushell (it sounds like) is a more poweruser thing.

    It serves a different niche. nushell is very good for working with structured data. fish on the other hand is a "conventional" shell that's not POSIX compliant. I guess that's why they call it "a command line shell for the 90s" because it doesn't incorporate modern concepts, it's just more convenient than POSIX shells.

    This results in some notable differences: nushell for example has actual data types (https://www.nushell.sh/book/types_of_data.html, though they are dynamically typed by default).

    All this doesn't mean that one is better than the other. I use fish daily and just sometimes dabble in nushell because most of my workflow doesn't require all the stuff nu offers.

  • Oh yeah, I never used Python myself and did some very simple (but IMHO too much hassle in bash) Go stuff some time ago. It's a really good language for that, and if you can't build on the target, the binary is statically linked anyways.

  • What's so bad about string replace World Bash $STRING?

  • Just don't microwave it.

  • Same, but I don't think it was ever intended differently; I mean the word interactive is literally in the name. If you want portable scripts, use bash. For simple helpers, quickly define a function. If you feel your script becomes too long, use Python.

  • Counter-productive, if I had gotten cramps at work (because of whatever, it doesn't matter), I'm just gonna use company time to get rid of these cramps. Hell I'm not even sure these designs are legal here. Surely there is some DIN based ISO norm regarding toilets and their dimensions

  • Stop this slander

    The N64 Pokémon games aren't that bad

  • I would have expected a far more accurate version would have been made and accepted long ago.

    The earth is a three-dimensional globe, all two-dimensional projections will be incorrect, you can only choose which aspects (e.g. distances, areas or whatever) you want to keep correct.

  • Try Ritalin 4, it's the new hot stuff

  • Why stop there? Shell out a purple heart! Hell, make it two! Make him look like one of these old officers from dictatorships!

  • Meinst du die Echtzeitüberweisung? Sofortüberweisung ist doch so ein Dienst, wo ein Drittanbieter Zugriff auf dein Konto bekommt. Echtzeitüberweisungen werden ab Oktober per Gesetz bei allen Banken sowohl zum Versenden als auch zum Empfangen angeboten werden müssen (letzteres bereits seit Januar 2025). Die Kosten dürfen dabei nicht über denen einer normalen Überweisung liegen.

    Das einfachste wäre wahrscheinlich, dass die jeweiligen Apps einfach entsprechende EPC-QR-Codes generieren und auslesen können.

  • Good luck on the journey! What I meant is that over time, you'll realize that what you did was probably not the most elegant was to do something, at least that's my experience with my config. Like, I started with a flake with an explicit config for each machine (basically multiple nixosConfigurations) and then turned it into a lib with functions to turn a set of hosts from json into an attribute set (kind of a simple inventory done). My last efforts that are still ongoing (cough) are splitting my NixOS modules off into a separate flake using flake-parts.

    I do understand you meant having the stuff that your need work, I just wanted to hint that the language is very powerful and as such, most configurations have room for improvement, as in learning to do things more efficient or do things that weren't possible before.

  • Brisket player?